/*  
  MAIN STYLESHEET - Millburn Garage Doors Crew
  Theme: CyberGate Precision (Neon Teal / Cyber-Cobalt)
*/

:root {
    --bg-void: #081423;
    --bg-slate: #152030;
    --bg-slate-high: #1f2b3b;
    --accent-teal: #64ffda;
    --accent-teal-soft: rgba(100, 255, 218, 0.1);
    --accent-teal-glow: rgba(100, 255, 218, 0.4);
    --text-primary: #ffffff;
    --text-muted: #bacac3;
    --text-gray: #d7e3f9;
    --border-glass: rgba(100, 255, 218, 0.15);
    --space-header: 120px;
    --space-sect: 100px;
    --radius-md: 0.375rem;
    --transition-base: 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Base Styles */
body {
    background-color: var(--bg-void);
    color: var(--text-gray);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .display-lg, .display-md {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.text-neon { color: var(--accent-teal); }
.text-void { color: var(--bg-void); }
.bg-neon { background-color: var(--accent-teal); }
.bg-void { background-color: var(--bg-void); }
.bg-slate { background-color: var(--bg-slate); }
.ls-wide { letter-spacing: 0.2em; }
.rotate-slow { animation: rotate 10s linear infinite; }

@keyframes rotate { from {transform: rotate(0deg)} to {transform: rotate(360deg)} }

/* Navbar - Elite Glassmorphism */
.aura-nav {
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 1rem 0;
}

.aura-nav.nav-scrolled {
    background: rgba(8, 20, 35, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.15);
    padding: 0.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.logo-wrapper {
    background: #fff !important;
    padding: 8px 18px !important; /* Decreased padding for more refined look */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    max-height: 70px; /* Reduced from 85px for better proportion */
    mix-blend-mode: multiply;
    filter: contrast(1.1) brightness(1.02);
    width: auto;
    transition: all 0.4s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    margin-right: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--accent-teal) !important;
    opacity: 1;
}

.nav-scrolled .nav-link {
    opacity: 1;
}

.footer-img {
    max-height: 85px !important;
}

.custom-toggler {
    border: none;
    padding: 0;
}

.custom-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.inner-bar {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--accent-teal);
    display: block;
    transition: all 0.3s ease;
}

.nav-scrolled .navbar-toggler-icon::before,
.nav-scrolled .navbar-toggler-icon::after,
.nav-scrolled .inner-bar {
    background: var(--accent-teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: var(--transition-base);
    box-shadow: 0 0 10px var(--accent-teal);
}

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

/* Buttons */
.btn-neon {
    background: var(--accent-teal);
    color: var(--bg-void);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 2rem;
    transition: var(--transition-base);
}

.btn-neon:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-teal-glow);
}

.btn-neon-lg {
    background: linear-gradient(45deg, #fff, var(--accent-teal));
    color: var(--bg-void);
    font-weight: 700;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
}

.btn-neon-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-teal-glow);
}

