/* ========================================
   Swiggy Fast - Tunnel Animation Styles
   ======================================== */

/* CSS Variables for Theming */
:root {
    --swiggy-orange: #FC8019;
    --swiggy-orange-light: #FF9F43;
    --deep-purple: #1A0F1F;
    --electric-purple: #8B5CF6;
    --cosmic-blue: #3B82F6;
    --neon-pink: #EC4899;
    --glow-color: rgba(252, 128, 25, 0.8);
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0d0015 50%, #000000 100%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hidden SEO Content */
.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Main Container */
#tunnel-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: hidden;
}

/* Tunnel Container */
.tunnel {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

/* Tunnel Rings */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: tunnel-fly 4s linear infinite;
    opacity: 0;
}

/* Ring Variations with Different Colors and Sizes */
.ring-1 {
    width: 50px;
    height: 50px;
    border-color: var(--swiggy-orange);
    box-shadow: 0 0 30px var(--swiggy-orange), inset 0 0 30px rgba(252, 128, 25, 0.3);
    animation-delay: 0s;
}

.ring-2 {
    width: 100px;
    height: 100px;
    border-color: var(--electric-purple);
    box-shadow: 0 0 30px var(--electric-purple), inset 0 0 30px rgba(139, 92, 246, 0.3);
    animation-delay: 0.33s;
}

.ring-3 {
    width: 150px;
    height: 150px;
    border-color: var(--cosmic-blue);
    box-shadow: 0 0 30px var(--cosmic-blue), inset 0 0 30px rgba(59, 130, 246, 0.3);
    animation-delay: 0.66s;
}

.ring-4 {
    width: 200px;
    height: 200px;
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 30px rgba(236, 72, 153, 0.3);
    animation-delay: 1s;
}

.ring-5 {
    width: 250px;
    height: 250px;
    border-color: var(--swiggy-orange-light);
    box-shadow: 0 0 30px var(--swiggy-orange-light), inset 0 0 30px rgba(255, 159, 67, 0.3);
    animation-delay: 1.33s;
}

.ring-6 {
    width: 300px;
    height: 300px;
    border-color: var(--electric-purple);
    box-shadow: 0 0 30px var(--electric-purple), inset 0 0 30px rgba(139, 92, 246, 0.3);
    animation-delay: 1.66s;
}

.ring-7 {
    width: 350px;
    height: 350px;
    border-color: var(--cosmic-blue);
    box-shadow: 0 0 30px var(--cosmic-blue), inset 0 0 30px rgba(59, 130, 246, 0.3);
    animation-delay: 2s;
}

.ring-8 {
    width: 400px;
    height: 400px;
    border-color: var(--swiggy-orange);
    box-shadow: 0 0 30px var(--swiggy-orange), inset 0 0 30px rgba(252, 128, 25, 0.3);
    animation-delay: 2.33s;
}

.ring-9 {
    width: 450px;
    height: 450px;
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 30px rgba(236, 72, 153, 0.3);
    animation-delay: 2.66s;
}

.ring-10 {
    width: 500px;
    height: 500px;
    border-color: var(--electric-purple);
    box-shadow: 0 0 30px var(--electric-purple), inset 0 0 30px rgba(139, 92, 246, 0.3);
    animation-delay: 3s;
}

.ring-11 {
    width: 550px;
    height: 550px;
    border-color: var(--cosmic-blue);
    box-shadow: 0 0 30px var(--cosmic-blue), inset 0 0 30px rgba(59, 130, 246, 0.3);
    animation-delay: 3.33s;
}

.ring-12 {
    width: 600px;
    height: 600px;
    border-color: var(--swiggy-orange);
    box-shadow: 0 0 30px var(--swiggy-orange), inset 0 0 30px rgba(252, 128, 25, 0.3);
    animation-delay: 3.66s;
}

/* Tunnel Fly Animation */
@keyframes tunnel-fly {
    0% {
        transform: scale(0.1) translateZ(-500px) rotateZ(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: scale(4) translateZ(500px) rotateZ(180deg);
        opacity: 0;
    }
}

/* Counter Wrapper */
.counter-wrapper {
    position: relative;
    z-index: 100;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Brand Text */
.brand-text {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--swiggy-orange);
    text-shadow:
        0 0 20px var(--swiggy-orange),
        0 0 40px var(--swiggy-orange),
        0 0 60px rgba(252, 128, 25, 0.5);
    margin-bottom: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow:
            0 0 20px var(--swiggy-orange),
            0 0 40px var(--swiggy-orange),
            0 0 60px rgba(252, 128, 25, 0.5);
    }

    50% {
        text-shadow:
            0 0 30px var(--swiggy-orange),
            0 0 60px var(--swiggy-orange),
            0 0 100px rgba(252, 128, 25, 0.8);
    }
}

/* Main Counter */
.counter {
    font-family: 'Orbitron', monospace;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, var(--swiggy-orange) 50%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(252, 128, 25, 0.8));
    animation: gradient-shift 2s ease infinite;
    line-height: 1;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Unit Label */
.unit {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* Tagline */
.tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 30px;
    font-style: italic;
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Particles Container */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Individual Particle */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--swiggy-orange);
    border-radius: 50%;
    animation: particle-move 3s linear infinite;
    box-shadow: 0 0 10px var(--swiggy-orange);
}

@keyframes particle-move {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Flash Effect for Redirect */
.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    animation: flash-in 0.5s ease-out forwards;
}

@keyframes flash-in {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* Counter Low State */
.counter.low {
    animation: urgent-pulse 0.2s ease-in-out infinite;
}

@keyframes urgent-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ring {
        border-width: 2px;
    }

    .brand-text {
        letter-spacing: 0.15em;
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }

    .tagline {
        font-size: 0.8rem;
    }
}

/* Social Floating Link */
.side-social-link {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.side-social-link:hover {
    transform: translateY(-50%) translateX(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(252, 128, 25, 0.2);
}

.social-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-handle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--swiggy-orange);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(252, 128, 25, 0.3);
    letter-spacing: 0.05em;
    transition: text-shadow 0.3s ease;
}

.side-social-link:hover .social-text {
    color: rgba(255, 255, 255, 0.9);
}

.side-social-link:hover .social-handle {
    text-shadow: 0 0 25px var(--swiggy-orange);
}

/* Mobile Responsiveness for Social Link */
@media (max-width: 768px) {
    .side-social-link {
        right: 15px;
        padding: 12px 18px;
        background: rgba(0, 0, 0, 0.4);
    }

    .social-text {
        font-size: 0.7rem;
    }

    .social-handle {
        font-size: 1rem;
    }
}