/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Tokens */
    --background: #ffffff;
    --foreground: #1f2937;
    --card: #f8fafc;
    --card-foreground: #374151;
    --primary: #6366f1;
    --primary-foreground: #ffffff;
    --secondary: #374151;
    --secondary-foreground: #ffffff;
    --muted: #f8fafc;
    --muted-foreground: #1f2937;
    --border: #d1d5db;
    --input: #f8fafc;
    --ring: #6366f1;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(to bottom right, #f8fafc, #dbeafe);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    max-width: 28rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.loading-spinner-container {
    margin-bottom: 4rem;
}

.loading-spinner-bg {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.loading-subtitle {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.loading-progress-container {
    margin-bottom: 2rem;
}

.progress-bar-wrapper {
    width: 20rem;
    margin: 0 auto;
}

.progress-bar-bg {
    height: 0.25rem;
    background: var(--muted);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease-out;
    border-radius: 9999px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.loading-text-label {
    color: var(--muted-foreground);
    font-weight: 500;
}

.progress-percent {
    color: var(--foreground);
    font-family: 'Courier New', monospace;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.dot {
    width: 0.375rem;
    height: 0.375rem;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Professional Fade Animation */
.professional-fade {
    animation: professionalFade 0.6s ease-out forwards;
}

@keyframes professionalFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: headerReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes headerReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header.glassmorphism {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    min-width: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.25s ease;
    position: relative;
    font-size: 0.95rem;
    /* Slightly larger for clarity */
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out;
}

.nav-link:hover .nav-underline {
    transform: scaleX(1);
}

.btn-enroll {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.3s;
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-enroll:hover {
    transform: scale(1.05);
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.5rem;
    height: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 0;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--foreground);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
    gap: 0;
    opacity: 0;
    /* Smooth, calm transition */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    height: auto;
    padding: 2rem 0;
    opacity: 1;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    letter-spacing: -0.025em;
}

.mobile-menu.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.75;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-btn:hover {
    transform: scale(1.1);
}

.play-icon {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}



/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.about-image:hover {
    transform: scale(1.02);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.vision-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.vision-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .vision-title {
        font-size: 1.5rem;
    }
}

.vision-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .vision-text {
        font-size: 1rem;
    }
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .stats-container {
        justify-content: flex-start;
        gap: 3rem;
    }
}

.stat-item {
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 0.875rem;
    }
}

/* Courses Section */
.courses-section {
    padding: 5rem 0;
    background: rgba(248, 250, 252, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.course-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .course-title {
        font-size: 1.5rem;
    }
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.75;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .course-description {
        font-size: 1rem;
    }
}

.course-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.course-duration {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.clock-icon {
    margin-right: 0.25rem;
}

.course-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

@media (min-width: 768px) {
    .course-price {
        font-size: 1.125rem;
    }
}

.course-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
    text-decoration: none;
}

.course-btn:hover {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    border-radius: 1rem;
    /* White Glass Card on Light Background */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1), 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

.rating {
    display: flex;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
}

.testimonial-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.75;
    font-style: italic;
}

@media (min-width: 768px) {
    .testimonial-text {
        font-size: 1rem;
    }
}

.testimonial-author {
    font-weight: 600;
    color: var(--foreground);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .testimonial-author {
        font-size: 1rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.1), rgba(55, 65, 81, 0.1));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-card {
    padding: 2rem;
    border-radius: 0.5rem;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .form-title {
        font-size: 1.5rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
}

.form-submit-btn {
    width: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--primary-foreground);
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s;
    animation: glow 2s ease-in-out infinite alternate;
}

.form-submit-btn:hover {
    transform: scale(1.05);
}

.form-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
}

.contact-info-card:hover {
    transform: scale(1.05);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.contact-info-content {
    min-width: 0;
}

.contact-info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .contact-info-title {
        font-size: 1.125rem;
    }
}

.contact-info-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
}

@media (min-width: 768px) {
    .contact-info-link {
        font-size: 1rem;
    }
}

.contact-info-link:hover {
    color: var(--primary);
}

.contact-info-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .contact-info-text {
        font-size: 1rem;
    }
}

/* Footer Redesign */
.footer {
    background: transparent;
    color: var(--foreground);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-overlay {
    display: none;
}

.footer-pattern {
    display: none;
}

.footer-container {
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.025em;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-description {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 28rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

/* Headings */
.footer-heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.75rem;
    width: 2rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Links List */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-link:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Contact Info in Footer */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-text,
.footer-contact .footer-link {
    font-size: 1rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer Bottom Layout */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
    }
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-legal-link:hover {
    color: white;
}

/* Designer Credit Badge */
.footer-credit {
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-credit-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.footer-credit-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.footer-credit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.25);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.footer-credit-link:hover::before {
    transform: translateX(100%);
}

/* Modern Course Page Layout */
.course-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

@media (min-width: 1024px) {
    .course-layout {
        grid-template-columns: 1.8fr 1fr;
        /* Content | Sidebar */
        align-items: start;
    }
}

.course-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.course-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .course-sidebar {
        position: sticky;
        top: 8rem;
        /* Space for fixed header */
        margin-top: -8rem;
        /* Pull up to overlap hero if desired, or just standard */
        margin-top: 0;
    }
}

.course-sidebar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    /* Glass feel if needed, but solid white pops more on complex background */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.course-sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.course-feature-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--foreground);
    font-size: 0.95rem;
}

.course-feature-icon {
    color: var(--primary);
    width: 1.25rem;
    height: 1.25rem;
}

.course-curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-module {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-module:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.15);
}

.course-module-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
    min-width: 2rem;
}

.course-module:hover .course-module-number {
    color: var(--primary);
}

.course-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.course-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* Course Image Link */
.course-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Success Modal */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.success-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.success-modal-overlay.active .success-modal {
    transform: scale(1);
}

.success-icon-container {
    width: 4rem;
    height: 4rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.success-message {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.success-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.success-close-btn:hover {
    opacity: 0.9;
}