@font-face {
    font-family: "Bomb Sound";
    src: url("BombSound.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HeyComic';
    src: url('./HeyComic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    background: white;
    overflow-x: hidden;
}


/* =========================
   NAVBAR
   ========================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0 90px 0;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.6s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
    will-change: transform;
}

.navbar.visible { transform: translateY(0); }

.navButton {
    width: 60px; height: 60px;
    padding: 0; margin: 8px 0;
    border: none; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.navButton img {
    width: 38px; height: 38px;
    object-fit: contain; opacity: 0.5;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.3s ease;
}

.navButton.active img {
    filter: brightness(0) invert(1); opacity: 1; transform: scale(1.25);
}

.navButton:not(.active):hover img { opacity: 0.75; }


/* =========================
   VIDEO & ENTER SCREEN
   ========================= */

.experience {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    overflow: hidden; background: black; z-index: 10;
}

.experience.pageMode {
    position: absolute; top: 0; left: 0; z-index: 10;
}

.video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block; pointer-events: none;
}

.hidden { display: none !important; }

#enterScreen {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: transparent; cursor: pointer; z-index: 9999;
}

.enterText {
    font-family: "Bomb Sound", sans-serif;
    font-size: 80px; color: white;
    text-align: center; user-select: none;
}

#enterScreen.hidden,
#preloader.hidden,
.enterText.hidden {
    display: none !important;
}


/* =========================
   PRELOADER & PROGRESS BAR
   ========================= */

.preloader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.loader-title {
    font-family: "Bomb Sound", sans-serif;
    font-size: 28px;
    color: #ffffff;
    letter-spacing: 3px;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #8c101c;
    box-shadow: 3px 3px 0px #5a181d;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #8c101c;
    transition: width 0.15s ease-out;
}

.progress-text {
    font-family: 'HeyComic', sans-serif;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
}


/* =========================
   PAGE CONTENT & SOFTWARE BAR
   ========================= */

.pageContent {
    position: relative; width: 100%; padding-top: 100vh; z-index: 1;
}

.softwareBar {
    width: 100%; height: 250px; background: black;
    overflow: hidden; display: flex; align-items: center;
    contain: layout paint;
}

.iconTrack {
    display: flex; width: max-content;
    animation: iconScroll 15s linear infinite;
    will-change: transform;
}

.iconSet { display: flex; align-items: center; flex-shrink: 0; }

.iconSet img {
    width: 80px; height: 80px; object-fit: contain;
    margin: 0 150px; filter: brightness(0) invert(1);
}

@keyframes iconScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}


/* =========================
   PROJECTS CONTAINER & BGS
   ========================= */

.projectsContainer {
    position: relative;
    display: grid;
    width: 100%;
    overflow: visible;
    margin-top: 0;
    padding: 0;
}

/* Single unified wrapper treating bg1 + bg2 + bg3 as ONE graphic unit */
.project-bgs {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 0;
    font-size: 0;
    line-height: 0;
}

.project-bgs img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -1px; 
}

.project-bgs img:first-child {
    margin-top: 0;
}

/* Content overlay floating directly over the unified background height */
.projects-content-overlay {
    grid-area: 1 / 1 / 2 / 2;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 120px 20px;
    box-sizing: border-box;
}


/* =========================
   PROJECTS FRAME (COMPOSITE)
   ========================= */

.project-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    filter: drop-shadow(0px 30px 60px rgba(0, 0, 0, 0.4)); 
}

.frame-slant-top {
    height: 140px; 
    background: white;
    border: 4px solid #5a181d;
    border-bottom: none; 
    transform: skewY(-3deg);
}

.frame-body {
    position: relative; z-index: 2;
    background: white;
    border: 4px solid #5a181d;
    border-top: none; 
    margin-top: -104px; 
    padding: 0px 40px 60px 40px; 
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px; 
    row-gap: 100px; 
}

.grid-item { width: 100%; height: 100%; overflow: hidden; }
.grid-item.full-width { grid-column: span 2; }
.grid-item.half-width { grid-column: span 1; }

.project-grid > .grid-item:first-child {
    margin-top: -15px;
}

.project-grid > .grid-item:last-child {
    margin-bottom: 20px;
}


