@font-face {
    font-family: 'Gotham Black';
    src: url('brand-assets/Fonts/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Ensure hero typing sequence uses Gotham Book font */
#hero-typing-sequence {
    font-family: 'Gotham Black', Arial, sans-serif !important;
    font-size: clamp(3.5rem, 12vw, 5rem);
    line-height: 1.1;
    letter-spacing: 0.04em;
    font-weight: 900;
}
/* Custom style to make Bootstrap's navbar-toggler-icon visible on dark backgrounds */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Full viewport height section for GSAP pinning and centering */
.full-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Optional: padding, etc. */
}
/* Center the third section image wrapper absolutely in the viewport */
.third-section-imgs-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
/* Utility classes for sections */
.section-dark-bg {
    background: #2d3232;
}
.section-light-bg {
    background: #d3d8d4;
}
.section-padding {
    padding: 60px 0;
}
.section-relative {
    position: relative;
}
.section-overflow {
    overflow: hidden;
}

/* About section image sizing */
.about-img-size {
    max-width: 40vw;
    min-width: 200px;
}
/* Prevent about-section row from overflowing horizontally */
.about-section .row {
    max-width: 100%;
    overflow-x: hidden;
    margin-left: 0;
    margin-right: 0;
}

/* Third section image wrapper sizing */
.third-section-imgs-size {
    height: 480px;
    min-height: 320px;
}

/* Club image styles */
.club-img-style {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 60px;
    width: 100%;
    max-width: 1000px;
    object-fit: cover;
    z-index: 1;
}
.club-img-z3 { z-index: 3; }
.club-img-z2 { z-index: 2; }
.club-img-z1 { z-index: 1; }

/* Headings and text styles */
.heading-oxanium {
    font-family: 'Oxanium', Arial, sans-serif;
}
.heading-white {
    color: #fff;
}
.heading-dark {
    color: #181a18;
}
.letter-spacing-2 {
    letter-spacing: 2px;
}
.text-light-oxanium {
    color: #d1d5db;
    font-family: 'Oxanium', Arial, sans-serif;
}
.text-dark-oxanium {
    color: #181a18;
    font-family: 'Oxanium', Arial, sans-serif;
}

