:root {
    --primary: #09B5C5;
    --accent: #FF7626;
    --bg-main: #050607;
    --bg-sec: #101317;
    --text-main: #FFFFFF;
    --text-muted: #A1A7B0;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    overscroll-behavior: none;
    /* overflow-y: hidden; */
}

body.loading {
    overflow: hidden;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-main);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#preloader.hidden {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
}

.logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.preloader-logo {
    width: 60px;
    z-index: 2;
    animation: pulse 2s infinite ease-in-out;
}

.energy-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--accent);
    animation: spin 1.5s linear infinite;
    filter: drop-shadow(0 0 10px var(--primary));
}

.loading-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.progress-wrapper {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.1s linear;
}

/* Orbiting Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-main);
    box-shadow: 0 0 8px var(--text-main);
}
.p1 { top: 0; left: 50%; background: var(--primary); animation: orbit1 2s linear infinite; }
.p2 { bottom: 20%; right: 0; background: var(--accent); animation: orbit2 3s linear infinite; }
.p3 { bottom: 20%; left: 0; animation: orbit3 2.5s linear infinite; }

/* --- Background Animations --- */
.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.ambient-light {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    transition: top 0.2s ease-out, left 0.2s ease-out;
}

.light-teal {
    background: var(--primary);
    top: calc(var(--mouse-y) * 100% - 25vw);
    left: calc(var(--mouse-x) * 100% - 25vw);
}

.light-orange {
    background: var(--accent);
    bottom: -10%;
    right: -10%;
    animation: drift 15s ease-in-out infinite alternate;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

@media screen  {
    .header{
      margin-top: 40px;
}
}

/* --- Main Layout & Hero --- */
.main-wrapper {
    position: relative;
    z-index: 1;
}

.main-logo {
    height: 40px;
    filter: drop-shadow(0 0 15px rgba(9, 181, 197, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.main-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 25px rgba(9, 181, 197, 0.8));
}

.top-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(9, 181, 197, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(9, 181, 197, 0.05);
}

.main-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255,255,255,0.1);
}

.main-heading .highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.coming-soon-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
}

.coming-soon-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    animation: lineSweep 3s infinite;
}

.description {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    max-width: 600px;
}

.cta-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

/* --- Countdown Timer --- */
.glass-card {
    background: rgba(16, 19, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(9, 181, 197, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 90px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(9, 181, 197, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 118, 38, 0.5);
}

.time-val {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* --- Footer & Socials --- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(to top, rgba(16, 19, 23, 0.8), transparent);
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon i {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: rgba(9, 181, 197, 0.1);
    box-shadow: 0 0 15px rgba(9, 181, 197, 0.3);
    transform: translateY(-3px);
}

/* --- Animations & Keyframes --- */
.reveal-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.2, 1), transform 1s cubic-bezier(0.2, 1, 0.2, 1);
}

.loaded .reveal-on-load {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }
.delay-5 { transition-delay: 0.9s; }
.delay-6 { transition-delay: 1.1s; }
.delay-7 { transition-delay: 1.3s; }
.delay-8 { transition-delay: 1.5s; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes drift { 100% { transform: translate(-30px, -50px); } }
@keyframes gridMove { 100% { background-position: 50px 50px; } }
@keyframes lineSweep {
    0% { width: 0; opacity: 0; }
    50% { width: 100px; opacity: 1; }
    100% { width: 0; opacity: 0; }
}

@keyframes orbit1 { from { transform: rotate(0deg) translateX(40px) rotate(0deg); } to { transform: rotate(360deg) translateX(40px) rotate(-360deg); } }
@keyframes orbit2 { from { transform: rotate(120deg) translateX(50px) rotate(-120deg); } to { transform: rotate(480deg) translateX(50px) rotate(-480deg); } }
@keyframes orbit3 { from { transform: rotate(240deg) translateX(45px) rotate(-240deg); } to { transform: rotate(600deg) translateX(45px) rotate(-600deg); } }

/* Glitch Effect on load */
.glitch {
    position: relative;
}
.loaded .glitch::before,
.loaded .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.loaded .glitch::before {
    color: var(--primary);
    z-index: -1;
    animation: glitch-anim-1 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}
.loaded .glitch::after {
    color: var(--accent);
    z-index: -2;
    animation: glitch-anim-2 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-anim-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(-2px, -1px); }
    30% { transform: translate(0px, 1px); }
    40% { transform: translate(1px, -1px); }
}
@keyframes glitch-anim-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, -1px); }
    20% { transform: translate(2px, 1px); }
    30% { transform: translate(0px, -1px); }
    40% { transform: translate(-1px, 1px); }
}

@media (max-width: 768px) {
    .ambient-light { display: none; } 
    .glass-card { min-width: 70px; padding: 0.8rem 1rem; }
    .top-label { letter-spacing: 2px; }
}

@media (hover: none) {
    .light-teal {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation: drift 20s ease-in-out infinite alternate;
    }
}



.icon-rain-container {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none; 
    z-index: 1; 
}

.rain-icon {
    position: absolute;
    top: -10vh; 
    opacity: 0;
    animation: rainFall linear infinite;
}

@keyframes rainFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2; 
    }
    80% {
        opacity: 0.2; 
    }
    100% {
        transform: translateY(110vh) rotate(360deg); 
        opacity: 0; 
    }
}


/* --- Number Animation --- */
@keyframes pop-in {
    0% { transform: translateY(-10px) scale(0.9); opacity: 0.5; }
    50% { transform: translateY(2px) scale(1.05); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.animate-number {
    animation: pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}