/* Logix Electric - Custom CSS Variables and Styles */

/* CSS Custom Properties (Design System) */
:root {
    /* Core colors inspired by Logix Electric branding */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 13%, 18%);
    
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 13%, 18%);
    
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(220, 13%, 18%);
    
    /* Electric green primary from logo */
    --primary: hsl(75, 85%, 55%);
    --primary-foreground: hsl(220, 13%, 18%);
    
    /* Professional gray secondary */
    --secondary: hsl(220, 13%, 95%);
    --secondary-foreground: hsl(220, 13%, 18%);
    
    /* Muted tones for backgrounds */
    --muted: hsl(220, 13%, 97%);
    --muted-foreground: hsl(220, 9%, 46%);
    
    /* Accent for highlights */
    --accent: hsl(75, 85%, 55%);
    --accent-foreground: hsl(220, 13%, 18%);
    
    /* Industrial orange for warnings/alerts */
    --destructive: hsl(12, 84%, 55%);
    --destructive-foreground: hsl(0, 0%, 98%);
    
    --border: hsl(220, 13%, 91%);
    --input: hsl(220, 13%, 91%);
    --ring: hsl(75, 85%, 55%);
    
    /* Design system extensions */
    --electric-gradient: linear-gradient(135deg, hsl(75, 85%, 55%), hsl(75, 85%, 65%));
    --industrial-gradient: linear-gradient(135deg, hsl(220, 13%, 25%), hsl(220, 13%, 35%));
    --hero-gradient: linear-gradient(135deg, hsl(220, 13%, 18%), hsl(220, 13%, 28%));
    
    /* Shadows with electric accent */
    --shadow-electric: 0 10px 30px -10px hsla(75, 85%, 55%, 0.3);
    --shadow-industrial: 0 20px 40px -20px hsla(220, 13%, 18%, 0.4);
    
    /* Smooth transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius: 0.75rem;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --background: hsl(220, 13%, 18%);
        --foreground: hsl(0, 0%, 98%);
        
        --card: hsl(220, 13%, 20%);
        --card-foreground: hsl(0, 0%, 98%);
        
        --popover: hsl(220, 13%, 18%);
        --popover-foreground: hsl(0, 0%, 98%);
        
        --primary: hsl(75, 85%, 55%);
        --primary-foreground: hsl(220, 13%, 18%);
        
        --secondary: hsl(220, 13%, 25%);
        --secondary-foreground: hsl(0, 0%, 98%);
        
        --muted: hsl(220, 13%, 22%);
        --muted-foreground: hsl(220, 9%, 65%);
        
        --accent: hsl(75, 85%, 55%);
        --accent-foreground: hsl(220, 13%, 18%);
        
        --destructive: hsl(12, 84%, 55%);
        --destructive-foreground: hsl(0, 0%, 98%);
        
        --border: hsl(220, 13%, 25%);
        --input: hsl(220, 13%, 25%);
        --ring: hsl(75, 85%, 55%);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
.header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background-color: hsla(var(--background), 0.95);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.logo {
    height: 3rem;
    width: auto;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Navigation */
.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info {
    display: none;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    .contact-info {
        display: flex;
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: var(--primary);
}

.contact-icon {
    width: 1rem;
    height: 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Button Variants */
.btn-electric {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-electric);
}

.btn-electric:hover {
    background: hsl(75, 85%, 50%);
    box-shadow: 0 15px 40px -15px hsla(75, 85%, 55%, 0.4);
}

.btn-hero {
    background: var(--electric-gradient);
    color: var(--primary-foreground);
    font-weight: 600;
}

.btn-hero:hover {
    box-shadow: var(--shadow-electric);
    transform: scale(1.05);
}

.btn-cta {
    background: var(--electric-gradient);
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
}

.btn-cta:hover {
    box-shadow: var(--shadow-electric);
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid var(--input);
    background: var(--background);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background: hsl(220, 13%, 90%);
}

/* Button Sizes */
.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: calc(var(--radius) - 4px);
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    border-radius: calc(var(--radius) - 2px);
}

