@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Typography */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}

/* Base Styles */
body {
    background-color: #0f1419;
    color: #e8eaef;
}

/* Page content hidden initially */
nav,
section:not(.hero-section),
footer {
    opacity: 0;
}
.nav-option {
    position: relative;
    padding-bottom: 4px;
}

.nav-option::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-option:hover::after,
.nav-option.active::after {
    width: 100%;
}
.nav-option:hover::after,
.nav-option:focus-visible::after {
    width: 100%;
}
body.animation-complete nav,
body.animation-complete section:not(.hero-section),
body.animation-complete footer {
    animation: fadeInUp 0.8s ease-out forwards;
}

body.animation-complete nav {
    animation-delay: 0s;
}

body.animation-complete section:nth-of-type(3) {
    animation-delay: 0.1s;
}

body.animation-complete section:nth-of-type(4) {
    animation-delay: 0.2s;
}

body.animation-complete footer {
    animation-delay: 0.3s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter Animation */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    0%,
    49% {
        border-right-color: rgba(100, 116, 139, 0.8);
    }

    50%,
    100% {
        border-right-color: transparent;
    }
}

/* Terminal animation container - visible initially, hidden after animation */
.terminal-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.terminal-animation.hidden {
    opacity: 0;
    display: none;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(50, end) 0s 1 normal both, blink 0.75s step-end 0s infinite;
    display: inline-block;
    color: transparent;
}

.typewriter.line-2 {
    animation-delay: 2s, 2s;
    animation-fill-mode: both, both;
    opacity: 0;
}

.typewriter.line-2.show {
    opacity: 1;
}

/* Hero content animations */
.hero-content {
    opacity: 0;
}

body.animation-complete .hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

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

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Global Styles */
:root {
    --primary-color: #f5f5f5;
    --secondary-color: #e5e5e5;
    --accent-color: #ffffff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --slate-700: #1e293b;
    --slate-600: #334155;
}

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

body {
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
}

/* Text Utilities */
.text-gradient {
    color: #f5f5f5;
}

/* Button Styles */
.btn-primary {
    background-color: transparent;
    border: 1px solid #334155;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #475569;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #334155;
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #475569;
    transform: none;
}

/* Card Styles */
.card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0;
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
}

/* Section Spacing */
section {
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Grid Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Feature Box */
.feature-box {
    padding: 32px;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid #1e293b;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-primary {
    background-color: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.badge-success {
    background-color: transparent;
    color: #22c55e;
    border: 1px solid #22c55e;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #334155, transparent);
    margin: 40px 0;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Scroll Smooth */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, var(--dark-bg) 25%, rgba(255, 255, 255, 0.1) 50%, var(--dark-bg) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Link Hover Effects */
a {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Input Focus State */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Utility Classes */
.text-muted {
    color: #94a3b8;
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

/* Shadow Utilities */
.shadow-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.shadow-glow-lg {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
}

/* Transform Utils */
.transform-gpu {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
    }

    a {
        color: #3b82f6;
    }
}
.no-scroll {
    overflow: hidden;
}
#terminalAnimation {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000; /* or whatever */
}