/* Global Styles for STEMulus */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   PAGE LOADER
======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6B7DB3 0%, #A78BFA 50%, #5A6A9A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 200px;
    height: auto;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-top: 24px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #FF9B7A, #A78BFA, #FF9B7A);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: shimmer 1.5s linear infinite, loader-fill 2s ease-out forwards;
}

@keyframes loader-fill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9B7A, #A78BFA);
    z-index: 9998;
    transition: width 0.1s linear;
}

/* ========================================
   CURSOR GLOW EFFECT
======================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 155, 122, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* ========================================
   TILT EFFECT FOR CARDS
======================================== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

.tilt-card-inner {
    transform: translateZ(20px);
}

/* ========================================
   MAGNETIC BUTTON EFFECT
======================================== */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* ========================================
   REVEAL ANIMATIONS
======================================== */
.reveal-hidden {
    opacity: 0;
    transform: translateY(50px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left-hidden {
    opacity: 0;
    transform: translateX(-50px);
}

.reveal-right-hidden {
    opacity: 0;
    transform: translateX(50px);
}

.reveal-scale-hidden {
    opacity: 0;
    transform: scale(0.9);
}

/* ========================================
   SHIMMER EFFECT
======================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.shimmer-text {
    background: linear-gradient(90deg, #fff 0%, #FF6D00 25%, #fff 50%, #673AB7 75%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* ========================================
   SMOOTH HOVER LIFT
======================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ========================================
   STAGGER ANIMATION DELAYS
======================================== */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* ========================================
   NAVBAR SCROLL EFFECT
======================================== */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FAFBFC;
    color: #4A5568;
    overflow-x: hidden;
}

/* ========================================
   PASTEL COLOR PALETTE
   A softer, modern aesthetic
======================================== */

/* Cosmic Blue -> Pastel Navy/Slate Blue */
.bg-cosmic-blue {
    background-color: #6B7DB3;
}

.text-cosmic-blue {
    color: #5A6A9A;
}

/* Supernova Orange -> Pastel Coral/Peach */
.bg-supernova-orange {
    background-color: #FF9B7A;
}

.text-supernova-orange {
    color: #FF8A65;
}

.hover\:bg-orange-700:hover {
    background-color: #FF7043;
}

/* Galaxy Purple -> Pastel Lavender */
.bg-galaxy-purple {
    background-color: #A78BFA;
}

.text-galaxy-purple {
    color: #9775E4;
}

/* Circuit Green -> Pastel Mint */
.bg-circuit-green {
    background-color: #6EE7B7;
}

.text-circuit-green {
    color: #5DD4A8;
}

/* Rocket Yellow -> Pastel Soft Yellow */
.bg-rocket-yellow {
    background-color: #FDE68A;
}

.text-rocket-yellow {
    color: #F9D56E;
}

/* Additional Pastel Utilities */
.bg-pastel-pink {
    background-color: #FBB6CE;
}

.text-pastel-pink {
    color: #F687B3;
}

.bg-pastel-sky {
    background-color: #7DD3FC;
}

.text-pastel-sky {
    color: #6BCBF5;
}

/* Gradients - Updated for Pastel */
.hero-gradient {
    background: radial-gradient(circle at 10% 20%, #6B7DB3 0%, #4A5A8A 90%);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 0;
    box-shadow:
        0 4px 20px 0 rgba(31, 38, 135, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    min-height: 70px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.glass-nav nav {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 70px;
}

/* Mobile Menu Dropdown Styling */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    padding-top: 1rem !important;
}

#mobile-menu:not(.hidden) {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

#mobile-menu a:hover {
    background: rgba(255, 155, 122, 0.1);
}

#mobile-menu .border-t {
    border-color: rgba(0, 0, 0, 0.1);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

/* Mobile Menu Button - Enroll Now */
#mobile-menu a[href*="forms.gle"] {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Navbar Logo - Larger, more conspicuous logo that overflows navbar */
.nav-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-top: -15px;
    margin-bottom: -15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* Background Patterns */
.bg-pattern-circuit {
    background-image: radial-gradient(rgba(26, 35, 126, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-pattern-grid {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.bg-pattern-dots-white {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Animations */
.btn-glow {
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 109, 0, 0.6);
    transform: translateY(-2px);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Happy Jump Animation for Hero Image */
@keyframes happy-jump {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    15% {
        transform: translateY(-15px) rotate(-2deg) scale(1.02);
    }

    30% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    45% {
        transform: translateY(-10px) rotate(1deg) scale(1.01);
    }

    60% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.hero-image-jump {
    transition: all 0.3s ease;
}

.hero-image-jump:hover {
    animation: happy-jump 0.8s ease-in-out;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 109, 0, 0.15) 0%, rgba(255, 109, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Hide Scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Program Card Hover */
.program-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero Sections with Background Images */
.hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

@media (max-width: 768px) {
    .hero-with-bg {
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
        min-height: 70vh;
        padding-top: 6rem;
    }
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(107, 125, 179, 0.75) 0%, rgba(167, 139, 250, 0.8) 100%);
    z-index: 1;
}

.hero-with-bg>* {
    position: relative;
    z-index: 2;
}

/* Ensure hero content container is properly centered */
.hero-with-bg .container {
    position: relative;
    z-index: 10;
}

/* Hero text classes for proper visibility */
.hero-title {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 1px 5px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    text-shadow: none;
}

/* Premium Design Utilities */
.glass-card-premium {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(13, 22, 66, 0.1);
}

.float-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.stagger-grid>div:nth-child(even) {
    transform: translateY(40px);
}

@media (max-width: 768px) {
    .stagger-grid>div:nth-child(even) {
        transform: translateY(0);
    }
}

.comparison-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f4ff 100%);
    position: relative;
    overflow: hidden;
}

.comparison-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 109, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================================
   TEXT READABILITY & CONTRAST UTILITIES
   ======================================== */

/* Text Shadows for Dark Backgrounds */
.text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.text-shadow-xl {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Glow shadows for light text on dark backgrounds */
.text-glow-orange {
    text-shadow: 0 0 20px rgba(255, 109, 0, 0.5), 0 0 40px rgba(255, 109, 0, 0.3);
}

.text-glow-white {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Enhanced readable text colors */
.text-white-readable {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.text-gray-light-readable {
    color: #e5e5e5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* High contrast text for light backgrounds */
.text-dark-readable {
    color: #1e293b;
}

.text-muted-readable {
    color: #64748b;
}

/* Hero section text enhancements */
.hero-text-primary {
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.hero-text-secondary {
    color: #e2e8f0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text-accent {
    color: #FF6D00;
    text-shadow: 0 0 20px rgba(255, 109, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HERO TEXT ANIMATIONS
======================================== */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroTextGlow {

    0%,
    100% {
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
    }

    50% {
        text-shadow: 0 4px 20px rgba(255, 109, 0, 0.3), 0 6px 16px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
    }
}

.hero-title {
    animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-badge {
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-cta {
    opacity: 0;
    animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* Important text emphasis with subtle glow pulse */
.hero-emphasis {
    animation: heroTextGlow 3s ease-in-out infinite;
}

/* Hero content container for left-aligned layout */
.hero-content-left {
    text-align: left;
    max-width: 800px;
}

/* Card text readability */
.card-title {
    color: #1A237E;
    font-weight: 700;
    line-height: 1.3;
}

.card-text {
    color: #4b5563;
    line-height: 1.6;
}

.card-text-light {
    color: #9ca3af;
    line-height: 1.5;
}

/* Badge text on colored backgrounds */
.badge-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* Link readability enhancements */
a.link-readable {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Footer text contrast */
.footer-text {
    color: #cbd5e1;
}

.footer-text-muted {
    color: #94a3b8;
}

/* Form label readability */
.label-readable {
    color: #374151;
    font-weight: 600;
}

/* Testimonial text styling */
.testimonial-text {
    color: #4b5563;
    font-style: italic;
    line-height: 1.7;
}

/* Stats section text */
.stats-number {
    color: #1A237E;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stats-label {
    color: #6b7280;
    font-weight: 500;
}

/* CTA section text on dark backgrounds */
.cta-heading {
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.cta-text {
    color: #d1d5db;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Overlay text protection */
.overlay-text-protection {
    position: relative;
}

.overlay-text-protection::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.overlay-text-protection>* {
    position: relative;
    z-index: 2;
}

/* Improved color contrast utilities */
.bg-readable-dark {
    background-color: rgba(0, 0, 0, 0.7);
}

.bg-readable-light {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Button text readability */
.btn-text-white {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-text-dark {
    color: #1A237E;
}

/* Gradient text with fallback for readability */
.gradient-text-readable {
    background: linear-gradient(135deg, #FF6D00 0%, #FFD600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback for browsers that don't support background-clip */
    -webkit-text-fill-color: transparent;
}

/* Section heading styles */
.section-heading {
    color: #1A237E;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subheading {
    color: #4b5563;
    line-height: 1.6;
}

/* Pill/tag text */
.pill-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation text improvements */
.nav-link-text {
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link-text:hover {
    color: #FF6D00;
}

/* Improved input placeholder contrast */
input::placeholder,
textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Selection styling for better readability */
::selection {
    background-color: #FF6D00;
    color: #ffffff;
}

::-moz-selection {
    background-color: #FF6D00;
    color: #ffffff;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Mobile First Base (xs screens < 640px) */
@media (max-width: 639px) {

    /* Hero Section */
    .hero-with-bg {
        min-height: 100vh;
        padding-top: 5rem;
    }

    /* Ensure hero glow doesn't push content on mobile */
    .hero-glow {
        position: absolute !important;
    }

    /* Reduce heading sizes on mobile */
    h1,
    .text-5xl,
    .text-6xl,
    .text-7xl {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    h2,
    .text-4xl {
        font-size: 1.75rem !important;
    }

    h3,
    .text-3xl {
        font-size: 1.5rem !important;
    }

    /* Mobile Hero Section Text - More spread out and readable */
    /* Targets hero sections on program pages (not Index which uses .hero-content) */
    .hero-with-bg .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: 0 !important;
        right: 0 !important;
        position: relative !important;
    }

    /* Mobile hero text container with background for better readability */
    .hero-with-bg .container>* {
        text-align: center !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-title {
        font-size: 1.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.25rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        letter-spacing: -0.02em;
        max-width: calc(100% - 0.5rem) !important;
        width: auto !important;
        text-align: center !important;
        padding: 0.75rem 1rem;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 0.75rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-sizing: border-box;
        display: block !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.75 !important;
        margin-bottom: 1.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: calc(100% - 0.5rem) !important;
        width: auto !important;
        padding: 0.75rem 1rem;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 0.75rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        box-sizing: border-box;
        display: block !important;
    }

    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-cta {
        gap: 1rem !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        justify-content: center;
    }

    .hero-cta a {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        text-align: center;
    }

    /* Hero layout */
    .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Button sizing */
    .btn-glow,
    a.btn-glow {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }

    /* Card spacing */
    .glass-card,
    .glass-card-dark {
        padding: 1.25rem !important;
    }

    /* Navbar */
    .glass-nav {
        margin: 0.5rem;
        border-radius: 1rem;
    }

    /* Footer grid */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    /* Hide cursor glow on mobile */
    .cursor-glow {
        display: none;
    }

    /* STEM-Bot section */
    .lg\:flex-row {
        flex-direction: column !important;
    }

    /* Interest buttons grid */
    #interests {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    #interests button {
        padding: 0.75rem !important;
    }

    #interests .w-14 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    /* Stats grid */
    .grid {
        gap: 1rem;
    }

    /* Section padding */
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet (sm to md: 640px - 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {

    h1,
    .text-5xl,
    .text-6xl {
        font-size: 2.5rem !important;
    }

    h2,
    .text-4xl {
        font-size: 2rem !important;
    }

    /* Two column grids on tablet */
    .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Hero visual section */
    .lg\:w-1\/2 {
        width: 100% !important;
    }

    /* Feature cards */
    #interests {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Section padding */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Desktop (lg: 1024px and up) */
@media (min-width: 1024px) {

    /* Ensure proper spacing on large screens */
    .container {
        max-width: 1280px;
    }

    /* Hero section enhancements */
    .hero-with-bg {
        min-height: 100vh;
    }

    /* Proper grid layouts */
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop (xl: 1280px+) */
@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
    }

    /* Larger headings on big screens */
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }
}

/* Touch device improvements */
@media (hover: none) {

    /* Remove hover effects on touch devices */
    .hover\:scale-105:hover,
    .hover\:-translate-y-2:hover {
        transform: none;
    }

    /* Larger touch targets */
    button,
    a,
    .interest-btn,
    .exp-btn {
        min-height: 44px;
    }
}

/* Print styles */
@media print {

    .page-loader,
    .scroll-progress,
    .cursor-glow,
    .hero-glow,
    nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ========================================
   FLOATING WHATSAPP CTA BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow:
        0 8px 30px rgba(37, 211, 102, 0.5),
        0 12px 40px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 75px;
    background: #1A237E;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #1A237E;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.2),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.2),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}

/* =========================================
   Modal Styles
   ========================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #FF6D00;
}

.modal-body {
    padding: 0;
}

.modal-image-container {
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2.5rem;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1A237E;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.modal-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.modal-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
}

.modal-btn {
    background: #FF6D00;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: #E65100;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 109, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-image-container {
        height: 250px;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

/* =========================================
   Index.html Hero Helpers
   ========================================= */
.hero-content-overlap {
    margin-left: -149%;
    margin-top: 10%;
    width: 200%;
}

.hero-visual-overlap {
    margin-left: -70%;
}

@media (max-width: 1024px) {
    .hero-content-overlap {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
    }

    .hero-visual-overlap {
        margin-left: 0;
    }
}
/* =========================================
   Glassmorphism UI Utilities
   ========================================= */
:root {
    --glass-bg-dark: rgba(13, 17, 23, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: 12px;
}

.glass-panel {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1rem;
}

.glass-panel-light {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 1rem;
}

.glass-panel-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--supernova-orange);
    outline: none;
}

/* Specific Component Overrides */
.program-card.glass-panel {
    overflow: hidden;
}

.feature-card.glass-panel {
    padding: 2rem;
}

.testimonial-card.glass-panel {
    padding: 2rem;
    position: relative;
}


/* =========================================
   Glassmorphism UI Utilities
   ========================================= */
:root {
    --glass-bg-dark: rgba(13, 17, 23, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: 12px;
}

.glass-panel {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1rem;
}

.glass-panel-light {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-radius: 1rem;
}

.glass-panel-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

