/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Color System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #7c3aed;
    --accent: #38bdf8;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f8fafc, #ffffff);
    --overlay-light: rgba(255, 255, 255, 0.7);
    --overlay-dark: rgba(0, 0, 0, 0.03);
    --transition-smooth: all 0.3s ease-in-out;
    --heading-font: 'Fraunces', serif;
    --subheading-font: 'Crimson Pro', serif;
    --body-font: 'Inter', sans-serif;
    --gradient-text: linear-gradient(120deg, #4f46e5, #7c3aed);
    --gradient-shine: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    --section-padding: clamp(3rem, 8vh, 6rem);
    --card-padding: clamp(1.5rem, 3vw, 2.5rem);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

/* Global Typography */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Enhanced Background Patterns */
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 0% 0%, var(--primary-light) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, var(--secondary) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--overlay-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--overlay-dark) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    pointer-events: none;
}

/* Hero Section Layout */
.hero-section {
    min-height: 85vh;
    padding: 4rem 2rem;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pageLoadScale 0.6s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, var(--overlay-dark) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, var(--overlay-dark) 25%, transparent 25%) -50px 0;
    background-size: 100px 100px;
    opacity: 0.03;
    animation: backgroundMove 20s linear infinite;
    z-index: 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
    position: relative;
    z-index: 2;
    animation: pageLoadFade 0.8s ease-out;
}

/* Enhanced Title Typography */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-title-text {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 5vw + 1rem, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1E293B;
}

/* Rocket Icon */
.hero-title .rocket-icon {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 0.5rem;
    transform-origin: center bottom;
}

/* Hero Image Container */
.hero-image-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    animation: pageLoadFade 1s ease-out;
}

/* Animation for Rocket */
@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Lead Text */
.hero-section .lead {
    font-family: var(--body-font);
    font-size: clamp(1.1rem, 1.2vw + 0.2rem, 1.25rem);
    line-height: 1.6;
    color: #64748B;
    margin: 1.5rem 0 2rem;
    max-width: 520px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    opacity: 0.8;
}

