
:root {
    --bg-primary: #0a0e16;
    --bg-secondary: #111826;
    --bg-tertiary: #1a2332;
    --text-primary: #e8edf4;
    --text-secondary: #a0aec0;
    --accent-cyan: #00f0ff;
    --accent-orange: #ff6b35;
    --accent-green: #00ff88;
    --grid-color: rgba(0, 240, 255, 0.08);
    --border-color: rgba(0, 240, 255, 0.2);

    /* Fonts */
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --container-width: 1200px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   BASE STYLES
   ==================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: gridFadeIn 1s ease forwards;
}

@keyframes gridFadeIn {
    to { opacity: 1; }
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ====================================
   HEADER
   ==================================== */

.header {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-cyan);
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--accent-orange);
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    padding: 4rem 0 8rem;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ascii-bird {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInScale 0.8s ease 0.2s forwards;
}

.ascii-bird pre {
    line-height: 1.2;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.45s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

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

.title-line.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.title-line.bbrrrh {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-size: 0.9em;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

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

/* Terminal Box */
.terminal-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease 1s forwards;
}

.terminal-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.terminal-content {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.terminal-line {
    margin-bottom: 0.75rem;
}

.prompt {
    color: var(--accent-green);
    margin-right: 0.5rem;
}

.command {
    color: var(--accent-cyan);
}

.terminal-output {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.what-we-do {
    padding: 6rem 0;
    position: relative;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 0.3s forwards;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    padding: 4rem 0 3rem;
    position: relative;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-note {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-family: var(--font-mono);
    transition: all var(--transition-fast);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.footer-link:hover {
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* border-top: 1px solid var(--border-color); */
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .what-we-do,
    .footer {
        padding: 4rem 0;
    }

    .about-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .ascii-bird {
        font-size: 0.625rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1.125rem;
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}
