:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8fafc;
    --tertiary-bg: #e2e8f0;
    --accent-blue: #2563eb;
    --accent-light-blue: #3b82f6;
    --accent-dark-blue: #1d4ed8;
    --accent-navy: #1e40af;
    --accent-sky: #0ea5e9;
    --accent-cyan: #06b6d4;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-tertiary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --dark-navy: #1e3a8a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==== NEW ENHANCED ANIMATIONS ==== */

/* Floating particles background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* Morphing shapes */
.morphing-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morph {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 20% 80% 20% / 20% 80% 20% 80%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 80% 20% 50% 50% / 50% 80% 20% 50%;
        transform: rotate(270deg) scale(1.2);
    }
}

/* Enhanced icon animations with better hover effects */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    background: var(--dark-navy) !important;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.3);
    cursor: pointer;
}

.icon-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg) translateX(-200px);
    transition: all 0.6s ease;
    opacity: 0;
}

.icon-box:hover::before {
    transform: rotate(45deg) translateX(200px);
    opacity: 1;
}

.icon-box:hover {
    transform: scale(1.2) rotate(10deg) translateY(-5px);
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.6);
    background: linear-gradient(135deg, var(--dark-navy) 0%, #1e40af 50%, #3b82f6 100%) !important;
}

.icon-box i {
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.icon-box:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Enhanced button animations */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.btn-gradient span, .btn-gradient i {
    position: relative;
    z-index: 1;
}

.btn-gradient:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gradient:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.5);
    color: white;
}

/* Staggered animation for curriculum cards */
.curriculum-card {
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
    transition: all 0.6s ease;
}

.curriculum-card.animate {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.curriculum-card:nth-child(1) { transition-delay: 0.1s; }
.curriculum-card:nth-child(2) { transition-delay: 0.2s; }
.curriculum-card:nth-child(3) { transition-delay: 0.3s; }
.curriculum-card:nth-child(4) { transition-delay: 0.4s; }
.curriculum-card:nth-child(5) { transition-delay: 0.5s; }
.curriculum-card:nth-child(6) { transition-delay: 0.6s; }

.curriculum-card ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.curriculum-card li {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
    text-align: justify;
}

/* Parallax scrolling effect */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
    transform: translateZ(-1px) scale(1.1);
    z-index: -1;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal-inner {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-reveal.active .text-reveal-inner {
    transform: translateY(0);
}

/* Loading spinner for hero image */
.image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==== EXISTING STYLES (MODIFIED FOR BLUE THEME) ==== */

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 10px 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    margin-top: 10px;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 5px;
}

.dropdown-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.btn-secondary-gradient {
    background: var(--gradient-secondary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-tertiary-gradient {
    background: var(--gradient-tertiary);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    text-align: justify;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* 3D Flip Card for Hero Image */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: var(--gradient-primary);
}

.flip-card img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.flip-card-back-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

/* Card Styles - ENHANCED WITH ANIMATIONS & WHITE BG */
.card-modern {
    background: #ffffff;
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
    height: 100%;
    transform: translateY(0) scale(1);
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.05), transparent);
    transition: left 0.6s ease;
}

.card-modern:hover::before {
    left: 100%;
}

.card-modern:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 60px rgba(30, 58, 138, 0.2);
    border-color: rgba(30, 58, 138, 0.6);
    border-width: 3px;
    background: #ffffff;
}

