:root {
    --header-h: 90px; /* Default header height for desktop */
    /* Base futuristic dark theme */
    --background: hsl(220, 30%, 5%);
    --foreground: hsl(200, 100%, 95%);
    
    /* Cards with glass morphism effect */
    --card: hsl(220, 25%, 8%);
    --card-foreground: hsl(200, 100%, 95%);
    
    /* Electric cyan primary */
    --primary: hsl(185, 100%, 50%);
    --primary-foreground: hsl(220, 30%, 5%);
    
    /* Neon secondary */
    --secondary: hsl(280, 100%, 70%);
    --secondary-foreground: hsl(220, 30%, 5%);
    
    /* Muted with subtle glow */
    --muted: hsl(220, 20%, 15%);
    --muted-foreground: hsl(200, 15%, 70%);
    
    /* Golden accent for highlights */
    --accent: hsl(45, 100%, 60%);
    --accent-foreground: hsl(220, 30%, 5%);
    
    /* Vietnam highlight color */
    --vietnam: hsl(120, 100%, 50%);
    --vietnam-foreground: hsl(220, 30%, 5%);
    
    /* WhatsApp Green */
    --whatsapp: hsl(142, 70%, 45%);
    
    --border: hsl(220, 25%, 20%);
    
    /* Custom gradients */
    --gradient-primary: linear-gradient(135deg, hsl(185, 100%, 50%), hsl(220, 100%, 60%));
    --gradient-secondary: linear-gradient(135deg, hsl(280, 100%, 70%), hsl(320, 100%, 60%));
    --gradient-hero: linear-gradient(135deg, hsl(220, 30%, 5%) 0%, hsl(185, 50%, 10%) 50%, hsl(280, 30%, 10%) 100%);
    --gradient-card: linear-gradient(135deg, hsla(220, 25%, 8%, 0.8), hsla(185, 25%, 12%, 0.6));
    
    /* Glow effects */
    --glow-primary: 0 0 30px hsla(185, 100%, 50%, 0.3);
    --glow-secondary: 0 0 30px hsla(280, 100%, 70%, 0.3);
    --glow-vietnam: 0 0 20px hsla(120, 100%, 50%, 0.5);
    --glow-whatsapp: 0 0 30px hsla(142, 70%, 45%, 0.3);
    --glow-subtle: 0 0 15px hsla(185, 100%, 50%, 0.1);
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-glow: all 0.3s ease-out;
}

/* Mobile-first header height adjustment */
@media (max-width: 991px) {
    :root {
        --header-h: 70px; /* Smaller header on mobile */
    }
}

@media (max-width: 575px) {
    :root {
        --header-h: 60px; /* Even smaller on very small screens */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-hero);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
    /* Ensure minimum width doesn't cause horizontal scroll */
    min-width: 0;
}

/* Offset for anchor links to accommodate the fixed header */
[id] {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    /* Prevent container from causing overflow */
    width: 100%;
    min-width: 0;
}

/* Typography with better mobile scaling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    /* Prevent text overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Color Classes */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-whatsapp { color: var(--whatsapp); }
.text-muted { color: var(--muted-foreground); }

.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vietnam-highlight {
    color: var(--vietnam);
    text-shadow: var(--glow-vietnam);
    font-weight: 700;
}

/* Glow Effects */
.glow-primary {
    box-shadow: var(--glow-primary);
    transition: var(--transition-glow);
}

.glow-secondary {
    box-shadow: var(--glow-secondary);
    transition: var(--transition-glow);
}

.glow-subtle {
    box-shadow: var(--glow-subtle);
    transition: var(--transition-glow);
}

/* Buttons with better mobile touch targets */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    min-height: 44px; /* Minimum touch target size */
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
    /* Prevent button text from breaking oddly */
    word-break: keep-all;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: hsla(185, 100%, 50%, 0.1);
    box-shadow: var(--glow-primary);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: hsla(185, 100%, 50%, 0.1);
    box-shadow: var(--glow-primary);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-secondary:hover {
    background: hsla(280, 100%, 70%, 0.1);
    box-shadow: var(--glow-secondary);
}

.btn-outline-whatsapp {
    background: transparent;
    border: 2px solid var(--whatsapp);
    color: var(--whatsapp);
}

.btn-outline-whatsapp:hover {
    background: hsla(142, 70%, 45%, 0.1);
    box-shadow: var(--glow-whatsapp);
}

