/* ========================================
   GYANBOOSTER COACHING INSTITUTE
   Modern Design - Inspired by PW & Vedantu
   ======================================== */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* DESIGN TOKENS */
:root {
    /* Brand Colors */
    --primary-color: #FF6B35;
    --primary-dark: #E85A28;
    --primary-light: #FF8C61;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C61 100%);

    --secondary-color: #0A2463;
    --secondary-dark: #051638;
    --secondary-light: #1E3A8A;
    --secondary-gradient: linear-gradient(135deg, #0A2463 0%, #1E3A8A 100%);

    --success-color: #2D6A4F;
    --success-light: #52B788;

    /* Neutrals */
    --dark-bg: #0A1929;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #4A5568;
    --text-light: #718096;
    --border-color: #E2E8F0;

    /* Spacing */
    --section-padding: 80px;
    --card-padding: 28px;
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 24px rgba(255, 107, 53, 0.2);

    /* Transitions */
    --transition: 0.3s ease;
}

/* GLOBAL STYLES */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* FLOATING ACTION BUTTONS */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab-whatsapp,
.fab-call {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    text-decoration: none;
}

.fab-whatsapp {
    background: #25D366;
}

.fab-call {
    background: var(--primary-color);
}

.fab-whatsapp:hover,
.fab-call:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* SKIP LINK */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60%;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

.future a {
    opacity: 0.4;
    cursor: not-allowed;
}

.future a::after {
    display: none;
}

/* ========================================
   MODERN HERO SECTION
   ======================================== */
.hero-modern {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-modern {
    animation: fadeInLeft 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text-modern h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text-modern p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large,
.btn-outline-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary-large {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary-large {
    background: var(--white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary-large:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-large {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-large:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.trust-label {
    font-size: 14px;
    color: var(--text-medium);
    margin-top: 4px;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-image-modern {
    animation: fadeInRight 0.8s ease;
}

.hero-image-modern img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   MODERN COURSES SECTION
   ======================================== */
.courses-modern {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-medium);
}

.course-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.course-card-modern {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: all var(--transition);
    position: relative;
}

.course-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.course-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.course-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.course-card-modern>p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 20px;
}

.course-features li {
    color: var(--text-medium);
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.course-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all var(--transition);
}

.course-link:hover {
    gap: 8px;
}

/* ========================================
   WHY CHOOSE US - MODERN
   ======================================== */
.why-modern {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
}

.why-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.why-card-modern {
    background: var(--white);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.why-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success-light);
}

.why-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.why-card-modern h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.why-card-modern p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ========================================
   CTA SECTION - MODERN
   ======================================== */
.cta-modern {
    padding: 80px 0;
    background: var(--secondary-gradient);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark-bg);
    color: #CBD5E1;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 16px;
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer p {
    line-height: 1.8;
    color: #94A3B8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #94A3B8;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   LEGACY SUPPORT (for other pages)
   ======================================== */
.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 40px;
}

.courses,
.why-us {
    padding: var(--section-padding) 0;
}

.course-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.course-card,
.why-card {
    background: var(--white);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all var(--transition);
}

.course-card:hover,
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.course-card h3,
.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.course-card p,
.why-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

.final-cta {
    padding: 80px 0;
    background: var(--secondary-gradient);
    color: var(--white);
    text-align: center;
}

.final-cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 32px;
}

/* ========================================
   SUCCESS STORIES SECTION
   ======================================== */
.success-stories {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.success-card {
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.success-card:hover::before {
    transform: scaleX(1);
}

.success-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.success-rank {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.success-avatar {
    font-size: 64px;
    margin-bottom: 12px;
}

.success-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.success-exam {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.success-quote {
    color: var(--text-medium);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   TESTIMONIALS CAROUSEL
   ======================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF5F0 0%, #F0F9FF 100%);
    border-radius: 50%;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Carousel Navigation */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}

.testimonial-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.testimonial-prev {
    left: 20px;
}

.testimonial-next {
    right: 20px;
}

/* Carousel Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.testimonial-dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.testimonial-dot:hover {
    background: var(--primary-light);
}

/* ========================================
   LEARNING FEATURES SECTION
   ======================================== */
.learning-features {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: all var(--transition);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success-light);
}

.feature-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(10, 36, 99, 0.05);
    line-height: 1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-on-scroll.delay-1 {
    animation-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    animation-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    animation-delay: 0.3s;
}

/* Hover Animations */
.course-card-modern:hover .course-icon,
.why-card-modern:hover .why-icon,
.feature-card:hover .feature-icon {
    animation: pulse 0.6s ease;
}

.success-card:hover .success-avatar {
    animation: pulse 0.6s ease;
}