:root {
    --primary: #E31E24; /* XGSC Red */
    --primary-dark: #c1181d;
    --secondary: #0A2540; /* XGSC Navy Blue */
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #ffffff;
    --gray-bg: #f8fafc;
    --accent: #0056B3;
    --text-main: #0A2540;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(10, 37, 64, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 10%;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.05);
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav.scrolled .nav-links a,
nav.nav-light-bg .nav-links a {
    color: var(--secondary);
}

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

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 4px; padding: 1rem 0;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
    list-style: none; border-top: 3px solid var(--primary);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { padding: 0.8rem 1.5rem; color: var(--secondary); text-transform: none; font-size: 0.9rem; font-weight: 500; display: block; }
.dropdown-menu li a:hover { background: #f8fafc; color: var(--primary); padding-left: 2rem; }

/* Hero Section New */
.hero-new {
    min-height: 100vh;
    padding: 8rem 10% 4rem;
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

/* Simple Hero Section */
.hero-simple {
    min-height: 90vh;
    padding: 8rem 10% 4rem;
    display: flex;
    align-items: center;
    background: #fff;
}

/* Subpage Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: unset;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--secondary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    padding: 5rem 10% 0.5rem;
    z-index: 2;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 0;
}

.hero-simple .hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-visual {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-sub {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.hero-text h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-video-container {
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(10, 37, 64, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.6);
    aspect-ratio: 4 / 3;
    z-index: 2;
    background: var(--secondary);
    animation: floatVideo 6s ease-in-out infinite;
}

@keyframes floatVideo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-decoration-circle {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), transparent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
}

.hero-decoration-dots {
    position: absolute;
    bottom: 5%;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 3;
}

.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(10, 37, 64, 0.2));
    pointer-events: none;
}

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

.btn-outline:hover {
    background: var(--secondary);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(227, 30, 36, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.3);
}

/* Standard Sections */
section { padding: 10rem 10%; }
.section-title { text-align: left; margin-bottom: 5rem; border-left: 6px solid var(--primary); padding-left: 2rem; }
.section-title h2 { font-size: 3rem; font-weight: 900; color: var(--secondary); text-transform: uppercase; line-height: 1; margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; max-width: 800px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.service-card { background: #fff; border: 1px solid #e2e8f0; padding: 4rem 2.5rem; border-radius: 8px; transition: var(--transition); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1); border-color: var(--primary); }
.service-icon { font-size: 3.5rem; color: var(--primary); margin-bottom: 2rem; }
.service-card h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 1.2rem; color: var(--secondary); text-transform: uppercase; }
.service-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }

/* AI Section */
.ai-section { background: var(--secondary); border-radius: 12px; display: flex; align-items: center; gap: 5rem; padding: 6rem; color: #fff; }
.ai-content { flex: 1.2; }
.ai-content h2 { font-size: 3.5rem; font-weight: 900; margin-bottom: 2rem; text-transform: uppercase; line-height: 1; }
.ai-features { list-style: none; margin-top: 2.5rem; }
.ai-features li { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; font-weight: 600; }
.ai-features i { color: var(--primary); font-size: 1.4rem; }
.ai-image { flex: 0.8; }
.ai-image img { width: 100%; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }

/* Footer */
footer { padding: 8rem 10% 3rem; background: #f1f5f9; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 5rem; margin-bottom: 5rem; }
.footer-brand p { margin-top: 1.5rem; color: var(--text-muted); }
.footer-links h4 { margin-bottom: 2rem; color: var(--secondary); text-transform: uppercase; font-weight: 800; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 3rem; border-top: 1px solid #cbd5e1; color: var(--text-muted); }

/* Client Marquee */
.client-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 3rem 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.client-marquee::before, .client-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.client-marquee::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.client-marquee::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.client-marquee-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.client-marquee-track {
    display: inline-block;
    animation: marquee 50s linear infinite;
}

.client-marquee-track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 3rem;
    vertical-align: middle;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-marquee-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    /* Hero Section Fixes */
    .hero-simple .hero-container { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 3rem; 
    }
    
    .hero-text p { 
        margin-left: auto; 
        margin-right: auto; 
    }
    
    /* Bring back the visual on tablet/mobile but scale it */
    .hero-visual { 
        display: flex; 
        transform: scale(0.9);
        margin-top: 1rem;
    }
    
    .hero-video-container {
        margin: 0 auto;
    }
    
    .hero-decoration-circle {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links { display: none; }
    
    .client-marquee-track img {
        height: 30px;
        margin: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    section { padding: 5rem 5%; }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        transform: scale(0.8);
    }
    
    .ai-section {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
        gap: 3rem;
    }
    
    .ai-features li {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
}

