/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #001F3F;
    --charcoal-gray: #2C3E50;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --border-gray: #ECF0F1;
    --accent-blue: #0056B3;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --footer-bg: #001F3F;
    --bg-white: #FFFFFF;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

.site-wrapper {
    width: 100%;
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 5%;
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

nav h1 {
    font-size: 24px;
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
}

.nav-links a {
    color: var(--charcoal-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-navy);
}

/* HERO */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hero h2 {
    font-size: clamp(40px, 5vw, 56px);
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.hero span {
    color: var(--accent-blue);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-link {
    display: inline-block;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.hero-link:hover {
    color: var(--primary-navy);
    transform: translateY(-2px);
    text-decoration: underline;
}

.btn {
    margin-top: 20px;
    display: inline-block;
    padding: 14px 32px;
    background: #0056B3;        /* Professional blue */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;         /* Subtle, not over-rounded */
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.2);
}

.btn:hover {
    background: #004A8D;
    box-shadow: 0 12px 28px rgba(0, 86, 179, 0.3);
    transform: translateY(-4px);  /* Lifts on hover */
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.2);
}

/* SECTIONS */
section {
    padding: 80px 10%;
    width: 100%;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-gray);
}

h3 {
    font-size: clamp(32px, 4vw, 40px);
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    margin-top: 8px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
}

/* ABOUT */
#about p {
    color: var(--text-primary);
    font-size: 16px;
    max-width: 800px;
}

/* TIMELINE (Education & Experience) */
.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-navy);
    border: 2px solid var(--white);
}

.timeline-item h4 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.timeline-item .meta {
    font-size: 14px;
    color: var(--accent-blue);
    margin-bottom: 8px;
    font-weight: 500;
}

.timeline-item p {
    color: var(--text-secondary);
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    padding: 32px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card h4 {
    font-size: 24px;
    font-family: var(--font-heading);
    color: var(--primary-navy);
}

.badge {
    background: var(--accent-blue);
    color: var(--white);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 13px;
    color: var(--accent-blue);
    background: rgba(0, 86, 179, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.card-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.card-link:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 8px;
}

.skill-category h4 {
    color: var(--primary-navy);
    margin-bottom: 12px;
    font-size: 18px;
}

.skill-category p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* CLUBS */
.clubs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.club-item {
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.club-dropdown {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: left;
}

.club-dropdown:hover {
    background: rgba(0, 0, 0, 0.03);
}

.dropdown-arrow {
    font-size: 14px;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.club-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    background: var(--white);
}

.club-content.show {
    max-height: 500px;
    padding: 16px 24px 24px 24px;
}

.club-content ul {
    list-style-type: none;
}

.club-content li {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.club-content li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 10px;
    color: var(--accent-blue);
}

/* CERTIFICATIONS & LANGUAGES */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-list p {
    color: var(--text-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* EVENTS DROPDOWN */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-item {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.event-dropdown {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    transition: background 0.2s ease;
    text-align: left;
}

.event-dropdown:hover {
    background: var(--light-gray);
}

.event-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    background: var(--white);
    border-top: 1px solid transparent;
}

.event-content.show {
    max-height: 3000px;
    padding: 16px 24px 24px 24px;
    border-top: 1px solid var(--border-gray);
}

.event-card {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-gray);
}

.event-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.event-header h4 {
    font-size: 20px;
    color: var(--primary-navy);
    margin-right: 16px;
}

.event-meta {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 12px;
}

.event-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 12px;
}

.event-team {
    font-size: 14px;
    color: var(--text-primary);
    background: var(--light-gray);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* CERTIFICATIONS GRID */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.cert-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-gray);
    background: var(--light-gray);
}

.cert-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--primary-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CONTACT */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--light-gray);
    padding: 32px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 16px;
}

.contact-item a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--primary-navy);
    text-decoration: underline;
}

.contact-links {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-gray);
}

/* MOBILE MEDIA QUERIES */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        gap: 16px;
    }

    .nav-links.active {
        display: flex;
    }

    section {
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 32px;
    }
    
    .timeline {
        padding-left: 20px;
    }
}