.btn-outline-ghost {
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 1.25rem 3rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.btn-outline-ghost:hover {
    background: var(--accent-teal-soft);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Glassmorphism Components */
.glass-card {
    background: rgba(21, 32, 48, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    transition: var(--transition-base);
}

/* Hero Section - Elite Precision HUD */
.hero-section {
    padding: 180px 0 120px; /* Increased top padding from 120px to 180px to Clear fixed navbar */
    min-height: 90vh;
    background: radial-gradient(circle at 70% 30%, rgba(100, 255, 218, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 20% 70%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(100, 255, 218, 0.02) 50%,
        transparent
    );
    background-size: 100% 3px;
    animation: scanMove 8s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.hologram-aura {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(100, 255, 218, 0.1) 0%,
        transparent 70%
    );
    filter: blur(100px);
    z-index: 1;
    animation: auraFloat 20s infinite ease-in-out;
}

@keyframes auraFloat {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-50px, -20px); }
}

.tactical-hud-badge {
    background: rgba(100, 255, 218, 0.08); /* Boosted contrast */
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 100px; /* Fully rounded modern pill */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pulse-node {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: signal 1s infinite;
}

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

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
}

.glitch-text::before {
    left: 1px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -1px;
    text-shadow: -1px 0 #00fff9, 1px 1px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(62px, 9999px, 42px, 0); }
    40% { clip: rect(16px, 9999px, 78px, 0); }
    60% { clip: rect(58px, 9999px, 13px, 0); }
    80% { clip: rect(93px, 9999px, 64px, 0); }
    100% { clip: rect(45px, 9999px, 85px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(48px, 9999px, 23px, 0); }
    40% { clip: rect(12px, 9999px, 56px, 0); }
    60% { clip: rect(81px, 9999px, 47px, 0); }
    80% { clip: rect(34px, 9999px, 92px, 0); }
    100% { clip: rect(56px, 9999px, 11px, 0); }
}

/* HUD Buttons */
.btn-cyber-neon {
    background: var(--accent-teal);
    color: var(--bg-void);
    border: none;
    padding: 1.25rem 2.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: var(--transition-base);
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.3);
}

.btn-cyber-neon:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(100, 255, 218, 0.5);
    background: #fff;
}

.btn-outline-hologram {
    border: 1px solid var(--accent-teal);
    color: var(--accent-teal);
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    transition: var(--transition-base);
    background: rgba(100, 255, 218, 0.05);
}

.btn-outline-hologram:hover {
    background: var(--accent-teal);
    color: var(--bg-void);
}

/* Hologram Projection */
.hologram-projection-container {
    position: relative;
    perspective: 2000px;
}

.projection-light {
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse at center, var(--accent-teal-soft) 0%, transparent 70%);
    transform: translateX(-50%) rotateX(60deg);
    filter: blur(20px);
    z-index: 1;
}

.hero-image-frame {
    position: relative;
    z-index: 5;
    transform: rotateY(-15deg) rotateX(5deg);
    border: 1px solid rgba(100, 255, 218, 0.4);
    animation: heroFloat 6s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                inset 0 0 20px rgba(100, 255, 218, 0.1);
}

@keyframes heroFloat {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-10deg) rotateX(8deg) translateY(-20px); }
}

.frame-coord {
    position: absolute;
    font-size: 10px;
    font-family: monospace;
    color: var(--accent-teal);
    opacity: 0.5;
}

.frame-coord.top-left { top: 10px; left: 10px; }
.frame-coord.bottom-right { bottom: 10px; right: 10px; }

.floating-telemetry {
    position: absolute;
    padding: 1rem;
    z-index: 10;
}

.telemetry-1 { top: -10%; right: -10%; border-right: 3px solid var(--accent-teal); }
.telemetry-2 { bottom: 10%; left: -15%; border-left: 3px solid var(--accent-teal); }

/* About Section - Style #15 Split Kinetic */
.about-section { padding: var(--space-sect) 0; }

.kinetic-brand-text {
    position: absolute;
    top: 10%;
    left: 0;
    font-size: 15vw;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-slate-high);
}

/* Services Grid - Style #15 Perspective */
.services-section { padding: var(--space-sect) 0; }

.service-card:hover {
    transform: perspective(1000px) translateZ(30px) rotateX(5deg);
    border-color: var(--accent-teal);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px var(--accent-teal-soft);
}

.service-icon i {
    text-shadow: 0 0 15px var(--accent-teal);
}

/* Detailed Sections */
.detail-section { padding: var(--space-sect) 0; background: var(--bg-void); }

.scrolling-data-grid .data-tile:hover {
    background: var(--accent-teal-soft);
}

.ticker-section { z-index: 10; cursor: default; }
.ticker-wrap {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.detail-section-2 { padding: var(--space-sect) 0; }
.letterbox-img-container img {
    border: 2px solid var(--border-glass);
    transition: var(--transition-base);
}
.letterbox-img-container:hover img {
    border-color: var(--accent-teal);
    box-shadow: 0 0 30px var(--accent-teal-glow);
}

/* CTA Cyber Grid */
.cyber-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.btn-massive-neon {
    background: var(--accent-teal);
    color: var(--bg-void);
    padding: 2rem 4rem;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 0;
    border: 4px solid var(--accent-teal);
    transition: var(--transition-base);
}

.btn-massive-neon:hover {
    background: transparent;
    color: var(--accent-teal);
}

/* Diagnostic Bento Grid */
.diagnostic-card {
    transition: var(--transition-base);
    border: 1px solid var(--border-glass);
}

.diagnostic-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.diag-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: signal 1.5s infinite;
}