/* =========================
   GRID CONTENT & BORDER STYLING
   ========================= */

.projectHeading { width: 100%; height: auto; display: block; }

.videoWrapper {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9; background: #000;
    border: 4px solid #5a181d;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
}

.videoWrapper.ratio-4-3 { aspect-ratio: 4 / 3; }

.videoWrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

.videoWrapper .videoPoster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================
   YOUTUBE THUMBNAIL LINK
   ========================= */

.youtube-link { display: block; width: 100%; height: 100%; overflow: hidden; }
.yt-thumbnail {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease;
}

.yt-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 68px; height: 48px; background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px; transition: background-color 0.3s ease, transform 0.3s ease;
}

.yt-play-btn::before {
    content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
}

.youtube-link:hover .yt-thumbnail { transform: scale(1.05); filter: brightness(0.6); }
.youtube-link:hover .yt-play-btn { background-color: #ff0000; transform: translate(-50%, -50%) scale(1.1); }


/* =========================
   INTERACTIVE PROJECTS
   ========================= */

.interactive-project {
    position: relative; width: 100%;
    aspect-ratio: 16 / 9; background: black;
    cursor: pointer; overflow: hidden;
    border: 4px solid #5a181d;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    contain: layout paint;
}

.interactive-project .base-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: clip-path 3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: clip-path;
}

.interactive-project .layer2-img { clip-path: inset(0 100% 0 0); }
.interactive-project.activated .layer2-img { clip-path: inset(0 0 0 0); }


/* =========================
   EXTERNAL VIEW MORE PROJECTS BUTTON (INVERSE HOVER)
   ========================= */

/* =========================
   EXTERNAL VIEW MORE PROJECTS BUTTON
   ========================= */

.viewOtherBtn-external {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0 auto;
    background: #8c101c;             /* Default state: Crimson background */
    color: #ffffff;                  /* White text */
    border: 4px solid #8c101c;       /* Crimson border */
    padding: 32px 0;
    cursor: pointer;
    text-decoration: none;
    /* Removed clip-path to fix the bottom border cutoff */
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.viewOtherBtn-external h2 {
    color: #ffffff;                  /* White text in normal state */
    font-family: "Bomb Sound", sans-serif;
    font-size: 32px;
    letter-spacing: 3px;
    transition: color 0.3s ease, letter-spacing 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
}

/* Hover: Inverts to White background and Crimson text */
.viewOtherBtn-external:hover {
    background: #ffffff;             /* Inverted hover: White background */
    color: #8c101c;
    border-color: #8c101c;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0px 25px 50px rgba(140, 16, 28, 0.5), 0 0 20px rgba(181, 21, 37, 0.4);
}

.viewOtherBtn-external:hover h2 {
    color: #8c101c;                  /* Text turns Crimson on hover */
    letter-spacing: 6px;
    transform: scale(1.05);
}


/* =========================
   JOURNEY SECTION (PORTAL)
   ========================= */

#journeySection {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: white;
    overflow: hidden;
    margin-top: 0;
    contain: layout paint;
}

#portalScene {
    width: 100%;
    height: 100%;
}

#journeySection #ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    overflow: hidden;
    z-index: 5;
}

#journeySection #panel-left {
    position: absolute;
    bottom: 0;
    left: -100%;
    max-width: 600px;
    transition: left 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

#journeySection #panel-left .panel-bg {
    width: 100%;
    display: block;
}

#journeySection #date-text {
    position: absolute;
    bottom: 110%;        
    left: 5%;            
    width: 60%;          
    font-family: 'Bomb Sound', sans-serif;
    font-size: 13rem;    
    line-height: 0.8;
    margin: 0;
    text-transform: uppercase;
    color: transparent; 
    -webkit-text-stroke: 1px rgba(123, 0, 28, 0.2); 
}

#journeySection #desc-text {
    position: absolute;
    bottom: 20%;         
    left: 15%;
    width: 55%;          
    color: white;      
    font-family: 'HeyComic', sans-serif;
    font-size: 2rem;
    line-height: 1.4;
}

#journeySection #panel-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -100%;
    height: 100vh;
    max-width: 685px;
    width: 100%;
    transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#journeySection #panel-right .panel-bg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#journeySection #ui-layer.show-panels #panel-left { left: 0; }
