/* ============================================= */
/* 1. RETRO TV THEME - STYLES & VARIABLES      */
/* ============================================= */
:root {
    --color-black: #0a0a0a;
    --color-white: #e5e5e5;
    --color-gray: #a0a0a0;
    --color-dark-gray: #1f1f1f;
    --border-color: rgba(229, 229, 229, 0.5);

    --font-heading: 'Major Mono Display', monospace;
    --font-body: 'Share Tech Mono', monospace;
}

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

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

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================= */
/* TV SCREEN & IMAGE EFFECTS                     */
/* ============================================= */
body::before { /* Vignette Effect */
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    box-shadow: inset 0 0 12rem rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 1001;
}

#tv-static-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: url(https://i.giphy.com/media/l1J9s_a6gOA4zt4I0/giphy.gif);
    background-size: cover;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1000;
    animation: flicker 0.15s infinite;
}

#scan-lines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 75%, rgba(0,0,0,0.6));
    background-size: 100% 4px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1002;
}

/* All images on the page get the grayscale treatment */
img {
    filter: grayscale(100%) contrast(1.2);
}

@keyframes flicker {
  0% { opacity: 0.04; }
  50% { opacity: 0.08; }
  100% { opacity: 0.04; }
}

/* ============================================= */
/* GENERAL STYLING                             */
/* ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 { font-size: 3rem; letter-spacing: 2px; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; color: var(--color-gray); }
a { color: var(--color-white); text-decoration: none; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Reveal on Scroll Animation (Retro Version) */
.reveal {
    opacity: 0;
    filter: blur(5px);
    transition: opacity 1s ease, filter 1s ease;
}
.reveal.visible { opacity: 1; filter: blur(0); }

/* ============================================= */
/* HEADER & NAVIGATION                         */
/* ============================================= */
.main-header {
    position: fixed;
    width: 100%; z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.9);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.main-nav { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.logo span { color: #f00; /* Hidden unless Easter Egg is active */ display: none; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-heading); font-size: 1rem; }

/* Mobile Navigation Toggle */
.mobile-nav-toggle { display: none; /* Hidden on desktop */ }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ============================================= */
/* HERO & SLIDER                               */
/* ============================================= */
.hero-section { height: 100vh; min-height: 600px; position: relative; overflow: hidden; }
.hero-slider { width: 100%; height: 100%; }
.slide {
    width: 100%; height: 100%; position: absolute;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide::before { /* Dark overlay for text readability */
    content: ''; position: absolute; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

/* TV Channel Change Glitch Effect */
.tv-glitch {
    animation: glitch-effect 0.4s;
}
@keyframes glitch-effect {
  0% { transform: scale(1); opacity: 1; }
  25% { transform: scale(1.1, 0.9) skewX(-15deg); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; filter: contrast(2); }
  75% { transform: scale(0.95, 1.05) skewY(10deg); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.slide-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin: 0 auto; }
.slide-content .typed-cursor { font-size: 3rem; color: var(--color-white); animation: blink 0.7s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.slide-content p { font-size: 1.1rem; color: var(--color-white); }


/* ============================================= */
/* SECTIONS & CARDS                            */
/* ============================================= */
section { padding: 5rem 0; }
.trust-section .feature img { height: 50px; margin-bottom: 1rem; filter: grayscale(1) invert(1) brightness(1.5); }
.services-section { background-color: var(--color-dark-gray); }

.services-grid, .blog-grid, .process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card, .blog-post, .step {
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    transition: background-color 0.3s;
}
.service-card:hover, .blog-post:hover { background-color: #111; }
.service-card-img, .blog-post-img, .step-image img {
    width: 100%; height: 200px; object-fit: cover;
    margin-bottom: 1rem; filter: grayscale(1) contrast(1.1);
}

/* CTA & Form */
.cta-section { background: var(--color-dark-gray); text-align: center; }
.appointment-form { margin-top: 2rem; max-width: 600px; margin-left:auto; margin-right:auto; }
.appointment-form input, .appointment-form select, .appointment-form textarea {
    width: 100%; padding: 0.8rem; border: 2px solid var(--border-color);
    background-color: var(--color-black); color: var(--color-white);
    font-family: var(--font-body); font-size: 1rem; margin-bottom: 1rem;
}

/* Testimonials */
.testimonial blockquote { border-left: 2px solid var(--color-white); padding-left: 1.5rem; }
.testimonial cite img { border: 2px solid var(--color-white); border-radius: 0; width: 50px; height: 50px; }

/* Service Areas */
.area-list ul { list-style: "» "; column-count: 3; }
.area-list li { padding: 0.2rem 0; color: var(--color-gray); }

/* ============================================= */
/* FOOTER                                      */
/* ============================================= */
.main-footer-section { background-color: #000; border-top: 2px solid var(--border-color); padding: 4rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-bottom { border-top: 2px solid var(--border-color); padding-top: 2rem; text-align: center; }
.footer-logo { display: none; } /* Hide the image footer logo */

/* ============================================= */
/* RESPONSIVE & MOBILE MENU                      */
/* ============================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .footer-grid, .area-list ul { grid-template-columns: 1fr; column-count: 1; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 70%; height: 100vh;
        background: var(--color-black);
        flex-direction: column; justify-content: center; align-items: center;
        gap: 3rem; padding: 2rem;
        transition: right 0.5s ease-in-out;
        border-left: 2px solid var(--border-color);
    }
    .nav-links.nav-open { right: 0; }
    
    .mobile-nav-toggle {
        display: block; position: relative; z-index: 999;
        background: none; border: none; cursor: pointer;
    }
    .hamburger-box { width: 30px; height: 24px; display: inline-block; position: relative; }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 30px; height: 3px; background-color: var(--color-white);
        position: absolute; right: 0; transition: transform 0.3s ease;
    }
    .hamburger-inner { top: 50%; transform: translateY(-50%); }
    .hamburger-inner::before, .hamburger-inner::after { content: ''; }
    .hamburger-inner::before { top: -10px; }
    .hamburger-inner::after { bottom: -10px; }

    /* Hamburger animation */
    .mobile-nav-toggle.nav-open .hamburger-inner { transform: rotate(45deg); }
    .mobile-nav-toggle.nav-open .hamburger-inner::before { top: 0; transform: rotate(90deg); }
    .mobile-nav-toggle.nav-open .hamburger-inner::after { bottom: 0; transform: rotate(90deg); }
}