/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Typography
   =========================== */
h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-links svg {
    width: 24px;
    height: 24px;
}

.resume-link {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #667eea !important;
}

.resume-link:hover {
    background-color: white !important;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 4rem 0;
    background-color: white;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section:nth-of-type(even) {
    background-color: #f8f9fa;
}

/* ===========================
   Education Section
   =========================== */
.education-item {
    margin-bottom: 2rem;
}

.education-item h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.education-item .degree {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.25rem;
}

.education-item .details {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.education-item .description {
    color: #555;
}

/* ===========================
   Experience Section
   =========================== */
.experience-item {
    margin-bottom: 2.5rem;
}

.experience-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.experience-item .company {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-item .company a {
    color: #3498db;
    font-weight: 600;
}

.experience-item .supervisor {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.experience-item ul {
    margin-top: 1rem;
}

.experience-item li {
    color: #555;
    line-height: 1.7;
}

/* ===========================
   Skills Section
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:nth-of-type(even) .skill-category {
    background-color: white;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.skill-category p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0;
}

/* ===========================
   Projects Section
   =========================== */
.project-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.project-item .project-link {
    margin-bottom: 1rem;
}

.project-item .project-link a {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #3498db;
    font-weight: 600;
}

.project-item ul {
    margin-top: 1rem;
}

.project-item li {
    color: #555;
    line-height: 1.7;
}

/* ===========================
   Leadership Section
   =========================== */
.leadership-list {
    list-style: none;
    margin-left: 0;
}

.leadership-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    color: #555;
}

.section:nth-of-type(even) .leadership-list li {
    background-color: white;
}

.leadership-list strong {
    color: #2c3e50;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero .subtitle {
        font-size: 1.25rem;
    }

    .contact-links {
        gap: 1rem;
    }

    .contact-links a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-links a {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .section {
        padding: 2rem 0;
        margin-bottom: 1rem;
    }
}

