/* =============================================
   BASE STYLES — Reset, Variables, Typography
   Premium Glassmorphism Design System
   ============================================= */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Custom Properties — Premium Dark + Gold */
:root {
    --primary-color: #f0a830;
    --primary-light: #ffd06b;
    --primary-dark: #c78520;
    --secondary-color: #e63946;
    --accent-color: #3b82f6;
    --accent-teal: #14b8a6;

    --dark-bg: #000000;
    --dark-secondary: #050505;
    --dark-card: #080808;
    --dark-elevated: #0a0a0a;

    --text-light: #eae6e0;
    --text-muted: #8a96b0;
    --text-dim: #4e5a73;
    --border-color: rgba(240, 168, 48, 0.08);

    /* Glassmorphism */
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-bg-strong: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #f0a830 0%, #e63946 50%, #d4380d 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-gold: linear-gradient(135deg, #ffd06b 0%, #f0a830 40%, #c78520 100%);
    --gradient-glass: linear-gradient(135deg, rgba(240, 168, 48, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(240, 168, 48, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(240, 168, 48, 0.25);

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Ambient Grid & Glow Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center center;
    pointer-events: none;
    overflow: hidden;
}

/* Trendy Aurora / Gradient Orbs */
.ambient-background::before,
.ambient-background::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: slowDrift 20s infinite alternate ease-in-out;
}

.ambient-background::before {
    width: 65vw;
    height: 65vh;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
}

.ambient-background::after {
    width: 55vw;
    height: 55vh;
    background: var(--secondary-color);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

.ambient-background .orb-3 {
    position: absolute;
    width: 60vw;
    height: 60vh;
    border-radius: 50%;
    background: var(--accent-color);
    filter: blur(140px);
    opacity: 0.08;
    top: 30%;
    left: 40%;
    animation: slowDrift 25s infinite alternate-reverse ease-in-out;
}

@keyframes slowDrift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.15); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Sections — shared padding */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

/* Buttons */
.btn {
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(240, 168, 48, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(240, 168, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-light);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(240, 168, 48, 0.12);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Glass card utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* Allow ambient background to shine through main sections */
.bento-section, .projects, .contact {
    background: transparent !important;
}