.btn-xl {
    height: 3.5rem;
    padding: 0 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius);
}

.btn-full {
    width: 100%;
}

/* Page Header */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Legal Content Pages */
.legal-content {
    padding: 3rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legal-text h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-text p {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.legal-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.legal-text a {
    color: var(--primary);
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

/* ⚡ ELECTRICAL SYNAPSE ANIMATIONS ⚡ */
/* Background animation container */
.electrical-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.3;
}

/* 🌌 GRAVITY PHYSICS ELECTRICAL NODES 🌌 */
/* Large gravity wells - attract smaller particles */
.electrical-node {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
}

/* Large nodes - gravity wells */
.electrical-node:nth-child(1) { 
    width: 16px; height: 16px;
    background: var(--primary);
    box-shadow: 0 0 40px var(--primary);
    top: 20%; left: 15%; 
    animation: gravity-well-orbit 20s linear infinite;
    animation-delay: 0s;
}
.electrical-node:nth-child(2) { 
    width: 14px; height: 14px;
    background: var(--primary);
    box-shadow: 0 0 35px var(--primary);
    top: 60%; left: 25%; 
    animation: gravity-well-orbit 18s linear infinite reverse;
    animation-delay: -5s;
}
.electrical-node:nth-child(3) { 
    width: 18px; height: 18px;
    background: var(--primary);
    box-shadow: 0 0 45px var(--primary);
    top: 30%; left: 70%; 
    animation: gravity-well-orbit 22s linear infinite;
    animation-delay: -10s;
}

/* Medium nodes - moderate gravity */
.electrical-node:nth-child(4) { 
    width: 10px; height: 10px;
    background: var(--primary);
    box-shadow: 0 0 25px var(--primary);
    top: 80%; left: 60%; 
    animation: medium-gravity-drift 15s ease-in-out infinite;
    animation-delay: -3s;
}
.electrical-node:nth-child(5) { 
    width: 12px; height: 12px;
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary);
    top: 45%; left: 85%; 
    animation: medium-gravity-drift 17s ease-in-out infinite reverse;
    animation-delay: -8s;
}
.electrical-node:nth-child(6) { 
    width: 8px; height: 8px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    top: 70%; left: 10%; 
    animation: small-gravity-orbit 12s linear infinite;
    animation-delay: -6s;
}

/* Electrical connections - neural pathways */
.electrical-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 1px;
    opacity: 0;
    animation: pulse-connection 6s ease-in-out infinite;
}

.electrical-connection:nth-child(7) {
    top: 25%; left: 20%; width: 200px; transform: rotate(25deg);
    animation-delay: 1s;
}
.electrical-connection:nth-child(8) {
    top: 55%; left: 30%; width: 150px; transform: rotate(-15deg);
    animation-delay: 3s;
}
.electrical-connection:nth-child(9) {
    top: 75%; left: 15%; width: 180px; transform: rotate(45deg);
    animation-delay: 5s;
}

/* 🌟 GRAVITY-AFFECTED PARTICLES 🌟 */
.electrical-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    z-index: 2;
}

/* Particles orbiting gravity wells */
.electrical-particle:nth-child(10) { 
    width: 4px; height: 4px;
    box-shadow: 0 0 10px var(--primary);
    top: 22%; left: 18%; 
    animation: orbit-gravity-well-1 8s linear infinite;
    animation-delay: 0s;
}
.electrical-particle:nth-child(11) { 
    width: 3px; height: 3px;
    box-shadow: 0 0 8px var(--primary);
    top: 62%; left: 28%; 
    animation: orbit-gravity-well-2 10s linear infinite reverse;
    animation-delay: -2s;
}
.electrical-particle:nth-child(12) { 
    width: 5px; height: 5px;
    box-shadow: 0 0 12px var(--primary);
    top: 32%; left: 73%; 
    animation: orbit-gravity-well-3 6s linear infinite;
    animation-delay: -4s;
}

/* Subtle lightning arc */
.electrical-arc {
    position: absolute;
    width: 100px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    opacity: 0;
    animation: lightning-arc 8s ease-in-out infinite;
    top: 35%;
    left: 50%;
    transform: rotate(-20deg);
}

