/* --- MODERN CSS VARIABLES --- */
:root {
    --bg-dark: #070b14;
    --glass-bg: rgba(10, 15, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.15);
    --accent-cyan: #00e5ff;
    --accent-blue: #2979ff;
    --text-main: #f8fafc;
    --text-muted: #e2e8f0;
    --danger: #ff1744;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Responsive sizing fixes */
    min-height: 100vh;
    min-height: 100dvh; /* Adapts to mobile browser address bars */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 15px; 
    
    /* Fix for the cutoff issue: allow vertical scroll on small screens */
    overflow-x: hidden; 
    overflow-y: auto; 
    
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    
    /* Security: Prevent dragging and selecting */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
    -webkit-user-drag: none;
}

/* ========================================== */
/*    ATTRACTIVE CINEMATIC BACKGROUND EFFECT  */
/* ========================================== */
body::before {
    content: "";
    position: fixed; /* Keep background fixed while scrolling */
    inset: -5%; 
    background: url('demo.jpeg') center/cover no-repeat;
    z-index: -4;
    filter: contrast(1.15) saturate(1.3) brightness(0.85);
    opacity: 0.9;
    animation: cinematicPan 25s infinite alternate ease-in-out;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 15%, var(--bg-dark) 100%),
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.5), transparent 55%),
        radial-gradient(circle at bottom left, rgba(41, 121, 255, 0.5), transparent 55%);
    z-index: -3;
    mix-blend-mode: overlay; 
    animation: breatheMesh 8s infinite alternate ease-in-out;
}

@keyframes cinematicPan {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.15) translate(-1.5%, -1.5%); }
}
@keyframes breatheMesh {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- ADVANCED CUSTOM CURSOR --- */
.cursor-dot, .cursor-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}
.cursor-glow {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.05);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.cursor-hovering .cursor-glow {
    width: 65px;
    height: 65px;
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* --- SLEEK GLASSMORPHISM CONTAINER --- */
.container-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 800px;
    margin: auto; /* Ensures it stays perfectly centered */
    text-align: center;
}
.container-wrapper::before {
    content: "";
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 35px;
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
    animation: pulseAura 4s infinite alternate ease-in-out;
}
.container {
    padding: 50px 40px;
    background: var(--glass-bg); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes pulseAura {
    0% { opacity: 0.2; transform: scale(0.98); }
    100% { opacity: 0.45; transform: scale(1.02); }
}

/* --- MODERN ADMISSION TICKER --- */
.ticker-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 35px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.live-indicator {
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 14px;
    border-right: 1px solid var(--glass-border);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
    flex-shrink: 0;
}
.live-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
}
.ticker-scroll-box {
    overflow: hidden;
    display: flex;
    width: 100%;
}
.ticker-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    padding-left: 14px;
    white-space: nowrap;
    letter-spacing: 1px;
    animation: slideLeft 18s linear infinite;
}

/* --- OPTIMIZED LOGO --- */
.logo img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    margin-bottom: 25px;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    pointer-events: none; 
}

/* --- RESPONSIVE TYPOGRAPHY --- */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}
h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}
p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-muted);
    max-width: 650px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- GLOWING COUNTDOWN UI --- */
.redirect-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0 10px 0;
}
.countdown-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    position: relative;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}
.countdown-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2.5px dashed var(--accent-blue);
    animation: spinRing 4s linear infinite;
}
.redirect-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    animation: textFadePulse 1.5s infinite alternate;
}

/* --- KEYFRAMES --- */
@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 23, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}
@keyframes slideLeft {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}
@keyframes spinRing { 
    100% { transform: rotate(360deg); } 
}
@keyframes textFadePulse { 
    0% { opacity: 0.6; } 
    100% { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); } 
}

/* ========================================== */
/*         MOBILE RESPONSIVE FIXES            */
/* ========================================== */
@media (pointer: coarse) {
    /* Hide custom cursor completely on touch devices */
    body { cursor: auto; }
    .cursor-dot, .cursor-glow { display: none !important; }
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px; 
    }
    .container { 
        padding: 40px 20px; 
        border-radius: 20px;
    }
    .logo img {
        width: 100px;
        height: 100px;
    }
    .redirect-wrapper {
        margin: 15px 0 10px 0;
    }
}