/* Modern Color Palette - Restored */
:root {
    --primary: #3b82f6;
    /* Vibrant Blue */
    --primary-dark: #1d4ed8;
    /* Deep Blue */
    --accent: #f43f5e;
    /* Rose/Red */
    --dark: #0f172a;
    /* Slate 900 */
    --light: #f8fafc;
    /* Slate 50 */
    --gray: #64748b;
    /* Slate 500 */
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* Increased opacity for better readibility */
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Global Premium Animation Classes */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 40px;
    /* Fixed height for calculations */
    display: flex;
    align-items: center;
}

/* Navbar */
.navbar {
    background: white;
    padding: 0px 0;
    transition: all 0.3s ease-in-out;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.navbar-brand img {
    width: 100px !important;
    height: auto !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    top: 0;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
    top: 0;
    /* Moves to top on scroll */
}

.navbar-brand img {
    height: 50px;
    transition: height 0.3s;
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
    /* Slightly smaller on scroll */
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 12px;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Gradients & Buttons */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
    filter: brightness(1.1);
}

.btn-primary-gradient:focus,
.btn-primary-gradient:active {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
    transform: translateY(0);
}

/* Specific Buttons from Content Req */
.btn-view-details {
    color: var(--primary);
    background: white;
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-view-details:hover {
    background: var(--primary);
    color: white !important;
    /* Force White */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-view-details:focus,
.btn-view-details:active {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn-scholarship {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-scholarship:hover {
    background-color: var(--primary-dark);
    color: white !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-scholarship:focus,
.btn-scholarship:active {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    /* Increased to account for navbar + topbar */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(235, 242, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
    /* Subtle gradient */
}

.hero-bg-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-video-wrapper {
    position: relative;
    padding: 10px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
    transition: transform 0.3s;
    width: 100%;
}

.hero-video-wrapper:hover {
    transform: rotate(0deg) scale(1.01);
}

.hero-video-wrapper iframe {
    width: 100%;
    border-radius: 12px;
    display: block;
    height: 350px;
}

/* Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.modern-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

/* Group Hover Effect for Image Cards */
.group-hover-effect img {
    transition: transform 0.5s ease;
}

.group-hover-effect:hover img {
    transform: scale(1.1);
}

/* Course List in Card */
.course-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.course-list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: var(--gray);
    font-size: 0.95rem;
}

.course-list li::before {
    content: "\F26B";
    /* Bootstrap Icons check */
    font-family: 'bootstrap-icons';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Stats */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    box-shadow: var(--shadow-lg);
    /* Increased shadow depth */
    margin-bottom: 60px;
    border-radius: 20px;
    /* margin-top: -40px; removed negative margin to prevent overlap issues, will handle via spacing */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Footer */
.footer-modern {
    background-color: var(--dark);
    padding-top: 80px;
    padding-bottom: 30px;
    color: white;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Modal */
.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
}

/* Floating Background Icons */
.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    /* Bring to front so they are visible over white backgrounds */
    overflow: hidden;
}

.float-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.08;
    /* Slightly increased for visibility */
    animation: float 25s infinite linear;
    filter: blur(1px);
    /* Soften edges */
}

/* Varied Colors */
.float-icon.text-accent {
    color: var(--accent);
    opacity: 0.06;
}

.float-icon.text-dark {
    color: var(--dark);
    opacity: 0.04;
}

/* Varied Positions & Speeds */
.float-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    animation-duration: 25s;
}

.float-icon:nth-child(2) {
    top: 25%;
    right: 8%;
    font-size: 2.5rem;
    animation-duration: 30s;
    animation-delay: -5s;
}

.float-icon:nth-child(3) {
    bottom: 15%;
    left: 12%;
    font-size: 4rem;
    animation-duration: 35s;
    animation-delay: -10s;
}

.float-icon:nth-child(4) {
    bottom: 30%;
    right: 25%;
    font-size: 3rem;
    animation-duration: 28s;
    animation-delay: -15s;
}

.float-icon:nth-child(5) {
    top: 60%;
    left: 45%;
    font-size: 5rem;
    animation-duration: 45s;
    animation-delay: -20s;
}

.float-icon:nth-child(6) {
    top: 15%;
    right: 35%;
    font-size: 2rem;
    animation-duration: 32s;
    animation-delay: -8s;
}

.float-icon:nth-child(7) {
    bottom: 10%;
    right: 5%;
    font-size: 3.5rem;
    animation-duration: 38s;
    animation-delay: -12s;
}

.float-icon:nth-child(8) {
    bottom: 45%;
    left: 5%;
    font-size: 2.5rem;
    animation-duration: 29s;
    animation-delay: -18s;
}

section.hero-section {
    padding-bottom: 20px !important;
}
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(10deg);
    }

    66% {
        transform: translateY(10px) rotate(-5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media(max-width:767px){
    .navbar-nav {
        padding-bottom: 30px;
    }
}