 
/* ---------- RESET & VARIABLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0b1f4b;
    --gold: #f4c430;
    --white: #ffffff;
    --navy-light: rgba(11, 31, 75, 0.85);
    --gold-glow: rgba(244, 196, 48, 0.4);
    --shadow-soft: 0 20px 30px -10px rgba(0, 0, 0, 0.15), 0 8px 15px -6px rgba(11, 31, 75, 0.2);
    --shadow-3d: 0 25px 40px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(244, 196, 48, 0.2);
    --transition-default: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.25);
}

body {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    background-color: #f8faff;
    color: #1a1e2b;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- SMOOTH SCROLL ---------- */
html {
    scroll-behavior: smooth;
}

/* ---------- TYPOGRAPHY & UTILS ---------- */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--navy) 20%, var(--gold) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px var(--gold-glow);
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--gold);
        margin-top: 8px;
        border-radius: 4px;
        box-shadow: 0 0 15px var(--gold);
    }

/* ---------- NAVBAR (STICKY, GLASS) ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-default);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(11, 31, 75, 0.15);
    border-bottom: var(--glass-border);
}

    .navbar.scrolled {
        background: var(--navy);
        box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4), 0 0 0 1px rgba(244,196,48,0.3);
        padding: 0.8rem 2rem;
    }

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 2px 10px var(--gold);
    letter-spacing: 2px;
}

    .logo span {
        color: var(--gold);
    }

.nav-menu {
    display: flex;
    gap: 1.7rem;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

    .nav-menu a {
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        padding: 0.5rem 0;
        position: relative;
        transition: var(--transition-default);
        text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

        .nav-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0%;
            height: 2px;
            background: var(--gold);
            box-shadow: 0 0 10px var(--gold);
            transition: var(--transition-default);
        }

        .nav-menu a:hover::after {
            width: 100%;
        }

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--navy-light);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 0;
    min-width: 150px;
    box-shadow: var(--shadow-3d);
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
}
/* mobile adjustments later */

/* ---------- HERO SLIDER ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

    .slide.active {
        opacity: 1;
        z-index: 2;
    }

    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(11,31,75,0.8) 0%, rgba(11,31,75,0.4) 70%, rgba(244,196,48,0.15) 100%);
        z-index: 1;
    }

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
    animation: float 3s infinite alternate;
}

    .slide-content h1 {
        font-size: 5rem;
        font-weight: 800;
        text-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 30px var(--gold);
        line-height: 1.1;
    }

        .slide-content h1 span {
            color: var(--gold);
            display: block;
            font-size: 2rem;
            letter-spacing: 8px;
        }

.tagline {
    font-size: 1.6rem;
    margin: 1.5rem 0;
    font-weight: 300;
    word-spacing: 8px;
    text-shadow: 0 2px 10px black;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(244,196,48,0.5), 0 0 0 2px rgba(255,255,255,0.3);
    transition: var(--transition-default);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

    .btn:hover {
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0 20px 30px var(--gold-glow), 0 0 0 2px var(--white);
        background: #ffd966;
    }

@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

/* ---------- PARALLAX & GENERAL SECTION ---------- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section {
    padding: 5rem 2rem;
    position: relative;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* ---------- ABOUT 3D CARDS ---------- */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.card-3d {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) scale(1);
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

    .card-3d:hover {
        transform: perspective(800px) rotateX(2deg) rotateY(4deg) scale(1.02) translateY(-12px);
        box-shadow: var(--shadow-3d), 0 0 0 2px var(--gold);
    }

    .card-3d h3 {
        font-size: 2rem;
        color: var(--navy);
        margin-bottom: 1rem;
    }

        .card-3d h3 span {
            color: var(--gold);
        }

    .card-3d p {
        color: #333;
    }

/* ---------- CAMPUSES 3D CARDS ---------- */
.campuses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.campus-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
    transform: translateY(0) scale(1);
}

    .campus-card:hover {
        transform: translateY(-20px) scale(1.02) rotate(1deg);
        box-shadow: var(--shadow-3d), 0 0 0 2px var(--gold);
    }

.campus-img {
    height: 220px;
    background: linear-gradient(145deg, var(--navy), #2a3f6e);
    background-size: cover;
    background-position: center;
    position: relative;
}

    .campus-img::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, var(--navy), transparent);
    }

.campus-card:nth-child(1) .campus-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZjRjNDMwIj48cGF0aCBkPSJNMTIgM0wxIDl2MTJoNHYtN2g2djd2LThoNnY4aDRWOWwtMTEtNnoiLz48L3N2Zz4=');
    background-repeat: repeat;
    opacity: 0.85;
    background-size: 60px;
}
/* pattern fallback */
.campus-card:nth-child(2) .campus-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZjRjNDMwIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIvPjwvc3ZnPg==');
    background-repeat: repeat;
    opacity: 0.85;
    background-size: 50px;
}