/* 🔥 EPIC RARE LIGHTNING FLASH EFFECTS 🔥 */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: mega-lightning-flash 45s ease-in-out infinite;
}

.lightning-bolt-1 {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, transparent, var(--primary), var(--primary), transparent);
    box-shadow: 0 0 50px var(--primary), 0 0 100px var(--primary);
    transform: rotate(15deg) skewX(-5deg);
    opacity: 0;
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.1s;
}

.lightning-bolt-2 {
    position: absolute;
    top: 5%;
    right: 25%;
    width: 3px;
    height: 90%;
    background: linear-gradient(180deg, transparent, var(--primary), var(--primary), transparent);
    box-shadow: 0 0 40px var(--primary), 0 0 80px var(--primary);
    transform: rotate(-12deg) skewX(8deg);
    opacity: 0;
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.3s;
}

.lightning-bolt-3 {
    position: absolute;
    top: 15%;
    left: 60%;
    width: 2px;
    height: 70%;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary);
    transform: rotate(8deg) skewX(-3deg);
    opacity: 0;
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Lightning branch effects */
.lightning-branch {
    position: absolute;
    width: 2px;
    height: 30px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    opacity: 0;
}

.lightning-branch-1 {
    top: 40%;
    left: 23%;
    transform: rotate(45deg);
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.15s;
}

.lightning-branch-2 {
    top: 50%;
    right: 28%;
    transform: rotate(-60deg);
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.35s;
}

.lightning-branch-3 {
    top: 35%;
    left: 62%;
    transform: rotate(30deg);
    animation: lightning-cascade 45s ease-in-out infinite;
    animation-delay: 0.55s;
}

/* Screen flash overlay */
.screen-flash {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, hsla(75, 85%, 55%, 0.1), transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: screen-flash 45s ease-in-out infinite;
}

/* 🚀 STAR TREK ENTERPRISE EASTER EGG 🚀 */
.starship-easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    display: none;
}

.starship-enterprise {
    position: fixed;
    top: 50vh;
    left: -200px;
    width: 120px;
    height: 40px;
    transform: translateY(-50%) scaleX(0.1) scaleY(0.1);
    opacity: 0;
    z-index: 10000;
}

/* 🚀 AUTHENTIC ENTERPRISE NCC-1701 DESIGN 🚀 */
/* Primary Saucer Section */
.ship-saucer {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(ellipse, #f0f0f0, #d0d0d0, #b0b0b0);
    border-radius: 50%;
    top: 0px;
    left: 40px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.6);
    border: 1px solid #999;
}

/* Engineering Hull */
.ship-hull {
    position: absolute;
    width: 24px;
    height: 8px;
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0, #a0a0a0);
    border-radius: 4px;
    top: 28px;
    left: 48px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid #999;
}

/* Connecting Pylons */
.ship-pylon-1, .ship-pylon-2 {
    position: absolute;
    width: 3px;
    height: 12px;
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0);
    border-radius: 1px;
}

.ship-pylon-1 {
    top: 18px;
    left: 35px;
    transform: rotate(-15deg);
}

.ship-pylon-2 {
    top: 18px;
    left: 82px;
    transform: rotate(15deg);
}

