:root {
--primary: #3498db;
--dark: #2c3e50;
--light: #ecf0f1;
--accent: #e74c3c;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
font-size: 16px;
}

.container {
max-width: 1000px;
margin: 0 auto;
padding: 15px;
}

header {
background: linear-gradient(135deg, var(--primary), var(--dark));
color: white;
padding: 30px 20px;
border-radius: 10px 10px 0 0;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
}

header::before {
content: '';
position: absolute;
top: -50px;
right: -50px;
width: 200px;
height: 200px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
}

.profile-img {
width: 100px;
height: 130px;
border-radius: 10%;
object-fit: cover;
border: 4px solid white;
margin-bottom: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-text h1 {
font-size: 1.8rem;
margin-bottom: -10px;
}

.header-text p {
font-size: 1rem;
opacity: 0.9;
}

.social-links {
margin-top: 15px;
display: flex;
justify-content: center;
flex-wrap: wrap;
}

.social-links a {
color: white;
margin: 0 10px 5px 0;
font-size: 1.1rem;
transition: transform 0.3s;
display: inline-block;
}

.social-links a:hover {
transform: translateY(-3px);
color: var(--light);
}

.main-content {
display: block;
background-color: white;
padding: 10px;
border-radius: 0 0 10px 10px;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.sidebar {
background-color: var(--light);
padding: 20px;
border-radius: 8px;
margin-bottom: 25px;
}

.section {
    margin-bottom: 15px;
}

.section-title {
color: var(--primary);
font-size: 1.2rem;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid var(--primary);
display: flex;
align-items: center;
}

.section-title i {
margin-right: 10px;
font-size: 1rem;
}

.contact-info p {
margin-bottom: 10px;
display: flex;
align-items: center;
font-size: 0.95rem;
}

.contact-info i {
width: 22px;
color: var(--primary);
margin-right: 10px;
font-size: 0.9rem;
}

.skills-list {
list-style-type: none;
}

.skill-item {
margin-bottom: 12px;
}

.skill-name {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 0.95rem;
}

.skill-bar {
height: 6px;
background-color: #ddd;
border-radius: 4px;
overflow: hidden;
}

.skill-progress {
height: 100%;
background-color: var(--primary);
border-radius: 4px;
}

.language-item {
margin-bottom: 12px;
}

.language-name {
font-weight: bold;
margin-bottom: 3px;
font-size: 0.95rem;
}

.language-level {
color: #666;
font-size: 0.85rem;
}

.main-section {
padding: 10px 0;
}

.experience-item, .education-item {
margin-bottom: 20px;
position: relative;
padding-left: 25px;
}

.experience-item::before, .education-item::before {
content: '';
position: absolute;
left: 0;
top: 5px;
width: 12px;
height: 12px;
border-radius: 50%;
background-color: var(--primary);
}

.experience-item::after, .education-item::after {
content: '';
position: absolute;
left: 6px;
top: 17px;
bottom: -20px;
width: 1px;
background-color: #ddd;
}

.experience-item:last-child::after, .education-item:last-child::after {
display: none;
}

.ijasah-true {
    color: #2e7d32;
    font-weight: bold;
}

.ijasah-false {
    color: #c62828;
    font-weight: bold;
}

.job-title, .degree {
font-size: 1.1rem;
font-weight: bold;
color: var(--dark);
margin-bottom: 5px;
}

.company, .university {
color: var(--primary);
font-weight: 500;
margin-bottom: 5px;
font-size: 0.95rem;
}

.date {
color: #666;
font-size: 0.85rem;
margin-bottom: 8px;
display: block;
}

.job-description, .education-description {
margin-bottom: 8px;
font-size: 0.95rem;
}

.job-description ul, .education-description ul {
padding-left: 20px;
margin-top: 5px;
}

.job-description li, .education-description li {
margin-bottom: 5px;
font-size: 0.9rem;
}

.projects-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-top: 15px;
}

.project-card {
border: 1px solid #eee;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
height: 150px;
background-color: #eee;
background-size: contain;
background-position: center;
}

.project-details {
padding: 12px;
}

.project-title {
font-weight: bold;
margin-bottom: 5px;
color: var(--dark);
font-size: 1rem;
}

.project-description {
font-size: 0.85rem;
color: #666;
margin-bottom: 8px;
}

.project-links a {
display: inline-block;
margin-right: 10px;
color: var(--primary);
font-size: 0.8rem;
text-decoration: none;
}

.project-links a:hover {
text-decoration: underline;
}

.project-highlight {
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary);
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.tech-tags span {
    background-color: #e1f0fa;
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-link {
    color: var(--primary);
    word-break: break-all;
    display: inline-block;
    margin: 5px 0;
    font-size: 0.9rem;
}

.project-type {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .project-highlight {
        padding: 10px 12px;
    }
    
    .tech-tags {
        gap: 6px;
    }
    
    .tech-tags span {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
    
    .project-link {
        font-size: 0.85rem;
    }
}

/* Desktop View */
@media (min-width: 768px) {
.container {
    padding: 20px;
}

header {
    flex-direction: row;
    text-align: left;
    padding: 40px 30px;
}

.profile-img {
    width: 120px;
    height: 150px;
    margin-right: 30px;
    margin-bottom: 0;
}

.header-text h1 {
    font-size: 2.2rem;
}

.header-text p {
    font-size: 1.1rem;
}

.social-links {
    justify-content: flex-start;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 30px;
}

.sidebar {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
}

.projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.job-title, .degree {
    font-size: 1.2rem;
}
}
