
/* Custom CSS Variables - Light Mode (Default) */
:root {
    /* Primary Colors */
    --ocean-blue: #0ea5e9;
    --sky-blue: #38bdf8;
    --cyan-blue: #22d3ee;
    --aqua-mint: #5eead4;
    --sea-green: #34d399;
    --mint-fresh: #6ee7b7;
    
    /* Light Theme Colors */
    --light-cyan: #ecfeff;
    --soft-sky: #e0f2fe;
    --aqua-light: #cffafe;
    --mint-light: #d1fae5;
    --sea-light: #ccfbf1;
    --fresh-bg: #f0f9ff;
    --clean-bg: #ecfeff;
    --text-dark: #0c4a6e;
    --text-ocean: #075985;
    --text-muted: #64748b;
    
    /* Component Colors */
    --nav-bg: rgba(224, 242, 254, 0.95);
    --card-bg: rgba(224, 242, 254, 0.8);
    --border-color: #7dd3fc;
    --shadow-color: rgba(14, 165, 233, 0.15);
    
    /* Effects */
    --laser-glow: 0 0 30px rgba(34, 211, 238, 0.6);
    --fresh-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Primary Colors - Brighter for dark mode */
    --ocean-blue: #38bdf8;
    --sky-blue: #22d3ee;
    --cyan-blue: #67e8f9;
    --aqua-mint: #5eead4;
    --sea-green: #34d399;
    --mint-fresh: #6ee7b7;
    
    /* Dark Theme Colors */
    --light-cyan: #0f172a;
    --soft-sky: #1e293b;
    --aqua-light: #0c4a6e;
    --mint-light: #164e63;
    --sea-light: #134e4a;
    --fresh-bg: #020617;
    --clean-bg: #0f172a;
    --text-dark: #f0f9ff;
    --text-ocean: #bae6fd;
    --text-muted: #94a3b8;
    
    /* Component Colors */
    --nav-bg: rgba(15, 23, 42, 0.95);
    --card-bg: rgba(30, 41, 59, 0.8);
    --border-color: #334155;
    --shadow-color: rgba(34, 211, 238, 0.2);
    
    /* Effects - Stronger glow for dark */
    --laser-glow: 0 0 40px rgba(103, 232, 249, 0.8);
    --fresh-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--sky-blue), var(--aqua-mint));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(20px);
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.theme-toggle-icon.sun {
    left: 5px;
    opacity: 1;
}

.theme-toggle-icon.moon {
    right: 5px;
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
}

/* Animated Laser Beams - Fresh Aqua */
.laser-beam {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--aqua-mint) 20%, 
        var(--cyan-blue) 50%, 
        var(--aqua-mint) 80%, 
        transparent 100%);
    box-shadow: 0 0 20px var(--aqua-mint), 0 0 40px var(--ocean-blue);
    animation: laser-sweep 4s ease-in-out infinite;
}

.laser-beam:nth-child(2) {
    top: 25%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.laser-beam:nth-child(3) {
    top: 50%;
    animation-delay: 2s;
    animation-duration: 4.5s;
}

.laser-beam:nth-child(4) {
    top: 75%;
    animation-delay: 0.5s;
    animation-duration: 3s;
}

@keyframes laser-sweep {
    0%, 100% {
        transform: translateX(-100%) scaleX(0.1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(0) scaleX(1);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scaleX(0.1);
        opacity: 0;
    }
}

/* Neon Border - Fresh Theme */
.neon-border {
    border: 2px solid var(--cyan-blue);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3), inset 0 0 20px rgba(34, 211, 238, 0.1);
    transition: all 0.3s ease;
}

.neon-border:hover {
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.5),
                0 0 80px rgba(14, 165, 233, 0.3),
                inset 0 0 30px rgba(94, 234, 212, 0.2);
    transform: scale(1.02);
}

.neon-text {
    color: var(--ocean-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5),
                 0 0 20px rgba(14, 165, 233, 0.3),
                 0 0 30px rgba(14, 165, 233, 0.2);
}

/* Laser Button - Fresh Theme */
.laser-btn {
    background: linear-gradient(135deg, var(--ocean-blue), var(--cyan-blue));
    color: white;
    font-weight: bold;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.laser-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.laser-btn:hover::before {
    left: 100%;
}

.laser-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.5),
                0 0 60px rgba(34, 211, 238, 0.3);
}

