/* ═══════════════════════════════════════════════════════════════════
   home.css — "Immersive UI" Edition
   ───────────────────────────────────────────────────────────────────
   Load order: variables.css → shared.css → home.css
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   HERO BASE & AMBIENT ENVIRONMENT
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    /* Deep space gradient instead of flat navy */
    background: radial-gradient(circle at 80% -20%, #1e3a5f 0%, var(--navy) 60%, #060d14 100%);
    color: var(--white);
    padding: 160px 5% 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    /* Subtle noise texture overlay for a premium, cinematic feel */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 3; /* Above the noise and orbs */
}

.hero-copy {
    flex: 1;
    max-width: 580px;
}

/* ═══════════════════════════════════════════════════════════════════
   DYNAMIC ILLUMINATION (ORBS)
   ═══════════════════════════════════════════════════════════════════ */
.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    position: absolute;
    top: -150px;
    right: 5%;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.18;
    animation: orb-drift 25s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4a90d9 0%, transparent 70%);
    position: absolute;
    bottom: -100px;
    left: 2%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: orb-drift 20s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY & GLOWS
   ═══════════════════════════════════════════════════════════════════ */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(201, 146, 42, 0.3));
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════════
   GLASSMORPHIC HERO CARD (The Centerpiece)
   ═══════════════════════════════════════════════════════════════════ */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* Adds 3D depth */
}

.hero-card {
    /* True Glassmorphism: Gradient backgrounds + inset highlights */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    
    /* Deep shadow + top-edge specular highlight */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    animation: fadeUp 0.8s 0.4s both, float 6s 1.5s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hc-header { display: flex; justify-content: space-between; margin-bottom: 24px; }

.hc-exam-tag {
    background: rgba(201, 146, 42, 0.15);
    border: 1px solid rgba(201, 146, 42, 0.3);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.hc-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6ee48f;
    font-weight: 600;
    background: rgba(110, 228, 143, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.hc-live-dot {
    width: 6px;
    height: 6px;
    background: #6ee48f;
    border-radius: 50%;
    box-shadow: 0 0 10px #6ee48f;
    animation: pulse-dot 2s infinite;
}

.hc-title { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-bottom: 8px; font-weight: 700;}
.hc-sub   { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 28px; }

.hc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.hcs { 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; 
    padding: 12px 8px; 
    text-align: center; 
    transition: transform 0.2s, background 0.2s;
}

.hcs:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.hcs-val { font-size: 1.2rem; font-weight: 800; color: #fff; }
.hcs-lbl { font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px;}

.hc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 20px rgba(201, 146, 42, 0.3);
}

.hc-btn:hover { 
    background: var(--gold-light); 
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(201, 146, 42, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   FLOATING BADGES (FROSTED GLASS)
   ═══════════════════════════════════════════════════════════════════ */
.floating-badge {
    position: absolute;
    /* Frosted glass instead of solid white */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.fb-1 { top: -20px; right: -30px; animation: fadeUp 0.6s 0.9s both, float 5s 2s ease-in-out infinite; }
.fb-2 { bottom: 30px; left: -40px; animation: fadeUp 0.6s 1.1s both, float 7s 2.5s ease-in-out infinite; }

.fb-text-small { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.fb-text-bold  { color: #fff; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE HERO PREVIEW STRIP (GLASS)
   ═══════════════════════════════════════════════════════════════════ */
.hero-mobile-preview {
    display: flex;
    gap: 12px;
    padding: 0 4px 20px;
    width: max-content;
}

.hmp-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    min-width: 140px;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hmp-icon { font-size: 1.8rem; margin-bottom: 10px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));}
.hmp-val  { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: #fff; }
.hmp-lbl  { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE OVERRIDES
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero { padding: 120px 5% 60px; }
    .hero-inner { flex-direction: column; text-align: left; gap: 30px;}
    .hero-copy { max-width: 100%; }
    .hero-visual {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0;
    }
    .hero-visual::-webkit-scrollbar { display: none; }
    .hero-card, .floating-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-card, .fb-1, .fb-2, .hc-live-dot, .hero-orb-1, .hero-orb-2 { animation: none; }
}
