/* =========================================
   CUSTOM VARIABLES (DARK THEME)
========================================= */
:root {
    --primary-blue: #004aad;
    --primary-yellow: #ffde59;
    --text-dark: #ffffff;
    --smooth-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   BASE STYLES & VFX BACKGROUND LOCK
========================================= */
html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    min-height: 100%;
    background-color: transparent !important;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark) !important;
}

#vfxCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -9999 !important;
    background: linear-gradient(135deg, #001233 0%, #000a1f 100%);
    pointer-events: none;
    transform: translateZ(0);
    /* Hardware acceleration to stop lag */
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-primary-blue {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.text-primary-yellow {
    color: var(--primary-yellow) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-primary-yellow {
    background-color: var(--primary-yellow) !important;
}

.text-muted {
    color: #cccccc !important;
}

/* =========================================
   GLASSMORPHISM CONTAINERS
========================================= */
.bg-white,
.bg-light,
.bg-dark,
.bg-primary-blue,
.glass-section {
    background-color: rgba(255, 255, 255, 0.05) !important;
    --bs-bg-opacity: 0 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card,
.course-card {
    background-color: rgba(255, 255, 255, 0.08) !important;
    --bs-bg-opacity: 0 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    transition: var(--smooth-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-primary-blue {
    background-color: var(--primary-blue);
    color: white !important;
    border: 2px solid var(--primary-blue);
    z-index: 1;
}

.btn-primary-blue:hover {
    background-color: white;
    color: var(--primary-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 74, 173, 0.4);
}

.btn-primary-yellow {
    background-color: var(--primary-yellow);
    color: #000000 !important;
    border: 2px solid var(--primary-yellow);
    font-weight: bold;
}

.btn-primary-yellow:hover {
    background-color: transparent;
    color: var(--primary-yellow) !important;
    border-color: var(--primary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 222, 89, 0.4);
}

.btn-light {
    background-color: #ffffff !important;
    color: var(--primary-blue) !important;
    border: 2px solid #ffffff !important;
    font-weight: bold;
}

.btn-light:hover {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    transition: var(--smooth-transition);
    background-color: rgba(0, 18, 51, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

.nav-link {
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    color: white !important;
    transition: var(--smooth-transition);
}

.nav-link:hover {
    color: var(--primary-yellow) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-yellow);
    transition: var(--smooth-transition);
    border-radius: 5px;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar .btn-primary-blue {
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.4);
}

.navbar .btn-primary-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    transform: skewX(-20deg);
}

.navbar .btn-primary-blue:hover {
    background-color: var(--primary-blue);
    color: white !important;
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.6);
}

.navbar .btn-primary-blue:hover::before {
    left: 150%;
}

/* =========================================
   HERO & CONTENT CARDS
========================================= */
.hero-section {
    position: relative;
    padding-top: 100px;
    background: transparent !important;
}

.border-yellow {
    border: 4px solid var(--primary-yellow);
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.course-card {
    transition: var(--smooth-transition);
    border-bottom: 4px solid transparent !important;
    will-change: transform, box-shadow;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 4px solid var(--primary-yellow) !important;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.course-card .btn {
    opacity: 0.8;
}

.course-card:hover .btn {
    opacity: 1;
    background-color: var(--primary-yellow);
    color: #000 !important;
    border-color: var(--primary-yellow);
}

.degree-highlight {
    background: rgba(0, 74, 173, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.max-w-700 {
    max-width: 700px;
}

/* =========================================
   HOVER ZOOM EFFECT (Infrastructure, Mentors, Gallery)
========================================= */
.hover-zoom {
    transition: var(--smooth-transition);
    will-change: transform, box-shadow;
    border: 1px solid transparent;
}

.hover-zoom:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
    border-color: var(--primary-yellow) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    z-index: 2;
}

/* Icon popping effect inside hover-zoom cards */
.hover-zoom i {
    transition: var(--smooth-transition);
}

.hover-zoom:hover i {
    transform: scale(1.2);
    color: var(--primary-yellow) !important;
    filter: drop-shadow(0 0 10px rgba(255, 222, 89, 0.4));
}

/* =========================================
   SCROLL ANIMATIONS & PROCESS STEPS
========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.process-step {
    width: 60px;
    height: 60px;
    background-color: var(--primary-yellow);
    color: #000000;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* =========================================
   ENQUIRY FORM FIXES
========================================= */
.form-label {
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 10px rgba(255, 222, 89, 0.3) !important;
    color: #ffffff !important;
}

.form-select option {
    background-color: #001233;
    color: #ffffff;
}

.input-group .form-control {
    border-left: transparent !important;
}

.input-group .form-select:focus {
    z-index: 1;
}

.alert-success {
    background-color: rgba(37, 211, 102, 0.2) !important;
    border: 1px solid #25d366 !important;
    color: #ffffff !important;
    backdrop-filter: blur(5px);
}

/* =========================================
   FLOATING ELEMENTS & CHATBOT
========================================= */
.floating-wa {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1000;
    transition: var(--smooth-transition);
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.floating-wa:hover {
    transform: scale(1.15) rotate(5deg);
    color: white;
}

#chatbot-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    font-size: 28px;
    border: none;
    z-index: 1000;
    cursor: pointer;
    transition: var(--smooth-transition);
    box-shadow: 0 10px 20px rgba(0, 74, 173, 0.3);
}

#chatbot-trigger:hover {
    background-color: var(--primary-yellow);
    color: #000;
    transform: scale(1.1);
}

#chatbot-window {
    position: fixed; 
    bottom: 90px; /* Moved down 10px to sit closer to the trigger button */
    right: 25px; 
    width: 350px; 
    max-width: 90vw; 
    height: 450px; 
    max-height: calc(100vh - 140px); /* MAGIC FIX: Forces it to always stay below the navbar! */
    border-radius: 15px; 
    z-index: 1001; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    opacity: 0; 
    pointer-events: none; 
    transform: translate3d(0, 20px, 0); 
    transition: all 0.3s ease-out; 
    background-color: rgba(0, 18, 51, 0.95) !important; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.chat-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: white;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: var(--primary-blue);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.chat-option-btn {
    background: rgba(255, 222, 89, 0.8);
    border: 1px solid var(--primary-yellow);
    color: #000;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--smooth-transition);
    font-weight: 600;
}

.chat-option-btn:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.chat-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 130px;
        padding-bottom: 50px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .gap-3 {
        flex-direction: column !important;
        align-items: center;
    }

    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }

    .navbar-collapse {
        background: rgba(0, 74, 173, 0.95) !important;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 150px;
    }

    .hero-section h1 {
        font-size: 2.1rem;
    }

    .hero-section h4 {
        font-size: 1.1rem;
    }

    .course-card {
        margin-bottom: 15px;
    }

    .process-step {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .floating-wa {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 15px;
        left: 15px;
    }

    #chatbot-trigger {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    iframe {
        min-height: 300px !important;
    }
}