:root {
    --bg-dark: #1B212D;
    --bg-darker: #151922;
    /* Slightly darker shade of the new bg */
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    --accent-gold: #ED9F33;
    /* Using the new orange/gold as primary accent */
    --accent-gold-light: #F2D06B;
    --accent-purple: #9B54DC;
    --accent-teal: #7DC1B1;
    --accent-orange: #ED9F33;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.section-header h1 {
    font-size: 3em;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Color Utilities */
.text-gold {
    color: var(--accent-gold);
}

.text-purple {
    color: var(--accent-purple);
}

.text-teal {
    color: var(--accent-teal);
}

.text-orange {
    color: var(--accent-orange);
}

.border-teal {
    border-color: var(--accent-teal);
}

.border-orange {
    border-color: var(--accent-orange);
}

.highlight-purple {
    color: #8754d2;
}

.highlight-teal {
    color: #7fb6a8;
}

.highlight-orange {
    color: #e0983b;
}

.big-text {
    font-size: clamp(3rem, 10vw, 6rem);
    display: block;
    margin-top: 0.5rem;
    font-weight: 900;
}

img {
    max-width: 100%;
    display: block;
}

/* Section 1: Hero */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Taller for parallax */
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    /* Darken for text readability */
    will-change: transform;
}

/* Hero Adjustments */
.hero-content {
    display: flex;
    flex-direction: column-reverse;
    /* Mobile AND Desktop: Visual Top, Text Bottom */
    align-items: center;
    text-align: center;
    gap: 2rem;
    z-index: 1;
    /* Move elements to avoid face covering - push down and scale */
    padding-top: 25vh;
    max-width: 800px;
    margin: 0 auto;

}

/* Mobile height-based scaling to prevent overlap */
@media (max-width: 767px) {
    .hero-content {
        transform-origin: top center;
        transition: transform 0.2s ease-out;
    }

    @media (max-height: 800px) {
        .hero-content {
            transform: scale(0.9);
            padding-top: 22vh;
        }
    }

    @media (max-height: 700px) {
        .hero-content {
            transform: scale(0.8);
            padding-top: 20vh;
        }
    }

    @media (max-height: 600px) {
        .hero-content {
            transform: scale(0.7);
            padding-top: 18vh;
        }
    }

    @media (max-height: 500px) {
        .hero-content {
            transform: scale(0.6);
            padding-top: 15vh;
        }
    }
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        /* Keep Visual Top */
        padding-top: 35vh;
        /* Push further down on desktop to avoid face */
        justify-content: flex-end;
        /* Push content towards bottom */
        /* height: 80vh; */
        /* Limit height to allow positioning */
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
        transform: scale(0.9);
    }

    /* Re-order visual to top if desired, but user just said "centre align" floating image, title and subtitle.
       Usually implies standard hero stack: Image/Visual -> Text OR Text -> Image.
       Users request: "centre align the floating image, title and subtitle".
       Let's keep the DOM order (Hero Text first, then Visual) but centered.
       Wait, let's look at the DOM again: .hero-content > .hero-text, .hero-visual.
       If I want visual centered, and text centered.
       Let's stick to column layout.
    */
}

.hero-top-logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.top-logo {
    height: 40px;
    width: auto;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-text .highlight {
    color: var(--accent-gold);
}

.hero-text p.hero-description {
    font-size: 1.1rem;
    color: white;
    max-width: 800px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
    .hero-text p.hero-description {
        max-width: 650px;
        /* Force to two lines roughly */
        text-wrap: balance;
        /* Helps with word distribution */
    }
}

.floating-chip {
    width: 300px;
    /* animation: float 6s ease-in-out infinite; REMOVED ANIMATION */
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.3));
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Section 2: Our Story */
.story-section {
    background-color: var(--bg-darker);
}

.story-section .subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.description {
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-secondary);
}

.linkedin-container {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.linkedin-btn {
    display: inline-block;
    transition: transform 0.3s;
}

.linkedin-btn:hover {
    transform: scale(1.05);
}

.linkedin-btn img {
    height: 40px;
    width: auto;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-speed);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.glass-card.hover-teal:hover {
    border-color: var(--accent-teal);
}

.image-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

.outline-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    z-index: 0;
}

