/* =======================
   BASE STYLES & VARIABLES
   ======================= */

:root {
    /* Color Palette - Deep Space & Modern Accents */
    --bg-primary: #020617; /* Deep Space Dark */
    --bg-secondary: #0f172a;
    --bg-tertiary: rgba(30, 41, 59, 0.5);
    
    --accent-primary: #22C55E; /* Emerald Green */
    --accent-primary-glow: rgba(34, 197, 94, 0.4);
    --accent-secondary: #3b82f6; /* Soft Blue */
    --accent-secondary-glow: rgba(59, 130, 246, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(255, 255, 255, 0.2);

    /* Glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    --section-pad: 100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Override */
html[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: rgba(226, 232, 240, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border-subtle: rgba(0, 0, 0, 0.1);
    --border-highlight: rgba(0, 0, 0, 0.2);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    --accent-primary-glow: rgba(34, 197, 94, 0.2);
    --accent-secondary-glow: rgba(59, 130, 246, 0.2);
}

/* =======================
   RESET & GLOBAL
   ======================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: var(--font-main);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* =======================
   CUSTOM CURSOR
   ======================= */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-secondary-glow) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0.5;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

/* Hide custom cursor on smaller screens */
@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* =======================
   TYPOGRAPHY
   ======================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.text-glow {
    text-shadow: 0 0 20px var(--accent-secondary-glow);
}

.text-muted {
    color: var(--text-muted);
}

/* =======================
   UTILITY CLASSES
   ======================= */
.hidden {
    display: none !important;
}

.opacity-0 {
    opacity: 0;
}

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

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

.pt-section {
    padding-top: var(--section-pad);
}

.pb-section {
    padding-bottom: var(--section-pad);
}

.pt-4 { padding-top: 2rem; }
.pb-4 { padding-bottom: 2rem; }
.pt-2 { padding-top: 1rem; }
.pb-2 { padding-bottom: 1rem; }
