/* =============================================
   REPAIR SERVICE - Alchemy Forum Style
   ============================================= */

:root {
    /* Dark, moody palette with gold accent */
    --bg-primary: #0a0a0c;
    --bg-secondary: #111114;
    --bg-tertiary: #18181c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --accent: #d4af37;
    --accent-dim: rgba(212, 175, 55, 0.15);
    --accent-glow: rgba(212, 175, 55, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --success: #34c759;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-serif: 'Instrument Serif', serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.6rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-dim);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 0;
    position: relative;
    background: 
        radial-gradient(circle at 20% 50%, var(--accent-dim) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   CONTACT INFO
   ============================================= */

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* =============================================
   SCHEMATIC PREVIEW (Legacy - can be removed)
   ============================================= */

.schematic-preview {
    width: 100%;
    max-width: 450px;
    margin: 2rem auto 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 100px var(--accent-dim);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

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

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
    letter-spacing: 0.05em;
}

.preview-content {
    padding: 2rem;
    background: 
        radial-gradient(circle at 20% 80%, var(--accent-dim) 0%, transparent 50%),
        var(--bg-secondary);
}

.schematic-svg {
    width: 100%;
    height: auto;
    color: var(--accent);
}

.schematic-svg .label {
    font-family: var(--font-mono);
    font-size: 14px;
    fill: var(--text-secondary);
}

.schematic-svg .label.out {
    font-size: 8px;
    fill: var(--accent);
}

.schematic-svg .component-label {
    font-family: var(--font-mono);
    font-size: 10px;
    fill: var(--text-muted);
}

.schematic-svg .component {
    animation: component-draw 3s ease-in-out infinite;
}

.schematic-svg .op-amp { animation-delay: 0s; }
.schematic-svg .resistor { animation-delay: 0.3s; }
.schematic-svg .capacitor { animation-delay: 0.6s; }
.schematic-svg .feedback { animation-delay: 0.9s; }
.schematic-svg .output { animation-delay: 1.2s; }

@keyframes component-draw {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-display);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
    padding: 5rem 3rem;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    font-weight: 700;
}

.section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* =============================================
   FEATURES GRID
   ============================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 0 40px var(--accent-dim);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 60px var(--accent-dim);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-weight: 600;
}

.feature-card p {
    text-align: left;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* =============================================
   CONTACT FORM
   ============================================= */

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form button {
    align-self: center;
    margin-top: 1rem;
}

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

footer {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.05em;
}

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

@media (max-width: 1024px) {
    .main {
        padding: 3rem 2rem;
    }
    
    nav {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    nav {
        padding: 1rem 1.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .schematic-preview {
        max-width: 100%;
    }
}

/* =============================================
   SELECTION & SCROLLBAR
   ============================================= */

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