.btn-outline-accent {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline-accent:hover {
    background: hsla(45, 100%, 60%, 0.1);
    box-shadow: 0 0 20px hsla(45, 100%, 60%, 0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    box-shadow: 0 0 30px hsla(45, 100%, 60%, 0.4);
    transform: translateY(-2px);
}

/* Hero Section with improved mobile layout */
.hero-section {
    display: block;
    position: relative;
    padding: clamp(1rem, 3vh, 2rem) 0 clamp(2rem, 6vh, 4rem);
    min-height: auto;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.spec-image {
    display: block;
    height: clamp(160px, 25vw, 200px);
    width: clamp(136px, 21vw, 170px);
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 100%;
    object-fit: contain;
}

.spec-image:hover {
    transform: scale(1.05);
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    /* Hide orbs on mobile to prevent layout issues */
    display: none;
}

@media (min-width: 992px) {
    .floating-orb {
        display: block;
    }
    
    .orb-1 {
        top: 25%;
        left: 25%;
        width: 24rem;
        height: 24rem;
        background: hsla(185, 100%, 50%, 0.1);
    }

    .orb-2 {
        bottom: 25%;
        right: 25%;
        width: 20rem;
        height: 20rem;
        background: hsla(280, 100%, 70%, 0.1);
        animation-delay: 1s;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
}

.hero-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
}

@media (min-width: 992px) {
    .hero-layout-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
}

.hero-text {
    text-align: left;
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-pretitle {
    font-size: clamp(1rem, 4vw, 1.8rem);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    word-wrap: break-word;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title span {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    color: var(--muted-foreground);
    max-width: 50rem;
    margin: 0 0 3rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-intro-text {
    color: var(--accent);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    word-wrap: break-word;
}

.hero-tagline {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-top: 1rem;
    margin-bottom: 3rem;
    text-shadow: var(--glow-primary);
    max-width: 50rem;
    margin-left: 0;
    margin-right: 0;
    word-wrap: break-word;
}

.hero-key-features {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
    max-width: 50rem;
    margin: 0 0 3rem;
    text-align: left;
    backdrop-filter: blur(10px);
    width: 100%;
}

.hero-features-title {
    color: var(--accent);
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 700;
    word-wrap: break-word;
}

.hero-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--foreground);
    word-wrap: break-word;
}

.hero-features-list li span {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-struggles-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 500;
    line-height: 1.5;
}

.hero-struggles-list li {
    color: var(--accent);
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.manufacturers-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .manufacturers-section {
        flex-direction: row;
        gap: 2rem;
    }
}

.manufacturers-section.vertical {
    flex-direction: column;
}

.manufacturer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.manufacturer-image {
    width: clamp(12rem, 25vw, 16rem);
    height: clamp(12rem, 25vw, 16rem);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 1px;
    background: var(--gradient-primary);
    transition: var(--transition-glow);
}

.manufacturer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.4rem;
}

.manufacturer-title {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
    word-wrap: break-word;
}

.lightning-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 1s ease-in-out infinite;
}

.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--glow-primary);
    border: 1px solid var(--border);
}

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-gallery {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hero-gallery-item {
    flex: 1;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--glow-subtle);
    min-width: 200px;
}

.hero-person { 
    height: clamp(200px, 35vw, 260px);
    min-height: unset;
}

.hero-gallery-item img,
.hero-gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    animation: bounce 2s infinite;
    display: none;
}

@media (min-width: 992px) {
    .scroll-indicator {
        display: block;
    }
}

.scroll-line {
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 0.5rem;
}

/* Sections */
section {
    padding: clamp(2rem, 8vw, 5rem) 0;
    position: relative;
}

.section-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, hsla(185, 100%, 50%, 0.05), transparent, hsla(280, 100%, 70%, 0.05));
}

.section-bg-alt {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, hsla(280, 100%, 70%, 0.05), hsla(185, 100%, 50%, 0.05));
}

.section-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, hsla(185, 100%, 50%, 0.05), transparent);
}

.section-bg-contact {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(185, 100%, 50%, 0.1), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

.section-description {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid hsla(220, 25%, 20%, 0.2);
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    box-shadow: var(--glow-subtle);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
    word-wrap: break-word;
}

.feature-description {
    font-size: clamp(0.8rem, 2.5vw, 0.875rem);
    color: var(--muted-foreground);
    line-height: 1.5;
    word-wrap: break-word;
}

/* Vietnam Excellence Banner */
.vietnam-banner {
    background: linear-gradient(135deg, #0F172A 0%, #0B3B3C 100%);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    color: var(--foreground);
    margin: 0 auto;
}

.banner-bg-effects {
    position: absolute;
    inset: 0;
}

.banner-orb-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: hsla(280, 100%, 70%, 0.2);
    border-radius: 50%;
    filter: blur(2rem);
}

.banner-orb-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 6rem;
    background: hsla(45, 100%, 60%, 0.2);
    border-radius: 50%;
    filter: blur(1rem);
}

.banner-content {
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    z-index: 10;
}

.banner-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.banner-description {
    font-size: clamp(1rem, 3vw, 1.125rem);
    opacity: 0.9;
    max-width: 48rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.8rem, 2.5vw, 0.875rem);
}

.banner-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