/* Service Cards - Fresh Theme */
.service-card {
    background: linear-gradient(135deg, var(--soft-sky), rgba(94, 234, 212, 0.15));
    border: 1px solid var(--sky-blue);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    perspective: 1000px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--cyan-blue);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
    transform: translateY(-5px);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(6, 182, 212, 0.2));
    border: 2px solid var(--secondary-blue);
}

/* Particles - Fresh Theme */
.laser-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--aqua-mint);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--aqua-mint), 0 0 30px var(--ocean-blue);
    pointer-events: none;
    animation: particle-float 3s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Virtual Cleaner - Fresh Theme */
.virtual-cleaner {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

.cleaner-cursor {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--aqua-mint);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px var(--aqua-mint), 0 0 60px var(--ocean-blue);
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Gallery Masonry */
.masonry-grid {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Masonry - Fresh Theme */
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--sky-blue);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    transition: all 0.3s ease;
}

.masonry-item:hover {
    border-color: var(--aqua-mint);
    box-shadow: 0 10px 40px rgba(94, 234, 212, 0.3);
    transform: scale(1.02);
}

/* Logo Text - Fresh Theme */
.logo-text {
    color: var(--ocean-blue);
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.3);
}

/* Professional Border - Fresh */
.professional-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--soft-sky), var(--soft-sky)) padding-box,
                linear-gradient(135deg, var(--ocean-blue), var(--aqua-mint)) border-box;
    border-radius: 12px;
}

/* Blue Glow - Fresh Theme */
.blue-glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.blue-glow-hover:hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Navigation - Fresh Theme */
[data-theme="dark"] .nav-logo-container {
    background: rgb(66, 84, 112);
    border-color: var(--cyan-blue);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(188, 189, 190, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--sky-blue);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.nav-logo-container:hover {
    background: rgba(224, 242, 254, 0.95);
    border-color: var(--aqua-mint);
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.3);
}

[data-theme="dark"] .nav-logo-container:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--cyan-blue);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

/* Professional Button - Fresh Theme */
.professional-btn {
    background: linear-gradient(135deg, var(--ocean-blue), var(--sky-blue));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.professional-btn:hover {
    background: linear-gradient(135deg, var(--sky-blue), var(--aqua-mint));
    box-shadow: 0 6px 25px rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
}

/* Enhanced Service Cards - Fresh Theme */
.service-card-enhanced {
    background: linear-gradient(135deg, var(--soft-sky), rgba(94, 234, 212, 0.15));
    border: 1px solid var(--sky-blue);
    position: relative;
    overflow: hidden;
}

.service-card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--aqua-mint), var(--ocean-blue));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: border-rotate-blue 4s linear infinite;
}

.service-card-enhanced:hover::before {
    opacity: 1;
}

@keyframes border-rotate-blue {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Professional Typography - Fresh Theme */
.brand-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark) !important;
}

/* Tech Font - Fresh Theme */
.tech-font, .logo-text {
    font-family: 'Orbitron', 'Exo 2', 'Montserrat', monospace;
    color: var(--ocean-blue) !important;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    letter-spacing: 0.02em;
}

/* Headings - Fresh Theme */
.text-4xl, .text-5xl, .text-6xl, .text-7xl, .text-8xl {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* Paragraphs - Fresh Theme */
.text-xl, .text-2xl, .text-lg, .text-base {
    font-family: 'Open Sans', 'Inter', 'Montserrat', sans-serif;
    color: var(--text-ocean) !important;
    -webkit-text-fill-color: var(--text-ocean) !important;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

p {
    font-family: 'Open Sans', 'Inter', 'Montserrat', sans-serif;
    color: var(--text-ocean) !important;
    -webkit-text-fill-color: var(--text-ocean) !important;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Accent Text - Fresh Theme */
.text-blue-300, .text-blue-400 {
    color: var(--ocean-blue) !important;
    -webkit-text-fill-color: var(--ocean-blue) !important;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

/* Form Styling - Fresh Theme */
input, textarea, select {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    background: var(--soft-sky) !important;
    border: 1px solid var(--sky-blue) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--cyan-blue) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25) !important;
    outline: none !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-ocean) !important;
    -webkit-text-fill-color: var(--text-ocean) !important;
}

label {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

button[type="submit"] {
    font-family: 'Inter', sans-serif;
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: linear-gradient(135deg, var(--ocean-blue), var(--cyan-blue)) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 16px 32px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3) !important;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--sky-blue), var(--aqua-mint)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(34, 211, 238, 0.4) !important;
}

