/* Gajari Brisk - Design System & Global Styles */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Orbitron:wght@400;500;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    /* Brand Colors */
    --color-void-black: #0B0B0B;
    --color-circuit-gold: #C9A44A;
    --color-steel-white: #EAEAEA;
    --color-graphite-grey: #2A2A2A;

    /* Functional Colors */
    --color-bg-primary: var(--color-void-black);
    --color-bg-secondary: #141414;
    --color-text-primary: var(--color-steel-white);
    --color-text-secondary: #B0B0B0;
    --color-accent: var(--color-circuit-gold);

    /* Typography */
    --font-heading: 'Chakra Petch', 'Orbitron', sans-serif;
    --font-body: 'Inter', 'Rajdhani', sans-serif;
    --font-micro: 'Rajdhani', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders & Effects */
    --border-thin: 1px solid rgba(201, 164, 74, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --glow-gold: 0 0 20px rgba(201, 164, 74, 0.3);

    /* Transitions */
    --transition-slow: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s ease-out;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-primary);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 500;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold {
    color: var(--color-circuit-gold);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-micro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-bg-primary);
    box-shadow: var(--glow-gold);
}

.btn-secondary {
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-text-primary);
    padding: 0.5rem 0;
}

.btn-secondary:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Layout Sections */
/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 11, 11, 1) 0%, rgba(11, 11, 11, 0.6) 20%, rgba(11, 11, 11, 0.2) 50%, rgba(11, 11, 11, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-xl);
}

.hero-subtext {
    margin: 2rem 0;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 600px;
    border-left: 2px solid var(--color-accent);
    padding-left: 1.5rem;
}

/* Header/Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    transition: var(--transition-slow);
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0) 100%);
}

header.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
}

.logo span {
    color: var(--color-accent);
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav a {
    font-family: var(--font-micro);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

nav a:hover,
nav a.active {
    color: var(--color-text-primary);
}

/* Common Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Problem Section */
.problem {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-xl) 0;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.stat-list {
    margin: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.stat-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-list li:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 1.5rem;
    min-width: 100px;
}

.stat-desc {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.img-box {
    width: 100%;
    height: 500px;
    background-image: url('assets/images/problem-bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
}

/* Solution Section */
.solution {
    background-color: var(--color-bg-primary);
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 70%);
}

.schematic-container {
    margin: 4rem auto;
    width: 100%;
    max-width: 800px;
    position: relative;
    padding: 3rem;
    border: var(--border-thin);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.schematic-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.node {
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-text-secondary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    z-index: 2;
}

.node.text-gold {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: var(--glow-gold);
}

.line {
    flex-grow: 1;
    height: 1px;
    background: #333;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--color-accent);
    transform: translateX(-100%);
    animation: flowLine 2s infinite linear;
    box-shadow: 0 0 5px var(--color-accent);
}

@keyframes flowLine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* Features Section */
.features {
    padding-bottom: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    /* Add little top padding as it comes after Solution */
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.card {
    background: var(--color-bg-secondary);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    /* Make icons gold */
}

.card h4 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-size: 1.25rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 900px) {

    .grid-split,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .img-box {
        height: 300px;
        order: -1;
        /* Image first on mobile */
        margin-bottom: var(--spacing-md);
    }

    .schematic-box {
        flex-direction: column;
        gap: 2rem;
    }

    .line {
        width: 2px;
        height: 50px;
        margin: 5px 0;
    }

    .line::after {
        width: 100%;
        height: 30%;
        animation: flowLineVertical 2s infinite linear;
    }

    @keyframes flowLineVertical {
        0% {
            transform: translateY(-100%);
        }

        100% {
            transform: translateY(200%);
        }
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
        /* simple generic mobile menu hide for now */
    }

    .hero-content {
        padding-top: 100px;
        /* Adjust for fixed header */
    }
}