:root {
    /* Brand Colors */
    --primary: #ff7f4b;
    --primary-dark: #e66a36;
    --primary-light: #ff9468;
    --secondary: #262b2f;
    --accent: #3498db;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-dark: #262b2f;
    --bg-dark-accent: #31383c;
    
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-tertiary: #8b95a1;
    --text-light: #ffffff;
    
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.08);
    --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.12);
    --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.16);
    
    --gradient-primary: linear-gradient(135deg, #ff7f4b 0%, #ff9468 100%);
    --gradient-secondary: linear-gradient(135deg, #262b2f 0%, #31383c 100%);
    
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 50px;
}

[data-theme="dark"] {
    --bg-primary: #1a1f2e;
    --bg-secondary: #252b3b;
    --bg-tertiary: #2f3647;
    --bg-dark: #0f1419;
    
    --text-primary: #e8eaed;
    --text-secondary: #b8bdc5;
    --text-tertiary: #8b92a0;
    
    --border-color: #3a4150;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    font-size: 3rem;
    color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: block;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: opacity var(--transition-speed) ease;
}

.logo-alt {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-speed) ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform var(--transition-speed) ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: var(--bg-dark-accent);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section h4 {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dropdown-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-section a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* CTA Button */
.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 127, 75, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 127, 75, 0.4);
}

.nav-cta i {
    margin-right: 0.5rem;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Main Content */
.main-content {
    margin-top: 85px;
    min-height: calc(100vh - 85px);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-xl);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 127, 75, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 127, 75, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 127, 75, 0.4);
    transition: all var(--transition-speed) ease;
    position: relative;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 127, 75, 0.5);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

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

.chat-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.chat-welcome {
    margin-bottom: 1.5rem;
}

.chat-welcome p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.chat-subtitle {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
}

.chat-form button {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: white;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-column p i {
    margin-right: 0.5rem;
    color: var(--primary);
    width: 20px;
}

.footer-partners {
    margin: 1.5rem 0;
}

.partners-logo {
    max-width: 250px;
    height: auto;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed) ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-column a.highlight {
    color: var(--primary);
    font-weight: 600;
}

.footer-address {
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* Dark mode: ensure secondary/outline buttons always show dark text on white background */
[data-theme="dark"] .btn-secondary {
    background: #ffffff !important;
    color: #1a1f2e !important;
    border-color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #f0f0f0 !important;
    color: #1a1f2e !important;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE HERO  —  shown only on phones, hidden on desktop
   ══════════════════════════════════════════════════════════════ */
.mobile-hero { display: none; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet 1024px ── */
@media (max-width: 1024px) {
    .nav-container  { padding: 0 1.5rem; }
    .nav-menu       { gap: 1.25rem; }
    .nav-link       { font-size: 0.88rem; }
    .section-title  { font-size: 2.4rem; }
    .section-container { padding: 0 1.5rem; }
    .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
}

/* ── Mobile 768px ── */
@media (max-width: 768px) {

    /* Show mobile hero, hide desktop slider */
    .mobile-hero  { display: block; }
    .hero-slider  { display: none; }

    /* ── Navbar ── */
    .navbar { padding: 0.85rem 0; }
    .nav-container { padding: 0 1.25rem; }

    .nav-logo img { height: 34px; width: auto; }

    .nav-toggle {
        display: flex;
        z-index: 1100;
        position: relative;
        padding: 0.5rem;
    }

    /* Full-screen drawer */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 100dvh;
        background: #1a1f22;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 1.75rem 2rem;
        gap: 0;
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu.mobile-open { display: flex; }

    /* Hamburger → X */
    .nav-toggle.mobile-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.mobile-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.mobile-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Nav links */
    .nav-link {
        font-size: 1rem;
        padding: 0.9rem 0;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-link::after { display: none; }

    /* Dropdowns — accordion */
    .nav-dropdown { width: 100%; }

    .dropdown-menu {
        position: static;
        min-width: unset;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0.5rem 0 0.75rem 1rem;
        background: rgba(255,255,255,0.04);
        display: none;
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .nav-dropdown.mobile-expanded .dropdown-menu { display: grid; }
    .dropdown-toggle i { float: right; margin-top: 0.2rem; transition: transform 0.2s; }
    .nav-dropdown.mobile-expanded .dropdown-toggle i { transform: rotate(180deg); }
    .dropdown-section { margin-bottom: 0.5rem; }
    .dropdown-section h4 { font-size: 0.72rem; margin-bottom: 0.4rem; }
    .dropdown-section a { font-size: 0.88rem; padding: 0.3rem 0; }

    /* CTA in drawer */
    .nav-cta {
        margin-top: 1.25rem;
        width: 100%;
        text-align: center;
        display: block;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        border-bottom: none !important;
    }

    /* Main content offset */
    .main-content { margin-top: 64px; }

    /* ── Sections ── */
    .section-title { font-size: 1.9rem; }
    .section-description { font-size: 1rem; }
    .section-container { padding: 0 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }

    /* Solutions */
    .solutions-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
    .solutions { padding: 3rem 0; }

    /* Platform features */
    .platform-grid { grid-template-columns: 1fr 1fr !important; gap: 1.25rem; }
    .platform-features { padding: 3rem 0; }

    /* SDVOSB */
    .sdvosb-content { flex-direction: column !important; gap: 2rem; }
    .sdvosb-section { padding: 3rem 0; }
    .benefits-grid { grid-template-columns: 1fr !important; }

    /* CTA section */
    .cta-section { padding: 3rem 0; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
    .cta-buttons .btn { width: 100%; max-width: 320px; text-align: center; }

    /* Buttons */
    .btn-large { padding: 0.9rem 1.75rem; font-size: 0.97rem; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer { padding: 3rem 0 2rem; margin-top: 2rem; }
    .partners-logo { max-width: 180px; }

    /* Chat */
    .chat-window { width: calc(100vw - 2rem); right: -1rem; }
}

/* ── Small mobile 480px ── */
@media (max-width: 480px) {
    .section-title { font-size: 1.65rem; }
    .nav-logo img { height: 30px; }
    .platform-grid { grid-template-columns: 1fr !important; }
    .footer-links { gap: 0.75rem; }
}

/* ── Dark mode buttons ── */
[data-theme="dark"] .btn-secondary {`
    background: #ffffff !important;
    color: #1a1f2e !important;
    border-color: #ffffff !important;
}
[data-theme="dark"] .btn-secondary:hover {
    background: #f0f0f0 !important;
    color: #1a1f2e !important;
}
@media (max-width: 768px) {
    .chat-widget { display: none !important; }

    .nav-logo img {
        height: auto !important;
        width: auto !important;
        max-height: 102px !important;
        max-width: 230px !important;
        object-fit: contain !important;
    }
}