/* style.css */
:root {
    --dca-color: #2563eb; 
    --pgdca-color: #0f172a; 
    --primary: #2563eb; 
    --secondary: #0f172a; 
    --accent: #06b6d4; 
    --highlight: #f59e0b; 
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --sidebar-width: 280px;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    display: flex; height: 100vh;
    background-color: var(--bg-light); overflow: hidden;
}

/* --- 0. PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--secondary); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; transition: opacity 0.5s ease;
}

.loader-text {
    font-family: 'Outfit', sans-serif; font-size: 1.5rem;
    margin-bottom: 20px; letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

.progress-container { width: 300px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 15px var(--accent); border-radius: 10px; transition: width 0.1s ease; }

/* --- 1. SIDEBAR NAVIGATION --- */
.sidebar {
    width: var(--sidebar-width); background: var(--secondary); color: white;
    display: flex; flex-direction: column; padding: 25px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1); z-index: 100; flex-shrink: 0;
}

.brand {
    font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700;
    margin-bottom: 40px; line-height: 1.3; letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase;
}

.brand1 {
    font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
    background: linear-gradient(to right, #cbd5e1, #64748b);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-menu { display: flex; flex-direction: column; gap: 12px; }

.nav-btn {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); color: #94a3b8;
    padding: 14px 20px; text-align: left; border-radius: 12px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center;
    gap: 15px; font-size: 0.9rem; font-weight: 500; position: relative; overflow: hidden; text-decoration: none;
}

.nav-btn i { width: 20px; text-align: center; }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: white; transform: translateX(5px); border-color: rgba(255,255,255,0.2); }
.nav-btn.active { background: var(--primary); color: white; box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4); border-color: var(--primary); }

/* --- 2. MAIN CONTENT AREA --- */
.main-content { flex-grow: 1; overflow-y: auto; position: relative; background: #fff; }

/* --- 3. ADMISSION TICKER --- */
.ticker-wrap {
    width: 100%; background: var(--secondary); color: white; padding: 10px 0; overflow: hidden;
    position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--highlight);
}

.ticker { display: inline-block; white-space: nowrap; animation: ticker 25s linear infinite; font-weight: 600; letter-spacing: 1px; font-size: 0.9rem; }
.ticker span { color: var(--highlight); margin: 0 5px; }

@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* --- 4. HERO SLIDER --- */
.slider-container { position: relative; height: 550px; overflow: hidden; background: var(--secondary); }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transform: scale(1.1); transition: opacity 1s ease-in-out, transform 6s ease;
    background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center;
}
.slide.active { opacity: 1; transform: scale(1); }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.75); z-index: 1; }

.hero-content { position: relative; z-index: 2; color: white; max-width: 800px; padding: 20px; }
.hero-animate-up { opacity: 0; transform: translateY(40px); animation: fadeUp 1s ease forwards; }
.hero-delay-1 { animation-delay: 0.3s; } .hero-delay-2 { animation-delay: 0.6s; } .hero-delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-content h1 { font-family: 'Outfit', sans-serif; font-size: 3.5rem; margin-bottom: 15px; font-weight: 700; text-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3rem; color: #e2e8f0; margin-bottom: 30px; }

.cta-btn {
    background: var(--primary); color: white; padding: 15px 40px; border-radius: 50px;
    text-decoration: none; font-weight: 600; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s; border: none; cursor: pointer; position: relative; overflow: hidden;
}
.cta-btn:hover { transform: translateY(-3px) scale(1.05); background: #1d4ed8; box-shadow: 0 15px 30px rgba(37, 99, 235, 0.5); }

/* --- 5. SECTIONS & CARDS --- */
.container { padding: 50px; }
.section-title { font-family: 'Outfit', sans-serif; font-size: 2rem; color: var(--secondary); margin-bottom: 30px; position: relative; display: inline-block; }
.section-title::after {
    content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 4px;
    background: var(--primary); border-radius: 2px; transition: width 0.8s ease;
}
.reveal.active .section-title::after { width: 60px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: white; border-radius: 20px; padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--primary); }

.card-icon {
    width: 60px; height: 60px; background: #eff6ff; color: var(--primary); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; transition: transform 0.5s;
}
.card:hover .card-icon { transform: rotateY(180deg); background: var(--primary); color: white; }
.card h3 { margin-bottom: 10px; color: var(--secondary); }
.card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* --- SEARCH TABLE --- */
.search-box-wrap { background: white; padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); margin-bottom: 30px; border: 1px solid #e2e8f0; }
.search-input { width: 100%; padding: 15px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 1rem; transition: 0.3s; }
.student-table { width: 100%; border-collapse: collapse; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.student-table th { background: var(--secondary); color: white; padding: 15px; text-align: left; }
.student-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; color: #64748b; }

/* --- CONTACT FORM --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.contact-info-card { background: var(--secondary); color: white; padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2); }
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-item i { font-size: 1.5rem; color: var(--accent); }
.contact-form-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); }
.form-input { width: 100%; padding: 12px 15px; border: 1.5px solid #e2e8f0; border-radius: 10px; transition: 0.3s; font-size: 0.95rem; }
.form-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

.status-msg { padding: 15px; border-radius: 10px; margin-top: 20px; display: none; font-size: 0.9rem; animation: fadeUp 0.5s ease; }
.status-msg.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.status-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- GALLERY GRID & LIGHTBOX --- */
.gallery-category-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; color: var(--accent); margin: 30px 0 15px 0; border-bottom: 2px dashed #e2e8f0; padding-bottom: 10px;}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { height: 250px; border-radius: 15px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(37, 99, 235, 0.5); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s ease; backdrop-filter: blur(2px);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2.5rem; transform: scale(0.2); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.gallery-item:hover .gallery-overlay i { transform: scale(1); }

/* Lightbox Custom CSS */
.lightbox {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s ease;
    justify-content: center; align-items: center;
}
.lightbox.show { display: flex; opacity: 1; }
.lightbox-content {
    max-width: 90%; max-height: 85vh; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.5); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.lightbox.show .lightbox-content { transform: scale(1); }
.close-lightbox {
    position: absolute; top: 30px; right: 40px; color: white; font-size: 45px;
    font-weight: 300; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--highlight); transform: rotate(90deg); }

/* --- PROFESSIONAL FLOW ANIMATIONS --- */
.reveal { opacity: 0; transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translate(0,0) scale(1); }
.fade-up { transform: translateY(60px); }
.fade-left { transform: translateX(-80px); }
.zoom-in { transform: scale(0.9); }

.tab-content { display: none; animation: fadeEffect 0.6s; }
.tab-content.active { display: block; }
@keyframes fadeEffect { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

@media (max-width: 768px) {
    body { flex-direction: column; overflow: auto; height: auto; }
    .sidebar { width: 100%; height: auto; padding: 15px; border-bottom: 1px solid #eee; }
    .main-content { height: auto; overflow: visible; }
    .brand { margin-bottom: 0; font-size: 1.1rem; }
    .nav-menu { flex-direction: row; overflow-x: auto; padding-top: 10px; width: 100%; }
    .nav-btn span { display: none; }
    .nav-btn { padding: 12px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2.2rem; }
}