.italic-quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
    text-align: center;
}

.card-content {
    text-align: center;
}

/* Section 3: Slideshow */
.slideshow-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    background: #000;
}

@media (max-width: 767px) {
    .slideshow-section {
        height: 100vh;
        min-height: 600px;
    }
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
}

/* Specific background alignment for requested slides */
@media (min-width: 768px) {

    .slide:nth-child(2) .slide-bg,
    .slide:nth-child(4) .slide-bg,
    .slide:nth-child(5) .slide-bg {
        background-position: center top;
    }
}

.slide-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 700px;
    margin-top: 1rem;
    line-height: 1.6;
}

.slide-images {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slide-img {
    height: 80%;
    /* Normalized based on Next Card reference */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.3s;
}

@media (max-width: 767px) {
    .slide-img {
        height: auto;
        max-height: 45vh;
        width: 80%;
    }
}



.slide-content {
    position: relative;
    z-index: 2;
    /* text-align: center; REMOVED */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    height: 100%;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .slide-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 0 4rem;
        /* add side padding to clear arrows */
    }

    .slide-text {
        flex: 1.2;
        /* Give more space to text */
        text-align: left;
        align-items: flex-start;
        padding-left: 2rem;
    }

    .slide-visual {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}

.slide-text h2 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: none;
    /* "Remove the titles" - The user says "Remove the titles, text and make the sub-titles as titles" */
    /* Wait. The H2 are currently top titles (e.g. Speed & Super Speed Baccarat). The H3 are sub-titles (THE FASTEST GAME...).
       User says: "Remove the titles, text and make the sub-titles as titles".
       "sub-titles in large and bold on the lefts side". 
       So I should hide H2, H3 becomes the new main title. Descriptions <p> removed.
    */
}

.slide-text h3 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--text-primary);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
    letter-spacing: -2px;
}

.slide-description {
    display: none;
    /* "Remove the titles, text" */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    /* Fixed width/height for circle */
    height: 50px;
    border-radius: 50%;
    /* Circle */
    z-index: 20;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-btn:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.slide-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
}

/* Section 4: Operators */
.operators-section {
    background-color: #151922;
}

.operators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .operators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.operator-card {
    background: var(--bg-dark);
    border: 1px solid #333;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: left;
    transition: var(--transition-speed);
}

.operator-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-gold {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Section 5: Dealers */
/* Section 5: Dealers */
.dealers-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.dealers-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .dealers-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
        padding-bottom: 0;
    }
}

.dealer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80%;
    /* Carousel item width on mobile */
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .dealer-card {
        min-width: auto;
    }
}

.dealer-media-wrapper {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-teal);
    transition: 0.3s;
    position: relative;
}

.dealer-card:hover .dealer-media-wrapper {
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dealer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    pointer-events: none;
    /* Let clicks pass to video */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.dealer-media-wrapper:hover .play-icon-overlay {
    background: var(--accent-teal);
    color: black;
}

.playing .play-icon-overlay {
    opacity: 0;
}

.dealer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote {
    font-style: italic;
    color: var(--text-secondary);
}

/* Section 6: Contact */
.contact-section {
    background: linear-gradient(to top, #000, #111);
}

.contact-container {
    max-width: 600px;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 1rem;
    color: white;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    background: linear-gradient(90deg, var(--accent-purple), #9B54DC);
    color: black;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: 0.3s;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem !important;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent-purple);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background: #000;
    padding: 4rem 0 1rem;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-left h4,
.footer-right h4 {
    margin-bottom: 1rem;
    color: white;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-gold);
}

.email-link {
    font-size: 1rem !important;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

@media (min-width: 480px) {
    .newsletter-form {
        flex-direction: row;
    }
}

.newsletter-form button {
    background: #333;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: var(--accent-gold);
    color: black;
}

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 2rem;
    color: #444;
    font-size: 0.8rem;
}

/* Animations Helper */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Utility classes for specific brand accents */
.text-teal {
    color: var(--accent-teal) !important;
}

.text-orange {
    color: var(--accent-orange) !important;
}

.border-teal {
    border-color: var(--accent-teal) !important;
}

.border-orange {
    border-color: var(--accent-orange) !important;
}