:root {
    /* Color Palette */
    --bg-deep: #09090b;
    --bg-surface: #18181b;
    --bg-overlay: rgba(24, 24, 27, 0.7);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(52, 211, 153, 0.3);
    
    --accent-primary: #34d399; /* Emerald 400 */
    --accent-glow: rgba(52, 211, 153, 0.15);
    
    --text-primary: #f4f4f5; /* Zinc 100 */
    --text-secondary: #a1a1aa; /* Zinc 400 */
    --text-muted: #71717a; /* Zinc 500 */
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em; /* Tight tracking for headings */
}

code, .font-mono {
    font-family: var(--font-mono);
}

/* Selection Color */
::selection {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

/* Utilities */
.glass-panel {
    background: var(--bg-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

.subtle-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spotlight Effect Container */
.spotlight-group:hover .spotlight-card::before {
    opacity: 1;
}

.spotlight-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: border-color 0.3s;
}

.spotlight-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
}

.spotlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 100px) var(--mouse-y, 100px), rgba(52, 211, 153, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* Ensure content is above spotlight overlay */
.spotlight-card > * {
    position: relative;
    z-index: 2;
}

/* Animated Pulse Border */
@keyframes border-pulse {
    0%, 100% { border-color: var(--border-subtle); box-shadow: 0 0 0 0 transparent; }
    50% { border-color: var(--accent-primary); box-shadow: 0 0 15px var(--accent-glow); }
}

.animate-border-pulse {
    animation: border-pulse 3s infinite;
}

/* Terminal Window Styles */
.terminal-window {
    background: #0f0f11;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1a1a1c;
    padding: 8px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-body {
    padding: 24px;
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.6;
}

.cmd-prompt { color: var(--accent-primary); margin-right: 8px; }
.cmd-input { color: #fff; }
.cmd-output { margin-top: 8px; margin-bottom: 16px; display: block; }
.cmd-cursor::after {
    content: "▋";
    animation: blink 1s step-end infinite;
    color: var(--accent-primary);
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 1000;
}
.scroll-progress-bar {
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.1s ease;
}

/* Mobile Menu */
.mobile-menu {
    background: var(--bg-deep);
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.active { transform: translateX(0); }

/* Skip Link */
/* Skip Link */
.skip-link {
    background: var(--accent-primary);
    color: black;
    font-weight: bold;
    padding: 12px 20px;
    position: fixed; /* Fixed so it stays on top even if scrolled */
    top: 0;
    left: 20px;
    z-index: 1000; /* Higher than nav z-50 */
    transform: translateY(-110%);
    transition: transform 0.2s ease-out;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid white;
    outline-offset: 2px;
}

.mask-gradient-to-b {
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}