#journeySection #ui-layer.show-panels #panel-right { right: 0; }


/* =========================
   CONTACT SECTION & OVERLAYS
   ========================= */

.contactContainer {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: white;
    overflow: hidden;
}

.contact-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
}

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

/* Skewed Overlay Buttons inside Graphic Box */
.contact-buttons-overlay {
    position: absolute;
    top: 71%;
    right: 14%;
    width: 26%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    z-index: 10;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    color: #8c101c;
    border: 3px solid #8c101c;
    padding: 40px 28px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px #5a181d;
    transform: skewX(-10deg);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.contact-btn:hover {
    background: #8c101c;
    color: #ffffff;
    transform: translateY(-4px) skewX(-10deg);
    box-shadow: 7px 7px 0px #5a181d;
}

.contact-btn span,
.btn-icon {
    transform: skewX(10deg);
    transition: transform 0.3s ease;
}

.contact-btn span {
    font-family: "Bomb Sound", sans-serif;
    font-size: 34px;
    letter-spacing: 2px;
}

.btn-icon {
    width: 34px;
    height: 34px;
}

.contact-btn:hover .btn-icon {
    transform: skewX(10deg) scale(1.15);
}

@media (max-width: 900px) {
    .contact-buttons-overlay {
        top: 62%;
        width: 28%;
        gap: 12px;
    }
    .contact-btn {
        padding: 12px 18px;
    }
    .contact-btn span {
        font-size: 18px;
    }
    .btn-icon {
        width: 20px;
        height: 20px;
    }
}


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

.siteFooter {
    width: 100vw;
    height: 200px;
    background: black;
    margin-left: calc(-50vw + 50%);
}


/* =========================
   GLOBAL SCREEN OVERLAYS
   ========================= */

#globalOverlays {
    position: fixed; 
    inset: 0;
    pointer-events: none; 
    z-index: 9999; 
}

.screen-slide-right {
    position: absolute; 
    top: 0; 
    bottom: 0; 
    right: 0; 
    height: 100vh;
    width: auto; 
    object-fit: contain; 
    object-position: right center;
    transform: translate3d(100%, 0, 0); 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
    will-change: transform;
}

.screen-slide-left {
    position: absolute; 
    top: 0; 
    bottom: 0; 
    left: 0; 
    height: 100vh;
    width: auto; 
    object-fit: contain; 
    object-position: left center;
    transform: translate3d(-100%, 0, 0); 
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    will-change: transform;
}

/* Ruby Triggers */
body.show-ruby-overlays .ruby-overlay {
    transform: translateX(0);
}

/* Booth Triggers */
body.show-booth-overlays .booth-overlay {
    transform: translateX(0);
}

/* Car Triggers */
body.show-car-overlays .car-overlay {
    transform: translateX(0);
}
/* Jet Triggers (1st Project) */
body.show-jet-overlays .jet-overlay {
    transform: translateX(0);
}

/* Bird Triggers (3rd Project) */
body.show-bird-overlays .bird-overlay {
    transform: translateX(0);
}

/* =========================
   MUTE BUTTON (CRIMSON SQUARE - BOTTOM RIGHT)
   ========================= */

.mute-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    background: #ffffff;
    color: #8c101c;
    border: 4px solid #8c101c;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.mute-btn:hover {
    background: #8c101c;
    color: #ffffff;
    transform: translateY(-3px);
}

.mute-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.2s ease;
}

.mute-btn:hover svg {
    transform: scale(1.1);
}


/* =====================================================================
   MOBILE / TABLET RESPONSIVE OVERRIDES
   ===================================================================== */

