/* Import Fonts */
@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Regular.woff2') format('woff2'),
         url('../fonts/Orbitron-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Bold.woff2') format('woff2'),
         url('../fonts/Orbitron-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Regular.woff2') format('woff2'),
         url('../fonts/Lato-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('../fonts/Lato-Bold.woff2') format('woff2'),
         url('../fonts/Lato-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    /* Color Palette */
    --sand-beige: #F5E8D0;
    --holo-teal: #00F5D4;
    --desert-black: #121212;
    --mirage-purple: #9336FD;
    --oasis-blue: #1B9AAA;

    /* Secondary Colors */
    --sand-light: #FFF8E8;
    --sand-dark: #E6D5B8;
    --holo-teal-light: #7DFFF0;
    --holo-teal-dark: #00B3A1;
    --mirage-purple-light: #B47EFE;
    --mirage-purple-dark: #7422D9;
    --oasis-blue-light: #51C2CF;
    --oasis-blue-dark: #127885;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --black: #000000;

    /* Functional Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Lato', sans-serif;
    --line-height-heading: 1.2;
    --line-height-body: 1.5;

    /* Spacing */
    --space-1: 0.25rem; /* 4px */
    --space-2: 0.5rem;  /* 8px */
    --space-3: 0.75rem; /* 12px */
    --space-4: 1rem;    /* 16px */
    --space-5: 1.5rem;  /* 24px */
    --space-6: 2rem;    /* 32px */
    --space-7: 2.5rem;  /* 40px */
    --space-8: 3rem;    /* 48px */
    --space-9: 4rem;    /* 64px */
    --space-10: 5rem;   /* 80px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-short: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-long: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-glow-teal: 0 0 15px rgba(0, 245, 212, 0.5);
    --shadow-glow-purple: 0 0 15px rgba(147, 54, 253, 0.5);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: var(--line-height-body);
    color: var(--desert-black);
    background-color: var(--sand-beige);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--oasis-blue);
    text-decoration: none;
    transition: color var(--transition-short);
}

a:hover {
    color: var(--oasis-blue-light);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all var(--transition-short);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Common Components */
.section-title {
    position: relative;
    margin-bottom: var(--space-6);
    color: var(--desert-black);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--mirage-purple);
    margin-top: var(--space-2);
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

.text-link {
    position: relative;
    color: var(--oasis-blue);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    padding-bottom: var(--space-1);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--oasis-blue);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.text-link:hover::after {
    transform: scaleX(1);
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--holo-teal);
    border: 1px solid var(--holo-teal);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--holo-teal);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    z-index: -1;
}

.cta-button:hover {
    color: var(--desert-black);
    box-shadow: var(--shadow-glow-teal);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sand-beige);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-long);
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    color: var(--desert-black);
}

.loading-bar {
    width: 200px;
    height: 3px;
    background-color: var(--gray-300);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background-color: var(--mirage-purple);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Footer */
footer {
    background-color: var(--desert-black);
    color: var(--sand-beige);
    padding: var(--space-8) 0 var(--space-4);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.footer-section h3 {
    color: var(--holo-teal);
    margin-bottom: var(--space-4);
    font-size: 1.25rem;
}

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section a {
    color: var(--sand-beige);
    transition: color var(--transition-short);
}

.footer-section a:hover {
    color: var(--holo-teal);
}

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}