/* =========================================
   CUSTOM VARIABLES
========================================= */
: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; 
}

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; }

/* =========================================
   THE FIX: CONTAINER OPACITY & GLASSMORPHISM 
========================================= */
.bg-white, .bg-light, .bg-dark, .bg-primary-blue {
    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 & SPECIAL EFFECTS
========================================= */
.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 { 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 SECTION
========================================= */
.hero-section {
    position: relative;
    padding-top: 100px; 
    background: transparent !important; 
}

.border-yellow { border: 4px solid var(--primary-yellow); }

.floating-anim {
    animation: floatImage 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =========================================
   COURSE CARDS HOVER
========================================= */
.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 (B.VOC Section)
========================================= */
.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; }

/* =========================================
   IMAGE GALLERY (Hover Zoom)
========================================= */
.hover-zoom {
    transition: var(--smooth-transition);
    cursor: pointer;
    object-fit: cover;
    width: 100%;
}

.hover-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
    border-radius: 12px;
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
.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; }

/* =========================================
   ADMISSION PROCESS STEPS
========================================= */
.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);
}

/* =========================================
   TOP RECRUITERS INFINITE SCROLL
========================================= */
.marquee-wrapper {
    width: 100%;
    max-width: 1100px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    width: max-content;
    animation: scrollMarquee 30s linear infinite; 
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-content {
    gap: 4rem; 
    padding-right: 4rem; 
}

.recruiter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--smooth-transition);
}

/* Restored original brand colors! Just added a subtle glow for dark mode */
.recruiter-item i,
.recruiter-item svg {
    font-size: 3.5rem;
    transition: var(--smooth-transition);
    filter: drop-shadow(0 2px 5px rgba(255, 255, 255, 0.2));
}

.recruiter-item span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    transition: var(--smooth-transition);
}

.recruiter-item:hover { transform: translateY(-8px); }

.recruiter-item:hover i,
.recruiter-item:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.4));
}

.recruiter-item:hover span {
    color: #ffffff; /* Turns bright white on hover */
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   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;
}

/* Fix double borders for the country code input group */
.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
========================================= */
.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;
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--primary-yellow);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--smooth-transition);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: white;
    color: var(--primary-blue);
    transform: translateY(-5px);
}

/* =========================================
   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);
    }
    
    .marquee-content {
        gap: 3rem;
        padding-right: 3rem;
    }
    .recruiter-item i,
    .recruiter-item svg { font-size: 3rem; }
    .recruiter-item span { font-size: 0.95rem; }
}

@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;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
    iframe { min-height: 300px !important; }
    .marquee-content {
        gap: 2.5rem;
        padding-right: 2.5rem;
    }
    .recruiter-item i,
    .recruiter-item svg { font-size: 2.5rem; }
    .recruiter-item span { font-size: 0.85rem; }
    .marquee-track { animation-duration: 20s; }
}