.card-modern p {
    text-align: justify;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.card-modern:hover p {
    color: #2d3748;
}

/* Enhanced card title animations */
.card-modern h5, .card-modern h6 {
    transition: all 0.3s ease;
    position: relative;
}

.card-modern:hover h5, .card-modern:hover h6 {
    color: var(--dark-navy);
    transform: translateY(-2px);
}

/* Enhanced list item animations */
.card-modern ul li {
    transition: all 0.2s ease;
    position: relative;
    padding-left: 0.5rem;
}

.card-modern:hover ul li {
    transform: translateX(5px);
    color: #1a202c;
}

.card-modern ul li:hover {
    color: var(--dark-navy);
    font-weight: 500;
}

/* Remove individual icon color classes - all will use dark navy */
.icon-blue, .icon-light-blue, .icon-sky, .icon-navy, .icon-cyan, .icon-indigo, .icon-slate, .icon-blue-gray, .icon-steel {
    background: var(--dark-navy) !important;
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Content Sections */
.about-content {
    font-size: 0.8rem;
    display: none;
    margin-top: 1rem;
    scroll-margin-top: 120px;
}

.about-content.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.about-content p {
    text-align: justify;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial Grid */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.testimonial-card p {
    font-size: 0.8rem;
    text-align: justify;
}

/* Testimonial Cards - Enhanced with animations */
.testimonial-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid rgba(30, 58, 138, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.08);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.03), transparent);
    transition: left 0.5s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(30, 58, 138, 0.5);
    box-shadow: 0 20px 45px rgba(30, 58, 138, 0.15);
    border-width: 3px;
    background: #ffffff;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(208, 14, 14);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stars {
    background: linear-gradient(135deg, hsl(42, 88%, 46%) 0%, #eeaa0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* === SECTION SPACING UTILITIES === */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    text-align: center;
}

/* Floating Social Media Buttons */
.social-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0);
    animation: socialBounceIn 0.6s ease forwards;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.2);
}

.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    animation: pulse 3s infinite, socialBounceIn 0.6s ease forwards;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 50px;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
}

@keyframes socialBounceIn {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(37, 211, 102, 0.8), 0 0 0 20px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
}

.social-float-btn:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
}

.whatsapp-float:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

