/* AMOLED Optimization */
.dark body, .dark nav {
    background-color: #000000 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #0891b2; border-radius: 10px; }

/* Reveal Animation States */
.js-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar Styling */
#progress-bar {
    width: 0%;
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.8);
}

/* ... (Keep AMOLED and Scrollbar tweaks) ... */

#pvsd-display {
    transition: opacity 0.5s ease-in-out;
}

/* Ensure the banner and gallery images fill their containers nicely */
.aspect-video img {
    object-fit: cover;
}

/* ... (existing styles) ... */

/* Ensures the contact-icon images stay sharp and centered */
.contact-grid img {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

.dark .contact-grid img {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.05));
}

/* Optional: Slight pulse to the active theme circle */
#toggle-circle {
    box-shadow: 0 0 10px rgba(8, 145, 178, 0.4);
}

/* NEWWWWWWWWWWWW */
/* GRID BACKGROUND */

.bg-grid {
    --accent: #00f2ff;
    background-image: 
        linear-gradient(rgba(0,242,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,242,255,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(60px); }
}

/* FLOWING LINES */
.flow-line {
    fill: none;
    stroke: rgba(0,242,255,0.7);
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: flow 6s linear infinite;

    /* 🔥 glow effect */
    filter: drop-shadow(0 0 6px rgba(0,242,255,0.8))
            drop-shadow(0 0 12px rgba(0,242,255,0.6));
}

.flow-line.delay-1 { animation-delay: 2s; }
.flow-line.delay-2 { animation-delay: 4s; }

@keyframes flow {
    to {
        stroke-dashoffset: -200;
    }
}

/* PARTICLES */
.particles::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(rgba(0,242,255,0.9) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: particlesMove 40s linear infinite;
    opacity: 0.1;
}

@keyframes particlesMove {
    from { transform: translate(0,0); }
    to { transform: translate(-200px,-200px); }
}

/* NEON TEXT */
.neon-text {
    text-shadow: 
        0 0 5px #00f2ff,
        0 0 10px #00f2ff,
        0 0 20px #00f2ff,
        0 0 40px rgba(0,242,255,0.6);
}

/* LOGO GLOW */
.glow {
    box-shadow: 
        0 0 20px rgba(0,242,255,0.6),
        0 0 60px rgba(0,242,255,0.3);
}

/* ☀️ LIGHT MODE HERO BACKGROUND */
body:not(.dark) .bg-grid {
    background-image: 
        linear-gradient(rgba(0,242,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,242,255,0.06) 1px, transparent 1px);
}

body:not(.dark) .particles::before {
    opacity: 0.05;
}

body:not(.dark) .hero-glow {
    background: radial-gradient(circle at center, rgba(0,242,255,0.08), transparent 70%);
}

#toggle-circle {
    transition: transform 0.3s ease, background 0.3s ease;
}

#theme-toggle {
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.dark #theme-toggle {
    box-shadow: inset 0 0 10px rgba(0,255,255,0.2);
}