/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --bg-color: #F8F8F8;
    --text-color: #111111;
    --text-light: #555555;
    --accent-color: #4CAF50;
    /* Emerald Green */
    --accent-hover: #388E3C;
    --white: #FFFFFF;
    --border-color: #E0E0E0;

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;

    /* Pixel Art / Digital Theme */
    --pixel-size: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.mono-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-align: center;
    display: block;
}

.mono-title::before,
.mono-title::after {
    content: " ";
    display: inline-block;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
/* Pixel Button */
.btn-pixel {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--accent-color);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-pixel:hover {
    transform: translateY(-2px);
    box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.2), 0 4px 0 0 rgba(0, 0, 0, 0.1);
}

.btn-pixel:active {
    transform: translateY(2px);
    box-shadow: inset 4px 4px 0px 0px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 248, 248, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    /* Ensure header is above everything, including pixels */
    padding: 20px 0;
    /* Pixelated Border Bottom */
    background-image: linear-gradient(to right, var(--accent-color) 50%, transparent 50%);
    background-size: 8px 4px;
    /* 4px green, 4px transparent */
    background-repeat: repeat-x;
    background-position: bottom;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    image-rendering: pixelated;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 700;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--white);
    position: relative;
}

.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 8px 8px 0 0 var(--accent-color);
    transform: translate(-4px, -4px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =========================================
   8. CONTACT / FOOTER
   ========================================= */
.contact {
    padding: var(--section-padding);
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-actions {
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-info {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 40px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.8rem;
    color: #999;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.legal-mentions {
    margin-top: 20px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-light);
}

.legal-mentions p {
    margin-bottom: 5px;
}

.legal-mentions strong {
    color: var(--text-color);
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* =========================================
   10. DYNAMIC PIXEL BACKGROUND (CANVAS)
   ========================================= */
#pixel-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* On top of everything */
    pointer-events: none;
    /* Allow clicks to pass through */
}

/* Ensure content is visible above pixels */
section {
    position: relative;
    z-index: 2;
}

/* =========================================
   11. LIVE PAGE
   ========================================= */
.live-section {
    padding: 150px 20px 50px;
    /* Top padding to account for fixed header */
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 4px dotted var(--accent-color);
    background: #000;
    padding: 10px;
    /* Add some spacing between border and video */
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.live-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.live-info h2 {
    margin-bottom: 10px;
}

.live-info p {
    color: var(--text-light);
}