/* ========================================
   DARSH PATEL - PORTFOLIO STYLES
   ========================================
   
   TABLE OF CONTENTS:
   1. Variables & Reset
   2. Base Typography
   3. Layout
   4. Hero Section
   5. Q&A Section
   6. Stats Section
   7. Story Block
   8. Timeline Section
   9. Projects Section
   10. CTA Section
   11. Footer
   12. Inspiration Cards (Right Side Stack)
   13. Animations
   14. MOBILE STYLES (max-width: 600px)
   
   ======================================== */


/* ========================================
   1. VARIABLES & RESET
   ======================================== */

:root {
    --bg: #faf9f7;
    --text: #1a1a1a;
    --text-muted: #666;
    --text-faint: #999;
    --accent: #248518;
    --border: #e5e3df;
}

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


/* ========================================
   2. BASE TYPOGRAPHY
   ======================================== */

body {
    font-family: 'Geist Mono', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

/* Utility class for serif font (same as questions) */
.serif {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 20px;
    letter-spacing: 0.04em;
    word-spacing: 0.15em;
}


/* ========================================
   3. LAYOUT
   ======================================== */

.page {
    max-width: 900px;
    margin: 0 auto;
    transform: translateX(-120px);
    padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 48px);
}


/* ========================================
   4. HERO SECTION
   ======================================== */

.hero {
    margin-bottom: clamp(80px, 12vw, 160px);
    position: relative;
}

.hero-name {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(48px, 12vw, 140px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-name span {
    display: block;
}

.hero-name .first {
    font-style: italic;
}

.hero-tagline {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--text-muted);
    max-width: 500px;
}

.hero-tagline .highlight {
    color: var(--text);
    font-weight: 500;
}

/* Scroll hint - hidden on desktop */
.scroll-hint {
    display: none;
}


/* ========================================
   5. Q&A SECTION
   ======================================== */

.qa-section {
    margin-bottom: clamp(60px, 8vw, 100px);
}

.question {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 8vw, 72px);
    font-style: normal;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.1;
    max-width: 500px;
}

.answer {
    font-size: clamp(15px, 1.6vw, 17px);
    max-width: 600px;
    margin-bottom: 32px;
}

.answer em {
    font-style: normal;
    background: linear-gradient(120deg, #d4edda 0%, #d4edda 100%);
    background-size: 100% 0.3em;
    background-repeat: no-repeat;
    background-position: 0 88%;
}


/* ========================================
   6. STATS SECTION
   ======================================== */

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(24px, 4vw, 48px);
    margin: clamp(32px, 5vw, 64px) 0;
    padding: clamp(24px, 4vw, 48px) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 700px;
}

.stat {
    flex: 1;
    min-width: 140px;
}

.stat-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.stat-number {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 400;
    line-height: 1;
    color: var(--text);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    margin-top: 8px;
}

