/* Base Styles & Variables */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --animation-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hidden {
    display: none;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-title {
    font-size: 2.5rem;
    color: var(--gray-900);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal) var(--animation-curve);
    text-align: center;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
.btn-secondary {
background: linear-gradient(135deg, #cbb3b3 0%, #bfa7c8 50%, #d4c3ca 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-block {
    display: block;
    width: 100%;
}
/* --- CARHUB-STYLE BUTTON HOVER (Enhanced Shadow) --- */
.btn-primary:hover,
.btn-outline:hover,
.btn-secondary:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal) var(--animation-curve);
}
.navbar.scrolled {
    padding: 10px 0;
    background: transparent;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}
.logo-edu {
    color: var(--primary-color);
}
.logo-sphere {
    color:orangered;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-links li a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: all var(--transition-fast) var(--animation-curve);
    position: relative;
}
.nav-links li a:hover {
    color: var(--primary-color);   /* sirf color change hoga */
}
/* underline ka pseudo-element */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast) var(--animation-curve);
}
/* sirf active link pe underline */
.nav-links li a.active {
    color: var(--primary-color);
    font-weight: 600;
}
.nav-links li a.active::after {
    width: 100%;
}
/* For Mobile Menu */
#mobile-menu .nav-link.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    transform: translateX(0); /* Override the hover effect */
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-fast) var(--animation-curve);
}
.hamburger.active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}
/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.703); /* optional: image thodi dark karne ke liye */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}
.hero-lead {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}
.hero-actions .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
}
.hero-stats {
    display: flex;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 1.2s;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: white;
}
.stat-label {
    font-size: 1rem;
    display: block;
    opacity: 0.9;
}
/* --- PULSE ANIMATION --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse {
    animation: pulse 2s ease-in-out infinite;
}
/* Hero Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}
.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    width: 6px;
    height: 6px;
}
.particle:nth-child(2) {
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}
.particle:nth-child(3) {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
    width: 3px;
    height: 3px;
}
.particle:nth-child(4) {
    top: 30%;
    left: 60%;
    animation-delay: 3s;
    width: 5px;
    height: 5px;
}
.particle:nth-child(5) {
    top: 70%;
    left: 40%;
    animation-delay: 4s;
}
.particle:nth-child(6) {
    top: 15%;
    left: 70%;
    animation-delay: 5s;
    width: 2px;
    height: 2px;
}
.particle:nth-child(7) {
    top: 50%;
    left: 10%;
    animation-delay: 1.5s;
}
.particle:nth-child(8) {
    top: 80%;
    left: 85%;
    animation-delay: 2.5s;
    width: 4px;
    height: 4px;
}
.particle:nth-child(9) {
    top: 25%;
    left: 30%;
    animation-delay: 3.5s;
}
.particle:nth-child(10) {
    top: 65%;
    left: 75%;
    animation-delay: 4.5s;
    width: 6px;
    height: 6px;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
}
/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.course-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal) var(--animation-curve);
    opacity: 0;
    transform: translateY(50px);
    text-decoration: none;
}
.course-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.course-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--animation-curve);
}
.course-card:hover .course-img img {
    transform: scale(1.1);
}
.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity var(--transition-normal) var(--animation-curve);
}
.course-card:hover .course-overlay {
    opacity: 1;
}
.course-content {
    padding: 25px;
}
.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}
.course-content p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-level {
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}
.course-level.beginner {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success-color);
}
.course-level.intermediate {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
}
.course-level.advanced {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}
.course-level.all {
    background: rgba(67, 97, 238, 0.15);
    color: var(--primary-color);
}
.section-footer {
    text-align: center;
}
#viewAllCourses {
    margin-top: 20px;
    padding: 12px 32px;
}
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal) var(--animation-curve);
}
.about-image:hover img {
    transform: scale(1.05);
}
.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal) var(--animation-curve);
}
.about-image:hover .about-image-overlay {
    opacity: 1;
}
.about-content h2 {
    margin-bottom: 1.5rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
}
.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all var(--transition-normal) var(--animation-curve);
}
.feature-item:hover .feature-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}
.feature-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
}
/* Teachers Section */
.bg-light {
    background: var(--gray-100);
}
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.teacher-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal) var(--animation-curve);
    opacity: 0;
    transform: translateY(50px);
}
.teacher-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.teacher-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal) var(--animation-curve);
}
.teacher-card:hover .teacher-img img {
    transform: scale(1.1);
}
.teacher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.586);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal) var(--animation-curve);
    transform: scale(0.9);
}
.teacher-card:hover .teacher-overlay {
    opacity: 1;
    transform: scale(1);
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: white;
    font-size: 1.2rem;
   transition: all 0.2s var(--animation-curve);
}
.social-links a:hover {
    transform: translateY(-3px);
    color: red;
}
.teacher-content {
    padding: 25px;
    text-align: center;
}
.teacher-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--gray-900);
}
.teacher-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.stars {
    color: #ffc107;
    font-size: 1rem;
}
/* Testimonials Section */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.testimonial-rotator {
    opacity: 0;
    transform: translateY(30px);
}
.testimonial-rotator.visible {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.testimonial-card::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(67, 97, 238, 0.1);
    font-family: serif;
    line-height: 1;
}
.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.testimonial-info {
    text-align: left;
}
.testimonial-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.1rem;
}
.testimonial-title {
    color: var(--primary-color);
    font-size: 0.9rem;
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast) var(--animation-curve);
    font-size: 1rem;
}
.icon-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}
/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all var(--transition-normal) var(--animation-curve);
}
.contact-item:hover .contact-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--gray-900);
}
.contact-item p {
    color: var(--gray-600);
}
.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(30px);
}
.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast) var(--animation-curve);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}
.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}
.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}
.newsletter-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}
.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}
.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.newsletter-form button {
    padding: 15px 30px;
    white-space: nowrap;
}
/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.footer-logo .logo-edu {
    color: var(--primary-color);
}
.footer-logo .logo-sphere {
    color: var(--accent-color);
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    line-height: 1.7;
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
   transition: all 0.2s var(--animation-curve);

    font-size: 1rem;
}
.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}
.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s var(--animation-curve);

    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal) var(--animation-curve);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}
