/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Colors */
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    
    /* Neon Colors */
    --neon-red: #ff3366;
    --neon-blue: #00f3ff;
    --neon-orange: #ff6600; /* Amplifier glow */
    --neon-purple: #b026ff;
    
    /* Fonts */
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & GLOBAL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: clip;
    line-height: 1.6;
    width: 100%;
    position: relative;
}

/* Overlay Grain / Noise for classic analog feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Neon Text Effects */
.glow-red {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 40px var(--neon-red);
}

.glow-blue {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo .neon-text {
    color: var(--neon-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.5);
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: var(--transition-fast);
    box-shadow: 0 0 8px var(--neon-blue);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* =========================================
   SECTIONS (SPA)
   ========================================= */
#main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.page-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.page-section.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#home.active {
    padding-top: 0;
    overflow: visible;
    display: block;
}

.section-bg, .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: brightness(0.85);
}

/* Overlay for legibility without hiding the image */
.section-bg::after, .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.4);
}

/* =========================================
   HERO / HOME
   ========================================= */
.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Amplifier Knob Detail */
.amp-knob-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.amp-knob {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #444, #111);
    border: 2px solid #333;
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.8),
        0 10px 15px rgba(0,0,0,0.5),
        0 0 15px rgba(255, 102, 0, 0.2); /* Orange glow */
    position: relative;
}

.knob-marker {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background: var(--neon-orange);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--neon-orange);
}

.knob-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.spin-animation {
    animation: rotate-knob 4s infinite alternate ease-in-out;
}

@keyframes rotate-knob {
    0% { transform: rotate(-45deg); }
    100% { transform: rotate(135deg); }
}

/* =========================================
   CONTENT SECTIONS
   ========================================= */
.flex-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.flex-row.reverse {
    justify-content: flex-end;
}

.text-col {
    max-width: 600px;
    background: rgba(10, 10, 10, 0.7);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition-slow);
}

.active .text-col {
    transform: translateY(0);
    opacity: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.neon-border-bottom {
    border-bottom: 2px solid var(--neon-blue);
    padding-bottom: 5px;
    box-shadow: 0 5px 5px -5px var(--neon-blue);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
    color: #ddd;
}

.feature-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    color: var(--neon-red);
    font-size: 0.8rem;
    top: 4px;
    text-shadow: 0 0 5px var(--neon-red);
}

/* =========================================
   HOME SERVICES GRID
   ========================================= */
.home-services-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.home-services-grid.visible {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.home-service-card {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.home-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
    border-color: var(--accent-red);
}

.home-service-card .card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform var(--transition-slow);
}

.home-service-card:hover .card-bg {
    transform: scale(1.05);
}

.home-service-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.2) 100%);
    z-index: 1;
}

.home-service-card h3 {
    position: relative;
    z-index: 2;
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-service-card p {
    position: relative;
    z-index: 2;
    color: #ccc;
    font-size: 0.9rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-container {
    width: 100%;
    padding-top: 2rem;
}

.contact-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 2.5rem;
    padding: 3rem;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--neon-purple);
    border-radius: 8px;
    transition: var(--transition-fast);
    background: rgba(176, 38, 255, 0.1);
    font-weight: 600;
}

.contact-main-btn:hover {
    background: rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.4);
    transform: translateY(-5px);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Vinyl Detail */
.vinyl-decoration {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: repeating-radial-gradient(#111 0, #111 2px, #222 3px, #222 4px);
    margin-top: auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--neon-red);
    border-radius: 50%;
    border: 3px solid #111;
}

.vinyl-center::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.spin-animation-slow {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        border-left: 1px solid rgba(255,255,255,0.1);
        z-index: 55;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 60;
    }

    .mobile-menu-btn.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .mobile-menu-btn.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    /* Navbar responsive */
    .navbar {
        padding: 0.8rem 1rem;
        overflow: visible;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    /* Hide desktop nav links on mobile (hamburger replaces them) */
    nav .nav-links:not(.nav-active) {
        display: none;
    }
    .hero-title {
        font-size: 1.8rem;
    }

    /* Inner pages: stack layout vertically and remove fixed height */
    .page-section {
        align-items: flex-start;
        padding-top: 90px;
        min-height: 100vh;
    }

    .flex-row,
    .flex-row.reverse {
        flex-direction: column;
        justify-content: flex-start;
    }

    .text-col {
        padding: 1.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        transform: none;
        opacity: 1;
    }

    /* Make section title smaller so it doesn't overflow */
    .section-title {
        font-size: 1.6rem;
        word-break: break-word;
        hyphens: auto;
    }

    .section-desc {
        font-size: 1rem;
    }

    .feature-list li {
        font-size: 0.95rem;
    }

    /* Contact section */
    .contact-center {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .contact-main-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    /* Section container full width on mobile */
    .section-content {
        width: 100%;
        padding: 0 1rem;
    }

    /* Mobile Services Grid */
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 95%;
        /* Adjusted positioning slightly to avoid overlapping title entirely */
        transform: translate(-50%, -45%);
    }

    .home-services-grid.visible {
        transform: translate(-50%, -50%);
    }

    .home-service-card {
        height: 150px;
        padding: 15px 10px;
    }

    .home-service-card h3 {
        font-size: 0.75rem;
        margin-bottom: 2px;
        letter-spacing: 0.5px;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2;
    }

    .home-service-card p {
        font-size: 0.7rem;
    }
}