/* Machine Cards */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.machine-card {
    background: var(--gradient-card);
    border: 2px solid hsla(220, 25%, 20%, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.machine-card:hover {
    box-shadow: var(--glow-primary);
    transform: scale(1.02);
    border-color: var(--primary);
}

.popular-machine .machine-header {
    padding-top: 3.5rem;
}

.popular-machine {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
}

.machine-header {
    padding: clamp(1rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem) 1rem;
    text-align: center;
}

.machine-title {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.machine-blades {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.machine-subtitle {
    color: var(--muted-foreground);
    font-size: clamp(0.8rem, 2.5vw, 0.875rem);
    word-wrap: break-word;
}

.machine-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    padding: 0.75rem;
    background: hsla(220, 20%, 15%, 0.5);
    border-radius: 0.5rem;
}

.stat-value {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    word-wrap: break-word;
}

.efficiency-badge {
    margin: 0 clamp(1rem, 3vw, 1.5rem) 1.5rem;
    padding: 1rem;
    background: hsla(120, 100%, 50%, 0.1);
    border: 1px solid hsla(120, 100%, 50%, 0.2);
    border-radius: 0.5rem;
    text-align: center;
}

.efficiency-text {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
}

.efficiency-label {
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.machine-features {
    padding: 0 clamp(1rem, 3vw, 1.5rem) 1.5rem;
    flex-grow: 1; /* Allows this section to grow, pushing the footer down */
}

.machine-features h4 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.machine-features ul {
    list-style: none;
}

.machine-features li {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    word-wrap: break-word;
}

.machine-footer {
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
    border-top: 1px solid hsla(220, 25%, 20%, 0.2);
    text-align: center;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    color: var(--muted-foreground);
}

/* Performance Table */
.performance-section {
    margin-top: 5rem;
}

.performance-header {
    text-align: center;
    margin-bottom: 3rem;
}

.performance-header h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.performance-header p {
    color: var(--muted-foreground);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    word-wrap: break-word;
}

.table-container {
    overflow-x: auto;
    /* Add subtle scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--muted);
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.performance-table {
    width: 100%;
    min-width: 600px; /* Minimum width to prevent crushing */
    background: var(--gradient-card);
    border-radius: 0.5rem;
    border: 1px solid hsla(220, 25%, 20%, 0.2);
    overflow: hidden;
}

.performance-table th {
    background: hsla(185, 100%, 50%, 0.1);
    padding: clamp(0.5rem, 2vw, 1rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    word-wrap: break-word;
}

.performance-table th:first-child {
    text-align: left;
}

.performance-table td {
    padding: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
    border-top: 1px solid hsla(220, 25%, 20%, 0.2);
    transition: var(--transition-smooth);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    word-wrap: break-word;
}

.performance-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.performance-table tbody tr:hover {
    background: hsla(220, 20%, 15%, 0.2);
}

.popular-row {
    background: hsla(185, 100%, 50%, 0.05);
}

/* Technical Specs */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.spec-card {
    background: var(--gradient-card);
    border: 1px solid hsla(220, 25%, 20%, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    width: 100%;
}

.spec-card:hover {
    box-shadow: var(--glow-subtle);
    transform: translateY(-2px);
}

.spec-header {
    padding: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    border-bottom: 1px solid hsla(220, 25%, 20%, 0.2);
}

.spec-header h3 {
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.4;
    word-wrap: break-word;
}

.spec-details {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsla(220, 25%, 20%, 0.1);
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    gap: 1rem;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row span:first-child {
    color: var(--muted-foreground);
    word-wrap: break-word;
    flex: 1;
}

.spec-row span:last-child {
    font-weight: 600;
    word-wrap: break-word;
    flex-shrink: 0;
}

.spec-footer {
    padding: 1rem clamp(1rem, 3vw, 1.5rem);
    border-top: 1px solid hsla(220, 25%, 20%, 0.2);
    text-align: center;
    font-size: clamp(0.7rem, 2vw, 0.75rem);
    font-weight: 600;
}

.spec-card > iframe {
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* Spec Image Slider - Mobile Optimized */
.spec-image-slider {
    position: relative;
    height: clamp(180px, 30vw, 210px);
    width: clamp(153px, 26vw, 179px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.slider-images {
    width: 100%;
    height: 100%;
}

.slider-images .spec-image {
    display: none;
    margin: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-images .spec-image.active {
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: clamp(14px, 3vw, 16px);
    z-index: 10;
    border-radius: 50%;
    width: clamp(28px, 6vw, 30px);
    height: clamp(28px, 6vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    /* Ensure buttons don't interfere with touch scrolling */
    touch-action: manipulation;
}

.slider-btn:hover { 
    background-color: rgba(0, 0, 0, 0.7); 
}

.slider-btn.prev { 
    left: 5px; 
}

.slider-btn.next { 
    right: 5px; 
}

/* Hide slider buttons when image preview is open */
body.modal-is-open .slider-btn {
    visibility: hidden;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.slider-dots .dot {
    cursor: pointer;
    height: clamp(10px, 2vw, 12px); /* Increased visual size */
    width: clamp(10px, 2vw, 12px); /* Increased visual size */
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin: 0 4px; /* Added spacing between dots */
    /* Ensure dots are touchable */
    /* The touch area is now the larger dot itself, which is better for UX */
    min-height: 15px; /* Adjust touch area to be closer to the visual */
    min-width: 15px;
}

.slider-dots .dot.active {
    background-color: var(--primary);
}

/* Quality Standards */
.quality-standards {
    background: var(--gradient-card);
    border: 1px solid hsla(185, 100%, 50%, 0.2);
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
    box-shadow: var(--glow-primary);
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.quality-standards h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
}

.standard {
    text-align: center;
}

.standard-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.standard-label {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    color: var(--muted-foreground);
    word-wrap: break-word;
}

.quality-standards p {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    word-wrap: break-word;
}

/* Contact Section */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid hsla(220, 25%, 20%, 0.2);
    border-radius: 1rem;
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
    transition: var(--transition-smooth);
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card:nth-child(1):hover {
    box-shadow: var(--glow-primary);
}

.contact-card:nth-child(2):hover {
    box-shadow: var(--glow-whatsapp);
}

.contact-card:nth-child(2):hover {
    box-shadow: var(--glow-secondary);
}

.contact-card:nth-child(3):hover {
    box-shadow: var(--glow-subtle);
}

.contact-icon {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: 1rem;
    height: clamp(2.5rem, 6vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(green);
}

.contact-icon svg {
    width: clamp(2.5rem, 6vw, 3rem);
    height: clamp(2.5rem, 6vw, 3rem);
}

.contact-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.contact-card p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    word-wrap: break-word;
}

/* Company Info */
.company-info {
    background: linear-gradient(135deg, #0F172A 0%, #0B3B3C 100%);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    color: var(--foreground);
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

.company-bg-effects {
    position: absolute;
    inset: 0;
}

.company-orb-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(6rem, 12vw, 8rem);
    height: clamp(6rem, 12vw, 8rem);
    background: hsla(280, 100%, 70%, 0.2);
    border-radius: 50%;
    filter: blur(2rem);
}

.company-orb-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(4rem, 10vw, 6rem);
    height: clamp(4rem, 10vw, 6rem);
    background: hsla(45, 100%, 60%, 0.2);
    border-radius: 50%;
    filter: blur(1rem);
}

.company-content {
    padding: clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    z-index: 10;
}

.company-content h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.company-tagline {
    font-size: clamp(1rem, 3vw, 1.125rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    word-wrap: break-word;
}

.company-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.company-column h4 {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: clamp(1rem, 3vw, 1.125rem);
    word-wrap: break-word;
}

.company-column ul {
    list-style: none;
}

.company-column li {
    font-size: clamp(0.8rem, 2.2vw, 0.875rem);
    opacity: 0.9;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.company-cta {
    padding-top: 1.5rem;
    border-top: 1px solid hsla(255, 255%, 255%, 0.2);
}

/* Site Header - Mobile Optimized */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
    background: hsla(220, 30%, 5%, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    animation: fade-in-down 0.5s ease-out;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-contact a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-contact a:hover {
    color: var(--primary);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.logo-link img {
    height: clamp(40px, 8vw, 50px);
    width: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-brand-name {
    color: var(--foreground);
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.logo-link:hover .header-brand-name {
    color: var(--primary);
}

/* Inquiry Form Modal - Mobile Optimized */
.inquiry-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s;
    padding: clamp(0.5rem, 2vw, 1rem);
}

body.inquiry-modal-is-open .site-header {
    pointer-events: none;
    z-index: 100;
}

.inquiry-modal-content {
    background: var(--gradient-card);
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--glow-primary);
    animation: zoom 0.4s;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--muted);
}

.close-inquiry {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #f1f1f1;
    font-size: clamp(24px, 6vw, 30px);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff3b30; /* A modern red color */
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

.close-inquiry:hover {
    color: var(--primary);
}

.inquiry-modal-content::-webkit-scrollbar {
    width: 8px;
}

.inquiry-modal-content::-webkit-scrollbar-track {
    background: var(--muted);
    border-radius: 10px;
}

.inquiry-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.inquiry-modal-content::-webkit-scrollbar-thumb:hover {
    background: hsl(185, 100%, 60%);
}

.inquiry-modal-content h3 {
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--primary);
    word-wrap: break-word;
}

.inquiry-modal-content .form-description {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    word-wrap: break-word;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--foreground);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.75rem);
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--foreground);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s ease;
    /* Ensure inputs are properly sized on mobile */
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

#inquiry-form .btn {
    width: 100%;
    margin-top: 1rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Image Preview Modal - Mobile Optimized */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Default to none, JS will manage */
}

.image-preview-modal.open {
    display: flex;
    pointer-events: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    animation: zoom 0.5s;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: clamp(12px, 3vw, 16px);
    font-size: clamp(18px, 4vw, 24px);
    z-index: 4001;
    border-radius: 50%;
    width: clamp(40px, 10vw, 50px);
    height: clamp(40px, 10vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    user-select: none;
    /* Ensure proper touch targets */
    min-width: 44px;
    min-height: 44px;
}

.modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.65);
}

.modal-nav-btn.prev {
    left: clamp(10px, 3vw, 20px);
}

.modal-nav-btn.next {
    right: clamp(10px, 3vw, 20px);
}

.close-preview {
    position: absolute;
    top: clamp(10px, 3vw, 15px);
    right: clamp(20px, 5vw, 35px);
    color: #f1f1f1;
    font-size: clamp(30px, 8vw, 40px);
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 4002;
    background: rgba(0,0,0,0.35);
    padding: clamp(4px, 1.5vw, 6px) clamp(8px, 2vw, 10px);
    border-radius: 6px;
    line-height: 1;
    /* Ensure proper touch targets */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-preview:hover,
.close-preview:focus {
    color: var(--primary);
}

/* While preview is open, hide slider buttons beneath */
body.modal-is-open .slider-btn { 
    visibility: hidden; 
}

body.modal-is-open .site-header {
    pointer-events: none;
    z-index: 100;
}

/* Footer */
.footer {
    padding: clamp(1rem, 4vw, 2rem) 0;
    border-top: 1px solid hsla(220, 25%, 20%, 0.2);
    background: hsla(220, 25%, 8%, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
}

.footer p {
    color: var(--muted-foreground);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    word-wrap: break-word;
}

.social-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.social-card-title {
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    text-shadow: var(--glow-primary);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-social-icons a {
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.footer-social-icons a:hover {
    transform: translateY(-3px);
}

.footer-social-icons svg {
    width: 36px;
    height: 36px;
}

.footer-social-icons a span {
    color: var(--foreground);
}

/* Original Social Media Colors */
.footer-social-icons a[aria-label="YouTube"] {
    color: #FF0000;
}

.footer-social-icons a[aria-label="Facebook"] {
    color: #1877F2;
}

.footer-social-icons a:hover {
    opacity: 0.85;
    background-color: hsla(220, 25%, 20%, 0.2);
}

.footer-sub {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    margin-top: 0.5rem;
}

.footer-social-icons a[aria-label="Instagram"] svg {
    color: transparent; /* Allows the multi-color SVG to show */
}

/* Toast Notifications - Mobile Optimized */
.toast-notification {
    position: fixed;
    top: calc(var(--header-h) + 20px);
    left: 50%;
    background-color: var(--card);
    color: var(--foreground);
    padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--glow-subtle);
    z-index: 5000;
    transform: translate(-50%, -150%);
    transition: transform 0.5s ease-out;
    font-weight: 600;
    backdrop-filter: blur(10px);
    max-width: 90vw;
    width: auto;
    word-wrap: break-word;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.toast-notification.show {
    transform: translate(-50%, 0);
}

.toast-notification.toast-success {
    border-left: 5px solid var(--vietnam);
    box-shadow: var(--glow-vietnam);
}

.toast-notification.toast-error {
    border-left: 5px solid hsl(0, 80%, 60%);
    box-shadow: 0 0 20px hsla(0, 80%, 60%, 0.4);
}

.toast-notification.toast-warning {
    border-left: 5px solid var(--accent);
    box-shadow: 0 0 20px hsla(45, 100%, 60%, 0.3);
}

/* Animations - Maintain existing animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

@keyframes pulse-vietnam {
    0%, 100% { 
        text-shadow: var(--glow-vietnam);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 30px hsla(120, 100%, 50%, 0.8);
        transform: scale(1.05);
    }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: var(--glow-subtle);
        transform: scale(1);
    }
    50% { 
        box-shadow: var(--glow-primary);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes zoom-in-out {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--glow-vietnam);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px hsla(120, 100%, 50%, 0.9);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Classes */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.delay-1s {
    animation-delay: 1s;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.fade-in-up {
    animation: fade-in-up 0.8s ease-out;
}

/* Additional utility classes */
.get-quote-wrapper {
    text-align: center;
    margin: 1rem 0;
}

.btn-quote {
    background-color: var(--vietnam);
    color: var(--vietnam-foreground);
    animation: zoom-in-out 2s ease-in-out infinite;
    text-shadow: var(--glow-vietnam);
    font-weight: 700;
}

.company-cta .open-form-btn {
    padding-left: calc(2rem + 15px);
    padding-right: calc(2rem + 15px);
}

/* Prevent decorative layers from blocking mouse clicks */
.hero-bg,
.section-bg,
.section-bg-alt,
.section-bg-contact,
.floating-orb,
.banner-orb-1,
.banner-orb-2,
.company-orb-1,
.company-orb-2 {
    pointer-events: none;
}

/* Responsive YouTube iframes */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"] {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    margin: 12px 0;
    border-radius: 8px;
}

.spec-card iframe,
.machine-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

/* ================= COMPREHENSIVE MOBILE FIXES ================= */

/* Critical mobile viewport and layout fixes */
@media (max-width: 991px) {
    /* Prevent any horizontal scrolling */
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        min-width: 320px; /* Minimum supported width */
    }
    
    .container {
        max-width: 100%;
        padding-left: clamp(12px, 4vw, 20px);
        padding-right: clamp(12px, 4vw, 20px);
        overflow: visible;
    }

    /* Header improvements for mobile */
    .site-header {
        background: hsla(220, 30%, 5%, 0.98);
        backdrop-filter: blur(15px);
    }

    .header-brand-name {
        display: block; /* Always show brand name on mobile */
        font-size: clamp(14px, 3.5vw, 18px);
        line-height: 1.2;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .header-contact {
        display: block; /* Always show contact */
    }

    .header-contact a {
        font-size: clamp(12px, 3vw, 14px);
        padding: 6px 12px;
        border-radius: 20px;
        background: var(--whatsapp);
        color: white;
        white-space: nowrap;
    }

    /* Hero section mobile fixes */
    .hero-section {
        padding: clamp(1rem, 4vw, 2rem) 0 clamp(2rem, 6vw, 4rem);
        overflow: visible;
        min-height: auto;
    }

    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 42px);
        line-height: 1.1;
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-description {
        font-size: clamp(14px, 3.2vw, 18px);
        line-height: 1.6;
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Button improvements */
    .hero-buttons {
        flex-direction: column;
        gap: clamp(1rem, 3vw, 1.5rem);
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: clamp(12px, 3vw, 16px) clamp(20px, 5vw, 32px);
        font-size: clamp(14px, 3.5vw, 16px);
        min-height: 48px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    /* Make the main "Get Quote" button smaller on mobile */
    .get-quote-wrapper .btn-quote {
        width: auto; /* Let the button size to its content */
        max-width: 300px; /* Set a reasonable max-width */
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    /* Grid layouts mobile optimization */
    .features-grid,
    .machines-grid,
    .specs-grid,
    .contact-cards {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 4vw, 2rem);
    }

    /* Card improvements */
    .feature-card,
    .machine-card,
    .spec-card,
    .contact-card {
        padding: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 0;
    }

    /* Text improvements */
    .section-title {
        font-size: clamp(20px, 5vw, 32px);
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }

    .section-description {
        font-size: clamp(14px, 3vw, 18px);
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        padding: 0 clamp(8px, 2vw, 16px);
    }

    /* Table mobile optimization */
    .table-container {
        font-size: clamp(12px, 2.8vw, 14px);
        margin: 0 -clamp(12px, 4vw, 20px); /* Extend to edges */
        padding: 0 clamp(12px, 4vw, 20px);
    }

    .performance-table {
        min-width: 500px;
    }

    .performance-table th,
    .performance-table td {
        padding: clamp(8px, 2vw, 12px);
        font-size: clamp(11px, 2.5vw, 13px);
    }

    /* Image and media mobile fixes */
    .spec-image-slider {
        height: clamp(160px, 28vw, 200px);
        width: clamp(136px, 24vw, 170px);
    }

    .hero-video-container {
        margin: clamp(1rem, 3vw, 1.5rem) 0;
        border-radius: clamp(8px, 2vw, 12px);
    }

    /* Modal improvements for mobile */
    .inquiry-modal {
        padding: clamp(8px, 2vw, 16px);
    }

    .inquiry-modal-content {
        margin: auto;
        max-height: 85vh;
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: clamp(12px, 3vw, 16px);
    }

    /* Image preview modal mobile fixes */
    .modal-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .modal-nav-btn {
        width: clamp(36px, 8vw, 44px);
        height: clamp(36px, 8vw, 44px);
        font-size: clamp(16px, 4vw, 20px);
    }

    .close-preview {
        top: clamp(8px, 2vw, 12px);
        right: clamp(8px, 2vw, 12px);
        font-size: clamp(24px, 6vw, 32px);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    :root {
        --header-h: 55px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: clamp(20px, 5.5vw, 32px);
    }

    .hero-description {
        font-size: clamp(13px, 3.5vw, 16px);
        padding: 0 4px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 44px;
    }

    .section-title {
        font-size: clamp(18px, 5vw, 26px);
    }

    .header-brand-name {
        font-size: clamp(12px, 3.2vw, 16px);
    }

    .logo-link img {
        height: clamp(32px, 7vw, 40px);
    }

    /* Ensure modals work well on very small screens */
    .inquiry-modal-content {
        padding: 16px;
        border-radius: 12px;
    }

    .modal-nav-btn.prev {
        left: 8px;
    }

    .modal-nav-btn.next {
        right: 8px;
    }
}

/* Landscape mobile fixes */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {
    :root {
        --header-h: 50px;
    }

    .hero-section {
        padding: 1rem 0 2rem;
    }

    .hero-title {
        font-size: clamp(20px, 4vw, 28px);
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: clamp(12px, 2.8vw, 15px);
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        min-height: 40px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .inquiry-modal-content {
        /* Fix for iOS Safari viewport issues */
        max-height: 85vh;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        /* Prevent iOS zoom on focus */
        font-size: 16px;
        transform: translateZ(0); /* Force hardware acceleration */
    }

    /* Fix for iOS safe area */
    .toast-notification {
        top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 20px);
    }

    .site-header {
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    }

    .hero-section,
    section {
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .spec-image,
    .manufacturer-image img,
    .logo-link img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 991px) {
    /* Ensure all interactive elements meet minimum touch target size */
    .btn,
    .slider-btn,
    .close-inquiry,
    .close-preview,
    .modal-nav-btn,
    .slider-dots .dot {
        min-width: 15px;
        min-height: 15px;
    }

    /* Improve focus indicators on mobile */
    .btn:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* Ensure text remains readable at all sizes */
    * {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}
/* =================================================================== */
/* == FINAL MOBILE RESPONSIVENESS FIX FOR HERO SECTION & VIDEOS == */
/* =================================================================== */

/* 1. Ensure the hero section itself doesn't cause overflow */
.hero-section {
    overflow-x: hidden; /* Prevent horizontal scroll on the section */
}

/* 2. Force all direct children of the hero layout grid to not exceed the viewport width */
.hero-layout-grid > * {
    max-width: 100%;
    overflow-x: hidden; /* Hide any accidental overflow within these containers */
}

/* 3. Ensure all text elements wrap correctly and don't have restrictive max-widths on mobile */
.hero-description,
.hero-tagline {
    max-width: 100%; /* This overrides the inline style `max-width: 45rem` */
}

/* 4. Specifically target all iframes to be responsive */
iframe {
    max-width: 100% !important; /* Ensure iframe never exceeds its container */
    width: 100% !important;     /* Force it to fill its container's width */
    height: auto;               /* Let aspect-ratio handle the height */
    aspect-ratio: 16 / 9;       /* Maintain video aspect ratio */
    box-sizing: border-box;
}

/* 5. Ensure the hero video container is flexible */
.hero-video-container {
    width: 100%;
    max-width: 100%; /* Do not let it get bigger than its column */
    aspect-ratio: 16 / 9;
}

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 6. A global rule to help prevent overflow issues from any element */
* {
    max-width: 100%;
}

/* CRITICAL MOBILE HERO SECTION FIX */

/* Remove the problematic inline style from your HTML and add this CSS */

/* Hero section mobile-first improvements */
.hero-section {
    padding: clamp(1rem, 3vh, 2rem) 0 clamp(2rem, 6vh, 4rem);
    overflow: visible !important;
    min-height: auto !important;
}

.hero-content {
    width: 100%;
    overflow: visible;
}

/* Fix for hero pretitle */
.hero-pretitle {
    font-size: clamp(16px, 4vw, 28px);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Fix for hero struggles list */
.hero-struggles-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 500;
    line-height: 1.5;
}

.hero-struggles-list li {
    color: var(--accent);
    margin-bottom: 0.75rem;
    /* Critical: Ensure list items wrap properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 8px; /* Add some breathing room */
}

/* Fix for hero description */
.hero-description {
    font-size: clamp(14px, 3.2vw, 18px);
    color: var(--muted-foreground);
    max-width: 100%; /* Remove fixed max-width on mobile */
    margin: 0 0 2rem; /* Reduce bottom margin on mobile */
    line-height: 1.6;
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for hero intro text */
.hero-intro-text {
    color: var(--accent);
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* CRITICAL: Fix for the main hero title */
.hero-title {
    /* Remove any inline styles and use this responsive sizing */
    font-size: clamp(22px, 6vw, 48px) !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem;
    /* Ensure text wraps properly */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    /* Ensure full width utilization */
    width: 100%;
    max-width: 100%;
}

/* Fix for hero tagline */
.hero-tagline {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(16px, 3.5vw, 20px);
    margin-top: 1rem;
    margin-bottom: 2rem; /* Reduce margin on mobile */
    text-shadow: var(--glow-primary);
    max-width: 100%; /* Remove fixed max-width */
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Force text to wrap on all devices */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure no element causes horizontal overflow */
.hero-section * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Customer Feedback Section */
.customer-feedback-section {
    background: var(--gradient-hero);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates a 4-column horizontal layout */
    gap: 1.5rem; /* Reduced gap for a tighter layout */
    max-width: 1200px; /* Adjusts width for the horizontal layout */
    margin: 0 auto;    /* Center the grid within the container */
}

/* Make feedback grid responsive on mobile */
@media (max-width: 991px) {
    .feedback-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to a 2x2 grid on tablets and mobile */
    }
}

.feedback-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
    border-color: var(--primary);
}

.feedback-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.feedback-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    border-radius: 0;
}

.feedback-content {
    padding: clamp(1rem, 4vw, 1.5rem);
}

.feedback-title {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.feedback-quote {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--muted-foreground);
    line-height: 1.5;
}
/* CRITICAL MOBILE HERO SECTION FIX */

/* Remove the problematic inline style from your HTML and add this CSS */

/* Hero section mobile-first improvements */
.hero-section {
    padding: clamp(1rem, 3vh, 2rem) 0 clamp(2rem, 6vh, 4rem);
    overflow: visible !important;
    min-height: auto !important;
}

.hero-content {
    width: 100%;
    overflow: visible;
}

/* Fix for hero pretitle */
.hero-pretitle {
    font-size: clamp(16px, 4vw, 28px);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

/* Fix for hero struggles list */
.hero-struggles-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: 500;
    line-height: 1.5;
}

.hero-struggles-list li {
    color: var(--accent);
    margin-bottom: 0.75rem;
    /* Critical: Ensure list items wrap properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding-right: 8px; /* Add some breathing room */
}

/* Fix for hero description */
.hero-description {
    font-size: clamp(14px, 3.2vw, 18px);
    color: var(--muted-foreground);
    max-width: 100%; /* Remove fixed max-width on mobile */
    margin: 0 0 2rem; /* Reduce bottom margin on mobile */
    line-height: 1.6;
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for hero intro text */
.hero-intro-text {
    color: var(--accent);
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 0 15px hsla(45, 100%, 60%, 0.4);
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* CRITICAL: Fix for the main hero title */
.hero-title {
    /* Remove any inline styles and use this responsive sizing */
    font-size: clamp(22px, 6vw, 48px) !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem;
    /* Ensure text wraps properly */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    /* Ensure full width utilization */
    width: 100%;
    max-width: 100%;
}

/* Fix for hero tagline */
.hero-tagline {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(16px, 3.5vw, 20px);
    margin-top: 1rem;
    margin-bottom: 2rem; /* Reduce margin on mobile */
    text-shadow: var(--glow-primary);
    max-width: 100%; /* Remove fixed max-width */
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Fix for hero key features */
.hero-key-features {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: clamp(16px, 4vw, 32px);
    max-width: 100%; /* Use full width on mobile */
    margin: 0 0 2rem; /* Reduce margin */
    text-align: left;
    backdrop-filter: blur(10px);
    width: 100%;
    /* Ensure container doesn't overflow */
    box-sizing: border-box;
}

.hero-features-title {
    color: var(--accent);
    font-size: clamp(20px, 4vw, 28px);
    text-align: left;
    margin-bottom: 1.5rem;
    font-weight: 700;
    /* Ensure text wraps properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: clamp(14px, 3vw, 16px);
    color: var(--foreground);
    /* Ensure list items wrap properly */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.hero-features-list li span {
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1;
    flex-shrink: 0; /* Prevent emoji from shrinking */
    margin-top: 2px; /* Align with text */
}

/* Mobile-specific improvements */
@media (max-width: 991px) {
    /* Ensure container has proper spacing */
    .container {
        padding-left: clamp(16px, 5vw, 24px);
        padding-right: clamp(16px, 5vw, 24px);
        max-width: 100%;
        overflow: visible;
    }
    
    /* Hero layout adjustments */
    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: clamp(24px, 6vw, 40px);
    }
    
    /* Ensure text elements use full width */
    .hero-pretitle,
    .hero-description,
    .hero-intro-text,
    .hero-title,
    .hero-tagline {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Extra spacing for readability */
    .hero-struggles-list li {
        padding: 4px 0;
        margin-bottom: 8px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(20px, 5.5vw, 32px) !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem;
    }
    
    .hero-pretitle {
        font-size: clamp(14px, 4vw, 20px);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: clamp(13px, 3.5vw, 16px);
        margin-bottom: 1.5rem;
    }
    
    .hero-tagline {
        font-size: clamp(14px, 3.8vw, 18px);
        margin-bottom: 1.5rem;
    }
    
    .hero-key-features {
        padding: clamp(12px, 4vw, 20px);
        margin-bottom: 1.5rem;
    }
    
    .hero-features-list li {
        font-size: clamp(13px, 3.2vw, 15px);
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .hero-struggles-list li {
        font-size: clamp(13px, 3.5vw, 16px);
    }
}

/* Landscape mobile orientation */
@media (max-width: 480px) and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1rem 0 2rem;
    }
    
    .hero-title {
        font-size: clamp(18px, 4vw, 28px) !important;
        margin-bottom: 1rem;
    }
    
    .hero-description,
    .hero-tagline {
        font-size: clamp(12px, 2.8vw, 15px);
        margin-bottom: 1rem;
    }
}

/* Force text to wrap on all devices */
* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Container Loading Section */
.container-loading-section {
    background: var(--background); /* A slightly different background */
}

.loading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Make loading grid responsive on mobile */
@media (max-width: 767px) {
    .loading-grid {
        grid-template-columns: repeat(2, 1fr); /* Switch to a 2x2 grid on mobile */
    }
}

.loading-video-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.loading-video-card:hover {
    transform: scale(1.03);
    box-shadow: var(--glow-primary);
    border-color: var(--primary);
    z-index: 5;
}

.lazy-youtube {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-youtube::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.lazy-youtube:hover::before {
    background: rgba(0, 0, 0, 0);
}

.lazy-youtube::after {
    content: '';
    display: block;
    width: 68px;
    height: 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="red"/><path d="M 45,24 27,14 27,34" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 1;
    transition: transform 0.3s;
}

.lazy-youtube:hover::after {
    transform: scale(1.1);
}

/* Restore formatting for spec card videos */
.spec-card > .lazy-youtube {
    margin: 1rem;
    border-radius: 8px;
    overflow: hidden; /* Ensures border-radius is applied to the thumbnail */
    position: relative; /* Reset position from absolute if inherited */
    width: auto; /* Allow margin to control width */
    height: auto; /* Let aspect-ratio control height */
    flex-shrink: 0; /* Prevent the video from shrinking */
}

.loading-video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* This overlay captures the click */
}

.loading-video-card {
    cursor: pointer; /* Indicates the videos are clickable */
}

/* Video Lightbox Modal */
.video-lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: fade-in 0.3s;
}

.video-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1120px; /* 16:9 aspect ratio at 630px height */
    animation: zoom 0.4s;
}

.video-lightbox-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-lightbox-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.video-lightbox-close:hover { color: var(--primary); }

/* Ensure no element causes horizontal overflow */
.hero-section * {
    max-width: 100%;
    box-sizing: border-box;
}