.feature-card h3 {
    font-family: var(--heading-font);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Animated Text Effects */
.animated-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.animated-text:nth-child(2) { animation-delay: 0.2s; }
.animated-text:nth-child(3) { animation-delay: 0.4s; }

/* Start Button */
.btn-primary-gradient {
    background: #6366F1;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 3;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary-gradient:hover {
    background: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px -3px rgba(99, 102, 241, 0.3);
    color: white;
    text-decoration: none;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-left: auto;
    transform: perspective(1000px) rotateY(-2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Feature Badge */
.feature-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    bottom: 10%;
    right: -5%;
    animation: fadeInUp 0.8s ease forwards 0.6s;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(20px);
}

/* Enhanced Stats */
.hero-stats {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex-wrap: wrap;
    margin-top: clamp(1.5rem, 3vh, 2.5rem);
}

.stat-item {
    display: inline-flex;
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Enhanced Buttons */
.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    flex-wrap: wrap;
}

.hero-section .btn {
    padding: clamp(0.75rem, 2vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.hero-section .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.hero-section .btn:hover::after {
    left: 100%;
}

/* Responsive Adjustments */
@media (min-width: 1400px) {
    .hero-wrapper {
        max-width: 1320px;
    }
    
    .hero-content {
        max-width: 650px;
    }
    
    .hero-image-container {
        max-width: 650px;
    }
}

@media (max-width: 1200px) {
    .hero-wrapper {
        max-width: 1140px;
    }
    
    .hero-content {
        max-width: 550px;
    }
    
    .hero-title-text {
        font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem);
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-title {
        gap: 0.25rem;
        align-items: center;
    }

    .hero-title-text {
        text-align: center;
        line-height: 1.2;
    }

    .hero-title .rocket-icon {
        font-size: clamp(2rem, 3.5vw, 2.5rem);
        margin: 0;
    }

    .hero-section .lead {
        margin: 1.5rem auto;
        text-align: center;
        font-size: clamp(1rem, 1.5vw + 0.2rem, 1.2rem);
    }

    .hero-image-container {
        margin-top: 2rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem;
    }

    .hero-title {
        gap: 0.2rem;
    }

    .hero-title-text {
        font-size: clamp(1.8rem, 3.5vw + 1rem, 3rem);
    }

    .hero-title .rocket-icon {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
    }

    .hero-image-container {
        max-width: 400px;
    }

    .hero-section .lead {
        font-size: 1rem;
        padding: 0;
    }

    .rocket-icon::before,
    .rocket-icon::after {
        font-size: 0.6em;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-title-text {
        font-size: clamp(1.6rem, 3vw + 1rem, 2.5rem);
    }

    .hero-title .rocket-icon {
        font-size: clamp(1.6rem, 2.5vw, 2rem);
    }

    .hero-content {
        padding: 0;
    }

    .btn-primary-gradient {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
}

/* Screen Height Based Adjustments */
@media (max-height: 700px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 1rem;
    }
}

/* Container Width Adjustments */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
    z-index: 1;
    filter: blur(1px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floating-element:nth-child(1) { width: 120px; height: 120px; top: 15%; left: 10%; animation: float 12s infinite; }
.floating-element:nth-child(2) { width: 180px; height: 180px; top: 50%; left: 5%; animation: float 15s infinite; }
.floating-element:nth-child(3) { width: 90px; height: 90px; top: 20%; right: 15%; animation: float 10s infinite; }
.floating-element:nth-child(4) { width: 150px; height: 150px; bottom: 20%; right: 10%; animation: float 14s infinite; }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-10px, -20px) rotate(5deg);
    }
}

.floating-element:hover {
    filter: blur(0);
    background: rgba(255, 255, 255, 0.2);
}

/* Features Section Styles */
.features-section {
    background: var(--bg-light);
    padding: var(--section-padding) 0;
    animation: pageLoadFade 0.6s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1rem, 2vw, 2rem);
    max-width: 1320px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: pageLoadFade 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.3s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Our Courses Section */
.courses-section {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    animation: pageLoadFade 0.6s ease-out;
}

.courses-section .section-title {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Course Cards Enhanced Styles */
.course-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: 600px;
    min-height: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: pageLoadFade 0.6s ease-out forwards;
}

.course-card:nth-child(1) { animation-delay: 0.2s; }
.course-card:nth-child(2) { animation-delay: 0.4s; }

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.course-header {
    position: relative;
    padding: 1.5rem;
    z-index: 1;
}

.course-badge {
    position: absolute;
    top: 1.5rem;
    right: -3.5rem;
    background: #d31aa1;
    color: white;
    padding: 0.5rem 3.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 2;
}

.course-badge::before,
.course-badge::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background:  #d31aa1;
    z-index: -1;
}

.course-badge::before {
    left: 0;
    border-radius: 0 0 0 8px;
}

.course-badge::after {
    right: 0;
    border-radius: 0 0 8px 0;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    padding-right: 2.5rem;
    color: var(--text-primary);
}

.course-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.course-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.75rem 0;
}

.course-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-stat i {
    color: var(--primary);
    font-size: 1rem;
}

.course-content {
    padding: 0 1.5rem;
    flex: 1;
}

.feature-section {
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--primary);
    font-size: 1rem;
}

.course-footer {
    padding: 1.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
}

.register-btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: white;
    background: var(--primary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.register-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .course-card {
        min-height: 550px;
    }

    .course-header {
        padding: 1.25rem;
    }

    .course-content {
        padding: 0 1.25rem;
    }

    .course-footer {
        padding: 1.25rem;
    }

    .feature-list li {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}

/* Statistics Section Styles */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: calc(var(--section-padding) * 0.8) 0;
    color: white;
    animation: pageLoadScale 0.8s ease-out;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.stat-card__label {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    opacity: 0.9;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
    animation: pageLoadFade 0.8s ease-out;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--card-padding);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* CTA Section Styles */
.cta-section {
    padding: calc(var(--section-padding) * 0.8) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    animation: pageLoadScale 0.8s ease-out;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.cta-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer Styles */
.footer {
    padding: calc(var(--section-padding) * 0.8) 0;
    background: var(--text-primary);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: white;
}

/* Screen Responsive Enhancements */
@media (max-width: 768px) {
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card,
    .course-card,
    .testimonial-card {
        padding: calc(var(--card-padding) * 0.8);
    }

    .cta-section {
        padding: calc(var(--section-padding) * 0.6) 0;
    }
}

/* Screen Responsive Enhancements */
@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary-gradient {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .btn-primary-gradient:hover {
        transform: none;
    }

    .hero-image-wrapper:hover {
        transform: none;
    }
}

/* Enhanced Text Decorations */
.text-decoration {
    position: relative;
    display: inline-block;
}

.text-decoration::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
}

.text-decoration::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
}

