/* =========================================
   GLOBAL RESET
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}


/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #000;

    z-index: 9999;

    /*
    transition: opacity 0.8s ease,
                visibility 0.8s ease;
                */
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-gif {
    width: 180px;
    max-width: 60vw;
}


/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100dvh; /* Modern dynamic viewport height */
    min-height: 100svh; /* Fallback for slightly older iOS */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 20px;
}


/* =========================================
   TOP LEFT CORNER LOGO
========================================= */
.corner-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 160px;
    height: auto;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    transition: 0.4s ease;
}


/* =========================================
   BACKGROUND VIDEO
========================================= */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw;

    object-fit: cover;
    transform: translate(-50%, -50%);

    z-index: -3;

    opacity: 0;
    transition: opacity 2s ease;
}

/* iOS-specific rendering fix */
@supports (-webkit-touch-callout: none) {
    .bg-video {
        height: 100%;
    }
}


/* =========================================
   VIDEO OVERLAY EFFECT
========================================= */
.video-overlay {
    position: fixed;
    width: 100%;
    height: 100%;

    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.85)
    );

    z-index: -2;

    opacity: 0;
    transition: opacity 2s ease;
}


/* =========================================
   FILM GRAIN EFFECT
========================================= */
.grain {
    position: fixed;
    width: 100%;
    height: 100%;

    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;

    z-index: -1;
    pointer-events: none;
}


/* =========================================
   MAIN LOGO TEXT
========================================= */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;

    letter-spacing: 6px;
    margin-bottom: 50px;

    color: #00FF00;

    text-shadow:
        0 0 15px #00FF00,
        0 0 35px #ED197A,
        0 0 60px #ED197A;

    animation: pulseGlow 3s infinite ease-in-out;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

@keyframes pulseGlow {
    0%,
    100% {
        text-shadow:
            0 0 15px #00FF00,
            0 0 35px #ED197A;
    }

    50% {
        text-shadow:
            0 0 30px #00FF00,
            0 0 70px #ED197A;
    }
}


/* =========================================
   TAGLINE
========================================= */
#tagline-container {
    max-width: 950px;
    transition: all 1.5s ease;
}

#tagline {
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.4;
    margin-bottom: 0.5rem;

    opacity: 0;
    animation: cinematicReveal 2.5s forwards ease;
}

#sub-tagline {
    display: block;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.5;

    opacity: 0;
    animation: cinematicReveal 2.5s forwards ease 0.3s;
    animation-fill-mode: forwards;
}

.highlight {
    color: #ED197A;
    font-weight: 600;
}

@keyframes cinematicReveal {
    0% {
        opacity: 0;
        transform: translateY(60px);
        letter-spacing: 3px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0;
    }
}

#tagline,
#sub-tagline {
    will-change: transform, opacity;
}


/* =========================================
   SOCIAL SECTION
========================================= */
#social-container {
    margin-top: 40px;

    opacity: 0;
    transform: scale(0.8);

    transition: all 1.5s ease;
}

.social-icons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.icon {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);

    border-radius: 15px;
    padding: 15px;

    transition: 0.4s ease;
    
    display: flex;
}

.icon img {
    width: clamp(40px, 8vw, 65px);
}

.icon:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 0 25px #00FF00;
}


/* =========================================
   FOOTER
========================================= */
footer {
    position: fixed;
    bottom: 10px;
    width: 100%;

    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}


/* =========================================
   UTILITY
========================================= */
.hidden {
    display: none;
}


/* =========================================
   TABLET (iPad / Small Laptops)
========================================= */
@media (max-width: 1024px) {

    .logo {
        font-size: clamp(2.16rem, 5.4vw, 4.32rem);
        letter-spacing: 4px;
        margin-bottom: 35px;
    }

    #tagline {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    }

    #sub-tagline {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    }

    .corner-logo {
        width: 140px;
        top: 15px;
        left: 15px;
    }
}


/* =========================================
   MOBILE (Phones)
========================================= */
@media (max-width: 768px) {

    .hero {
        padding: 15px;
    }

    .logo {
        font-size: clamp(1.94rem, 6.48vw, 3.24rem);
        letter-spacing: 3px;
        margin-bottom: 25px;
    }
    
    .preloader-gif {
        width: 100px;
    }

    #tagline {
        font-size: clamp(0.8rem, 4.5vw, 1rem);
        line-height: 1.3;
    }

    #sub-tagline {
        font-size: clamp(0.6rem, 3vw, 0.7rem);
        line-height: 1.4;
    }

    #tagline-container {
        max-width: 90%;
    }

    .corner-logo {
        width: 100px;
    }

    footer {
        font-size: 0.7rem;
    }
}


/* =========================================
   SMALL PHONES (iPhone SE / Older Devices)
========================================= */
@media (max-width: 380px) {

    .logo {
        font-size: 1.73rem;
        letter-spacing: 2px;
    }

    #tagline {
        font-size: 0.85rem;
    }

    #sub-tagline {
        font-size: 0.65rem;
    }

    .corner-logo {
        width: 90px;
    }
}


/* =========================================
   MOBILE LANDSCAPE
========================================= */
@media (max-width: 768px) and (orientation: landscape),
       (max-height: 500px) and (orientation: landscape) {

    .logo {
        font-size: clamp(1.3rem, 4.32vw, 2.16rem);
        margin-bottom: 10px;
    }

    #tagline {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
        line-height: 1.2;
    }

    #sub-tagline {
        font-size: clamp(0.66rem, 3vw, 0.84rem);
        line-height: 1.2;
    }

    .icon img {
        width: clamp(25px, 5vw, 40px);
    }

    .corner-logo {
        width: 82px;
    }

    .preloader-gif {
        width: 70px;
    }
}