/* O2Biz Services - Advanced Professional Design */
:root {
    /* Color Palette - Premium Navy & Gold */
    --bg-body: #f8fafc;
    --bg-light: #f1f5f9;
    --bg-card: #ffffff;

    /* Primary: Deep Navy */
    --primary: #0f3460;
    --primary-dark: #0a2545;
    --primary-light: #1a4b8c;

    /* Accent: Gold */
    --accent: #d4af37;
    --accent-light: #f3e5ab;
    --accent-dark: #b49020;

    /* Text */
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f6d365 100%);
    --gradient-gold-hover: linear-gradient(135deg, #b49020 0%, #d4af37 100%);
    --gradient-overlay: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.95));

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(15, 52, 96, 0.05);
    --shadow-md: 0 6px 12px -2px rgba(15, 52, 96, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(15, 52, 96, 0.1), 0 10px 10px -5px rgba(15, 52, 96, 0.04);
    --shadow-gold: 0 10px 20px -5px rgba(212, 175, 55, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    /* Subtle dot pattern */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Scroll Animations */
.fade-in,
.fade-up {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up {
    transform: translateY(30px);
}

.fade-in.visible,
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    /* White by default for dark backgrounds */
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

header.scrolled .logo {
    color: var(--primary);
}

.logo img {
    height: 80px;
    transition: all 0.3s ease;
    border-radius: 8px;
    /* Soften the edges of the JPG box */
}



.nav-links {
    display: flex;
    gap: 1rem;
    /* Reduced gap for pills */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

header.scrolled .nav-links a {
    color: var(--text-heading);
}

/* Remove underline styles */
.nav-links a::after {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

/* Ensure scrolled header hover text is also dark */
header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

header.scrolled .mobile-menu-btn {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: var(--gradient-overlay), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* Modern slant */
}

.hero h1 {
    color: white;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Cards & Services */
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0;
    /* Reset padding to handle image */
    transition: all 0.4s ease;
    border: 1px solid rgba(15, 52, 96, 0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--accent);
}

.service-icon svg {
    stroke: currentColor;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    height: 300px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 52, 96, 0.95), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-category {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.project-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 2rem 0 1.5rem;
    margin-top: 0;
    /* Removed margin because of hero slant style usually implies flow */
    color: var(--text-light);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--bg-body);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    /* Reverse triangle or slant */
    display: none;
    /* Optional geometric flair */
}

footer h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

footer p,
footer a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -25px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Responsive */

/* Button Text Toggle - Default Desktop */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* Typography Scaling */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Container and Section Spacing */
    .container {
        padding: 0 1.5rem;
    }

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

    /* Logo Optimization */
    .logo img {
        height: 50px;
    }

    /* Header Adjustments */
    header {
        padding: 1rem 0;
    }

    header.scrolled {
        padding: 0.75rem 0;
    }

    .hero {
        clip-path: none;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        border-bottom: 4px solid var(--accent);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    /* Fix mobile menu text visibility - ensure ALL menu items are dark on white background */
    .nav-links a {
        color: var(--text-heading) !important;
    }

    .nav-links a:hover {
        color: var(--primary-dark) !important;
    }

    .nav-links a.active {
        color: var(--primary-dark) !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero Section Mobile Optimization */
    .page-hero-split {
        padding: 5rem 0 3rem;
    }

    .page-hero-content h1 {
        font-size: 2.5rem !important;
    }

    .page-hero-content .lead-text {
        font-size: 1.2rem !important;
    }

    /* Button Groups - Stack Vertically */
    .hero-content-wrapper>div>div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Touch-Friendly Buttons - Auto width instead of full width */
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
        width: auto;
        margin-bottom: 0.75rem;
        display: inline-block;
        align-self: center;
    }

    /* Button Text Toggle for Mobile */
    .btn-text-desktop {
        display: none;
    }

    .btn-text-mobile {
        display: inline;
    }

    /* Flagship Product Section */
    .feature-box[style*="display: flex"] {
        flex-direction: column !important;
        text-align: center !important;
    }

    .feature-box>div {
        flex: 1 1 100% !important;
    }

    .feature-box img {
        max-width: 200px;
        margin: 0 auto 2rem;
    }

    /* Services Grid - Single Column */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Testimonial Cards */
    .testimonial-card-small {
        min-width: 300px;
        max-width: 300px;
    }

    /* Footer Social Icons */
    footer div[style*="display: flex"] {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Form Optimization for Mobile */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .form-control {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Product Features - Better Spacing */
    .product-features-grid {
        gap: 1.5rem;
    }

    .feature-box {
        padding: 2rem 1.5rem;
    }

    /* Video Content */
    .video-content h2 {
        font-size: 1.75rem !important;
    }

    .video-content p {
        font-size: 1rem !important;
    }

    /* Reduce excessive padding on legal pages */
    .content-wrapper {
        padding: 0;
    }

    /* Chat Widget Mobile Optimization */
    .chat-window {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        bottom: 70px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

/* Contact Page Redesign */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 52, 96, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.feature-box:hover::before {
    opacity: 0.25;
    transform: scale(1.1);
}

/* Feature-specific backgrounds */
.feature-box:nth-child(1)::before {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.feature-box:nth-child(2)::before {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, transparent 70%);
}

.feature-box:nth-child(3)::before {
    background: conic-gradient(from 45deg, var(--accent) 0%, var(--accent-light) 30%, transparent 60%);
}

.feature-box:nth-child(4)::before {
    background: radial-gradient(ellipse, var(--primary-light) 0%, var(--primary) 40%, transparent 70%);
}

.feature-box:nth-child(5)::before {
    background: linear-gradient(45deg, var(--primary-light) 0%, var(--primary) 50%, transparent 70%);
}

.feature-box:nth-child(6)::before {
    background: radial-gradient(circle at 30% 30%, var(--accent) 0%, var(--accent-dark) 40%, transparent 70%);
}

.contact-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-card:hover .contact-icon-box {
    background: var(--primary);
    color: var(--accent);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.contact-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-form-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 52, 96, 0.05);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-label {
    position: absolute;
    left: 1.25rem;
    top: 1.1rem;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.25rem;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -0.7rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--bg-card);
    font-weight: 600;
}

.map-container {
    margin-top: 4rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    border: 1px solid rgba(15, 52, 96, 0.05);
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        padding: 2rem;
    }
}

/* About Us Page Redesign */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

.vm-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 52, 96, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.vm-card:hover .vm-icon {
    background: var(--primary);
    color: var(--accent);
    transform: scale(1.1);
}

.vm-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.values-section {
    background: var(--bg-light);
    padding: 6rem 0;
    position: relative;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.team-section {
    padding: 6rem 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .vm-card {
        padding: 2rem;
    }
}

/* Split Hero Section (Reusable) */
.page-hero-split {
    padding: 10rem 0 6rem;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.page-hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.page-hero-content .lead-text {
    font-size: 2rem;
    /* Big enough */
    line-height: 1.3;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    max-width: 100%;
    max-width: 100%;
}

/* Centered Hero for Legal Pages */
.page-hero-centered .page-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

.page-hero-centered .page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-img-wrapper {
    position: relative;
}

.page-hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
    border: 2px solid rgba(212, 175, 55, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.page-hero-img:hover {
    transform: perspective(1000px) rotateY(0);
}

@media (max-width: 992px) {
    .page-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-hero-content .lead-text {
        font-size: 1.5rem;
    }

    .page-hero-img {
        transform: none;
        margin-top: 2rem;
    }
}

/* Hero Video Background */
.hero-video-bg {
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.9) 0%, rgba(15, 52, 96, 0.85) 50%, rgba(212, 175, 55, 0.2) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-video-bg .page-hero-content {
    color: white;
}

.hero-video-bg .page-hero-content h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-video-bg .page-hero-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-video-bg .page-hero-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .hero-video {
        width: 100%;
        height: 100%;
    }
}

/* Parallax Video Section */
.parallax-video-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.85) 0%, rgba(15, 52, 96, 0.75) 50%, rgba(212, 175, 55, 0.15) 100%);
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.video-content h2 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

.video-content p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .parallax-video-section {
        height: 400px;
    }

    .video-content h2 {
        font-size: 2rem !important;
    }

    .video-content p {
        font-size: 1rem !important;
    }
}

/* Product Showcase (O2Crusher) */
.product-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 50%, #f1f5f9 100%);
    padding: 6rem 0;
    border-top: 1px solid rgba(15, 52, 96, 0.05);
    border-bottom: 1px solid rgba(15, 52, 96, 0.05);
    position: relative;
    overflow: hidden;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(15, 52, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.product-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.product-header::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.product-badge {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.product-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.feature-box {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 6px rgba(15, 52, 96, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(15, 52, 96, 0.15);
    border-left-color: var(--accent);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.feature-box h4 i,
.feature-box h4 svg {
    color: var(--accent);
    flex-shrink: 0;
}

.feature-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-box li {
    margin-bottom: 0.85rem;
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.faq-answer p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 35px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-content {
    padding-top: 30px;
    height: 100%;
    overflow: hidden;
}

.feature-box li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 100%;
    min-height: 380px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
}

.flip-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px solid rgba(15, 52, 96, 0.1);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.flip-card-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.flip-card-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.flip-card-back h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.5rem;
}

.flip-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.flip-card-back li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.5;
}

.flip-card-back li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .product-features-grid {
        grid-template-columns: 1fr;
    }

    .feature-box {
        padding: 2rem;
    }

    /* Mobile: Tap to flip */
    .flip-card-inner.flipped {
        transform: rotateY(180deg);
    }

    .flip-card {
        min-height: 280px;
    }
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 52, 96, 0.85);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
    border-top: 4px solid var(--accent);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.client-details h5 {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Testimonial Carousel */
.testimonial-carousel-container {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    animation: scroll-testimonials 30s linear infinite;
}

.testimonial-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card-small {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-width: 350px;
    max-width: 350px;
    border-top: 3px solid var(--accent);
    flex-shrink: 0;
}

.testimonial-card-small .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.testimonial-card-small .client-details h5 {
    font-size: 0.9rem;
}

.testimonial-card-small .client-details span {
    font-size: 0.8rem;
}

/* Spin Animation */
@keyframes spin-once {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: rotate(-180deg) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: rotate(-360deg) scale(1);
        opacity: 1;
    }
}

/* Customer Carousel */
.customer-carousel-container {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.customer-carousel {
    display: flex;
    gap: 2rem;
    animation: scroll-customers 15s linear infinite;
}

.customer-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-customers {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.customer-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 380px;
    max-width: 380px;
    border-top: 4px solid var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.customer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.customer-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.customer-info h3 {
    color: var(--primary);
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.customer-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.customer-stats {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* AI Chatbox Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--primary-dark);
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.chat-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent);
}

.chat-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.bot-message {
    background: #f1f5f9;
    color: var(--text-dark);
    border-bottom-left-radius: 0.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.user-message {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 0.2rem;
    align-self: flex-end;
    box-shadow: 0 2px 5px rgba(15, 52, 96, 0.2);
}

.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
}

.question-chip {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--primary-light);
    padding: 0.5rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-grow: 1;
    text-align: center;
}

.question-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(15, 52, 96, 0.15);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.8rem;
    background: white;
    border-radius: 1rem;
    border-bottom-left-radius: 0.2rem;
    width: fit-content;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Video Scroll Animation */
.video-scroll-container {
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    0% {
        transform: translateY(-10%);
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(10%);
        opacity: 0.7;
    }
}

/* Industrial Animation Section */
.industrial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Animated Trucks - Realistic Design */
.truck {
    position: absolute;
    width: 140px;
    height: 60px;
    display: flex;
    align-items: flex-end;
}

/* Truck Cargo Bed (Dump Truck Body) */
.truck::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 45px;
    background: linear-gradient(180deg, #888 0%, #666 100%);
    border: 2px solid #555;
    border-radius: 4px 4px 2px 2px;
    left: 10px;
    bottom: 15px;
    box-shadow:
        inset 0 -10px 15px rgba(0, 0, 0, 0.3),
        inset 0 10px 10px rgba(255, 255, 255, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Truck Cab */
.truck::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: 2px solid var(--accent-dark);
    border-radius: 6px 6px 2px 2px;
    right: 5px;
    bottom: 15px;
    box-shadow:
        inset -5px 0 10px rgba(0, 0, 0, 0.2),
        inset 0 -10px 10px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Add structural elements via additional pseudo-element styling */
.truck-1,
.truck-2,
.truck-3,
.truck-4,
.truck-5,
.truck-6 {
    position: relative;
}

/* Wheels for left-to-right trucks */
.truck-1::before,
.truck-2::before,
.truck-3::before {
    background-image:
        radial-gradient(circle at 15px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 15px 50px, #444 12px, transparent 12px),
        radial-gradient(circle at 75px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 75px 50px, #444 12px, transparent 12px),
        linear-gradient(180deg, #888 0%, #666 100%);
}

/* Windows for left-to-right trucks */
.truck-1::after,
.truck-2::after,
.truck-3::after {
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 8px, rgba(135, 206, 235, 0.6) 8px, rgba(135, 206, 235, 0.6) 20px, transparent 20px, transparent 28px, rgba(135, 206, 235, 0.6) 28px, rgba(135, 206, 235, 0.6) 38px, transparent 38px),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    background-position: 0 8px, 0 0;
    background-size: 100% 20px, 100% 100%;
    background-repeat: no-repeat;
}

/* Wheels for right-to-left trucks (positions adjusted for mirrored view) */
.truck-4::before,
.truck-5::before,
.truck-6::before {
    background-image:
        radial-gradient(circle at 15px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 15px 50px, #444 12px, transparent 12px),
        radial-gradient(circle at 75px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 75px 50px, #444 12px, transparent 12px),
        linear-gradient(180deg, #888 0%, #666 100%);
}

/* Windows for right-to-left trucks */
.truck-4::after,
.truck-5::after,
.truck-6::after {
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 8px, rgba(135, 206, 235, 0.6) 8px, rgba(135, 206, 235, 0.6) 20px, transparent 20px, transparent 28px, rgba(135, 206, 235, 0.6) 28px, rgba(135, 206, 235, 0.6) 38px, transparent 38px),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    background-position: 0 8px, 0 0;
    background-size: 100% 20px, 100% 100%;
    background-repeat: no-repeat;
}

/* Left to Right Trucks */
.truck-1,
.truck-2,
.truck-3 {
    animation: truckMoveRight 25s linear infinite;
}

.truck-1 {
    top: 15%;
}

.truck-2 {
    animation-delay: -8s;
    top: 30%;
}

.truck-3 {
    animation-delay: -16s;
    top: 45%;
}

/* Right to Left Trucks (mirrored) */
.truck-4,
.truck-5,
.truck-6 {
    animation: truckMoveLeft 23s linear infinite;
    transform: scaleX(-1);
}

.truck-4 {
    top: 60%;
    animation-delay: -4s;
}

.truck-5 {
    top: 72%;
    animation-delay: -12s;
}

.truck-6 {
    top: 84%;
    animation-delay: -18s;
}

@keyframes truckMoveRight {
    0% {
        left: -180px;
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    97% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 180px);
        opacity: 0;
    }
}

@keyframes truckMoveLeft {
    0% {
        right: -180px;
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    97% {
        opacity: 1;
    }

    100% {
        right: calc(100% + 180px);
        opacity: 0;
    }
}

/* Conveyor Belt Lines */
.conveyor-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg,
            var(--accent) 0px,
            var(--accent) 20px,
            transparent 20px,
            transparent 40px);
    animation: conveyorMove 3s linear infinite;
}

@keyframes conveyorMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 0;
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 {
    left: 20%;
    animation-duration: 10s;
}

.particle-2 {
    left: 40%;
    animation-duration: 12s;
    animation-delay: -3s;
}

.particle-3 {
    left: 60%;
    animation-duration: 9s;
    animation-delay: -6s;
}

.particle-4 {
    left: 85%;
    animation-duration: 11s;
    animation-delay: -2s;
}

@keyframes particleFloat {

    0%,
    100% {
        top: 100%;
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    50% {
        top: -10%;
        opacity: 0.7;
    }

    90% {
        opacity: 0.3;
    }
}

/* Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.5);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Entry Truck Animation (Vehicle IN) */
.entry-truck-container {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 5;
    pointer-events: none;
}

.entry-gate {
    position: absolute;
    left: 35%;
    top: 0;
    width: 60px;
    height: 70px;
    border: 3px solid var(--primary);
    border-top: none;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 52, 96, 0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.gate-sign {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Boom Barrier */
.boom-barrier {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: repeating-linear-gradient(45deg,
            #ff0000,
            #ff0000 10px,
            #ffffff 10px,
            #ffffff 20px);
    border: 2px solid #333;
    border-radius: 3px;
    transform-origin: left center;
    animation: barrierLift 12s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.boom-barrier::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: #333;
    border-radius: 2px;
}

.boom-barrier::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
}

@keyframes barrierLift {

    0%,
    24% {
        transform: translateX(-50%) rotate(0deg);
    }

    26%,
    33% {
        transform: translateX(-50%) rotate(-85deg);
    }

    35%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

.entry-truck {
    position: absolute;
    width: 140px;
    height: 60px;
    top: 10px;
    animation: truckEntry 12s ease-in-out infinite;
}

/* Entry Truck Cargo Bed */
.entry-truck::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 45px;
    background-image:
        radial-gradient(circle at 15px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 15px 50px, #444 12px, transparent 12px),
        radial-gradient(circle at 75px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 75px 50px, #444 12px, transparent 12px),
        linear-gradient(180deg, #888 0%, #666 100%);
    border: 2px solid #555;
    border-radius: 4px 4px 2px 2px;
    left: 10px;
    bottom: 15px;
    box-shadow:
        inset 0 -10px 15px rgba(0, 0, 0, 0.3),
        inset 0 10px 10px rgba(255, 255, 255, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Entry Truck Cab */
.entry-truck::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 50px;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 8px, rgba(135, 206, 235, 0.6) 8px, rgba(135, 206, 235, 0.6) 20px, transparent 20px, transparent 28px, rgba(135, 206, 235, 0.6) 28px, rgba(135, 206, 235, 0.6) 38px, transparent 38px),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    background-position: 0 8px, 0 0;
    background-size: 100% 20px, 100% 100%;
    background-repeat: no-repeat;
    border: 2px solid var(--accent-dark);
    border-radius: 6px 6px 2px 2px;
    right: 5px;
    bottom: 15px;
    box-shadow:
        inset -5px 0 10px rgba(0, 0, 0, 0.2),
        inset 0 -10px 10px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

@keyframes truckEntry {
    0% {
        left: -180px;
        opacity: 0;
    }

    10% {
        left: 20%;
        opacity: 1;
    }

    /* Pause at gate for 2 seconds (represents ~16% of 12s animation) */
    26% {
        left: calc(35% - 70px);
        opacity: 1;
    }

    /* Continue after pause */
    35% {
        left: calc(35% - 70px);
        opacity: 1;
    }

    50% {
        left: calc(100% + 50px);
        opacity: 1;
    }

    55%,
    100% {
        left: calc(100% + 180px);
        opacity: 0;
    }
}

/* Exit Truck System (OUT Gate - Right to Left) */
.exit-truck-container {
    position: absolute;
    top: 140px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 5;
    pointer-events: none;
}

.exit-gate {
    position: absolute;
    right: 35%;
    top: 0;
    width: 60px;
    height: 70px;
    border: 3px solid var(--primary);
    border-top: none;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 52, 96, 0.1) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.boom-barrier-exit {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: repeating-linear-gradient(45deg,
            #ff0000,
            #ff0000 10px,
            #ffffff 10px,
            #ffffff 20px);
    border: 2px solid #333;
    border-radius: 3px;
    transform-origin: right center;
    animation: barrierLiftExit 12s ease-in-out infinite;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.boom-barrier-exit::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: #333;
    border-radius: 2px;
}

.boom-barrier-exit::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
}

@keyframes barrierLiftExit {

    0%,
    24% {
        transform: translateX(-50%) rotate(0deg);
    }

    26%,
    33% {
        transform: translateX(-50%) rotate(85deg);
    }

    35%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

.exit-truck {
    position: absolute;
    width: 140px;
    height: 60px;
    top: 10px;
    animation: truckExit 12s ease-in-out infinite;
    transform: scaleX(-1);
}

/* Exit Truck Cargo Bed (mirrored) */
.exit-truck::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 45px;
    background-image:
        radial-gradient(circle at 15px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 15px 50px, #444 12px, transparent 12px),
        radial-gradient(circle at 75px 50px, #222 8px, transparent 8px),
        radial-gradient(circle at 75px 50px, #444 12px, transparent 12px),
        linear-gradient(180deg, #888 0%, #666 100%);
    border: 2px solid #555;
    border-radius: 4px 4px 2px 2px;
    left: 10px;
    bottom: 15px;
    box-shadow:
        inset 0 -10px 15px rgba(0, 0, 0, 0.3),
        inset 0 10px 10px rgba(255, 255, 255, 0.1),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Exit Truck Cab (mirrored) */
.exit-truck::after {
    content: '';
    position: absolute;
    width: 45px;
    height: 50px;
    background-image:
        linear-gradient(90deg, transparent 0%, transparent 8px, rgba(135, 206, 235, 0.6) 8px, rgba(135, 206, 235, 0.6) 20px, transparent 20px, transparent 28px, rgba(135, 206, 235, 0.6) 28px, rgba(135, 206, 235, 0.6) 38px, transparent 38px),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    background-position: 0 8px, 0 0;
    background-size: 100% 20px, 100% 100%;
    background-repeat: no-repeat;
    border: 2px solid var(--accent-dark);
    border-radius: 6px 6px 2px 2px;
    right: 5px;
    bottom: 15px;
    box-shadow:
        inset -5px 0 10px rgba(0, 0, 0, 0.2),
        inset 0 -10px 10px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(0, 0, 0, 0.3);
}

@keyframes truckExit {
    0% {
        right: -180px;
        opacity: 0;
    }

    10% {
        right: 20%;
        opacity: 1;
    }

    /* Pause at gate */
    26% {
        right: calc(35% - 70px);
        opacity: 1;
    }

    /* Continue after pause */
    35% {
        right: calc(35% - 70px);
        opacity: 1;
    }

    50% {
        right: calc(100% + 50px);
        opacity: 1;
    }

    55%,
    100% {
        right: calc(100% + 180px);
        opacity: 0;
    }
}