/* --- GLOBAL RESET --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --gold: #d4af37;
    --navy: #0f2027;
    --cyan: #00f260; 
    --neon-blue: #00d2ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; overflow-x: hidden; background: #000; color: white; }

h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; transition: 0.3s; }

/* --- HOME PAGE SPLIT SCREEN --- */
.split-container { display: flex; width: 100%; height: 100vh; position: relative; overflow: hidden; }

.split {
    flex: 1; position: relative; transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; justify-content: center; align-items: center; text-align: center;
    background-size: cover; background-position: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.split::before {
    content: ""; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); transition: 0.5s;
}
.split:hover { flex: 1.8; }
.split:hover::before { background: rgba(0,0,0,0.3); }

.split-content { position: relative; z-index: 10; max-width: 500px; transform: translateY(20px); opacity: 0.9; transition: 0.5s; padding: 20px; }
.split:hover .split-content { transform: translateY(0); opacity: 1; }

.split h1 { font-size: 3.5rem; color: white; margin-bottom: 10px; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.split p { font-size: 1.2rem; color: #ddd; margin-bottom: 30px; letter-spacing: 1px; font-weight: 300; }

.btn-home {
    padding: 15px 40px; border: 1px solid rgba(255,255,255,0.8); color: white;
    text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; font-weight: 700;
    background: rgba(0,0,0,0.2); backdrop-filter: blur(4px); border-radius: 50px;
}
.btn-home:hover { background: white; color: black; box-shadow: 0 0 25px rgba(255,255,255,0.4); }

/* Placeholder backgrounds for Home Split */
.left { background-image: url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1920'); }
.right { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1920'); }

/* --- LOGO BADGE (MOVED TO TOP CENTER) --- */
.logo-badge {
    position: absolute; 
    top: 30px; /* MOVED TO TOP */
    left: 50%; 
    transform: translateX(-50%); /* CENTERED HORIZONTALLY */
    z-index: 100;
    width: 200px; height: 120px; /* Slightly smaller for top fit */
    background: black; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2), 0 0 60px rgba(0,0,0,0.8);
    border: 3px solid var(--gold); overflow: hidden;
}
.logo-badge video { width: 100%; height: 100%; object-fit: cover; }

/* --- VIDEO HEADER --- */
.video-header {
    height: 80vh; position: relative; overflow: hidden;
    display: flex; justify-content: center; align-items: center; text-align: center;
}
.video-bg {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1;
    filter: brightness(0.4); object-fit: cover;
}
.header-content { position: relative; z-index: 5; padding: 20px; max-width: 900px; animation: fadeInUp 1s ease; }
.header-content h1 { font-size: 4rem; margin-bottom: 20px; color: white; text-shadow: 0 5px 20px rgba(0,0,0,1); }
.header-content p { font-size: 1.3rem; line-height: 1.6; color: #f0f0f0; max-width: 700px; margin: 0 auto 30px; }

/* --- MENU SECTION --- */
.menu-section { padding: 80px 5%; position: relative; }
.edu-page .menu-section { background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364); }
.it-page .menu-section { background: #050505; background-image: radial-gradient(circle at 50% 50%, #111 0%, #000 100%); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.tile {
    padding: 50px 30px; border-radius: 12px; cursor: pointer; transition: 0.4s; position: relative; overflow: hidden;
    backdrop-filter: blur(10px);
}
.edu-tile { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.edu-tile:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.1); border-color: var(--gold); }
.edu-tile h2 { color: white; font-size: 2rem; margin-bottom: 10px; }
.edu-tile p { color: #aaa; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.it-tile { background: rgba(20, 30, 40, 0.4); border: 1px solid rgba(0, 210, 255, 0.1); }
.it-tile:hover { transform: translateY(-10px); background: rgba(0, 210, 255, 0.05); border-color: var(--neon-blue); }
.it-tile h2 { color: white; font-size: 2rem; margin-bottom: 10px; }
.it-tile p { color: var(--neon-blue); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- OVERLAY (POPUP PAGES) --- */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto; opacity: 0; pointer-events: none;
    background: black;
}
.overlay.active { transform: translateY(0); opacity: 1; pointer-events: all; }

/* Background IMAGE for Popup */
.overlay-bg-img {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    filter: brightness(0.25);
    object-fit: cover;
}

.close-btn {
    position: fixed; top: 30px; right: 30px; font-size: 3rem; cursor: pointer; z-index: 2005; color: white; transition: 0.3s;
    background: rgba(0,0,0,0.5); width: 60px; height: 60px; line-height: 60px; text-align: center; border-radius: 50%;
}
.close-btn:hover { background: var(--gold); transform: rotate(90deg); }

.overlay-content { 
    max-width: 900px; margin: 100px auto; padding: 40px; 
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(15px); border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1); color: white; text-align: left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.overlay-header { font-size: 3.5rem; margin-bottom: 30px; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; }
.it-page .overlay-header { color: var(--neon-blue); }

.content-flex { display: flex; gap: 40px; flex-wrap: wrap; }
.text-side { flex: 1; min-width: 300px; font-size: 1.2rem; line-height: 1.8; }
.img-side { flex: 1; min-width: 300px; }
.img-side img { width: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); object-fit: cover; }

.overlay-text ul { margin-left: 20px; margin-top: 15px; }
.overlay-text li { margin-bottom: 10px; list-style: disc; }

/* --- CONTACT FORM --- */
.contact-section { padding: 80px 5%; display: flex; justify-content: center; background: #000; }
.form-box { width: 100%; max-width: 700px; padding: 50px; border-radius: 12px; background: #111; border-top: 5px solid var(--gold); }
.it-page .form-box { border-top-color: var(--neon-blue); }
.form-box h2 { font-size: 2.5rem; margin-bottom: 10px; color: white; }
.form-box p { font-size: 1.1rem; color: #ccc; margin-bottom: 20px; }
.form-box input, .form-box textarea { width: 100%; padding: 15px; margin-bottom: 20px; background: #222; border: 1px solid #333; color: white; border-radius: 5px; }
.form-box button { width: 100%; padding: 15px; font-weight: bold; background: var(--gold); border: none; cursor: pointer; color: white; }
.it-page .form-box button { background: var(--neon-blue); color: black; }

.social-links { margin-top: 20px; font-size: 2rem; }
.social-links a { color: #0077b5; margin-right: 15px; transition: 0.3s; }
.social-links a:hover { color: white; transform: scale(1.1); }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .split-container { flex-direction: column; }
    .logo-badge { width: 150px; height: 90px; top: 20px; } /* Smaller on mobile */
    .header-content h1 { font-size: 2.5rem; }
    .overlay-content { margin: 60px 15px; padding: 25px; }
    .content-flex { flex-direction: column; }
}