/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #0f1318;
    --bg-secondary: #151a21;
    --bg-tertiary: #1a2029;
    --bg-card: #1c2230;
    --bg-terminal: #0a0d11;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-green: #34d399;
    --accent-yellow: #fbbf24;
    --accent-orange: #fb923c;
    --accent-red: #f87171;
    --accent-purple: #a78bfa;
    --accent-pink: #f472b6;
    --border-color: #2a3441;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   ATMOSPHERIC BACKGROUND
   ============================================ */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
    top: 20%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(0,0,0,0.4) 0%, transparent 70%);
}

.noise {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-fade {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 30%, rgba(15, 19, 24, 0.95) 50%, rgba(15, 19, 24, 0.7) 70%, rgba(15, 19, 24, 0) 100%);
    pointer-events: none;
    z-index: 99;
}

.nav-wrapper {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper.scrolled { top: 1rem; }

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(21, 26, 33, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 52, 65, 0.6);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1rem;
    background: var(--accent-blue);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.logo:hover { background: var(--accent-blue-light); }

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    padding: 0 0.5rem;
}

.nav-links li a {
    position: relative;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.nav-links li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-links li a.active { color: var(--text-primary); }

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.6rem;
    cursor: pointer;
    border-radius: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 19, 24, 0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.active { display: flex; }

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--accent-cyan); }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
section {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-left h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60%, 100% { transform: rotate(0deg); }
}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.typewriter-text {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.5em;
    background: var(--accent-cyan);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--accent-blue-light);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue-light);
    transform: translateY(-2px);
}

.social-link svg { width: 20px; height: 20px; }

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-green);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

/* Terminal */
.terminal {
    background: var(--bg-terminal);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
    transition: transform 0.4s ease;
}

.terminal:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons { display: flex; gap: 8px; }

.terminal-btn { width: 12px; height: 12px; border-radius: 50%; }
.terminal-btn.red { background: #ff5f57; }
.terminal-btn.yellow { background: #febc2e; }
.terminal-btn.green { background: #28c840; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    min-height: 350px;
    max-height: 420px;
    overflow-y: auto;
}

.terminal-line { margin-bottom: 0.25rem; }
.terminal-prompt { color: var(--accent-cyan); }
.terminal-command { color: var(--text-primary); }
.terminal-comment { color: #6b7280; font-style: italic; }
.terminal-key { color: var(--accent-blue-light); }
.terminal-value { color: var(--text-secondary); }
.terminal-heading { color: var(--accent-yellow); }
.terminal-list-item { color: var(--text-secondary); padding-left: 1rem; }
.terminal-list-item::before { content: '→ '; color: var(--accent-blue); }
.terminal-success { color: var(--accent-green); }
.terminal-success::before { content: '✓ '; }

.cursor-terminal {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-cyan);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@media (max-width: 1100px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-left { order: 1; }
    .hero-right { order: 2; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .social-links { justify-content: center; }
    .availability-badge { margin: 0 auto; }
    .terminal { max-width: 600px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .hero { padding: 5rem 1.25rem 3rem; }
    .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
    .hero-buttons { flex-direction: column; }
}
