@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

/* =========================================
   Global Styles & Variables
   ========================================= */
:root {
    /* Your Custom Palette */
    --cool-sky: #6BB0FF;
    --bright-indigo: #4534F9;
    --primary-scarlet: #DC0A1E;
    --cinnamon-wood: #C47C68;
    --true-cobalt: #242586;

    /* Mapped to HTML structural classes */
    --primary-blue: var(--true-cobalt); 
    --secondary-green: var(--bright-indigo); 
    --accent-gold: var(--cinnamon-wood); 
    --light-bg: #f4f7fb; /* Slightly cooler tint for a modern tech feel */
    
    /* Font Pairing */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    overflow-x: hidden;
    color: #444;
}

/* Force Open Sans on standard text to prevent Bootstrap overrides */
p, span, li, td, th, label, input, textarea, select {
    font-family: var(--font-body);
    line-height: 1.7;
    letter-spacing: 0.3px;
}

/* Force Manrope on Headings, Branding, and Buttons */
h1, h2, h3, h4, h5, h6, 
.navbar-brand,.nav-link,.btn,.badge,.section-title,.motto-text {
    font-family: var(--font-heading)!important;
}

/* =========================================
   Top Contact Bar Styles
   ========================================= */
.top-bar {
    background: linear-gradient(90deg, var(--true-cobalt), var(--bright-indigo));
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--cool-sky)!important;
}

/* =========================================
   Enhanced Modern Navbar Styles (Liquid Glass)
   ========================================= */
.navbar-glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(36, 37, 134, 0.05);
    transition: all 0.4s ease;
}

.navbar-brand img {
    max-height: 65px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-brand img:hover {
    transform: scale(1.08) rotate(-2deg);
}

.nav-item {
    margin: 0 4px;
}

.nav-link {
    font-weight: 700;
    color: var(--primary-blue)!important;
    padding: 10px 16px!important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-green)!important;
    background-color: rgba(69, 52, 249, 0.08); 
    transform: translateY(-2px);
}

/* Fix to make Bootstrap Dropdowns open on hover for Desktop */
@media all and (min-width: 992px) {
   .navbar.nav-item.dropdown-menu { display: none; }
   .navbar.nav-item:hover.dropdown-menu { 
        display: block; 
        margin-top: 0;
        animation: fadeUp 0.3s ease forwards;
    }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu {
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(36, 37, 134, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 12px 0;
}

.dropdown-item {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary-blue);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(69, 52, 249, 0.08);
    color: var(--secondary-green);
    padding-left: 28px; 
}

/* =========================================
   Animated Gradient Buttons
   ========================================= */
.btn-brand,.btn-apply {
    background-size: 200% auto;
    background-image: linear-gradient(to right, var(--bright-indigo) 0%, var(--cool-sky) 50%, var(--bright-indigo) 100%);
    color: white!important;
    font-weight: 800;
    border-radius: 30px;
    padding: 12px 28px;
    box-shadow: 0 4px 15px rgba(69, 52, 249, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-brand:hover,.btn-apply:hover {
    background-position: right center;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(107, 176, 255, 0.5);
}

.disclosure-link {
    background: rgba(220, 10, 30, 0.08); 
    color: var(--primary-scarlet)!important;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    border: 1px solid transparent;
}

.disclosure-link:hover {
    background: rgba(220, 10, 30, 0.12);
    border-color: rgba(220, 10, 30, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(220, 10, 30, 0.15);
}

/* =========================================
   Hero Sections (Parallax & Backgrounds)
   ========================================= */
.hero-parallax {
    background-image: linear-gradient(135deg, rgba(36, 37, 134, 0.8), rgba(69, 52, 249, 0.6)), url('https://images.unsplash.com/photo-1509062522246-3755977927d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-about {
    background-image: linear-gradient(135deg, rgba(36, 37, 134, 0.85), rgba(69, 52, 249, 0.7)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 140px 0 100px;
    color: white;
    text-align: center;
}

.hero-contact {
    background-image: linear-gradient(135deg, rgba(36, 37, 134, 0.9), rgba(69, 52, 249, 0.8)), url('https://images.unsplash.com/photo-1596495578065-6e0763fa1178?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 90px;
    color: white;
    text-align: center;
}

/* Advanced Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 55px;
    color: white;
    margin: 55px;
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    color: var(--primary-blue);
    font-weight: 800;
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--bright-indigo), var(--cool-sky));
    display: block;
    margin: 20px auto 0;
    border-radius: 5px;
}

.max-w-700 {
    max-width: 700px;
}

/* =========================================
   Floating Cards (Features, Values, Faculty, Info)
   ========================================= */
.feature-card,.value-card,.faculty-card,.contact-info-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(36, 37, 134, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card {
    padding: 40px;
}

.value-card {
    padding: 35px 25px;
    text-align: center;
}

.contact-info-card {
    padding: 45px 30px;
    text-align: center;
}

.feature-card:hover,.value-card:hover,.contact-info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(69, 52, 249, 0.15);
    border-color: rgba(69, 52, 249, 0.2);
}

.icon-box,.value-icon,.contact-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, rgba(107, 176, 255, 0.15), rgba(69, 52, 249, 0.15)); 
    color: var(--secondary-green);
    border-radius: 24px; /* Modern squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.feature-card:hover.icon-box, 
.value-card:hover.value-icon, 
.contact-info-card:hover.contact-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--cool-sky), var(--bright-indigo));
    color: white;
    box-shadow: 0 10px 20px rgba(69, 52, 249, 0.3);
}

.faculty-card {
    overflow: hidden;
}

.faculty-card img {
    height: 350px;
    object-fit: cover;
    object-position: top;
    width: 100%;
    transition: transform 0.5s ease;
}

.faculty-card:hover img {
    transform: scale(1.05);
}

.faculty-info {
    padding: 25px 20px;
    text-align: center;
    background: white;
    position: relative;
    z-index: 2;
}

.faculty-info h5 {
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 5px;
}

.faculty-info p {
    color: var(--secondary-green);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   Forms & Maps
   ========================================= */
.contact-form-container {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(36, 37, 134, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.form-control,.form-select {
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid #e1e5eb;
    margin-bottom: 20px;
    font-family: var(--font-body);
    background-color: #f9fbfd;
    transition: all 0.3s ease;
}

.form-control:focus,.form-select:focus {
    box-shadow: 0 0 0 4px rgba(107, 176, 255, 0.2);
    border-color: var(--cool-sky);
    background-color: white;
}

.map-container iframe {
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(36, 37, 134, 0.08);
    width: 100%;
    height: 480px;
}

/* =========================================
   Footer
   ========================================= */
.footer-dark {
    background: linear-gradient(180deg, var(--true-cobalt), #1a1b63);
    color: white;
    padding: 70px 0 20px;
}

.footer-dark a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.footer-dark a:hover {
    color: var(--cool-sky);
    padding-left: 5px;
}