/* ===================================================================
   DESIGN TOKENS & GLOBAL RESET
   =================================================================== */
:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-card: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #9ba1a5;
    --text-label: #474d50;
    --accent-blue: #0080ff;
    --bubble-white-bg: #f7f7f7;
    --bubble-white-text: #131415;

    /* Typography */
    --font-display: 'Mona Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding-y: 180px;
    --gap-header-gallery: 120px;
    --gap-gallery-narrative: 80px;

    /* Card */
    --card-width: 140px;
    --card-height: 180px;
    --card-radius: 14px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --spring-bezier: cubic-bezier(0.34, 1.56, 0.64, 1);
    --nav-bg: rgba(10, 10, 10, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.1);
}

/* Global Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================================================
   NAVIGATION BAR
   =================================================================== */
.main-nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: fit-content;
}

.nav-container {
    background: var(--nav-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    color: var(--text-primary);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-divider {
    width: 1px;
    height: 18px;
    background-color: var(--border-subtle);
    margin: 0 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

/* ===================================================================
   ABOUT SECTION
   =================================================================== */
.about-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding-y) 20px;
    overflow: hidden;
    background-color: var(--bg-primary);
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle,
            rgba(0, 128, 255, 0.04) 0%,
            rgba(0, 128, 255, 0.02) 30%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===================================================================
   HEADER
   =================================================================== */
.about-header {
    text-align: center;
    margin-bottom: var(--gap-header-gallery);
    z-index: 2;
    position: relative;
}

.section-label {
    font-family: var(--font-display);
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.about-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

/* Role Cycler */
.role-cycler {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.role-text {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
    background: rgba(0, 128, 255, 0.1);
    border: 1px solid rgba(0, 128, 255, 0.25);
    border-radius: 999px;
    padding: 6px 20px;
    display: inline-block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.role-text.fade-out {
    opacity: 0;
    transform: translateY(12px);
}

.role-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* ===================================================================
   GALLERY FAN (SCATTERED CARDS)
   =================================================================== */
.gallery-fan-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: var(--gap-gallery-narrative);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.gallery-fan {
    position: relative;
    width: 860px;
    height: 290px;
}

/* Individual Card */
.fan-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: grab;
    will-change: transform, opacity;
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* Start stacked in center */
    transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
    opacity: 0;
    z-index: 1;

    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.fan-card.fanned {
    opacity: 1;
    transition:
        transform 0.9s var(--spring-bezier),
        opacity 0.6s ease,
        box-shadow 0.4s ease,
        filter 0.4s ease,
        scale 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        rotate 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        z-index 0s 0.4s;
    /* Wait 0.4s before resetting z-index on mouse leave */
}

.fan-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    filter: brightness(1.1);
    z-index: 50 !important;
    scale: 1.15;
    rotate: 2deg;
    transition:
        box-shadow 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        filter 0.4s ease,
        scale 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        rotate 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
        z-index 0s 0s;
    /* Trigger z-index instantly on hover */
}

/* Specific hover for central card to keep it king */
.fan-card[data-index="3"]:hover {
    scale: 1.6;
    z-index: 100 !important;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* ===================================================================
   FAN POSITIONS (7 cards arc) — flatter, wider spread
   The transform includes the initial translate(-50%, -50%) offset
   =================================================================== */
.fan-card.fanned[data-index="0"] {
    transform: translate(calc(-50% - 350px), calc(-50% + 8px)) rotate(-14deg) scale(1);
    z-index: 1;
    transition-delay: 0s;
}

.fan-card.fanned[data-index="1"] {
    transform: translate(calc(-50% - 228px), calc(-50% + 2px)) rotate(-8deg) scale(1);
    z-index: 2;
    transition-delay: 0.08s;
}

.fan-card.fanned[data-index="2"] {
    transform: translate(calc(-50% - 112px), calc(-50% - 6px)) rotate(-3deg) scale(1);
    z-index: 3;
    transition-delay: 0.16s;
}

.fan-card.fanned[data-index="3"] {
    /* Central card: larger and in front */
    transform: translate(calc(-50% + 0px), calc(-50% - 8px)) rotate(2deg) scale(1.4);
    z-index: 20;
    transition-delay: 0.24s;
}

.fan-card.fanned[data-index="4"] {
    transform: translate(calc(-50% + 112px), calc(-50% - 4px)) rotate(6deg) scale(1);
    z-index: 3;
    /* Lower z-index so it stays behind the center */
    transition-delay: 0.32s;
}

.fan-card.fanned[data-index="5"] {
    transform: translate(calc(-50% + 228px), calc(-50% + 4px)) rotate(10deg) scale(1);
    z-index: 2;
    transition-delay: 0.40s;
}

.fan-card.fanned[data-index="6"] {
    transform: translate(calc(-50% + 350px), calc(-50% + 10px)) rotate(14deg) scale(1);
    z-index: 1;
    transition-delay: 0.48s;
}

/* ===================================================================
   CHAT BUBBLES
   =================================================================== */
.chat-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 20;
    opacity: 0;
    will-change: transform;
}

.chat-bubble.visible {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Blue Bubble - @ProductDesigner */
.chat-bubble-blue {
    background-color: var(--accent-blue);
    color: #ffffff;
    top: -10px;
    right: 80px;
    animation: floatBubble1 3s ease-in-out infinite;
    animation-play-state: paused;
}

.chat-bubble-blue.visible {
    animation-play-state: running;
}

/* White Bubble - @sujitpradhan23 */
.chat-bubble-white {
    background-color: var(--bubble-white-bg);
    color: var(--bubble-white-text);
    top: -10px;
    left: 80px;
    animation: floatBubble2 3.5s ease-in-out infinite;
    animation-delay: 0.8s;
    animation-play-state: paused;
}

.chat-bubble-white.visible {
    animation-play-state: running;
}

/* Bubble Tails */
.bubble-tail {
    position: absolute;
    bottom: -6px;
    width: 12px;
    height: 12px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.bubble-tail-blue {
    background-color: var(--accent-blue);
    right: 24px;
}

.bubble-tail-white {
    background-color: var(--bubble-white-bg);
    left: 24px;
}

/* Floating Animations */
@keyframes floatBubble1 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatBubble2 {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===================================================================
   NARRATIVE PARAGRAPH
   =================================================================== */
.about-narrative {
    text-align: center;
    max-width: 700px;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.about-narrative.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.narrative-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: 0.005em;
}

.highlight-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===================================================================
   FADE-IN ANIMATIONS
   =================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --card-width: 120px;
        --card-height: 155px;
        --gap-header-gallery: 80px;
        --gap-gallery-narrative: 60px;
    }

    .gallery-fan {
        width: 700px;
        height: 260px;
    }

    .fan-card.fanned[data-index="0"] {
        transform: translate(calc(-50% - 278px), calc(-50% + 6px)) rotate(-12deg) scale(1);
    }

    .fan-card.fanned[data-index="1"] {
        transform: translate(calc(-50% - 182px), calc(-50% + 2px)) rotate(-7deg) scale(1);
    }

    .fan-card.fanned[data-index="2"] {
        transform: translate(calc(-50% - 90px), calc(-50% - 5px)) rotate(-2deg) scale(1);
    }

    .fan-card.fanned[data-index="3"] {
        transform: translate(calc(-50% + 0px), calc(-50% - 7px)) rotate(2deg) scale(1.25);
    }

    .fan-card.fanned[data-index="4"] {
        transform: translate(calc(-50% + 90px), calc(-50% - 3px)) rotate(5deg) scale(1);
    }

    .fan-card.fanned[data-index="5"] {
        transform: translate(calc(-50% + 182px), calc(-50% + 3px)) rotate(9deg) scale(1);
    }

    .fan-card.fanned[data-index="6"] {
        transform: translate(calc(-50% + 278px), calc(-50% + 8px)) rotate(13deg) scale(1);
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --card-width: 90px;
        --card-height: 116px;
        --section-padding-y: 100px;
        --gap-header-gallery: 60px;
        --gap-gallery-narrative: 50px;
    }

    .about-headline {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .gallery-fan {
        width: 360px;
        height: 200px;
    }

    .fan-card.fanned[data-index="0"] {
        transform: translate(calc(-50% - 142px), calc(-50% + 5px)) rotate(-12deg) scale(1);
    }

    .fan-card.fanned[data-index="1"] {
        transform: translate(calc(-50% - 93px), calc(-50% + 1px)) rotate(-7deg) scale(1);
    }

    .fan-card.fanned[data-index="2"] {
        transform: translate(calc(-50% - 46px), calc(-50% - 4px)) rotate(-2deg) scale(1);
    }

    .fan-card.fanned[data-index="3"] {
        transform: translate(calc(-50% + 0px), calc(-50% - 5px)) rotate(1deg) scale(1.2);
    }

    .fan-card.fanned[data-index="4"] {
        transform: translate(calc(-50% + 46px), calc(-50% - 2px)) rotate(5deg) scale(1);
    }

    .fan-card.fanned[data-index="5"] {
        transform: translate(calc(-50% + 93px), calc(-50% + 2px)) rotate(9deg) scale(1);
    }

    .fan-card.fanned[data-index="6"] {
        transform: translate(calc(-50% + 142px), calc(-50% + 5px)) rotate(13deg) scale(1);
    }

    .chat-bubble {
        font-size: 11px;
        padding: 6px 12px;
    }

    .chat-bubble-blue {
        right: 20px;
        top: -15px;
    }

    .chat-bubble-white {
        left: 20px;
        top: -15px;
    }

    .about-narrative {
        max-width: 340px;
    }

    .narrative-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* ===================================================================
   PROJECTS SECTION
   =================================================================== */
.projects-section {
    padding: 140px 20px 120px;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
}

.projects-container {
    max-width: 1200px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.mono-label {
    font-family: 'Chivo Mono', monospace;
    /* Fallback to monospace if font not loaded */
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.main-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    max-width: 900px;
    margin: 0 auto 32px;
    line-height: 1.2;
}

.section-note {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.blue-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blue-link:hover {
    border-bottom-color: var(--accent-blue);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 1 / 0.85;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--spring-bezier);
    cursor: pointer;
}

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

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image-container img {
    transform: scale(1.05);
}

/* Project Specific Backgrounds */
.lumi-bg {
    background: rgba(255, 255, 255, 0.05);
}

.prism-bg {
    background: rgba(56, 189, 248, 0.1);
}

.take-bg {
    background: #e6f9f0;
}

/* Pale green inspired by screenshot */

.project-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.project-description {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s var(--spring-bezier);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-tagline {
        font-size: 1.8rem;
    }

    .main-nav {
        top: 20px;
        width: 90%;
    }

    .nav-container {
        width: 100%;
        justify-content: space-between;
    }

    .nav-name {
        display: none;
    }
}

/* ===================================================================
   EXTENDED CUT SECTION
   =================================================================== */
.extended-section {
    padding: 80px 20px 140px;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
}

.main-tagline.small {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 800px;
}

.text-cyan {
    color: #38bdf8 !important;
    /* Specific cyan from sujitpradhan.com */
}

.extended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.project-card-small {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--spring-bezier);
    cursor: pointer;
}

.project-card-small:hover .image-wrapper {
    transform: translateY(-8px);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-small:hover .image-wrapper img {
    transform: scale(1.05);
}

/* Specific Backgrounds */
.deal-bg {
    background: #131415;
}

.amazon-bg {
    background: #f2f2f2;
}

.onn-bg {
    background: #e0e8f0;
}

.art-bg {
    background: #ff4d00;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-info h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-info p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 1100px) {
    .extended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .extended-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .extended-section {
        padding: 40px 20px 100px;
    }
}

/* ===================================================================
   EXPERIENCE SECTION (My Journey)
   =================================================================== */
.experience-section {
    padding: 120px 20px 180px;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.journey-headline {
    font-size: clamp(3rem, 6vw, 4.5rem) !important;
    text-align: center;
    margin-bottom: 40px;
}

.journey-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 850px;
    margin: 0 auto 100px;
    line-height: 1.7;
}

.text-white {
    color: var(--text-primary);
}

.journey-scatter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    /* Reduced height as they are in a row */
    margin: 0 auto;
    padding-bottom: 50px;
}

.experience-card {
    position: relative;
    width: 320px;
    height: 420px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    user-select: none;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;

    /* Clean Overlap in a line */
    margin-left: -60px;
    transform: translateY(0);
}

.experience-card:first-child {
    margin-left: 0;
}

.experience-card:hover {
    transform: translateY(-80px) !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    z-index: 100 !important;
}

.experience-card:active {
    cursor: grabbing;
}

.experience-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
    z-index: 100 !important;
}

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

.company-logo {
    height: 24px;
    display: flex;
    align-items: center;
}

.company-logo img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.company-logo span {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.experience-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.experience-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.experience-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Experience */
@media (max-width: 1024px) {
    .journey-scatter-container {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .experience-card {
        position: static !important;
        width: 100%;
        max-width: 600px;
        transform: none !important;
        cursor: default;
    }
}

/* ===================================================================
   INSTAGRAM SECTION (Roadmap 5)
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

.instagram-section {
    position: relative;
    padding: 100px 20px;
    background-color: var(--bg-primary);
    overflow: hidden;
    min-height: 900px;
}

.instagram-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.instagram-content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    /* Wider for better scattering */
    margin: 0 auto;
    min-height: 800px;
}

.instagram-header {
    position: relative;
    z-index: 50;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 100px;
    pointer-events: auto;
}

.script-font {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    color: var(--text-primary);
    display: block;
    margin-bottom: -10px;
}

.insta-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.insta-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.follow-btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.follow-btn:hover {
    background-color: var(--text-primary);
    color: black;
}

/* Pins */
.pin {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blue-pin {
    background-color: #38bdf8;
    top: 20%;
    right: -10px;
}

.blue-pin-2 {
    background-color: #38bdf8;
    bottom: 30%;
    right: 20px;
}

/* Scattered Elements */
.insta-scatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.insta-item {
    position: absolute;
    pointer-events: auto;

    /* Starting state for scroll animation */
    opacity: 0;
    scale: 0.5;
    filter: blur(10px);

    transition: opacity 0.8s ease, scale 0.8s cubic-bezier(0.34, 1.5, 0.64, 1), filter 0.8s ease, rotate 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.insta-item.scatter-in {
    opacity: 1;
    scale: 1;
    filter: blur(0px);
}

.insta-item:hover {
    scale: 1.06;
    rotate: 3deg;
}

.photo-card {
    width: 260px;
    background: transparent;
    padding: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 8px 15px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.photo-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

/* Spotify Cards */
.spotify-card {
    width: min-content;
    background: transparent;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 8px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.spotify-card iframe {
    display: block;
}


/* Mini Variants */
.left-track,
.right-track {
    width: min-content;
}

/* ===================================================================
   MEDIA SPOTLIGHT SECTION (Roadmap 6)
   =================================================================== */
.media-section {
    padding: 120px 20px;
    background-color: var(--bg-primary);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.media-card {
    background: transparent;
    transition: transform 0.3s ease;
}

.media-card:hover {
    transform: translateY(-10px);
}

.media-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.media-card:hover .media-image img {
    opacity: 1;
}

.media-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.media-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================================================
   CONNECT SECTION (Roadmap 6)
   =================================================================== */
.connect-section {
    padding: 180px 20px 100px;
    background-color: var(--bg-primary);
    text-align: center;
}

.connect-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.connect-tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.connect-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 120px;
}

.btn-outline {
    position: relative;
    padding: 16px 40px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-outline:hover {
    transform: rotate(-3deg) scale(1.02);
    border-color: var(--text-primary);
    color: var(--text-primary);
    z-index: 10;
}

.btn-filled.blue {
    position: relative;
    padding: 16px 40px;
    background-color: var(--accent-blue);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-filled.blue:hover {
    background-color: #0066cc;
    transform: rotate(-3deg) scale(1.02);
    z-index: 10;
}

/* Button Ghost Border Effect */
.btn-outline::before,
.btn-filled.blue::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: -1;
}

.btn-outline:hover::before,
.btn-filled.blue:hover::before {
    opacity: 1;
    inset: -6px;
    transform: rotate(6deg) scale(1.05);
}

/* Button Sparkles Effect */
.btn-outline::after,
.btn-filled.blue::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
    background-image:
        url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5L12 0Z' /%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5L12 0Z' /%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L14.5 9.5L24 12L14.5 14.5L12 24L9.5 14.5L0 12L9.5 9.5L12 0Z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top 0% right 20%, bottom 10% left 15%, 50% 100%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    transform: scale(0.5);
    z-index: 2;
}

.btn-outline:hover::after,
.btn-filled.blue:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: sparkles-float 3s infinite ease-in-out;
}

@keyframes sparkles-float {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(2px, -3px);
    }
}

/* Footer Styling */
.main-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
    opacity: 0.6;
}

@media (max-width: 1100px) {
    .insta-scatter {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-top: 60px;
    }

    .insta-item {
        position: static !important;
        transform: rotate(0deg) !important;
    }

    .instagram-section {
        padding: 100px 20px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}




/* ===================================================================
   PHOTOGRAPHY PREVIEW SECTION
   =================================================================== */
.photo-preview-section {
    padding: 120px 20px 140px;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 14px;
    margin-top: 60px;
}

.photo-preview-card.tall {
    grid-row: 1 / 3;
}

.photo-preview-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
}

.photo-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.photo-preview-card:hover img {
    transform: scale(1.06);
    filter: brightness(0.72);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.photo-preview-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    padding: 5px 14px;
    border-radius: 999px;
}

.see-more-row {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.see-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    background: transparent;
}

.see-more-btn:hover {
    background: #0080ff;
    border-color: #0080ff;
}

.see-more-btn svg {
    transition: transform 0.3s ease;
}

.see-more-btn:hover svg {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .photo-preview-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }
}

@media (max-width: 640px) {
    .photo-preview-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px 150px;
    }
}

/* ===================================================================
   CHAT FAQ SECTION (Messaging Interface)
   =================================================================== */
.chat-faq-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 80px auto 0;
}

.chat-faq-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-faq-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-q.dark-bubble,
.chat-a.blue-bubble {
    padding: 16px 24px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    max-width: 90%;
}

.chat-q.dark-bubble {
    background-color: #1a1c1e;
    color: #e5e7eb;
    border-bottom-left-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    align-self: flex-start;
    user-select: none;
    transition: filter 0.2s ease;
}

.chat-q.dark-bubble:hover {
    background-color: #0c1524;
    border: 1px solid #1e3a8a;
    filter: none;
}

/* Heart Icon for FAQ - Hidden by default */
.chat-q.dark-bubble::after {
    content: '';
    position: absolute;
    top: -12px;
    right: 25px;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ff6b81' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0) rotate(-5deg);
    transition: all 0.3s var(--spring-bezier);
    pointer-events: none;
    z-index: 5;
}

/* ONLY show by default in the top one */
.chat-faq-item:first-child .chat-q.dark-bubble::after {
    opacity: 1;
    transform: scale(1) rotate(-5deg);
}

/* Hide heart on hover as requested */
.chat-q.dark-bubble:hover::after {
    opacity: 0;
    transform: scale(0);
}

/* Star Icon for Lowest FAQ - Bottom Left */
.chat-faq-item:nth-child(4) .chat-q.dark-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -15px;
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23fbbf24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1) rotate(15deg);
    transition: all 0.3s var(--spring-bezier);
    pointer-events: none;
    z-index: 5;
}

/* Star is permanent - no hover hide state needed for :nth-child(4) */

.chat-a.blue-bubble {
    background-color: var(--accent-blue);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

@keyframes messagePop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.chat-faq-item.active .chat-a.blue-bubble {
    animation: messagePop 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    transform-origin: bottom right;
}

.bubble-tail-right {
    position: absolute;
    bottom: 0;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-blue);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    border-bottom-right-radius: 12px;
}

.chat-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.chat-q.dark-bubble:hover .chat-btn {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.chat-btn.minus {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.star-icon {
    color: #fca5a5;
    margin-right: 4px;
}

.chat-faq-profile {
    width: 240px;
    min-width: 240px;
    aspect-ratio: 4/5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-faq-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .chat-faq-container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
    }
}