.campus-card:nth-child(3) .campus-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZjRjNDMwIj48cmVjdCB4PSI0IiB5PSI0IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48L3N2Zz4=');
    background-repeat: repeat;
    opacity: 0.2;
    background-size: 40px;
}

.campus-info {
    padding: 1.8rem;
    background: white;
}

    .campus-info h3 {
        color: var(--navy);
        margin-bottom: 0.6rem;
    }

/* ---------- FACULTY GRID ---------- */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem 2rem;
    text-align: center;
}

.faculty-item {
    transition: var(--transition-default);
}

    .faculty-item:hover {
        transform: translateY(-10px);
    }

.faculty-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, var(--navy), #132956);
    box-shadow: 0 20px 25px -8px rgba(0,0,0,0.4), 0 0 0 4px var(--gold), 0 0 0 6px white;
    transition: var(--transition-default);
    background-size: cover;
}

.faculty-item:hover .faculty-img {
    box-shadow: 0 30px 30px -8px black, 0 0 0 6px var(--gold), 0 0 30px var(--gold);
}

.faculty-item:nth-child(1) .faculty-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNmNGM0MzAiPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNCIvPjxwYXRoIGQ9Ik0xMiAxNGMtNC40MiAwLTggMi42OS04IDZoMTZjMC0zLjMxLTMuNTgtNi04LTZ6Ii8+PC9zdmc+');
    background-size: cover;
}

.faculty-item:nth-child(2) .faculty-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNmNGM0MzAiPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNCIvPjxwYXRoIGQ9Ik0xMiAxNGMtNC40MiAwLTggMi42OS04IDZoMTZjMC0zLjMxLTMuNTgtNi04LTZ6Ii8+PC9zdmc+');
    background-size: cover;
}

.faculty-item:nth-child(3) .faculty-img {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9IiNmNGM0MzAiPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNCIvPjxwYXRoIGQ9Ik0xMiAxNGMtNC40MiAwLTggMi42OS04IDZoMTZjMC0zLjMxLTMuNTgtNi04LTZ6Ii8+PC9zdmc+');
    background-size: cover;
}

/* ---------- CMS 3D LOGIN CARDS ---------- */
.cms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 32px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
    transform: perspective(800px) rotateY(0deg);
    color: var(--navy);
    background: rgba(255,255,255,0.7);
}

    .login-card:hover {
        transform: perspective(800px) rotateY(5deg) translateY(-15px) scale(1.03);
        box-shadow: var(--shadow-3d), 0 0 0 2px var(--gold);
        background: white;
    }

.login-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.login-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.login-btn {
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

    .login-btn:hover {
        background: var(--gold);
        color: var(--navy);
        transform: scale(1.1);
        box-shadow: 0 10px 20px var(--gold);
    }

/* ---------- CONTACT SECTION ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    border-radius: 48px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-family: inherit;
    transition: var(--transition-default);
    background: white;
}

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 4px var(--gold-glow);
    }

.map-placeholder {
    background: #e0e6f0;
    border-radius: 36px;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: radial-gradient(circle at 20px 20px, #b0c0d0 2px, transparent 2px), linear-gradient(var(--navy), var(--navy));
    background-size: 40px 40px, cover;
    color: white;
    font-weight: 500;
    text-shadow: 0 2px 5px black;
    border: 4px solid var(--gold);
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 5px solid var(--gold);
}

.social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 1.5rem 0;
}

    .social-icons span {
        font-size: 2rem;
        filter: drop-shadow(0 0 8px var(--gold));
        transition: var(--transition-default);
    }

        .social-icons span:hover {
            transform: scale(1.2) translateY(-5px);
            color: var(--gold);
        }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        padding: 0.8rem;
    }

    .nav-menu {
        gap: 0.8rem;
        justify-content: center;
    }

    .about-cards, .cms-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .slide-content h1 {
        font-size: 3.5rem;
    }

    .nav-menu {
        display: none;
    }
    /* simplified for demo, real toggle would need js */
    .navbar {
        justify-content: center;
    }

    .about-cards, .campuses-grid, .faculty-grid, .cms-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 2rem;
    }
}

/* additional utility */
.text-gold {
    color: var(--gold);
}

.bg-navy {
    background: var(--navy);
}
/* ---------- GALLERY SECTION ---------- */
.gallery-container {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(244, 196, 48, 0.2);
    transition: var(--transition-default);
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--navy-light), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-default);
}

    .gallery-overlay span {
        color: var(--gold);
        font-weight: 600;
        font-size: 1.1rem;
        transform: translateY(20px);
        transition: var(--transition-default);
    }

/* Hover Effects */
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-3d);
    border-color: var(--gold);
}

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

        .gallery-item:hover .gallery-overlay span {
            transform: translateY(0);
        }

/* Responsive adjustments */
@media (max-width: 992px) {
    .gallery-container {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-container {
        column-count: 1;
    }
}

 