/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) var(--animation-curve);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: white;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal) var(--animation-curve);
}
.modal-overlay.active .modal {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast) var(--animation-curve);
    z-index: 10;
}
.modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
}
.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
}
.modal-header h2 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin-bottom: 0;
}
.modal-body {
    padding: 30px 40px;
}
.modal-body .form-group {
    margin-bottom: 25px;
}
.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-800);
}
.modal-body .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-fast) var(--animation-curve);
}
.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}
.forgot-password {
    display: block;
    text-align: right;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: all var(--transition-fast) var(--animation-curve);
}
.forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
.divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--gray-300);
}
.divider::before {
    left: 0;
}
.divider::after {
    right: 0;
}
.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.social-btn {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}
.social-btn i {
    font-size: 1.1rem;
}
.modal-footer-text {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
}
.modal-footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast) var(--animation-curve);
}
.modal-footer-text a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- FLOATING ANIMATION (From CarHub) --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.floating {
    animation: float 5s ease-in-out infinite;
}
/* --- TEXT SHINE EFFECT (From CarHub) --- */
.text-shine {
    background: linear-gradient(to right, #4b5563 0%, white 10%, #4b5563 20%);
    background-position: 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    animation-fill-mode: forwards;
}
@keyframes shine {
    0% { background-position: 0; }
    60% { background-position: 180px; }
    100% { background-position: 180px; }
}
/* --- GRADIENT BACKGROUND ANIMATION (From CarHub) --- */
.gradient-bg {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 80px 0;
    }
    .section-title {
        font-size: 2.2rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right var(--transition-normal) var(--animation-curve);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-lead {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-item {
        margin-bottom: 20px;
    }
    .teachers-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .modal {
        width: 95%;
        margin: 20px;
    }
}
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-actions .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    .stat-number {
        font-size: 2rem;
    }
    .testimonial-card {
        padding: 30px 20px;
    }
    .contact-form {
        padding: 30px 20px;
    }
}
/* Additional Animations with GSAP will be handled in JavaScript */