/**
 * ArchFalcon | Premium Portfolio Template 2026
 * Core Stylesheet
 */

:root {
    /* Color Palette - Dark Mode (Default) */
    --bg-primary: #050505;
    --bg-secondary: #0f0f11;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #ec4899; /* Pink */
    --accent-tertiary: #8b5cf6; /* Violet */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --glass-blur: blur(16px);
    --glass-card-bg: rgba(15, 15, 17, 0.7);

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

    /* Spacing System (8px grid) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 3rem;     /* 48px */
    --space-6: 4rem;     /* 64px */
    --space-8: 6rem;     /* 96px */
    --space-10: 8rem;    /* 128px */
    
    /* Z-Index */
    --z-negative: -1;
    --z-elevate: 10;
    --z-sticky: 100;
    --z-drawer: 200;
    --z-modal: 300;
    --z-popover: 400;
    --z-toast: 500;
    --z-cursor: 9999;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-border-hover: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --glass-card-bg: rgba(255, 255, 255, 0.8);
}

/* Base Reset & Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: var(--z-cursor);
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover effect for links/buttons */
a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

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

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

.section {
    padding: var(--space-10) 0;
    position: relative;
    z-index: 1;
}

.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-4 { margin-bottom: var(--space-4); }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.italic-accent {
    font-style: italic;
    font-weight: 300;
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border-hover);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-smooth);
}

.icon-btn:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border-hover);
    transform: rotate(15deg);
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-negative);
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.sphere-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
}

.sphere-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-secondary);
    animation-delay: -5s;
}

.sphere-3 {
    top: 40%;
    left: 60%;
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    animation-delay: -10s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    padding: var(--space-3) 0;
    transition: all var(--transition-smooth);
}

.header.scrolled {
    padding: var(--space-2) 0;
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-4);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hamburger-btn {
    display: none;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: var(--z-modal);
    padding: var(--space-6) var(--space-4);
    display: flex;
    flex-direction: column;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
}

.mobile-nav-list {
    list-style: none;
    margin-top: var(--space-6);
    margin-bottom: auto;
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    padding-left: var(--space-2);
}

.mobile-nav-link i {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover i {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--space-10);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981; /* Emerald green */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5.5rem);
    margin-bottom: var(--space-3);
}

.typed-text {
    color: var(--accent-primary);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-primary);
    animation: blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 500px;
    margin-bottom: var(--space-4);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    margin: 0;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Profile Visual */
.profile-card {
    position: relative;
    padding: var(--space-2);
    border-radius: 32px;
}

.profile-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(99, 102, 241, 0.1));
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a24;
    background-image: radial-gradient(circle at center, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.floating-badge {
    position: absolute;
    background: var(--glass-card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float-badge 6s infinite ease-in-out;
}

.badge-1 {
    top: 20%;
    left: -20px;
}

.badge-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: -3s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu, .d-none-sm {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .badge-pill {
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-4) auto;
    }
    
    .hero-cta {
        display: flex;
        justify-content: center;
        gap: var(--space-2);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .profile-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .stat-divider {
        display: none;
    }
    
    :root {
        --space-10: 6rem;
    }
}