/* Form input and button styles */
.form-input {
    border-radius: 40px;
    background: #a3ada7;
    border: none;
    font-family: 'Oxanium', Arial, sans-serif;
    height: 64px;
}
.form-textarea {
    border-radius: 20px;
    background: #a3ada7;
    border: none;
    font-family: 'Oxanium', Arial, sans-serif;
}
.form-btn {
    background: #181a18;
    color: #fff;
    border-radius: 40px;
    min-width: 120px;
    font-family: 'Oxanium', Arial, sans-serif;
    font-size: 1.1rem;
    padding: 10px 0;
}
.sticky-top {
    top: 40px !important;
}
.bankok-text {
    font-family: 'Gotham Book', 'Oxanium', Arial, sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.4em;
    text-align: center;
    margin-top: 0;
}
@font-face {
    font-family: 'Gotham Book';
    src: url('brand-assets/Fonts/Gotham Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
/* Static About Images - no CSS animations or transforms */
.about-img {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
    display: block;
}
.about-img-left {
    transform: none;
}
.about-img-right {
    transform: none;
}
body {
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}
.logo img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.top-logo-img {
    width: 180px;
    display: block;
}
/* Header Responsive Styles */
.fvture-header {
    width: 100vw;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}
.fvture-header-inner {
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    height: 80px;
    border-radius: 100px;
    max-width: 1700px;
    min-width: 320px;
    width: calc(100vw - 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    padding: 0 48px;
    transition: height 0.2s;
}

@media (max-width: 768px) {
    .fvture-header-inner {
        height: 60px;
        border-radius: 32px;
        padding: 0 16px;
        min-width: 0;
        width: 100vw;
    }
    .top-logo-img {
        width: 120px;
    }

    .third-section {
        /* Create new stacking context on mobile */
        z-index: 2 !important;
        /* Force GPU layer */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Ensure solid background */
        background: #2d3232 !important;
        opacity: 1 !important;
        -webkit-opacity: 1 !important;
        /* Prevent canvas bleeding through */
        isolation: isolate;
        /* Force hardware acceleration */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    /* Ensure canvas stays behind on mobile */
    canvas#canvas3d {
        z-index: -2 !important;
        position: fixed !important;
    }
    
    /* Mobile image optimizations */
    .third-section-imgs-wrapper {
        height: 200px;
        min-height: 160px;
        /* Force GPU acceleration */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Improve mobile performance */
        contain: layout style paint;
    }
    
    .club-img-style {
        /* More aggressive GPU acceleration on mobile */
        transform: translate3d(-50%, -50%, 0) !important;
        -webkit-transform: translate3d(-50%, -50%, 0) !important;
        /* Optimize for mobile rendering */
        will-change: transform, opacity;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Smaller images on mobile */
        max-width: 85vw;
        height: 180px;
        /* Optimize image rendering */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Force stacking order on mobile */
    .club-img-z3 { z-index: 13 !important; }
    .club-img-z2 { z-index: 12 !important; }
    .club-img-z1 { z-index: 11 !important; }
    
    /* Ensure section content is always visible */
    .third-section .flex {
        position: relative;
        z-index: 10;
        isolation: isolate;
    }
    
    /* Additional mobile performance optimizations */
    .third-section * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

.fvture-header-logo {
    display: flex;
    align-items: center;
}
.fvture-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
}

/* Hide action buttons and show menu on mobile */
@media (max-width: 768px) {
    .fvture-header-actions .lang-btn,
    .fvture-header-actions .contact-btn {
        display: none !important;
    }
    .fvture-header-actions .menu-btn {
        display: flex !important;
        align-items: center;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        outline: none;
        z-index: 1100;
    }
}

/* Menu icon (hamburger) */
.menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.menu-icon {
    width: 24px;
    height: 2px;
    background: #fff;
    display: block;
    position: relative;
}
.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.2s;
}
.menu-icon::before {
    top: -8px;
}
.menu-icon::after {
    top: 8px;
}

/* Mobile dropdown menu */
.mobile-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 16px;
    background: #111;
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    padding: 16px 0;
    z-index: 1200;
    min-width: 160px;
    gap: 8px;
    animation: fadeIn 0.2s;
}
.mobile-dropdown.show {
    display: flex;
}
.mobile-dropdown .lang-btn,
.mobile-dropdown .contact-btn {
    width: 90%;
    margin: 0 auto 8px auto;
    display: flex;
    justify-content: flex-start;
}
.mobile-dropdown .contact-btn {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 24px;
    width: 95px;
    height: 40px;
    padding: 0 18px 0 12px;
    font-size: 16px;
    font-family: 'Gotham Book', 'Oxanium', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
}
.lang-btn img {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.lang-btn:hover {
    background: #222;
    color: #fff;
}
.contact-btn {
    background: #fff;
    color: #111;
    border: none;
    border-radius: 24px;
    height: 40px;
    min-width: 160px;
    padding: 0 28px;
    font-size: 16px;
    font-family: 'Oxanium', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.contact-btn:hover {
    background: #eee;
    color: #111;
}
section {
    width: 100%;
}
.hero-content {
    z-index: 1;
    pointer-events: none;
}
.hero-subtitle {
    font-family: 'Oxanium', Arial, sans-serif;
}
.hero-tagline {
    font-family: 'Oxanium', Arial, sans-serif;
}
.about-section {
    background: #CDD2CE;
    padding: 20px 0;
    min-height: 100vh;
    position: relative;
    /* allow animated elements to start outside section bounds */
    overflow: visible;
}
.about-headline {
    font-family: 'Oxanium', Arial, sans-serif;
    color: #222;
}
.about-desc {
    font-family: 'Oxanium', Arial, sans-serif;
    color: #222;
}
.about-spline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 19%;
    left: 0;

/* Make about images positioned in normal flow but able to be translated by GSAP
   (no CSS transforms or transitions so GSAP has full control) */
.about-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

/* Performance and smoothing hints for animated images */
.about-img, .about-img img {
    /* tell browser we'll change transform often */
    will-change: transform, opacity;
    /* promote to its own layer for smoother GPU-accelerated transforms */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

/* Desktop: position the about images absolutely so moving them doesn't trigger layout
     reflow; keeps movement purely on the compositor for smoothness. On mobile we
     keep the stacked flow layout (existing mobile rules remain). */
@media (min-width: 577px) {
    .about-section .row {
        position: relative;
        min-height: 420px; /* area for the images to sit inside */
    }

    .about-section .row .col-md-6 {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50%;
        padding: 0 2rem;
    }

    .about-section .row .col-md-6:first-child { left: 0; display: flex; justify-content: flex-start; }
    .about-section .row .col-md-6:last-child  { right: 0; display: flex; justify-content: flex-end; }

    .about-img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        max-width: 45%;
        left: 8%;
        right: auto;
    }

    .about-img-right {
        left: auto;
        right: 8%;
    }
}
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}
#aboutSpline {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
canvas#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Add custom media queries for mobile font scaling at the end of the file --- */
@media (max-width: 576px) {
  h1, .display-4, .display-3, .heading-oxanium {
    font-size: 2rem !important;
  }
  h2, .fs-2, .fs-4 {
    font-size: 1.25rem !important;
  }
  p, .lead, .hero-tagline, .about-desc {
    font-size: 1rem !important;
  }
  .logo-animated {
    max-width: 80vw;
    height: auto;
  }
  .about-headline {
    font-size: 1.5rem !important;
  }
  .about-desc {
    font-size: 1rem !important;
  }

  .form-input, .form-textarea {
    font-size: 1rem !important;
  }

    /* Stack and vertically center About images on small screens */
    .about-section {
        /* ensure the section fills the viewport so centering is meaningful */
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 12px;
    }

    /* Make the inner content column behave as a vertical flow container */
    .about-section > .flex {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px; /* vertical spacing between content blocks */
    }

    /* Force the row to stack its columns and center them */
    .about-section .row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 22px; /* spacing between the two image columns */
        width: 100%;
    }

    .about-section .row .col-12 {
        display: flex;
        justify-content: center !important;
        width: 100%;
    }

    /* Reduce image size on mobile to preserve whitespace */
    .about-img-size {
        max-width: 80vw;
        width: auto;
    }

    .club-img-style {
        border-radius: 20px !important;
    }
}

@media (min-width: 769px) {
    /* Original styles remain unchanged */
    .third-section {
        /* Keep your existing desktop styles */
        background: #2d3232;
    }
}