/* ============================================================
   NEXAURA STUDIOS — GLOBAL DESIGN SYSTEM
   Color Palette: Imperial Red (#FB3640) + Night (#000F08)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────── */
:root {
    /* Primary Colors */
    --clr-primary: #FB3640;
    --clr-primary-hover: #E02D37;
    --clr-primary-dark: #D12E36;
    --clr-primary-light: #FF5A62;
    --clr-primary-10: rgba(251, 54, 64, 0.1);
    --clr-primary-15: rgba(251, 54, 64, 0.15);
    --clr-primary-20: rgba(251, 54, 64, 0.2);
    --clr-primary-30: rgba(251, 54, 64, 0.3);
    --clr-primary-50: rgba(251, 54, 64, 0.5);

    /* Background Colors */
    --clr-bg: #050505;
    --clr-bg-card: #0A0A0A;
    --clr-bg-elevated: #111111;
    --clr-bg-input: #0D0D0D;
    --clr-bg-overlay: rgba(5, 5, 5, 0.9);
    --clr-bg-nav: rgba(5, 5, 5, 0.95);

    /* Text Colors */
    --clr-text: #FFFFFF;
    --clr-text-secondary: #C0C0C0;
    --clr-text-muted: #808080;

    /* Border Colors */
    --clr-border: rgba(251, 54, 64, 0.15);
    --clr-border-hover: rgba(251, 54, 64, 0.4);
    --clr-border-subtle: rgba(255, 255, 255, 0.06);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FB3640, #D12E36);
    --gradient-card: linear-gradient(145deg, rgba(251, 54, 64, 0.08), rgba(251, 54, 64, 0.02));
    --gradient-hero: linear-gradient(180deg, rgba(251, 54, 64, 0.05) 0%, transparent 50%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(251, 54, 64, 0.15) 0%, transparent 70%);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 40px rgba(251, 54, 64, 0.15);
    --shadow-glow: 0 0 30px rgba(251, 54, 64, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(251, 54, 64, 0.3);
    --shadow-btn: 0 4px 15px rgba(251, 54, 64, 0.3);
    --shadow-btn-hover: 0 6px 25px rgba(251, 54, 64, 0.45);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.5rem;
    --fs-6xl: 4rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 900px;
    --nav-height: 72px;
    --sidebar-width: 260px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-text);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    color: var(--clr-text-secondary);
    line-height: 1.7;
}

.text-primary { color: var(--clr-primary); }
.text-muted { color: var(--clr-text-muted); }
.text-white { color: var(--clr-text); }
.text-center { text-align: center; }

/* ── Layout Utilities ─────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section__title {
    text-align: center;
    margin-bottom: var(--space-3xl);
    font-size: var(--fs-3xl);
    font-weight: 800;
}

.section__subtitle {
    text-align: center;
    color: var(--clr-text-secondary);
    max-width: 600px;
    margin: calc(-1 * var(--space-xl)) auto var(--space-3xl);
    font-size: var(--fs-md);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex--center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex--col {
    display: flex;
    flex-direction: column;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }
.flex--gap-xl { gap: var(--space-xl); }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(251, 54, 64, 0.2); }
    50% { box-shadow: 0 0 40px rgba(251, 54, 64, 0.4); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(251, 54, 64, 0.15); }
    50% { border-color: rgba(251, 54, 64, 0.4); }
}

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

/* Animation Utility Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered delay utilities */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ── Scrollbar Styling ────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary-30);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary-50);
}

/* ── Selection ────────────────────────────────────── */
::selection {
    background: var(--clr-primary);
    color: var(--clr-text);
}

/* ── Background Decorations ───────────────────────── */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(251, 54, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251, 54, 64, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 2.75rem;
        --fs-4xl: 2.25rem;
        --fs-3xl: 2rem;
    }

    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.25rem;
        --fs-4xl: 1.875rem;
        --fs-3xl: 1.625rem;
        --fs-2xl: 1.375rem;
        --nav-height: 64px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-5xl: 1.875rem;
        --fs-4xl: 1.625rem;
        --fs-3xl: 1.375rem;
    }
}