.stat-context {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Desktop: company at bottom */
.stat-where {
    font-size: 11px;
    color: var(--text-faint);
    font-style: italic;
    margin-top: 8px;
    display: block;
}

/* Mobile: company on side - hidden on desktop */
.stat-where-mobile {
    display: none;
}


/* ========================================
   7. STORY BLOCK
   ======================================== */

.story-block {
    background: #fff;
    border: 1px solid var(--border);
    padding: clamp(24px, 4vw, 40px);
    margin: clamp(40px, 6vw, 80px) 0;
    position: relative;
    max-width: 650px;
}

.story-block::before {
    content: '"';
    font-family: 'Instrument Serif', serif;
    font-size: 120px;
    color: var(--border);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.story-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}

.story-content {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    line-height: 1.5;
    color: var(--text);
}

.story-credit {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 20px;
    font-family: 'Geist Mono', monospace;
}


/* ========================================
   8. TIMELINE SECTION
   ======================================== */

.timeline-section {
    margin: clamp(60px, 8vw, 100px) 0;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 500;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: baseline;
}

.t-year {
    font-size: 12px;
    color: var(--text-faint);
}

.t-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-company {
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.t-role {
    font-size: 13px;
    color: var(--text-muted);
}

.t-highlight {
    font-size: 12px;
    color: var(--text-muted);
}

.active-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}


/* ========================================
   9. PROJECTS SECTION
   ======================================== */

.projects-section {
    margin: clamp(60px, 8vw, 100px) 0;
    max-width: 700px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 24px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.project-item:first-child {
    border-top: 1px solid var(--border);
}

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

.project-item:hover {
    background: rgba(0,0,0,0.02);
}

.project-item:hover .project-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    letter-spacing: 0.04em;
    word-spacing: 0.15em;
    font-size: 20px;
}

.project-name {
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
}

.project-status.building {
    background: #e6a700;
    animation: pulse 2s ease-in-out infinite;
}

.project-status.live {
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.project-status.shipped {
    background: var(--text-muted);
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-arrow {
    font-size: 16px;
    color: var(--text-faint);
    transition: transform 0.2s, color 0.2s;
}

.project-item:hover .project-arrow {
    transform: translateX(4px);
    color: var(--text);
}


/* ========================================
   10. CTA SECTION
   ======================================== */

.cta-section {
    margin-top: clamp(80px, 12vw, 160px);
    padding-top: clamp(40px, 6vw, 80px);
    border-top: 1px solid var(--border);
}

.cta-question {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-style: italic;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Geist Mono', monospace;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--text);
    color: var(--text);
    background: transparent;
    transition: all 0.2s;
}

.cta-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.cta-btn.primary {
    background: var(--text);
    color: var(--bg);
}

.cta-btn.primary:hover {
    background: transparent;
    color: var(--text);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.social-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--text);
}


/* ========================================
   11. FOOTER
   ======================================== */

.footer {
    margin-top: clamp(80px, 12vw, 160px);
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-faint);
}


/* ========================================
   12. INSPIRATION CARDS (Right Side Stack)
   ======================================== */

.inspiration-stack {
    position: fixed;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.card-stack {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.inspiration-card {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Scattered stack effect - cards underneath */
.inspiration-card:nth-child(1) { transform: rotate(-6deg) translate(-8px, 4px); }
.inspiration-card:nth-child(2) { transform: rotate(4deg) translate(6px, -3px); }
.inspiration-card:nth-child(3) { transform: rotate(-2deg) translate(-3px, 6px); }
.inspiration-card:nth-child(4) { transform: rotate(0deg); z-index: 10; } /* Top card */

/* Hover effect on top card */
.card-stack:hover .inspiration-card:nth-child(4) {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Card content types */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-quote {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background: var(--bg);
}

.card-quote .quote-text {
    font-family: 'Instrument Serif', serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 12px;
}

.card-quote .quote-author {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-song {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-song .song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-song .song-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.card-song .song-title {
    font-size: 13px;
    font-weight: 500;
}

.card-song .song-artist {
    font-size: 11px;
    opacity: 0.8;
}

.card-song .playing-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Controls */
.card-controls {
    display: flex;
    gap: 8px;
}

.mute-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.mute-btn:hover {
    background: var(--text);
    color: var(--bg);
}

.card-hint {
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Hide on smaller screens */
@media (max-width: 1200px) {
    .inspiration-stack {
        display: none;
    }
}


/* ========================================
   13. ANIMATIONS
   ======================================== */

/* Card shuffle animation */
@keyframes cardShuffle {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-5deg) scale(0.95); }
    100% { transform: rotate(0deg) scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}


/* ========================================
   14. MOBILE STYLES (max-width: 600px)
   ========================================
   
   All mobile-specific overrides go here.
   Organized by component for easy editing.
   
   ======================================== */

@media (max-width: 600px) {

    /* --- Layout --- */
    .page {
        padding: 0;
        transform: none;
    }

    /* --- Hero --- */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 24px;
        margin-bottom: 0;
    }

    .hero-name {
        font-size: clamp(72px, 22vw, 120px);
        margin-bottom: 24px;
    }

    .hero-tagline {
        font-size: 14px;
        max-width: 300px;
        line-height: 1.6;
    }

    .scroll-hint {
        display: block;
        position: absolute;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
        color: var(--text-faint);
        animation: bounce 2s ease-in-out infinite;
        transition: opacity 0.3s ease;
    }

    .scroll-hint.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* --- Q&A --- */
    .qa-section {
        margin-bottom: 72px;
    }

    .question {
        font-size: clamp(36px, 11vw, 56px);
        margin-bottom: 24px;
        line-height: 1.15;
    }

    .answer {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    /* --- Stats --- */
    .stats-row {
        flex-direction: column;
        gap: 48px;
        margin: 72px 0;
        padding-top: 48px;
        padding-bottom: 48px;
        border: none;
        border-top: 1px solid var(--border);
    }

    .stat-number {
        font-size: clamp(56px, 16vw, 72px);
    }

    .stat-label {
        margin-top: 12px;
    }

    .stat-context {
        margin-top: 6px;
        line-height: 1.5;
    }

    /* Show mobile company name, hide desktop one */
    .stat-where {
        display: none;
    }

    .stat-where-mobile {
        display: block;
        font-size: 12px;
        color: var(--text-faint);
        font-style: italic;
    }

    /* --- Story Block --- */
    .story-block {
        margin: 72px 32px;
        padding: 32px 24px;
    }

    .story-block::before {
        font-size: 64px;
        top: -4px;
        left: 12px;
    }

    .story-content {
        font-size: clamp(18px, 5vw, 22px);
        line-height: 1.6;
    }

    .story-credit {
        margin-top: 24px;
    }

    /* --- Timeline --- */
    .timeline-section {
        margin: 72px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .timeline {
        gap: 28px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .t-role {
        margin-top: 2px;
    }

    .t-highlight {
        margin-top: 4px;
    }

    /* --- Projects --- */
    .projects-section {
        margin: 72px 0;
    }

    .project-item {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 24px 0;
    }

    .project-name {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .project-desc {
        grid-column: 1 / -1;
        font-size: 14px;
        line-height: 1.6;
        color: var(--text-muted);
    }

    /* --- CTA --- */
    .cta-section {
        margin-top: 72px;
        padding-top: 48px;
    }

    .cta-question {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 28px;
    }

    .social-links {
        justify-content: center;
        margin-top: 40px;
        gap: 32px;
    }

    /* --- Footer --- */
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-bottom: 40px;
        margin-top: 100px;
    }

    /* --- Content Padding --- */
    .qa-section,
    .stats-row,
    .story-block,
    .timeline-section,
    .projects-section,
    .cta-section,
    .footer {
        padding-left: 32px;
        padding-right: 32px;
    }
}


/* ========================================
   TABLET STYLES (max-width: 700px)
   ======================================== */

@media (max-width: 700px) {
    .project-item {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .project-name {
        grid-column: 1 / -1;
    }

    .project-desc {
        grid-column: 1;
    }
}

