/* ═══════════════════════════════════════
   Fatidic Studios - Terminal Aesthetic
   ═══════════════════════════════════════ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-terminal: #0d0d14;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-cyan: #22d3ee;
    --accent-green: #4ade80;
    --accent-purple: #a78bfa;
    --border-color: #27272a;
    --glow-cyan: rgba(34, 211, 238, 0.3);
    --glow-green: rgba(74, 222, 128, 0.3);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Sizing */
    --max-width: 1100px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ═══════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
}

.terminal-window {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    box-shadow:
        0 0 60px rgba(34, 211, 238, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: var(--space-xs) var(--space-sm);
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

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

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-content {
    padding: var(--space-md);
}

.terminal-prompt {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

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

.company-name {
    color: var(--text-secondary);
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 500;
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--glow-green);
}

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

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

/* ═══════════════════════════════════════
   Section Styles
   ═══════════════════════════════════════ */

section {
    padding: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.code-comment {
    color: var(--accent-purple);
}

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

/* Divider */
.divider {
    text-align: center;
    padding: var(--space-md) 0;
}

.ascii-divider {
    font-family: var(--font-mono);
    color: var(--border-color);
    font-size: 0.75rem;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   Services Section
   ═══════════════════════════════════════ */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-md);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.service-card h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   Product Section
   ═══════════════════════════════════════ */

.product-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: var(--space-md);
    max-width: 500px;
}

.product-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 15px var(--glow-green);
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--accent-cyan);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--accent-cyan);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.link-arrow {
    transition: transform 0.3s ease;
}

.product-link:hover .link-arrow {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════
   Contact Section
   ═══════════════════════════════════════ */

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.email-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--accent-cyan);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.email-link:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--glow-cyan);
    text-shadow: 0 0 10px var(--glow-cyan);
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.domain {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   Accessibility
   ═══════════════════════════════════════ */

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

    html {
        scroll-behavior: auto;
    }
}

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

/* ═══════════════════════════════════════
   Mobile Optimizations
   ═══════════════════════════════════════ */

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .terminal-window {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .terminal-content {
        padding: var(--space-sm);
    }

    .service-card,
    .product-card {
        padding: var(--space-sm);
    }
}