/* Heading Animations */
.animated-heading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animated-heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charAnimation 0.3s ease forwards;
}

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

/* Custom Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 1s ease-out;
}

/* Hero Features and Badge */
.hero-features,
.hero-badge {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.2s;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-badge {
    animation-delay: 1.4s;
}

.hero-features i,
.hero-badge i {
    font-size: 1.25rem;
}

/* Enhanced Responsive Styles */
@media (min-width: 992px) {
    .hero-image-wrapper {
        transform: perspective(1000px) rotateY(-5deg);
        transition: transform 0.5s ease;
    }

    .hero-image-wrapper:hover {
        transform: perspective(1000px) rotateY(0deg);
    }
}

@media (max-width: 991px) {
    .hero-stats {
        margin-top: 2rem !important;
    }
}

@media (max-width: 576px) {
    .stat-item {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Rocket Animation Styles */
.rocket {
    display: inline-block;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    cursor: pointer;
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes rocketLaunch {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    15% {
        opacity: 1;
        transform: translate(20px, -20px) scale(1.1);
    }
    30% {
        opacity: 1;
        transform: translate(100px, -100px) scale(1);
    }
    60% {
        opacity: 0.8;
        transform: translate(200px, -200px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(300px, -300px) scale(0.7);
    }
}

.rocket.launching {
    animation: rocketShake 0.2s ease-in-out infinite;
}

.rocket.launch-sequence {
    animation: rocketLaunch 2s ease-in forwards;
}

/* Ensure rocket is visible during transitions */
.rocket {
    visibility: visible !important;
    backface-visibility: visible !important;
    transform-style: preserve-3d;
}

/* Smooth transition for manual transform changes */
.rocket[style*="transition"] {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Desktop Fire Effects */
@media (min-width: 992px) {
    .rocket::before,
    .rocket::after {
        content: '🔥';
        position: absolute;
        bottom: 2px;
        font-size: 0.4em;
        opacity: 0;
        pointer-events: none;
        will-change: opacity, transform;
    }

    .rocket::before {
        right: 99%;
        animation-delay: 0.1s;
        font-size: 0.2em;
    }

    .rocket::after {
        right: 98%;
        animation-delay: 0.2s;
        font-size: 0.35em;
    }

    .rocket::before {
        content: '🔥🔥';
        letter-spacing: -2px;
    }
}

.rocket.launching::before,
.rocket.launching::after {
    opacity: 1;
    animation: smokeEffect 0.5s ease-out infinite;
}

/* Tablet Fire Effects */
@media (min-width: 768px) and (max-width: 991px) {
    .rocket::before,
    .rocket::after {
        content: '🔥';
        position: absolute;
        bottom: 1px;
        font-size: 0.45em;
        opacity: 0;
        pointer-events: none;
    }

    .rocket::before {
        right: 90%;
        animation-delay: 0.1s;
    }

    .rocket::after {
        right: 85%;
        animation-delay: 0.2s;
        font-size: 0.4em;
    }
}

/* Mobile Fire Effects */
@media (max-width: 767px) {
    .rocket::before,
    .rocket::after {
        content: '🔥';
        position: absolute;
        bottom: 0;
        font-size: 0.4em;
        opacity: 0;
        pointer-events: none;
    }

    .rocket::before {
        right: 85%;
        animation-delay: 0.1s;
    }

    .rocket::after {
        right: 80%;
        animation-delay: 0.2s;
        font-size: 0.35em;
    }
}

/* New Animations */
@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightSlide {
    from {
        transform: skewX(-12deg) scaleX(0);
    }
    to {
        transform: skewX(-12deg) scaleX(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 150%;
    }
}

/* Responsive Grid Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Enhanced Mobile Experience */
@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary-gradient {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }

    .btn-primary-gradient:hover {
        transform: none;
    }

    .hero-image-wrapper:hover {
        transform: none;
    }
}

/* Enhanced Text Decorations */
.text-decoration {
    position: relative;
    display: inline-block;
}

.text-decoration::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
}

.text-decoration::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--primary);
    opacity: 0.5;
}

/* Heading Animations */
.animated-heading {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.animated-heading .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: charAnimation 0.3s ease forwards;
}

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

/* Add responsive adjustments for larger screens */
@media (min-width: 1400px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1500px;
    }

    .course-card {
        max-width: 650px;
    }
}

/* Page Load Animations */
@keyframes pageLoadFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageLoadScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to main sections */
.hero-section {
    animation: pageLoadScale 0.6s ease-out;
}

.hero-content {
    animation: pageLoadFade 0.8s ease-out;
}

.hero-image-container {
    animation: pageLoadFade 1s ease-out;
}

.courses-section {
    animation: pageLoadFade 0.6s ease-out;
}

.course-card {
    opacity: 0;
    animation: pageLoadFade 0.6s ease-out forwards;
}

.course-card:nth-child(1) {
    animation-delay: 0.2s;
}

.course-card:nth-child(2) {
    animation-delay: 0.4s;
}

.features-section {
    animation: pageLoadFade 0.6s ease-out;
}

.feature-card {
    opacity: 0;
    animation: pageLoadFade 0.6s ease-out forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

.stats-section {
    animation: pageLoadScale 0.8s ease-out;
}

.testimonials-section {
    animation: pageLoadFade 0.8s ease-out;
}

.cta-section {
    animation: pageLoadScale 0.8s ease-out;
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-content,
    .hero-image-container,
    .courses-section,
    .course-card,
    .features-section,
    .feature-card,
    .stats-section,
    .testimonials-section,
    .cta-section {
        animation: none;
        opacity: 1;
    }
}

/* Rocket Launch Animation */
@keyframes rocketLaunch {
    0% {
        opacity: 1;
        transform: translate(0, 0);
    }
    15% {
        opacity: 1;
        transform: translate(20px, -20px) scale(1.1);
    }
    30% {
        opacity: 1;
        transform: translate(100px, -100px);
    }
    60% {
        opacity: 0.8;
        transform: translate(200px, -200px) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translate(300px, -300px) scale(0.7);
    }
}

@keyframes smokeEffect {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    20% {
        opacity: 0.8;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes rocketShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px) rotate(-1deg);
    }
    75% {
        transform: translateX(2px) rotate(1deg);
    }
}

.rocket-icon {
    position: relative;
    display: inline-block;
    animation: rocketLaunch 2s ease-in forwards;
}

.rocket-icon::before,
.rocket-icon::after {
    content: '🔥';
    position: absolute;
    bottom: 0;
    right: 85%;
    font-size: 0.6em;
    opacity: 0;
    animation: smokeEffect 1s ease-out infinite;
}

.rocket-icon::before {
    animation-delay: 0.2s;
    right: 90%;
}

.rocket-icon::after {
    animation-delay: 0.4s;
    right: 80%;
}

.rocket-icon.launching {
    animation: rocketShake 0.2s ease-in-out infinite;
}

/* Preserve existing animations but add new launch sequence */
.hero-title:hover .rocket-icon {
    animation: rocketFloat 2s ease-in-out infinite;
}

.hero-title .rocket-icon.launch-sequence {
    animation: rocketLaunch 2s ease-in forwards;
}

/* Add this to your existing media queries to ensure responsiveness */
@media (max-width: 768px) {
    .rocket-icon::before,
    .rocket-icon::after {
        font-size: 0.6em;
    }
}

/* Rocket Return Animation */
@keyframes rocketReturn {
    0% {
        opacity: 0;
        transform: translate(-300px, 300px) scale(0.7);
    }
    50% {
        opacity: 1;
        transform: translate(-150px, 150px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.course-price {
    margin-top: 1rem;
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    margin-right: 0.5rem;
}

.price-duration {
    font-size: 0.9rem;
    color: #666;
}

/* Dark theme adjustments */
.dark-theme .price-duration {
    color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-price {
        margin-top: 0.75rem;
    }
    
    .price-tag {
        font-size: 1.25rem;
    }
    
    .price-duration {
        font-size: 0.8rem;
    }
}