/* Hero Section - Fresh Theme */
.hero-enhanced {
    background: linear-gradient(135deg, var(--fresh-bg) 0%, var(--aqua-light) 50%, var(--soft-sky) 100%);
    position: relative;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(94, 234, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Laser Grid - Fresh Theme */
.laser-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(94, 234, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: grid-move 10s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glitch Effect - Fresh */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: var(--aqua-mint);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: var(--ocean-blue);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 5px rgba(94, 234, 212, 0.3); }
    25% { text-shadow: -2px 0 var(--aqua-mint), 2px 0 var(--ocean-blue); }
    50% { text-shadow: 2px 0 var(--aqua-mint), -2px 0 var(--ocean-blue); }
    75% { text-shadow: 0 0 10px var(--aqua-mint); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(0 0 100% 0); }
    50% { clip-path: inset(100% 0 0 0); }
    75% { clip-path: inset(0 100% 0 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); }
    25% { clip-path: inset(0 0 0 100%); }
    50% { clip-path: inset(0 100% 0 0); }
    75% { clip-path: inset(100% 0 0 0); }
}

/* Pulse Rings - Fresh Theme */
.laser-pulse-ring {
    position: absolute;
    border: 2px solid var(--aqua-mint);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

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

/* Service Cards - Dark Theme Variant */
.service-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

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

/* Gallery Item - Stylish Hover */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.85), rgba(94, 234, 212, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(100%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease 0.15s, opacity 0.3s ease 0.15s;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.4);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--aqua-mint);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(14, 165, 233, 0.8);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--aqua-mint);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(94, 234, 212, 0.5);
}

.lightbox-prev {
    margin-left: -80px;
}

.lightbox-next {
    margin-right: -80px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-prev {
        margin-left: -50px;
    }
    
    .lightbox-next {
        margin-right: -50px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

/* Loading Screen with Laser Removal Effect */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--fresh-bg) 0%, var(--soft-sky) 50%, var(--aqua-light) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

[data-theme="dark"] .loading-screen {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

.loading-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--cyan-blue)); }
    50% { filter: drop-shadow(0 0 30px var(--cyan-blue)); }
}

.loading-spinner {
    margin: 1.5rem 0;
}

.loading-text {
    color: var(--ocean-blue);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.loading-progress {
    width: 250px;
    height: 4px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ocean-blue), var(--cyan-blue), var(--aqua-mint));
    border-radius: 2px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--cyan-blue);
}

/* Realistic Laser Cutter Beam */
.laser-cutter {
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(34, 211, 238, 0.3) 10%,
        rgba(255, 255, 255, 0.9) 40%,
        rgba(94, 234, 212, 1) 50%,
        rgba(255, 255, 255, 0.9) 60%,
        rgba(34, 211, 238, 0.3) 90%,
        transparent 100%
    );
    box-shadow: 
        0 0 10px var(--cyan-blue),
        0 0 30px var(--cyan-blue),
        0 0 60px var(--aqua-mint),
        0 0 100px var(--ocean-blue),
        0 0 150px rgba(34, 211, 238, 0.5);
    z-index: 3;
    opacity: 0;
    filter: blur(0.5px);
}

.laser-cutter.active {
    opacity: 1;
    animation: laser-cut-realistic 1.2s ease-out forwards;
}

.laser-cutter.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@keyframes laser-cut-realistic {
    0% {
        top: 10%;
        left: -100px;
        width: 100px;
        height: 2px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    25% {
        top: 45%;
        left: 30%;
        width: 150px;
        height: 4px;
        box-shadow: 
            0 0 20px var(--cyan-blue),
            0 0 50px var(--cyan-blue),
            0 0 80px var(--aqua-mint),
            0 0 120px var(--ocean-blue);
    }
    50% {
        top: 50%;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 6px;
        box-shadow: 
            0 0 30px var(--cyan-blue),
            0 0 70px var(--cyan-blue),
            0 0 100px var(--aqua-mint),
            0 0 150px var(--ocean-blue),
            0 0 200px rgba(34, 211, 238, 0.8);
    }
    75% {
        top: 55%;
        left: 70%;
        width: 150px;
        height: 4px;
        box-shadow: 
            0 0 20px var(--cyan-blue),
            0 0 50px var(--cyan-blue),
            0 0 80px var(--aqua-mint),
            0 0 120px var(--ocean-blue);
    }
    100% {
        top: 90%;
        left: calc(100% + 100px);
        width: 100px;
        height: 2px;
        opacity: 1;
    }
}

/* Glowing Cut Line - appears where laser cuts */
.cut-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(34, 211, 238, 0.8) 20%,
        rgba(255, 255, 255, 1) 50%,
        rgba(34, 211, 238, 0.8) 80%,
        transparent
    );
    box-shadow: 
        0 0 10px var(--cyan-blue),
        0 0 20px var(--cyan-blue),
        0 0 40px var(--aqua-mint);
    z-index: 3;
    opacity: 0;
}

