/* ============================ BASE ============================ */
:root {
    --gold: #d4af37;
    --bg: #0f0f0f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ============================ HEADER / NAV ============================ */
header {
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    position: sticky;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.logo-box {
    position: relative;
    display: inline-block;
}

#logo {
    height: 90px;
    position: relative;
    z-index: 5;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 5px;
    display: block;
}

.nav-menu a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger div {
    width: 28px;
    height: 3px;
    background: white;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--gold);
    padding: 10px 0;
    min-width: 180px;
    display: none;
    z-index: 2000;
    border-radius: 6px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 8px 15px;
    font-size: 16px;
}

/* ============================ HERO VIDEO / SLIDES ============================ */
.video-header {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

/* YouTube player wrapper */
#yt-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 4;             /* Above slides but below overlay */
    pointer-events: none;   
    opacity: 0;             
    transition: opacity 0.8s ease-in-out;
    background-color: #000; 
}

#yt-player-wrapper.yt-visible {
    opacity: 1 !important;
}

#yt-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

#yt-player iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 5;
    pointer-events: none;
}

/* Slides container */
.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    transition: opacity 1.2s ease-in-out;
    overflow: hidden;
}

.video-slide .kb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    animation: kb-zoom 18s ease-in-out infinite;
}

@keyframes kb-zoom {
    0% { transform: scale(1) translate(0,0); }
    30% { transform: scale(1.08) translate(-2%, -1%); }
    60% { transform: scale(1.12) translate(1%,1%); }
    100% { transform: scale(1) translate(0,0); }
}

.video-slide.active {
    opacity: 1;
    z-index: 6; /* above slides but below overlay/text */
}

/* Overlay */
.video-overlay, #hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 5; /* above video, below hero text */
}

/* Hero text */
.hero-text, .hero-content {
    position: absolute;
    z-index: 20; /* above overlay/video/slides */
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    max-width: 80%;
}

.hero-text h1 {
    font-family: "Story Script", cursive;
    font-size: 50px;
    margin: 0;
}

.hero-text p {
    font-size: 20px;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background: var(--gold);
    padding: 12px 28px;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    margin-top: 15px;
}

/* Toggle switch */
.video-toggle {
    position: absolute;
    top: 20px;
    right: 25px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #aaa;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00c853;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ============================ ALUMNI ============================ */
.alumni-hero {
    background: url('images/odissi-bg.jpg') center/cover no-repeat;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    color: #fff;
}

.alumni-hero .overlay {
    background: rgba(0,0,0,0.55);
    position: absolute;
    inset: 0;
}

.alumni-hero h1 {
    font-family: "Story Script", cursive;
    font-size: 4rem;
    z-index: 2;
    position: relative;
}

.alumni-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
}

.alumni-card {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #b8860b;
    text-align: center;
    position: relative;
    box-shadow: 0 0 25px rgba(255,215,0,0.3);
    transition: 0.3s;
}

.alumni-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(255,215,0,0.5);
}

.alumni-frame {
    position: relative;
    width: 100%;
}

.alumni-frame img {
    width: 100%;
    border-radius: 10px;
}

.alumni-frame .ornamental-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
    .nav-menu { display: none; flex-direction: column; position: absolute; top:100%; right:0; width:250px; background: rgba(0,0,0,0.95); padding: 15px 0; border-left:1px solid var(--gold); border-radius:5px; }
    .nav-menu.show { display: flex; }
    .hamburger { display: flex; }
    .hero-text { left: 20px; top:30%; max-width:85%; }
    .hero-text h1 { font-size:34px; }
    #logo { height:60px; }
}

@media (max-width:768px) {
    .footer-grid { grid-template-columns:1fr; }
    .hero-content { padding:1rem; font-size:1rem; }
}

/* ============================ FOOTER ============================ */
#mainFooter {
    background:#000 !important;
    color:#fff !important;
    padding-top:50px;
    padding-bottom:30px;
}

#mainFooter a.footer-link { color:#ccc !important; text-decoration:none; }
#mainFooter a.footer-link:hover { color: gold !important; }
#mainFooter .footer-icon { font-size:20px; color:#ccc !important; }
#mainFooter .footer-icon:hover { color: gold !important; }
.footer-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }

/* ============================ BUTTONS & UTILITY ============================ */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background:#25d366;
    color:#fff;
    width:55px;
    height:55px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:28px;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    z-index:2000;
}

.back-to-top-btn, #backToTop {
    position: fixed;
    bottom:25px;
    right:25px;
    display:none;
    z-index:999;
    width:45px;
    height:45px;
    border:none;
    background:#0d6efd;
    color:#fff;
    border-radius:50%;
    font-size:1.3rem;
}
