/* --- CSS Variables --- */
:root {
    --bg-dark: #0a0a12;
    --bg-deep: #1a0a2a;
    --neon-purple: #B026FF;
    --neon-cyan: #00f3ff;
    --text-main: #f0f0f0;
    --text-muted: #b3b3cc;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* --- Volumetric Ambient Lighting --- */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.light-purple {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: var(--neon-purple);
    opacity: 0.15;
}

.light-cyan {
    bottom: -10%; right: -10%;
    width: 60vw; height: 60vw;
    background: var(--neon-cyan);
    opacity: 0.12;
}

.light-purple-alt {
    top: 40%; left: 40%;
    width: 40vw; height: 40vw;
    background: var(--neon-purple);
    opacity: 0.1;
}

/* --- Vaporwave Background Grid --- */
.vapor-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-deep) 100%);
    z-index: -2;
    overflow: hidden;
    will-change: transform;
}

.vapor-grid {
    position: absolute;
    bottom: -50%; left: -50%;
    width: 200%; height: 200%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(176, 38, 255, 0.15) 2px, transparent 2px);
    background-size: 60px 60px;
    transform-origin: top center;
    /* Hardware accelerated translation instead of background-position */
    animation: gridMove 3s linear infinite;
    will-change: transform;
}

.vapor-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark) 20%, transparent 100%);
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(75deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(75deg) translateY(60px); }
}

/* --- Navbar (Advanced Glassmorphism) --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
    will-change: background, padding;
}

.navbar.scrolled {
    background: rgba(15, 10, 25, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-purple);
}

.nav-brand span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 10px;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.nav-socials-desktop { display: flex; gap: 15px; }

.nav-socials-desktop a, .nav-socials-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
}

.nav-socials-desktop a svg, .nav-socials-mobile a svg {
    width: 22px; height: 22px;
    transition: transform 0.3s;
    will-change: transform;
}

.nav-socials-desktop a:hover svg, .nav-socials-mobile a:hover svg {
    stroke: var(--neon-purple);
    filter: drop-shadow(0 0 8px var(--neon-purple));
    transform: scale(1.1);
}

.nav-socials-mobile { display: none; }

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px; height: 2px;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s;
    margin: 0 auto;
    will-change: transform, opacity;
}

/* --- Hero Section & Glitch Effect --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.glitch-wrapper {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

/* Glitch Animation */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    will-change: transform, clip-path;
}

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--neon-purple);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%); transform: translate(0); }
    20% { clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%); transform: translate(-2px, 2px); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 15%, 0 15%); transform: translate(2px, -2px); }
    60% { clip-path: polygon(0 80%, 100% 80%, 100% 81%, 0 81%); transform: translate(-2px, 0); }
    80% { clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%); transform: translate(2px, 2px); }
    100% { clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%); transform: translate(0); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Button with Scanline Hover */
.btn-neon {
    position: relative;
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border: 2px solid var(--neon-purple);
    border-radius: 4px;
    background: rgba(176, 38, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    will-change: transform;
}

/* Glow layer to avoid animating box-shadow */
.btn-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 15px rgba(0, 243, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
    z-index: -1;
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0, 243, 255, 0.3) 3px, rgba(0, 243, 255, 0.3) 4px
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    will-change: transform, opacity;
}

.btn-neon:hover {
    background: var(--neon-purple);
    border-color: var(--neon-cyan);
    transform: scale(1.05);
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.btn-neon:hover::before, .btn-neon:hover::after {
    opacity: 1;
}

.btn-neon:hover::after {
    animation: scanlineMove 1s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* --- Sections Common --- */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

/* --- Experience Section --- */
.experience { text-align: center; }

.lead-text {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* --- Services Grid & Floating Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Advanced Glassmorphism & Gradient Borders */
.service-card {
    background: rgba(15, 10, 25, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1px Glowing Gradient Border via Mask */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hover Glow Layer (Zero Layout Thrashing) */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 243, 255, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
    will-change: opacity;
}

/* Floating Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 5.5s ease-in-out infinite 1s; }
.float-3 { animation: float 6.5s ease-in-out infinite 0.5s; }
.float-4 { animation: float 5s ease-in-out infinite 1.5s; }

.service-card:hover {
    transform: scale(1.03) !important; 
    animation-play-state: paused;
}

.service-card:hover::after {
    opacity: 1;
}

.icon-wrapper {
    width: 60px; height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(176, 38, 255, 0.1);
    border-radius: 50%;
    color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.icon-wrapper.cyan-icon {
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.icon-wrapper svg { width: 30px; height: 30px; }

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Info & Hours Section --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.address-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
}

.address-box svg {
    width: 30px; height: 30px;
    color: var(--neon-purple);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px var(--neon-purple));
}

.address-box h4, .hours-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.address-box p { color: var(--text-muted); }

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.hours-list li.highlight {
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 243, 255, 0.05);
    margin: 10px 0;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

/* Google Maps Custom Dark Mode */
.map-container {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.1);
    background: #000;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Inverts colors and shifts hue to match Cyberpunk aesthetic */
    filter: invert(90%) hue-rotate(180deg) contrast(1.1) brightness(0.8);
    will-change: transform;
}

/* --- Footer --- */
.footer {
    background: rgba(5, 2, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(176, 38, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s;
    will-change: transform;
}

.footer-socials a svg { width: 24px; height: 24px; }

.footer-socials a:hover {
    background: var(--neon-purple);
    transform: translateY(-3px);
}

.footer-credit {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 10px;
}

.footer-credit:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Optimization --- */
@media (max-width: 992px) {
    .info-grid { grid-template-columns: 1fr; gap: 40px; }
    .glitch-wrapper { font-size: 3.5rem; }
    section { padding: 80px 0; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .nav-socials-desktop { display: none; }
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100vh;
        background: rgba(10, 5, 20, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: -1;
        will-change: transform;
    }
    
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; padding: 15px 30px; width: 100%; text-align: center; }
    .nav-socials-mobile { display: flex; gap: 20px; margin-top: 30px; }
    
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--neon-cyan); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--neon-cyan); }

    .glitch-wrapper { font-size: 2.8rem; }
    .hero p { font-size: 1rem; padding: 0 10px; }
    
    .hours-list li { flex-direction: column; gap: 5px; text-align: center; }
    .address-box { flex-direction: column; align-items: center; text-align: center; }
}