.cut-line.active {
    opacity: 1;
    animation: cut-line-grow 1s ease-out forwards;
}

@keyframes cut-line-grow {
    0% { width: 0%; left: 0; }
    100% { width: 100%; left: 0; }
}

/* Sparks from laser cutting */
.sparks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.sparks-container.active {
    opacity: 1;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 0%, var(--cyan-blue) 50%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan-blue), 0 0 20px var(--aqua-mint);
}

.spark:nth-child(1) { animation: spark-fly-1 0.6s ease-out forwards; }
.spark:nth-child(2) { animation: spark-fly-2 0.7s ease-out forwards; }
.spark:nth-child(3) { animation: spark-fly-3 0.5s ease-out forwards; }
.spark:nth-child(4) { animation: spark-fly-4 0.8s ease-out forwards; }
.spark:nth-child(5) { animation: spark-fly-5 0.6s ease-out forwards; }

@keyframes spark-fly-1 {
    0% { transform: translate(50vw, 50vh) scale(1); opacity: 1; }
    100% { transform: translate(50vw, 50vh) translate(-30px, -50px) scale(0); opacity: 0; }
}

@keyframes spark-fly-2 {
    0% { transform: translate(50vw, 50vh) scale(1); opacity: 1; }
    100% { transform: translate(50vw, 50vh) translate(40px, -30px) scale(0); opacity: 0; }
}

@keyframes spark-fly-3 {
    0% { transform: translate(50vw, 50vh) scale(1); opacity: 1; }
    100% { transform: translate(50vw, 50vh) translate(-20px, 40px) scale(0); opacity: 0; }
}

@keyframes spark-fly-4 {
    0% { transform: translate(50vw, 50vh) scale(1); opacity: 1; }
    100% { transform: translate(50vw, 50vh) translate(50px, 20px) scale(0); opacity: 0; }
}

@keyframes spark-fly-5 {
    0% { transform: translate(50vw, 50vh) scale(1); opacity: 1; }
    100% { transform: translate(50vw, 50vh) translate(-40px, 10px) scale(0); opacity: 0; }
}

/* Smoke effect */
.smoke {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(34,211,238,0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    z-index: 3;
}

.smoke.active {
    animation: smoke-rise 1.5s ease-out forwards;
}

@keyframes smoke-rise {
    0% { 
        transform: translate(50vw, 50vh) scale(0.5); 
        opacity: 0.6; 
    }
    100% { 
        transform: translate(50vw, calc(50vh - 100px)) scale(2); 
        opacity: 0; 
    }
}

/* Screen Halves for Split Effect - with glowing edges */
.screen-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, var(--fresh-bg) 0%, var(--soft-sky) 50%, var(--aqua-light) 100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    z-index: 1;
    overflow: hidden;
}

[data-theme="dark"] .screen-half {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e293b 100%);
}

/* Glowing edge on cut */
.screen-half::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        var(--cyan-blue) 20%,
        var(--aqua-mint) 50%,
        var(--cyan-blue) 80%,
        transparent
    );
    box-shadow: 0 0 20px var(--cyan-blue), 0 0 40px var(--aqua-mint);
    opacity: 0;
    transition: opacity 0.2s;
}

.screen-top {
    top: 0;
    transform-origin: center top;
}

.screen-top::after {
    bottom: 0;
}

.screen-bottom {
    bottom: 0;
    transform-origin: center bottom;
}

.screen-bottom::after {
    top: 0;
}

.screen-half.split {
    opacity: 0.95;
}

.screen-half.split::after {
    opacity: 1;
}

.screen-top.split {
    transform: translateY(-60%) rotateX(15deg);
}

.screen-bottom.split {
    transform: translateY(60%) rotateX(-15deg);
}

/* Laser flash effect when cutting */
.laser-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34,211,238,0.8) 0%, rgba(94,234,212,0.4) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.laser-flash.active {
    animation: flash-expand 0.4s ease-out forwards;
}

@keyframes flash-expand {
    0% { 
        transform: translate(-50%, -50%) scale(0); 
        opacity: 1; 
    }
    50% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(-50%, -50%) scale(3); 
        opacity: 0; 
    }
}

