/* Global CSS Variables & Reset */
:root {
    /* Colors - Premium Dark Mode */
    --color-bg: #000000;
    --color-bg-light: #111111;
    /* Features/Cards */
    --color-bg-input: #1a1a1a;

    --color-text: #ffffff;
    --color-text-muted: #ffffff;
    /* Zinc-400 replaced with White as requested */

    --color-primary: #7c3aed;
    /* Violet-600 */
    --color-primary-hover: #6d28d9;
    --color-secondary: #2dd4bf;
    /* Teal-400 */
    --color-accent: #f43f5e;
    /* Rose-500 */

    --color-border: #333333;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Animation Easing - Ultra Smooth */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Hardware Acceleration Utility */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Smooth Scroll for whole page */
html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    background-color: #000000;
    /* Force black background */
}

/* Fix Chrome Autofill White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s var(--ease-out-expo);
}

a:hover {
    color: var(--color-secondary);
}

/* Prevent content from being hidden behind fixed header */
.site-main {
    padding-top: 80px;
    /* Adjust based on your header height */
}

/* Utility Class: Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adjust header when Admin Bar is present */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo .text-primary {
    color: var(--color-primary, #00f3ff);
}

.logo-text {
    letter-spacing: -0.5px;
}

/* Desktop Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation ul {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Offcanvas Menu (Mobile) */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        /* Fullscreen on mobile */
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        will-change: transform;
        z-index: 1001;
        padding: 40px;
    }

    .main-navigation.active {
        transform: translateX(0);
        /* right: 0; removed */
    }

    /* Force Header Button Colors */
    .header-actions .btn:hover {
        background: #ff3333 !important;
        color: #ffffff !important;
        box-shadow: 0 0 25px rgba(255, 51, 51, 0.4);
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 40px;
        width: 100%;
    }

    .main-navigation ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .main-navigation.active ul li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animation for first 5 items */
    .main-navigation.active ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .main-navigation.active ul li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .main-navigation.active ul li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .main-navigation.active ul li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .main-navigation.active ul li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .main-navigation ul li a {
        font-size: 1.5rem;
        color: #fff;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        /* Use full width in menu */
        gap: 15px;
    }

    .header-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

/* Footer Styles */
.site-footer {
    background: #000000;
    /* Pure Black */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle top border */
    padding: 80px 0 30px;
    color: #ffffff;
    /* Text Muted */
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #ffffff;
    /* Darker muted text */
}

/* Responsive Footer */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}