/* Warp Nacelles */
.ship-nacelles {
    position: absolute;
    width: 28px;
    height: 6px;
    background: linear-gradient(135deg, #6bb6ff, #4a90e2, #357abd);
    border-radius: 3px;
    box-shadow: 0 0 12px #4a90e2, inset 0 1px 0 rgba(255,255,255,0.3);
    border: 1px solid #357abd;
}

.ship-nacelle-1 {
    top: 8px;
    left: 10px;
}

.ship-nacelle-2 {
    top: 8px;
    left: 82px;
}

/* Bridge on Saucer */
.ship-bridge {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffe55c, #ffd700, #e6c200);
    border-radius: 50%;
    top: 16px;
    left: 56px;
    box-shadow: 0 0 10px #ffd700, inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid #e6c200;
}

/* Enterprise Deflector */
.ship-deflector {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #00ff80, #00ff00, #00cc00);
    border-radius: 50%;
    top: 30px;
    left: 57px;
    box-shadow: 0 0 15px #00ff00;
    animation: deflector-pulse 2s ease-in-out infinite alternate;
}

/* Warp Engine Glows */
.ship-front-glow {
    position: absolute;
    width: 8px;
    height: 4px;
    background: radial-gradient(ellipse, #00ff80, #00ff00, #00cc00);
    border-radius: 50%;
    top: 9px;
    box-shadow: 0 0 20px #00ff00, 0 0 40px rgba(0,255,0,0.3);
    animation: nacelle-glow-pulse 1.5s ease-in-out infinite alternate;
}

.ship-front-glow.left {
    left: 8px;
}

.ship-front-glow.right {
    left: 104px;
}

.ship-back-glow {
    position: absolute;
    width: 10px;
    height: 4px;
    background: radial-gradient(ellipse, #ff8040, #ff6600, #cc4400);
    border-radius: 50%;
    top: 9px;
    box-shadow: 0 0 25px #ff6600, 0 0 50px rgba(255,102,0,0.4);
    animation: engine-glow-pulse 1.8s ease-in-out infinite alternate;
}

.ship-back-glow.left {
    left: 6px;
}

.ship-back-glow.right {
    left: 104px;
}

@keyframes deflector-pulse {
    0% { opacity: 0.7; box-shadow: 0 0 10px #00ff00; }
    100% { opacity: 1; box-shadow: 0 0 20px #00ff00; }
}

@keyframes nacelle-glow-pulse {
    0% { opacity: 0.6; box-shadow: 0 0 15px #00ff00, 0 0 30px rgba(0,255,0,0.2); }
    100% { opacity: 1; box-shadow: 0 0 25px #00ff00, 0 0 50px rgba(0,255,0,0.4); }
}

@keyframes engine-glow-pulse {
    0% { opacity: 0.7; box-shadow: 0 0 20px #ff6600, 0 0 40px rgba(255,102,0,0.3); }
    100% { opacity: 1; box-shadow: 0 0 30px #ff6600, 0 0 60px rgba(255,102,0,0.5); }
}

@keyframes front-glow-pulse {
    0% { opacity: 0.6; box-shadow: 0 0 10px #00ff00; }
    100% { opacity: 1; box-shadow: 0 0 20px #00ff00; }
}

@keyframes back-glow-pulse {
    0% { opacity: 0.7; box-shadow: 0 0 15px #ff6600; }
    100% { opacity: 1; box-shadow: 0 0 25px #ff6600; }
}

/* Epic blue warp streak */
.warp-trail {
    position: absolute;
    width: 800px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #00ffff, #0080ff, transparent);
    top: 19px;
    left: -400px;
    opacity: 0;
    box-shadow: 0 0 20px #00ffff;
}

/* 🚀 WARP-IN, SETTLE, THEN SLOW IMPULSE CRUISE 🚀 */
@keyframes enterprise-full-sequence {
    0% {
        transform: translateY(-50%) scaleX(0.01) scaleY(0.01);
        opacity: 0;
        left: -300px;
        filter: blur(10px);
    }
    15% {
        transform: translateY(-50%) scaleX(0.2) scaleY(0.2);
        opacity: 0.6;
        left: 20vw;
        filter: blur(5px);
    }
    25% {
        transform: translateY(-50%) scaleX(0.8) scaleY(0.8);
        opacity: 0.9;
        left: 45vw;
        filter: blur(2px);
    }
    30% {
        transform: translateY(-50%) scaleX(1.2) scaleY(1.2);
        opacity: 0.7;
        left: 50vw;
        filter: blur(0px);
    }
    35% {
        transform: translateY(-50%) scaleX(1) scaleY(1);
        opacity: 1;
        left: 50vw;
        filter: blur(0px);
    }
    60% {
        transform: translateY(-50%) scaleX(1) scaleY(1);
        opacity: 1;
        left: 50vw;
        filter: blur(0px);
    }
    100% {
        transform: translateY(-50%) scaleX(1) scaleY(1);
        opacity: 1;
        left: calc(100vw + 200px);
        filter: blur(0px);
    }
}

/* Epic blue warp streak effect */
@keyframes warp-streak-effect {
    0% {
        opacity: 0;
        transform: scaleX(0) scaleY(1);
        background: linear-gradient(90deg, transparent, #00ffff, #0080ff, transparent);
        width: 0px;
    }
    30% {
        opacity: 1;
        transform: scaleX(1) scaleY(2);
        background: linear-gradient(90deg, transparent, #00ffff, #0080ff, #00ffff, transparent);
        width: 400px;
    }
    60% {
        opacity: 0.8;
        transform: scaleX(1.5) scaleY(1.5);
        background: linear-gradient(90deg, transparent, #0080ff, #004080, transparent);
        width: 600px;
    }
    100% {
        opacity: 0;
        transform: scaleX(0.3) scaleY(0.5);
        background: linear-gradient(90deg, transparent, #004080, transparent);
        width: 200px;
    }
}

/* Ship materialization flashing */
@keyframes ship-materialization {
    0%, 15%, 30%, 45% {
        opacity: 0;
    }
    7.5%, 22.5%, 37.5% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
}

/* Activate the easter egg */
.starship-easter-egg.active {
    display: block;
    opacity: 1;
}

.starship-easter-egg.active .starship-enterprise {
    animation: enterprise-full-sequence 20s ease-out forwards, ship-materialization 3s ease-out forwards;
}

.starship-easter-egg.active .warp-trail {
    animation: warp-streak-effect 4s ease-out forwards;
    animation-delay: 0.2s;
    top: 19px;
    left: -400px;
    width: 800px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #00ffff, #0080ff, transparent);
}

/* 🌌 REALISTIC ORBITAL MECHANICS & GRAVITY PHYSICS 🌌 */

/* Large gravity wells - infinite wrapping motion */
@keyframes gravity-well-orbit {
    0% { 
        transform: translate(-400px, -100px) scale(1);
        opacity: 0;
        box-shadow: 0 0 40px var(--primary);
    }
    5% { 
        transform: translate(-300px, -75px) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 40px var(--primary);
    }
    95% { 
        transform: translate(300px, 75px) scale(1);
        opacity: 0.8;
        box-shadow: 0 0 40px var(--primary);
    }
    100% { 
        transform: translate(400px, 100px) scale(1);
        opacity: 0;
        box-shadow: 0 0 40px var(--primary);
    }
}

/* Medium nodes - infinite wrapping diagonal motion */
@keyframes medium-gravity-drift {
    0% { 
        transform: translate(-500px, -120px) scale(1);
        opacity: 0;
    }
    8% { 
        transform: translate(-350px, -85px) scale(1);
        opacity: 0.7;
    }
    92% { 
        transform: translate(350px, 85px) scale(1);
        opacity: 0.7;
    }
    100% { 
        transform: translate(500px, 120px) scale(1);
        opacity: 0;
    }
}

/* Small nodes - infinite wrapping motion */
@keyframes small-gravity-orbit {
    0% { 
        transform: translate(-400px, 100px) scale(1);
        opacity: 0;
    }
    10% { 
        transform: translate(-250px, 60px) scale(1);
        opacity: 0.6;
    }
    90% { 
        transform: translate(250px, -60px) scale(1);
        opacity: 0.6;
    }
    100% { 
        transform: translate(400px, -100px) scale(1);
        opacity: 0;
    }
}

/* Particles - infinite slingshot trajectories */
@keyframes orbit-gravity-well-1 {
    0% { 
        transform: translate(-150px, -30px) scale(1);
        opacity: 0;
    }
    15% { 
        transform: translate(-80px, -20px) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: translate(-40px, -10px) scale(1);
        opacity: 0.5;
    }
    40% { 
        transform: translate(-10px, 5px) scale(1.2);
        opacity: 0.8;
    }
    55% { 
        transform: translate(15px, 25px) scale(1.5);
        opacity: 1;
    }
    70% { 
        transform: translate(30px, 35px) scale(1.2);
        opacity: 0.8;
    }
    85% { 
        transform: translate(60px, 25px) scale(1);
        opacity: 0.5;
    }
    95% { 
        transform: translate(120px, 10px) scale(1);
        opacity: 0.5;
    }
    100% { 
        transform: translate(180px, 0px) scale(1);
        opacity: 0;
    }
}

@keyframes orbit-gravity-well-2 {
    0% { 
        transform: translate(-120px, -150px) scale(1);
        opacity: 0;
    }
    12% { 
        transform: translate(-60px, -80px) scale(1);
        opacity: 0.4;
    }
    25% { 
        transform: translate(-30px, -40px) scale(1);
        opacity: 0.4;
    }
    40% { 
        transform: translate(-5px, -10px) scale(1.1);
        opacity: 0.7;
    }
    55% { 
        transform: translate(20px, 20px) scale(1.4);
        opacity: 1;
    }
    70% { 
        transform: translate(35px, 50px) scale(1.1);
        opacity: 0.7;
    }
    85% { 
        transform: translate(40px, 80px) scale(1);
        opacity: 0.4;
    }
    95% { 
        transform: translate(50px, 120px) scale(1);
        opacity: 0.4;
    }
    100% { 
        transform: translate(80px, 180px) scale(1);
        opacity: 0;
    }
}

@keyframes orbit-gravity-well-3 {
    0% { 
        transform: translate(120px, -80px) scale(1);
        opacity: 0;
    }
    15% { 
        transform: translate(60px, -40px) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(40px, -25px) scale(1);
        opacity: 0.6;
    }
    40% { 
        transform: translate(15px, -10px) scale(1.1);
        opacity: 0.8;
    }
    55% { 
        transform: translate(-5px, 15px) scale(1.3);
        opacity: 1;
    }
    70% { 
        transform: translate(-15px, 35px) scale(1.1);
        opacity: 0.8;
    }
    85% { 
        transform: translate(-25px, 50px) scale(1);
        opacity: 0.6;
    }
    95% { 
        transform: translate(-50px, 80px) scale(1);
        opacity: 0.6;
    }
    100% { 
        transform: translate(-120px, 140px) scale(1);
        opacity: 0;
    }
}

@keyframes pulse-connection {
    0%, 70%, 100% { 
        opacity: 0;
        transform: scaleX(0);
    }
    10% { 
        opacity: 0.7;
        transform: scaleX(0.3);
    }
    30% { 
        opacity: 1;
        transform: scaleX(1);
    }
    50% { 
        opacity: 0.8;
        transform: scaleX(0.8);
    }
}

@keyframes drift-particle {
    0% { 
        transform: translateX(0px) translateY(0px);
        opacity: 0;
    }
    10% { 
        opacity: 0.5;
    }
    90% { 
        opacity: 0.3;
    }
    100% { 
        transform: translateX(110vw) translateY(-50px);
        opacity: 0;
    }
}

@keyframes lightning-arc {
    0%, 90%, 100% { 
        opacity: 0;
        transform: rotate(-20deg) scaleX(0);
    }
    5% { 
        opacity: 0.8;
        transform: rotate(-20deg) scaleX(1);
    }
    8% { 
        opacity: 0.4;
        transform: rotate(-20deg) scaleX(0.7);
    }
    12% { 
        opacity: 0;
        transform: rotate(-20deg) scaleX(0);
    }
}

/* 🔥 EPIC RARE LIGHTNING FLASH ANIMATION 🔥 */
@keyframes mega-lightning-flash {
    0%, 97%, 100% { 
        opacity: 0;
    }
    97.5% {
        opacity: 1;
    }
    98% {
        opacity: 0;
    }
    98.2% {
        opacity: 0.8;
    }
    98.5% {
        opacity: 0;
    }
    98.7% {
        opacity: 1;
    }
    99% {
        opacity: 0;
    }
}

/* Lightning bolt cascade effect */
@keyframes lightning-cascade {
    0%, 95%, 100% {
        opacity: 0;
        transform: scaleY(0);
    }
    96% {
        opacity: 1;
        transform: scaleY(1);
    }
    96.5% {
        opacity: 0.7;
        transform: scaleY(0.8);
    }
    97% {
        opacity: 0;
        transform: scaleY(0);
    }
    97.2% {
        opacity: 0.9;
        transform: scaleY(1);
    }
    97.8% {
        opacity: 0;
        transform: scaleY(0);
    }
}

/* Screen flash for dramatic effect */
@keyframes screen-flash {
    0%, 97.5%, 100% {
        opacity: 0;
    }
    97.7% {
        opacity: 0.3;
    }
    97.9% {
        opacity: 0;
    }
    98.1% {
        opacity: 0.2;
    }
    98.3% {
        opacity: 0;
    }
}

/* Apply animations to specific sections */
.services, .about, .contact {
    position: relative;
    z-index: 2;
}

.services .electrical-bg,
.about .electrical-bg,
.contact .electrical-bg {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 5rem 0 8rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero {
        padding: 8rem 0;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-primary {
    background: hsla(75, 85%, 55%, 0.2);
    color: var(--primary);
    border: 1px solid hsla(75, 85%, 55%, 0.3);
}

.badge-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.badge-icon {
    width: 1rem;
    height: 1rem;
}

/* Hero Title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-title-accent {
    color: var(--primary);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Trust Indicators */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .trust-indicators {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.trust-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: hsla(220, 13%, 97%, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.text-primary {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Cards */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover {
    box-shadow: var(--shadow-electric);
    transform: translateY(-0.5rem);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-icon-wrapper {
    padding: 0.75rem;
    background: hsla(75, 85%, 55%, 0.1);
    border-radius: var(--radius);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrapper {
    background: hsla(75, 85%, 55%, 0.2);
}

.service-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.service-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.feature-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-cta {
    text-align: center;
}

.shadow-electric {
    box-shadow: var(--shadow-electric);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Certifications */
.certifications {
    margin-bottom: 2rem;
}

.certifications-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.certification-item span {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    box-shadow: var(--shadow-electric);
    transform: translateY(-0.25rem);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.location-card {
    grid-column: span 2;
    background: var(--electric-gradient);
    color: var(--primary-foreground);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.location-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
}

.location-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.location-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: hsla(220, 13%, 97%, 0.3);
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .contact-card {
        flex: 1;
        min-width: 250px;
    }
    
    .contact-form-container {
        flex: 2;
        min-width: 400px;
    }
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    min-height: 225px;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    box-shadow: var(--shadow-electric);
}


.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1rem;
    font-weight: 600;
    color: var(--foreground);
}

.contact-card-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.contact-card-content {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-primary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-secondary {
    color: var(--muted-foreground);
}

/* Contact Form */
.contact-form-container {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .contact-form-container {
        grid-column: span 2;
    }
}

.contact-form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-industrial);
    overflow: hidden;
}

.contact-form-header {
    padding: 1.5rem 1.5rem 1rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--muted-foreground);
}

.contact-form {
    padding: 0 1.5rem 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid var(--ring);
    outline-offset: -1px;
    border-color: var(--ring);
}

.form-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.note-icon {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    background: var(--industrial-gradient);
    color: white;
}

.footer .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .footer-section:first-child {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 2.5rem;
    width: auto;
}

.footer-logo-text {
    font-size: 0.875rem;
    color: #d1d5db;
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-badge-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-contact-primary {
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.footer-contact-secondary {
    font-size: 0.875rem;
    color: #d1d5db;
}

.emergency-card-footer {
    background: hsla(75, 85%, 55%, 0.2);
    border: 1px solid hsla(75, 85%, 55%, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.emergency-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.emergency-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.emergency-title {
    font-weight: 600;
}

.emergency-description {
    font-size: 0.875rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: #d1d5db;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.footer-legal-link:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        padding: 0 1rem;
    }
    
    .nav {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .btn {
        border: 1px solid var(--border);
    }
}