/* Heat distortion effect */
.heat-haze {
    position: absolute;
    top: calc(50% - 50px);
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(34, 211, 238, 0.1) 30%,
        rgba(94, 234, 212, 0.2) 50%,
        rgba(34, 211, 238, 0.1) 70%,
        transparent 100%
    );
    opacity: 0;
    z-index: 2;
    filter: blur(5px);
}

.heat-haze.active {
    animation: haze-shimmer 0.8s ease-out forwards;
}

@keyframes haze-shimmer {
    0%, 100% { opacity: 0; }
    30%, 70% { opacity: 1; }
}

/* Enhanced Laser Loader */
.laser-loader {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(14, 165, 233, 0.2);
    border-top: 3px solid var(--ocean-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 
        0 0 20px rgba(34, 211, 238, 0.3),
        inset 0 0 20px rgba(34, 211, 238, 0.1);
    margin: 0 auto;
}

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

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

/* Interactive Button Effects - Fresh Theme */
.laser-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--ocean-blue), var(--aqua-mint));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.laser-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.laser-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Text Scramble Effect */
.scramble-text {
    position: relative;
}

.scramble-text span {
    position: relative;
    display: inline-block;
    animation: scramble 0.5s ease-in-out;
}

@keyframes scramble {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(-2px); }
}

/* Laser Target Effect - Fresh Theme */
.laser-target {
    position: relative;
}

.laser-target::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--aqua-mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: target-pulse 1.5s ease-in-out infinite;
}

.laser-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--aqua-mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: target-pulse 1.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes target-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loading-logo img {
        height: 60px;
    }
    
    .loading-logo .tech-font {
        font-size: 1.5rem;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
    
    .loading-progress {
        width: 200px;
    }
    
    .laser-loader {
        width: 50px;
        height: 50px;
    }
    
    .laser-cutter {
        height: 2px;
    }
    
    @keyframes laser-cut-realistic {
        50% { height: 4px; }
    }
}

/* Video Sections - Fresh Theme */
.video-section {
    position: relative;
    overflow: hidden;
}

.video-background {
    position: relative;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(94, 234, 212, 0.08));
    border: 2px solid transparent;
    background: linear-gradient(var(--soft-sky), var(--soft-sky)) padding-box,
                linear-gradient(135deg, var(--ocean-blue), var(--aqua-mint)) border-box;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.video-overlay-right {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
}

.video-overlay-left {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
}

/* Service Content Grid */
.service-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 28rem;
    margin: 0 auto;
}

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

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

/* Responsive Video Sections */
@media (max-width: 767px) {
    .video-section .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-background {
        height: 300px;
    }
    
    .service-content-grid {
        text-align: center;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 767px) {
    .nav-logo-container {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .nav-logo-container img {
        height: 32px;
    }
    
    .nav-logo-container .logo-text {
        font-size: 1.25rem;
    }
    
    .professional-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* Smooth Scroll for Video Sections */
.video-section {
    scroll-margin-top: 2rem;
}

/* Loader - Fresh Theme */
.laser-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(14, 165, 233, 0.2);
    border-top: 3px solid var(--ocean-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

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

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

/* Interactive Button Effects - Fresh Theme */
.laser-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--ocean-blue), var(--aqua-mint));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.laser-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.laser-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Text Scramble Effect */
.scramble-text {
    position: relative;
}

.scramble-text span {
    position: relative;
    display: inline-block;
    animation: scramble 0.5s ease-in-out;
}

@keyframes scramble {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(-2px); }
}

/* Laser Target Effect - Fresh Theme */
.laser-target {
    position: relative;
}

.laser-target::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--aqua-mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: target-pulse 1.5s ease-in-out infinite;
}

.laser-target::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid var(--sky-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: target-pulse 1.5s ease-in-out infinite 0.3s;
}

@keyframes target-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

/* Theme-aware Image Upload Dropzone */
.upload-dropzone {
    background: var(--soft-sky);
    border-color: var(--sky-blue);
}

.upload-dropzone:hover {
    border-color: var(--cyan-blue);
    background: var(--aqua-light);
}

.upload-dropzone.dragging {
    border-color: var(--cyan-blue);
    background: linear-gradient(135deg, var(--aqua-light), var(--soft-sky));
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.upload-icon {
    color: var(--ocean-blue);
    transition: color 0.3s ease;
}

.upload-dropzone:hover .upload-icon {
    color: var(--cyan-blue);
}

.upload-text-primary {
    color: var(--text-ocean);
    transition: color 0.3s ease;
}

.upload-dropzone:hover .upload-text-primary {
    color: var(--ocean-blue);
}

.upload-text-secondary {
    color: var(--text-muted);
}
