/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Light Theme (Default) */
    --primary: #d56515;
    --primary-dark: #d46d0c;
    --secondary: #ffa000;
    --accent: #06b6d4;
    
    --bg-dark: #ffffff; /* White background for light mode */
    --bg-card: rgba(255, 255, 255, 0.7); /* Glassy White */
    --bg-card-hover: #f1f5f9; /* Slate 100 */
    
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    
    --border-color: #e2e8f0; /* Slate 200 */
    
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-text: linear-gradient(135deg, #d56515 0%, #ffa000 100%);
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);
    --radius-md: 12px;
    --radius-lg: 24px;
}

[data-theme="dark"] {
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7); /* Glassy Slate 800 */
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    
    --border-color: rgba(148, 163, 184, 0.1);
    
    --gradient-text: linear-gradient(135deg, #ffa000 0%, #d56515 100%);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 14px rgba(213, 101, 21, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 101, 21, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: var(--bg-card); /* Adapts to theme (White/Slate) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    background: transparent;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: rotate(15deg);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent logo wrapping */
}

.logo span {
    color: var(--primary);
}

/* Navigation & Dropdowns */
.nav-links {
    display: flex;
    gap: 20px; /* Reduced gap from 32px */
    align-items: center; /* Vertically center items */
}

.nav-links > li {
    position: relative; /* Context for dropdown */
    padding: 10px 0; /* Increase hover area */
}

.nav-links > li > a {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced gap icon/text */
    white-space: nowrap; /* Prevent link text wrapping */
}

.nav-links > li > a:hover, .nav-links > li > a.active {
    color: var(--text-main);
}

.nav-links > li > a i {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-links > li:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1100;
}

.nav-links > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
    transform: translateX(4px);
}

/* Sub-dropdown (Nested) - For future if needed, currently flat lists per request structure */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-header {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    padding: 8px 16px 4px;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(213, 101, 21, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Features Grid */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-card {
    padding: 32px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(213, 101, 21, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Footer */
footer {
    background: #0b1120;
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-main);
    margin-bottom: 24px;
    font-size: 16px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive / Mobile Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1200;
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    /* Header & Nav */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1050;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-links > li > a {
        font-size: 20px;
        padding: 12px 0;
    }

    .nav-actions {
        display: none; /* Hide buttons on mobile for simplicity, or modify to stick in menu */
    }
    
    /* Make dropdowns static/visible on mobile if needed, or simpliy */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        text-align: center;
        display: none; /* JS toggle needed essentially */
        margin-bottom: 20px;
    }

    .nav-links > li:hover .dropdown-menu {
        display: block;
    }

    /* Grids */
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* Typography */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 32px;
    }
    
    /* Support page specific overrides */
    .grid-3[style*="repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}
