/* ==========================================================================
   BNF Studio Hero Design System & Styling
   ========================================================================== */

/* Variables & Custom Properties */
:root {
    --bg-color: #f4f3f0;
    --text-primary: #0e0e0e;
    --text-secondary: #6e6d6a;
    --accent-orange: var(--accent-purple);
    --accent-purple: #8e44ad;
    --accent-teal: #30b096;
    --border-color: rgba(0, 0, 0, 0.12);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-meta: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hard: 0 16px 45px rgba(0, 0, 0, 0.12);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-color: #0c0b0a;
    --text-primary: #f4f3f0;
    --text-secondary: #a09e9a;
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-hard: 0 16px 45px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    width: 100vw;
    min-height: 100vh;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Main Canvas */
.hero-canvas {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Navigation Bar */
.main-nav {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 30px 40px;
    background: transparent;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Navigation Pills */
.nav-pill {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    text-decoration: none;
    padding: 9px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-pill .arrow {
    font-size: 9px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-pill:hover .arrow {
    transform: translate(2px, -2px);
}

/* Center Coordinates */
.nav-coordinates {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coord-line {
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--accent-orange);
    text-transform: uppercase;
}

.coord-line.sub {
    font-size: 9px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* Language Toggle Custom */
.lang-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.circle-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: scale(1.08);
}

.lang-toggle {
    position: relative;
    width: 68px;
    height: 32px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
    overflow: hidden;
}

[data-theme="dark"] .lang-toggle {
    background: rgba(255, 255, 255, 0.08);
}

.lang-option {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    z-index: 2;
    transition: color 0.3s ease;
    user-select: none;
}

.lang-option.active {
    color: #ffffff;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 26px;
    border-radius: 50px;
    background: var(--accent-orange);
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-toggle.toggled .toggle-slider {
    transform: translateX(32px);
}

/* Giant Background Heading (Auto Ticker / Marquee) */
.background-title-container {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 15;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scrollTicker 45s linear infinite;
    will-change: transform;
}

.ticker-group {
    display: flex;
    align-items: center;
    gap: 100px;
    padding-right: 100px;
}

.ticker-group span {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: min(24vw, 280px);
    color: var(--text-primary);
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.ticker-dot {
    color: var(--accent-orange);
    opacity: 0.95 !important;
    font-size: min(14vw, 150px) !important;
}

@keyframes scrollTicker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Floating Elements Canvas */
.interactive-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: auto;
    /* Allow children to stack globally relative to the title */
}

/* Base Floating Element */
.floating-element {
    position: absolute;
    left: var(--initial-x);
    top: var(--initial-y);
    transform: translate(-50%, -50%);
    cursor: default;
    will-change: transform;
    user-select: none;
    z-index: 25;
}

.floating-element img {
    display: block;
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

/* Element Specific Customizations & Sizing */

/* Main Purple Balloon 'BNF' */
.balloon-logo {
    width: min(90vw, 1020px);
    z-index: 5;
    transform: translate(-50%, -50%) rotate(65deg);
}

.drag-element:not(.balloon-logo) {
    transform: translate(-50%, -50%) rotate(var(--revealed-rotation, 0deg));
}

.balloon-logo.idle-animate img {
    animation: floatingBobInner 6s ease-in-out infinite alternate;
}

/* Top-Left 'WE BUILD' Sticker */
.sticker-nextgen {
    width: min(32vw, 400px);
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 25;
    /* Layers in front of the background ticker */
}

.sticker-nextgen.idle-animate img {
    animation: floatingBobInner 8s ease-in-out infinite alternate;
}

/* Top-Right Stones */
.stone-structure {
    width: min(20vw, 250px);
    transform: translate(-50%, -50%) rotate(4deg);
    z-index: 22;
}

.stone-structure.idle-animate img {
    animation: floatingBobSlowInner 7s ease-in-out infinite alternate;
}

/* Printed Coordinate Card */
.business-card {
    width: 250px;
    z-index: 26;
    transform: translate(-50%, -50%) rotate(-8deg);
}


/* Smiley Purple Wax Seal */
.wax-seal {
    width: min(15vw, 180px);
    transform: translate(-50%, -50%) rotate(15deg);
    z-index: 26;
}

.wax-seal.idle-animate img {
    animation: floatingBobInner 5s ease-in-out infinite alternate;
}

/* Frameless Showcases */
.product-card {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    border: none;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .product-card {
    background: transparent;
    border: none;
}

.product-card .polaroid-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Specific product styles */
.showcase-1 {
    width: min(22vw, 260px);
    transform: translate(-50%, -50%) rotate(-6deg);
    z-index: 21;
}

.showcase-2 {
    width: min(26vw, 320px);
    transform: translate(-50%, -50%) rotate(-20deg);
    z-index: 22;
}

.polaroid-card {
    background: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    border: none;
    width: min(18vw, 210px);
    transform: translate(-50%, -50%) rotate(-8deg);
    z-index: 23;
}

.polaroid-card .polaroid-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Bottom Left BNF 11 Image */
.bnf11-image {
    width: min(26vw, 320px);
    transform: translate(-50%, -50%) rotate(12deg);
    z-index: 24;
}

.bnf11-image.idle-animate img {
    animation: floatingBobSlowInner 7s ease-in-out infinite alternate;
}

[data-theme="dark"] .polaroid-card {
    background: transparent;
    border: none;
}

/* Pencil hand drawing */
.hand-sketch {
    width: min(22vw, 260px);
    transform: translate(-50%, -50%) rotate(10deg);
    z-index: 21;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .hand-sketch {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* ADD YOUR STICKER button sticker */
.add-sticker-btn {
    width: min(24vw, 300px);
    transform: translate(-50%, -50%) rotate(-8deg);
    z-index: 28;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.add-sticker-btn:hover {
    transform: translate(-50%, -50%) rotate(-1deg) scale(1.1);
    filter: drop-shadow(0 8px 16px rgba(142, 68, 173, 0.3));
}

/* Dragging state */
.floating-element.dragging {
    z-index: 999 !important;
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.08) rotate(3deg) !important;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.15)) !important;
    transition: transform 0.1s ease, filter 0.1s ease !important;
}

/* Bottom Left Link */
.bottom-left-link-container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 40;
}

.transform-link {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.transform-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent-orange);
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.transform-link:hover::after {
    transform: scaleX(0.4);
    transform-origin: bottom right;
}


/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--text-primary);
    animation: scrollDown 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Custom Spawner Sticker Styles */
.spawned-sticker {
    pointer-events: auto !important;
}

/* Toast Message */
.toast-message {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 500;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-hard);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes floatingBobInner {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes floatingBobSlowInner {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    80% {
        transform: translateY(200%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* ==========================================================================
   Responsive adjustments
   ========================================================================== */
@media (max-width: 1024px) {
    .main-nav {
        padding: 20px 24px;
    }

    .nav-coordinates {
        display: none;
        /* Hide coords on tablets/mobile to preserve space */
    }

    .background-title {
        font-size: 26vw;
    }

    .balloon-logo {
        width: 45vw;
    }
}

@media (max-width: 768px) {

    .nav-group.left-nav,
    .nav-group.right-nav .nav-pill:not(:last-child) {
        display: none;
        /* Simplify navigation on mobile */
    }

    .nav-pill {
        padding: 7px 14px;
        font-size: 9px;
    }

    .background-title {
        font-size: 28vw;
    }

    /* Stack or scale elements down on smaller screens */
    .sticker-nextgen {
        width: 28vw;
    }

    .stone-structure {
        width: 24vw;
    }

    .wax-seal {
        width: 16vw;
    }

    .showcase-1 {
        width: 25vw;
    }

    .showcase-2 {
        width: 30vw;
    }

    .polaroid-card {
        width: 28vw;
    }

    .hand-sketch {
        width: 26vw;
    }

    .add-sticker-btn {
        width: 24vw;
    }

    .bottom-left-link-container {
        left: 24px;
        bottom: 24px;
    }

    .scroll-indicator {
        right: 24px;
        bottom: 24px;
    }
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
html,
body,
a,
button,
input,
select,
textarea,
.nav-pill,
.circle-btn,
.drag-element,
* {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    pointer-events: none;
    z-index: 999999;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    will-change: transform;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('image/normal%20cursor.png');
    opacity: 0;
    transition: width 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.15s ease;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(175, 82, 222, 0.45);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    will-change: transform;
    opacity: 0;
    transition: opacity 0.2s ease, width 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.2s ease, background-color 0.2s ease;
}

.custom-cursor-follower.active {
    width: 68px;
    height: 68px;
    border-color: rgba(175, 82, 222, 0.85);
    background-color: rgba(175, 82, 222, 0.12);
}

.custom-cursor.cursor-text {
    width: 80px;
    height: 80px;
    background-image: url('image/text%20cursor.png');
}

.custom-cursor.cursor-drag {
    width: 80px;
    height: 80px;
    background-image: url('image/drag%20cursor.png');
}

.custom-cursor.cursor-text + #customCursorFollower,
.custom-cursor.cursor-drag + #customCursorFollower {
    opacity: 0 !important;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 140px 10%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.about-text {
    font-family: var(--font-body);
    font-size: clamp(26px, 3.8vw, 54px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    text-align: left;
    word-break: keep-all;
}

.about-text .highlight {
    color: var(--accent-purple);
    font-weight: 600;
}

.about-actions {
    margin-top: 20px;
}

.about-actions .study-btn {
    padding: 12px 28px;
    font-size: 12px;
}

/* Scroll Reveal Elements */
.reveal-element {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-actions.reveal-element {
    transition-delay: 0.25s;
}

/* ==========================================================================
   Page Loader & Masking Reveal Animations
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.page-loader.loaded {
    pointer-events: none;
}

.loader-bg-bars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    z-index: 1;
}

.loader-bar {
    height: 100%;
    background-color: var(--accent-purple);
    transform: translateY(0);
    transition: transform 1.0s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
    transition-delay: calc(var(--bar-index) * 0.08s);
}

.page-loader.loaded .loader-bar {
    transform: translateY(-100%);
}

.loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.loaded .loader-content {
    opacity: 0;
    transform: translateY(-40px);
}

.loader-title {
    font-family: var(--font-body);
    font-size: clamp(36px, 7vw, 96px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
    opacity: 0;
    transform: translateY(25px);
    animation: loaderTitleFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-counter {
    font-family: var(--font-body);
    font-size: clamp(20px, 3.5vw, 40px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(15px);
    animation: loaderCounterFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

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

/* Initial entrance states (before reveal) */
body:not(.hero-active) .main-nav {
    transform: translateY(-50px);
    opacity: 0;
}

body:not(.hero-active) .balloon-logo {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) rotate(65deg);
}

body:not(.hero-active) .background-title-container {
    opacity: 0;
}

body:not(.hero-active) .scroll-indicator {
    transform: translate(0, 40px);
    opacity: 0;
}

body:not(.hero-active) .drag-element:not(.balloon-logo) {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(var(--revealed-rotation, 0deg));
}

/* Set variable target rotation to prevent animation conflicts */
#stickerNextGen { --revealed-rotation: -12deg; }
#businessCard { --revealed-rotation: -8deg; }
#waxSeal { --revealed-rotation: 12deg; }
#productShowcase1 { --revealed-rotation: 4deg; }
#productShowcase2 { --revealed-rotation: -20deg; }
#polaroidCard { --revealed-rotation: -6deg; }
#bnf11Image { --revealed-rotation: 12deg; }
#stoneStructure { --revealed-rotation: -5deg; }
#handSketch { --revealed-rotation: 0deg; }
#addStickerBtn { --revealed-rotation: 0deg; }

/* Transition settings during the reveal stage */
body.animating-reveal .main-nav {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.animating-reveal .balloon-logo {
    transition: opacity 1.6s cubic-bezier(0.16, 1, 0.3, 1), transform 1.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

body.animating-reveal .background-title-container {
    transition: opacity 1.5s ease;
}

body.animating-reveal .scroll-indicator {
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1.1s;
}

body.animating-reveal .drag-element:not(.balloon-logo) {
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

/* Staggered delays for floating stickers and pages during reveal */
body.animating-reveal #stickerNextGen { transition-delay: 0.3s; }
body.animating-reveal #businessCard { transition-delay: 0.45s; }
body.animating-reveal #waxSeal { transition-delay: 0.6s; }
body.animating-reveal #productShowcase1 { transition-delay: 0.5s; }
body.animating-reveal #productShowcase2 { transition-delay: 0.7s; }
body.animating-reveal #polaroidCard { transition-delay: 0.55s; }
body.animating-reveal #bnf11Image { transition-delay: 0.65s; }
body.animating-reveal #stoneStructure { transition-delay: 0.75s; }
body.animating-reveal #handSketch { transition-delay: 0.8s; }
body.animating-reveal #addStickerBtn { transition-delay: 0.85s; }

/* ==========================================================================
   Projects Showcase Section
   ========================================================================== */
.projects-section {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 120px 0 140px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 60;
    overflow: hidden;
}

.projects-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.projects-header {
    padding: 0 10%;
}

.projects-label {
    font-family: var(--font-meta);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Slider & Drag Track */
.projects-slider {
    width: 100%;
    padding: 0 10%;
    overflow-x: auto;
    cursor: grab;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}

.projects-slider:active {
    cursor: grabbing;
}

.projects-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding-right: 10%;
}

/* Slide Cards styling */
.project-slide {
    position: relative;
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease, filter 0.4s ease;
    will-change: transform;
    flex-shrink: 0;
}

.project-slide.wide-slide {
    width: 820px;
}

.project-slide.tall-slide {
    width: 420px;
}

.project-slide.color-slide {
    width: 380px;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slide:hover .project-image {
    transform: scale(1.04);
}

/* Orange Brand Slide Custom Style */
.orange-slide {
    background-color: #f79c24 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-slide-content {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.brand-letter {
    font-family: var(--font-heading);
    font-size: 190px;
    font-weight: 800;
    color: #0c0b0a;
    line-height: 1;
    margin-right: 20px;
}

.brand-star {
    font-size: 70px;
    color: #ffffff;
    position: absolute;
    top: 32%;
    right: 28%;
    line-height: 1;
}

/* Dark slide (terrain) styling */
.dark-slide {
    background: radial-gradient(circle at center, #2e2d2a, #0c0b0a) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terrain-overlay {
    width: 100%;
    height: 100%;
    background-image: url('image/BNF%205.png');
    background-size: cover;
    background-position: center;
    mix-blend-mode: luminosity;
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
}

/* Card Info text */
.project-info {
    position: relative;
    z-index: 10;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.project-num {
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.project-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}