@media (max-width: 768px) {

    /* ---------- GLOBAL / NAVBAR ---------- */

    .navbar {
        width: 56px;
        padding: 4px 0 32px 0;
    }

    .navButton {
        width: 40px;
        height: 40px;
        margin: 4px 0;
    }

    .navButton img {
        width: 24px;
        height: 24px;
    }

    .mute-btn {
        bottom: 14px;
        top: auto;
        right: 14px;
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .mute-btn svg {
        width: 20px;
        height: 20px;
    }

    .enterText {
        font-size: 40px;
        padding: 0 20px;
    }

    /* ---------- GLOBAL SCREEN OVERLAYS ---------- */

    .screen-slide-right,
    .screen-slide-left {
        height: auto;
        max-height: 45vh;
        max-width: 55vw;
        top: auto;
        bottom: 0;
    }

    /* ---------- SOFTWARE BAR ---------- */

    .softwareBar {
        height: 140px;
    }

    .iconSet img {
        width: 48px;
        height: 48px;
        margin: 0 70px;
    }

    /* ---------- PROJECTS GRID / FRAME ---------- */

    .projects-content-overlay {
        padding: 30px 12px 60px 12px;
    }

    .project-frame {
        max-width: 100%;
    }

    .frame-slant-top {
        height: 60px;
    }

    .frame-body {
        margin-top: -40px;
        padding: 0 16px 36px 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .grid-item.full-width,
    .grid-item.half-width {
        grid-column: span 1;
    }

    .viewOtherBtn-external {
        margin: 36px auto 0 auto;
        padding: 20px 12px;
    }

    .viewOtherBtn-external h2 {
        font-size: 20px;
        letter-spacing: 2px;
        text-align: center;
    }

    .viewOtherBtn-external:hover h2 {
        letter-spacing: 3px;
    }

    /* ---------- JOURNEY SECTION (3D PORTAL) ---------- */

    #journeySection {
        height: 100svh;
        height: 100vh;
    }

    #journeySection #panel-left {
        left: 0;
        right: 0;
        top: auto;
        bottom: -100%;
        max-width: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.78);
        padding: 16px 20px 14px 20px;
        transition: bottom 0.6s cubic-bezier(0.2, 1, 0.3, 1);
        z-index: 6;
    }

    #journeySection #panel-left .panel-bg {
        display: none;
    }

    #journeySection #panel-right {
        left: 0;
        right: 0;
        top: auto;
        bottom: -100%;
        height: 34vh;
        max-width: 100%;
        width: 100%;
        transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 5;
    }

    #journeySection #panel-right .panel-bg {
        height: 34vh;
    }

    #journeySection #ui-layer.show-panels #panel-right {
        bottom: 0;
    }

    #journeySection #ui-layer.show-panels #panel-left {
        bottom: 34vh;
    }

    #journeySection #date-text {
        position: static;
        width: 100%;
        font-size: 2.6rem;
        line-height: 0.9;
        -webkit-text-stroke: 1px rgba(123, 0, 28, 0.45);
        color: rgba(255, 255, 255, 0.15);
        margin-bottom: 6px;
        white-space: pre-line;
    }

    #journeySection #desc-text {
        position: static;
        width: 100%;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    /* ---------- CONTACT SECTION ---------- */

    .contact-buttons-overlay {
        top: 60%;
        right: 8%;
        width: 40%;
        gap: 14px;
    }

    .contact-btn {
        padding: 10px 14px;
        box-shadow: 3px 3px 0px #5a181d;
    }

    .contact-btn:hover {
        box-shadow: 4px 4px 0px #5a181d;
    }

    .contact-btn span {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .siteFooter {
        height: 100px;
    }
}


@media (max-width: 480px) {

    .navbar {
        width: 48px;
    }

    .navButton {
        width: 34px;
        height: 34px;
    }

    .navButton img {
        width: 20px;
        height: 20px;
    }

    .enterText {
        font-size: 30px;
    }

    #journeySection #date-text {
        font-size: 2rem;
    }

    #journeySection #desc-text {
        font-size: 0.85rem;
    }

    .contact-buttons-overlay {
        width: 44%;
        right: 6%;
        gap: 10px;
    }

    .contact-btn {
        padding: 8px 10px;
    }

    .contact-btn span {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .btn-icon {
        width: 14px;
        height: 14px;
    }
}


@media (max-width: 900px) and (max-height: 480px) and (orientation: landscape) {
    #journeySection #panel-right {
        height: 44vh;
    }
    #journeySection #panel-right .panel-bg {
        height: 44vh;
    }
    #journeySection #ui-layer.show-panels #panel-left {
        bottom: 44vh;
    }
    #journeySection #date-text {
        font-size: 1.6rem;
    }
    #journeySection #desc-text {
        font-size: 0.8rem;
    }
}