/* ==== FIXED INSTAGRAM REEL LAYOUT - ALWAYS 3 IN A ROW ==== */
.reel-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.reel-card {
    width: 100%;
    aspect-ratio: 9/16;
    min-height: 400px;
    max-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Ensure 3 items always visible on all screen sizes */
/* Desktop First Default */
.reel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.reel-card {
    flex: 1 1 300px;
    max-width: 350px;
    min-height: 700px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reel-card iframe {
    width: 100%;
    height: 100%;
    min-height: 700px;
    border: none;
    display: block;
}

/* Breakpoints */
@media (max-width: 1400px) {
    .reel-container {
        max-width: 1000px;
        gap: 20px;
        padding: 40px 20px;
    }

    .reel-card {
        min-height: 650px;
    }

    .reel-card iframe {
        min-height: 650px;
    }
}

@media (max-width: 1200px) {
    .reel-container {
        max-width: 900px;
        gap: 18px;
        padding: 35px 18px;
    }

    .reel-card {
        min-height: 600px;
    }

    .reel-card iframe {
        min-height: 600px;
    }
}

@media (max-width: 992px) {
    .reel-container {
        max-width: 750px;
        gap: 16px;
        padding: 30px 16px;
    }

    .reel-card {
        min-height: 550px;
    }

    .reel-card iframe {
        min-height: 550px;
    }
}

@media (max-width: 768px) {
    .reel-container {
        max-width: 600px;
        gap: 12px;
        padding: 25px 12px;
    }

    .reel-card {
        min-height: 500px;
    }

    .reel-card iframe {
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .reel-container {
        max-width: 500px;
        gap: 10px;
        padding: 20px 10px;
    }

    .reel-card {
        min-height: 450px;
    }

    .reel-card iframe {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .reel-container {
        max-width: 400px;
        gap: 8px;
        padding: 15px 8px;
    }

    .reel-card {
        min-height: 420px;
    }

    .reel-card iframe {
        min-height: 420px;
    }
}

@media (max-width: 380px) {
    .reel-container {
        max-width: 350px;
        gap: 6px;
        padding: 10px 6px;
    }

    .reel-card {
        min-height: 400px;
    }

    .reel-card iframe {
        min-height: 400px;
    }
}

/* Tooltip for social buttons */
.social-float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-float-btn::after {
    content: '';
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-float-btn:hover::before,
.social-float-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide social buttons on very small screens */
@media (max-width: 480px) {
    .social-float-container {
        right: 15px;
        bottom: 15px;
    }

    .social-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.map-wrapper {
    width: 100%;
    max-width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* CONTACT SECTION ICONS FIX - All icons same size */
#contact .d-flex .rounded-circle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */

/* Mobile Navigation Enhancements */
@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-toggler {
        border: 2px solid var(--accent-blue);
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--gradient-primary);
        color: white !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .btn-gradient {
        margin: 1rem auto 0;
        display: block;
        width: fit-content;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: none;
        background: rgba(37, 99, 235, 0.05);
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Tablet and Mobile Hero Section */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-top: 60px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .flip-card {
        height: 280px;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-gradient {
        width: 100%;
        max-width: 300px;
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Card Modern Mobile */
    .card-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-modern h5, .card-modern h6 {
        font-size: 1.1rem;
    }
    
    .card-modern p {
        font-size: 0.9rem;
    }
    
    /* Section Spacing Mobile */
    .section {
        padding: 60px 0;
    }
    
    /* Icon Box Mobile */
    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Curriculum Cards Mobile */
    .curriculum-card {
        margin-bottom: 1rem;
    }
    
    .curriculum-card ul {
        padding-left: 1.2rem;
    }
    
    .curriculum-card li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    /* Contact Section Mobile */
    #contact .row {
        margin: 0;
    }
    
    #contact .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    #contact iframe {
        height: 350px;
    }
    
    /* Reel Container Mobile */
    .reel-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }
    
    .reel-card {
        max-width: 100%;
        min-height: 500px;
        margin-bottom: 1.5rem;
    }
    
    .reel-card iframe {
        min-height: 500px;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-top: 50px;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .flip-card {
        height: 250px;
    }
    
    .card-modern {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stars {
        font-size: 1.5rem;
    }
    
    .btn-gradient {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* About Content Mobile */
    .about-content {
        padding: 1rem 0;
    }
    
    .about-content .row {
        margin: 0;
    }
    
    .about-content .col-lg-4,
    .about-content .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Curriculum Mobile */
    #curriculum .row {
        margin: 0;
    }
    
    #curriculum .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact Mobile */
    #contact .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #contact .d-flex .rounded-circle {
        margin: 0 auto 0.5rem;
    }
    
    #contact iframe {
        height: 300px;
    }
    
    /* Reel Mobile */
    .reel-card {
        min-height: 450px;
    }
    
    .reel-card iframe {
        min-height: 450px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
        font-size: 0.9rem;
    }
    
    /* Social Float Mobile */
    .social-float-container {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .card-modern {
        padding: 1rem;
    }
    
    .btn-gradient {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    
    .reel-card {
        min-height: 400px;
    }
    
    .reel-card iframe {
        min-height: 400px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-top: 40px;
    }
    
    .flip-card {
        height: 250px;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE TOUCH OPTIMIZATIONS ===== */

/* Better Touch Targets for Mobile */
@media (max-width: 768px) {
    .btn-gradient,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text selection on buttons during touch */
    .btn-gradient,
    .card-modern {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
        -webkit-touch-callout: none;
        user-select: none;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better card touch feedback */
    .card-modern:active {
        transform: scale(0.98);
    }
    
    .btn-gradient:active {
        transform: scale(0.95);
    }
}

/* ===== SIMPLE & COMPACT ACHIEVERS SECTION ===== */
.achievers-section {
    padding: 60px 0;
}

.achievers-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.achiever-card-simple {
    background: white;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.achiever-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

.achiever-card-simple:hover::before {
    left: 100%;
}

.achiever-card-simple:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
}

.achiever-initial {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--accent-blue) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.achiever-card-simple:hover .achiever-initial {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.achiever-name-simple {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.achiever-card-simple:hover .achiever-name-simple {
    color: var(--accent-blue);
}

.achiever-role-simple {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.achiever-company-simple {
    font-size: 0.9rem;
    color: var(--dark-navy);
    font-weight: 600;
    margin: 0 0 10px 0;
    padding: 6px 12px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.achiever-card-simple:hover .achiever-company-simple {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}

.achiever-education-simple {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.achiever-education-simple i {
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--dark-navy);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: var(--dark-navy);
    opacity: 0.3;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-blue);
    opacity: 1;
    transform: scale(1.3);
}

/* Achievers Mobile Styles */
@media (max-width: 992px) {
    .achievers-grid-simple {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 18px;
    }
    
    .achiever-initial {
        width: 65px;
        height: 65px;
        font-size: 1.8rem;
    }
    
    .achiever-name-simple {
        font-size: 1rem;
    }
    
    .achiever-role-simple {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .achievers-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }
    
    .achiever-card-simple {
        padding: 20px 15px;
    }
    
    .achiever-initial {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .achiever-name-simple {
        font-size: 0.95rem;
    }
    
    .achiever-role-simple {
        font-size: 0.75rem;
    }
    
    .achiever-company-simple {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .achiever-education-simple {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .achievers-grid-simple {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .achiever-card-simple {
        padding: 25px 20px;
    }
    
    .achiever-initial {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Loading States for Better UX */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions for All Interactive Elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better Focus States for Accessibility */
.btn-gradient:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Reduce animations on low-end devices */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Optimize rendering */
    .card-modern,
    .testimonial-card {
        will-change: transform;
    }
}

/* Smooth Scrolling for Better UX */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Better Text Rendering on Mobile */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: var(--gradient-secondary);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== SKIP TO CONTENT LINK (Accessibility) ===== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--dark-navy);
    color: white;
    padding: 1rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== ENHANCED INTERACTIVE EFFECTS ===== */

/* Pulse Animation for Icons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* In-view Animation */
.in-view {
    animation: fadeInUp 0.6s ease forwards;
}

/* Enhanced Card Click Feedback */
.card-modern:active,
.testimonial-card:active {
    transform: scale(0.98) !important;
}

/* Loading State for Images */
img {
    transition: opacity 0.3s ease;
}

/* Enhanced Focus States */
.card-modern:focus,
.testimonial-card:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

/* Smooth Transitions for All Interactive Elements */
.btn-gradient,
.card-modern,
.testimonial-card,
.nav-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover Effects for Better UX */
.card-modern:hover .icon-box {
    animation: pulse 0.6s ease;
}

/* Progress Indicator on Scroll */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Enhanced Button States */
.btn-gradient:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

.btn-gradient:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Smooth Page Load */
body {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Enhanced Dropdown Animations */
.dropdown-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Enhanced Testimonial Cards */
.testimonial-card {
    cursor: pointer;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.testimonial-avatar {
    transition: all 0.3s ease;
}

/* Progress Bar on Scroll */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light-blue));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ===== CUSTOM TOOLTIPS ===== */
.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

/* ===== NOTIFICATION SYSTEM ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10002;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-info {
    background: var(--accent-blue);
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-warning {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* ===== EXTERNAL LINK INDICATOR ===== */
a[target="_blank"] i.fa-external-link-alt {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

a[target="_blank"]:hover i.fa-external-link-alt {
    opacity: 1;
}

/* ===== ENHANCED ACCESSIBILITY ===== */
*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile Menu Animation */
@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .navbar-collapse.show {
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }
}

/* Improved Hero Stats on Mobile */
@media (max-width: 576px) {
    .hero-stats > div {
        flex: 1;
        min-width: 100px;
    }
}

/* Better Spacing for Mobile Sections */
@media (max-width: 768px) {
    .row.g-4 {
        margin: 0;
    }
    
    .row.g-4 > * {
        padding: 0.75rem;
    }
}

/* Instagram Reels Mobile Optimization */
@media (max-width: 768px) {
    .reel-container {
        padding: 15px 10px;
    }
    
    .reel-card {
        border-radius: 10px;
    }
}

/* Contact Section Mobile Improvements */
@media (max-width: 768px) {
    #contact .card-modern {
        margin-bottom: 1.5rem;
    }
    
    #contact .d-flex {
        padding: 1rem;
    }
    
    #contact .d-flex .rounded-circle {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Testimonial Grid Mobile */
@media (max-width: 576px) {
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    .testimonial-card p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Curriculum Cards Mobile Spacing */
@media (max-width: 768px) {
    #curriculum .row {
        margin: 0 -0.5rem;
    }
    
    #curriculum .col-lg-4 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
}

/* About Content Mobile */
@media (max-width: 768px) {
    .about-content .row {
        margin: 0;
    }
    
    .about-content .col-lg-4,
    .about-content .col-lg-3 {
        padding: 0.75rem;
    }
}