.diag-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1rem;
}

.progress-diag, .diag-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
}

.border-neon-soft {
    border: 1px solid var(--accent-teal-soft) !important;
}

.featured-diag {
    background: linear-gradient(135deg, rgba(8, 20, 35, 0.8), rgba(21, 32, 48, 0.4));
}
.process-node {
    position: relative;
    border: 1px solid var(--border-glass);
    transition: var(--transition-base);
    background: rgba(21, 32, 48, 0.4);
}

.process-node:hover {
    border-color: var(--accent-teal);
    background: var(--accent-teal-soft);
    transform: translateY(-5px);
}

.node-glow {
    width: 20px;
    height: 2px;
    background: var(--accent-teal);
    box-shadow: 0 0 10px var(--accent-teal);
    margin: 0 auto;
    opacity: 0;
    transition: var(--transition-base);
}

.process-node:hover .node-glow {
    opacity: 1;
    width: 40px;
}

/* Cyber Frame Wrapper */
.cyber-frame-wrapper {
    padding: 20px;
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-teal);
    z-index: 10;
}

.frame-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.frame-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-top: none;
    border-left: none;
}

.image-mask {
    position: relative;
    border: 1px solid var(--border-glass);
}

.main-frame-img {
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition-base);
}

.cyber-frame-wrapper:hover .main-frame-img {
    filter: brightness(1) contrast(1);
    transform: scale(1.02);
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(100,255,218,0.05) 50%, transparent);
    background-size: 100% 4px;
    animation: scanMove 4s linear infinite;
    pointer-events: none;
}

@keyframes scanMove {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

.floating-badge-tech {
    position: absolute;
    bottom: 40px;
    left: -20px;
    z-index: 15;
    border-left: 4px solid var(--accent-teal);
}

.opacity-05 { opacity: 0.05 !important; }

/* Service Areas */
.area-chip {
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.area-chip:hover {
    background: var(--accent-teal);
    color: var(--bg-void);
    transform: translateY(-5px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* FAQ Accordion */
.mechanical-accordion .accordion-item {
    border: 1px solid var(--border-glass);
    background: rgba(21, 32, 48, 0.4);
    overflow: hidden;
}

.accordion-button {
    background: transparent !important;
    color: var(--text-primary) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 1.5rem;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body { padding: 0 1.5rem 1.5rem; }

/* Contact Hub */
.node-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-neon-soft { background: var(--accent-teal-soft); }

.live-signal {
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-teal);
    animation: signal 1.5s infinite;
}

@keyframes signal {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7); }
    70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

/* Footer */
.massive-brand {
    font-size: 10vw;
    font-weight: 900;
    line-height: 0.8;
}

.link-white { color: var(--text-primary); text-decoration: none; }
.link-white:hover { color: var(--accent-teal); }

/* Utilities */
.py-header { padding: 100px 0; }
.pt-header { padding-top: 100px !important; }
.mb-header { margin-bottom: 60px; }
.max-w-500 { max-width: 500px; }
.link-neon { color: var(--accent-teal); text-decoration: none; font-weight: 700; transition: var(--transition-base); }
.link-neon:hover { color: #fff; padding-left: 5px; }
.shadow-strong { box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.border-teal { border: 1px solid var(--border-glass); }

/* Responsive */
@media (max-width: 991px) {
    :root { --space-header: 80px; }
    .display-lg { font-size: 4rem; }
    .hero-section { text-align: center; }
    .max-w-500 { max-width: 100%; }
    .hero-orbit-container { margin-top: 50px; }
    .massive-brand { font-size: 15vw; }
}

@media (max-width: 768px) {
    .display-lg { font-size: 3.5rem; }
    .py-header { padding: 60px 0; }
    .btn-massive-neon { padding: 1.5rem 2rem; font-size: 1.2rem; width: 100%; }
}
