/* High-Tech Educational Consultancy Theme Overrides */
:root {
    --glass-bg: rgba(0, 31, 63, 0.65); /* Deep Navy with transparency */
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(0, 204, 153, 0.5), 0 0 30px rgba(0, 204, 153, 0.3);
    --neon-glow-hover: 0 0 20px rgba(0, 204, 153, 0.8), 0 0 40px rgba(0, 204, 153, 0.5);
    --tech-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Global Typography tweaks */
body {
    letter-spacing: 0.3px;
}

h1, h2, h3, h4 {
    letter-spacing: -0.5px;
}

/* Glowing text override */
h1 .text-red, h2 .text-red, h3 .text-red {
    text-shadow: 0 0 20px rgba(0, 204, 153, 0.3);
}

/* Hero Section High-Tech Revamp */
.hero {
    background-color: #001f3f;
    position: relative;
    overflow: hidden;
}

/* Background Slider */
.hero-slider-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-slider-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0, 51, 102, 0.75) 0%, rgba(0, 31, 63, 0.95) 100%);
    z-index: 2;
}

.hero-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, transform 6s linear;
    transform: scale(1.05);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* Subtle tech grid in hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 204, 153, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 153, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text h1 span.text-red {
    color: #fff;
    text-shadow: var(--neon-glow);
}

/* Glassmorphism for Lead Form */
.lead-form-container {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--tech-shadow);
    color: #fff;
    position: relative;
}

/* Subtle glowing border animation for form */
.lead-form-container::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, rgba(0,204,153,0.3), transparent, rgba(0,204,153,0.3));
    z-index: -1;
}

.lead-form-container h3, .lead-form-container p {
    color: #fff !important;
}

.lead-form-container p i {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(0,204,153,0.5);
}

.form-group input, .form-group select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus, .form-group select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 204, 153, 0.5);
    color: #fff;
}

.form-group select option {
    background: var(--bg-dark);
    color: #fff;
}

/* Header Glassmorphism */
header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Cards & Expertise Grids */
.expertise-card, .prog-feature-card, .cert-card, .abroad-dest-card {
    background: #fff;
    border: 1px solid rgba(0, 204, 153, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.expertise-card:hover, .prog-feature-card:hover, .cert-card:hover, .abroad-dest-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 204, 153, 0.15);
}

/* Fix for invisible text on white Study Abroad cards */
.abroad-dest-card h4 {
    color: var(--secondary-color, #1f2937) !important;
}
.abroad-dest-card p {
    color: var(--text-color, #4b5563) !important;
}
.abroad-flag {
    color: var(--secondary-color, #1f2937); /* In case flags render as text on Windows */
}

/* Tech Buttons */
.cta-btn, .cert-enroll-btn, .mobile-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 204, 153, 0.2);
    border: 1px solid transparent;
}

.cta-btn::before, .cert-enroll-btn::before, .mobile-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-btn:hover::before, .cert-enroll-btn:hover::before, .mobile-cta:hover::before {
    left: 100%;
}

.cta-btn:hover, .cert-enroll-btn:hover, .mobile-cta:hover {
    box-shadow: var(--neon-glow);
    border-color: rgba(255,255,255,0.4);
}

/* High-tech Modals */
.modal-content, .exit-intent-content {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 204, 153, 0.2);
    box-shadow: var(--tech-shadow), 0 0 50px rgba(0, 204, 153, 0.15);
}

/* Program Stats row (tech counters) */
.prog-stat {
    background: rgba(0, 51, 102, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 204, 153, 0.15);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}

.prog-stat:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6), 0 0 25px rgba(0, 204, 153, 0.35);
}

.prog-stat-num {
    text-shadow: 0 0 12px rgba(0, 204, 153, 0.6);
}

/* Glowing text class override */
.text-red {
    color: var(--primary-color) !important;
}

/* Mobile Menu Glassmorphism */
.mobile-menu {
    background: rgba(0, 51, 102, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-color);
}

/* Trust Badges Container */
.accreditation-trust-row > .container > div > div {
    background: rgba(248, 250, 252, 0.8) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,204,153,0.2) !important;
    transition: all 0.3s ease;
}

.accreditation-trust-row > .container > div > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,204,153,0.15);
    border-color: var(--primary-color) !important;
}

/* Footer Tech Styling */
footer {
    position: relative;
    background: #001224; /* Very deep tech navy */
    border-top: 1px solid rgba(0,204,153,0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}
