/* Foundation */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    scroll-padding-top: 80px;
}

:root {
    --background: #000000;
    --foreground: #ffffff;
    --primary: #3b82f6;
    /* Blue */
    --accent: #8b5cf6;
    /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Typography Enhancements */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism & UI Components */
.glass-nav {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    opacity: 0.5;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(59, 130, 246, 0.15);
}

/* Ambient Background Lights */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.12;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: breathe 15s ease-in-out infinite alternate;
}

.ambient-glow.blue {
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    width: 800px;
    height: 800px;
    animation-delay: -5s;
}

/* Entrance Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breathe {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(2%, 5%);
    }

    100% {
        transform: scale(0.9) translate(-2%, -5%);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    }
}

.animate-in {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Animation Delays mapped for direct html usage */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Code Block / Terminal styles */
.terminal-window {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #a1a1aa;
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #3f3f46;
}

/* KBD Styles */
.kbd-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    background: linear-gradient(180deg, #27272a 0%, #09090b 100%);
    border: 1px solid #3f3f46;
    border-bottom: 3px solid #18181b;
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

/* Guide Specifics */
.ambient-glow.purple {
    background: radial-gradient(circle, #a855f7 0%, transparent 60%);
    width: 700px;
    height: 700px;
    animation-delay: -2s;
}

.ambient-glow.green {
    background: radial-gradient(circle, #22c55e 0%, transparent 60%);
    width: 500px;
    height: 500px;
    animation-delay: -8s;
}