/* ============================================
   ADI DESAI - PORTFOLIO
   Off-white with gold highlights
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background: #FAF9F6;
    color: #3A3A3A;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

strong {
    font-weight: 600;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    padding: 2rem 2rem;
    background: #3A3A3A;
}

.nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 0.375rem;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #fff;
}

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

.nav a.active {
    color: #fff;
}

.nav a.active::after {
    width: 100%;
    background: #D4AF37;
}

/* ============================================
   HERO SECTION (About Page)
   ============================================ */

.hero {
    padding: 4rem 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.hero-text {
    flex: 1;
    padding-top: 1rem;
}

.name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: #3A3A3A;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #D4AF37;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-photo {
    width: 200px;
    height: 260px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #3A3A3A;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-photo.no-image::after {
    content: 'A';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #555;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio {
    max-width: 680px;
    padding-left: 1.5rem;
    border-left: 3px solid #D4AF37;
}

.bio p {
    font-size: 1.0625rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTIONS (Education, Experience)
   ============================================ */

.section {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #3A3A3A;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3A3A3A;
    display: inline-block;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.entry {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #E5E1DA;
}

.entry:last-child {
    border-bottom: none;
}

.entry-main h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 0.25rem;
}

.entry-sub {
    font-size: 0.9375rem;
    color: #666;
}

.entry-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: #888;
    white-space: nowrap;
}

/* ============================================
   PAGE HEADER (Projects, Interests)
   ============================================ */

.page-header {
    text-align: center;
    padding: 4rem 2rem 2.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1rem;
    color: #666;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */

.projects-section {
    padding: 1rem 2rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

.project-card:hover .project-label {
    background: #D4AF37;
    color: #fff;
}

.project-card:hover h3 {
    color: #D4AF37;
}

.project-image {
    aspect-ratio: 4/3;
    background: #3A3A3A;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.project-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #3A3A3A;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-info h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 0.625rem;
    transition: color 0.2s;
}

.project-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-meta span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    background: #f0f0f0;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
}

/* ============================================
   INTERESTS PAGE
   ============================================ */

.interests-section {
    padding: 1rem 2rem 5rem;
    max-width: 750px;
    margin: 0 auto;
}

.interest-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #E5E1DA;
}

.interest-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.interest-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #3A3A3A;
    margin-bottom: 1rem;
}

.interest-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.interest-link {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.interest-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #D4AF37;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.interest-link:hover {
    color: #B8972E;
}

.interest-link:hover::after {
    transform: scaleX(1);
}

/* ============================================
   VOLUNTEERING SECTION
   ============================================ */

.volunteer-stat {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #3A3A3A;
    border-radius: 6px;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 500;
    color: #D4AF37;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.volunteer-item {
    padding: 1rem 1.25rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #3A3A3A;
    text-decoration: none;
    transition: all 0.2s;
}

.volunteer-item:hover {
    background: #3A3A3A;
    color: #fff;
}

/* ============================================
   PHOTO SLIDESHOW
   ============================================ */

.project-slideshow {
    position: relative;
}

.project-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow 16s infinite;
}

.project-slideshow img:nth-child(1) { animation-delay: 0s; }
.project-slideshow img:nth-child(2) { animation-delay: 4s; }
.project-slideshow img:nth-child(3) { animation-delay: 8s; }
.project-slideshow img:nth-child(4) { animation-delay: 12s; }

@keyframes slideshow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================
   ENTRY DETAILS & LISTS
   ============================================ */

.entry-details {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.entry-list {
    list-style: none;
    margin-top: 0.75rem;
    padding-left: 0;
}

.entry-list li {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.entry-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

.entry-list li:last-child {
    margin-bottom: 0;
}

.entry-sub.highlight {
    color: #D4AF37;
    font-weight: 600;
}

/* ============================================
   PUBLICATIONS
   ============================================ */

.publications-list {
    gap: 0;
}

.publication-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #E5E1DA;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-text {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.8;
}

/* ============================================
   PROJECT AWARDS
   ============================================ */

.project-award {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   SKILLS & CLUBS (Interests Page)
   ============================================ */

.skills-section {
    padding-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3A3A3A;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-category p {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
}

.clubs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.club-item {
    padding: 0.75rem 1.25rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #3A3A3A;
    transition: all 0.2s;
}

.club-item:hover {
    background: #3A3A3A;
    color: #fff;
}

.club-item.club-highlight {
    background: #3A3A3A;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
}

.club-item.club-highlight:hover {
    background: #D4AF37;
}

.club-role {
    font-size: 0.75rem;
    font-weight: 500;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.club-item.club-highlight:hover .club-role {
    color: #3A3A3A;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    margin-top: auto;
    text-align: center;
    padding: 2.5rem 2rem;
    background: #3A3A3A;
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #D4AF37;
}

.footer-divider {
    color: #555;
}

.copyright {
    font-size: 0.75rem;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .nav {
        gap: 2rem;
        padding: 1.5rem 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .hero-inner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        padding-top: 0;
    }

    .hero-photo {
        width: 160px;
        height: 210px;
    }

    .name {
        font-size: 2.5rem;
    }

    .bio {
        text-align: left;
        padding-left: 1.25rem;
        border-left-width: 2px;
    }

    .section {
        padding: 2rem 1.5rem;
    }

    .entry {
        flex-direction: column;
        gap: 0.25rem;
    }

    .volunteer-grid {
        grid-template-columns: 1fr;
    }

    .projects-section {
        padding: 1rem 1.5rem 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .interests-section {
        padding: 1rem 1.5rem 3rem;
    }

    .page-header {
        padding: 3rem 1.5rem 2rem;
    }

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

    .clubs-grid {
        gap: 0.5rem;
    }

    .club-item {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .club-item.club-highlight {
        padding: 0.875rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 1.5rem;
    }

    .nav a {
        font-size: 0.6875rem;
        letter-spacing: 0.08em;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.875rem;
    }

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

    .page-title {
        font-size: 1.75rem;
    }

    .bio p {
        font-size: 1rem;
    }
}
