/* Modern Bazical Data Academy Styles */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--bazical-pink) 0%, var(--bazical-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bazical-pink) 0%, var(--bazical-pink-hover) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(217, 70, 168, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 70, 168, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bazical-primary);
    color: white;
    border-color: var(--bazical-primary);
}

.btn-course {
    background: var(--bazical-primary);
    color: white;
    width: 100%;
    justify-content: center;
}

.btn-course:hover {
    background: var(--bazical-accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar .nav-link {
    text-decoration: none;
    color: #553575 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--bazical-pink) !important;
    background: var(--bazical-pink-light);
}

.navbar .nav-link.nav-cta {
    background: var(--bazical-pink);
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px;
}

.navbar .nav-link.nav-cta:hover {
    background: var(--bazical-pink-hover);
    color: white !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    z-index: 1001;
    position: relative;
}

/* Language Toggle */
.nav-item-lang {
    display: flex;
    align-items: center;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: #553575;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 36px;
}

.lang-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--bazical-accent);
    transform: scale(1.05);
}

.lang-btn.active {
    background: var(--bazical-pink);
    color: white;
    border-color: var(--bazical-pink);
}

.lang-btn .flag {
    font-size: 1.2rem;
}

/* Navigation Toggle */
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #553575 !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bazical-primary) 0%, var(--bazical-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="600" r="400" fill="url(%23a)"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--bazical-pink);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bazical-pink);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.about-text .section-subtitle {
    text-align: left;
    margin: 0 0 3rem 0;
    max-width: none;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bazical-pink) 0%, var(--bazical-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bazical-pink) 0%, var(--bazical-accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-info .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-info .stat-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Courses Section */
.courses {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border: 2px solid var(--bazical-pink);
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: -10px;
    right: 2rem;
    background: var(--bazical-pink);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.course-icon.python {
    background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.course-icon.sql {
    background: linear-gradient(135deg, #336791 0%, #f29111 100%);
}

.course-icon.ai {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.course-level,
.course-duration {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.course-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.course-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: white;
}

.course-features i {
    color: var(--bazical-pink);
    font-size: 0.875rem;
}

.course-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-label {
    font-size: 0.75rem;
    color: white;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bazical-pink);
}

.btn-download {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
}

.btn-download:hover {
    background: var(--bazical-gray-50);
    border-color: var(--bazical-accent);
    color: var(--bazical-accent);
    transform: translateY(-1px);
}

.btn-download i {
    margin-right: 0.5rem;
}

/* Teachers Section */
.teachers {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.teacher-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.teacher-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bazical-primary);
    box-shadow: 0 8px 20px rgba(85, 53, 117, 0.3);
}

.teacher-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bazical-primary), var(--bazical-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(85, 53, 117, 0.3);
}

.teacher-photo-placeholder i {
    font-size: 3rem;
    color: white;
}

.teacher-info {
    text-align: center;
}

.teacher-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.teacher-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.teacher-social {
    margin-bottom: 1.5rem;
}

.teacher-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #0077b5;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.teacher-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.teacher-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.expertise-tag {
    background: linear-gradient(135deg, var(--bazical-primary), var(--bazical-accent));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Mobile Responsiveness for Teachers */
@media (max-width: 768px) {
    .teachers {
        padding: 4rem 0;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .teacher-card {
        padding: 1.5rem;
    }
    
    .teacher-photo,
    .teacher-photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .teacher-photo-placeholder i {
        font-size: 2.5rem;
    }
    
    .teacher-name {
        font-size: 1.3rem;
    }
    
    .teacher-title {
        font-size: 1rem;
    }
    
    .teacher-bio {
        font-size: 0.9rem;
    }
    
    .teacher-linkedin {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Partners & Technologies Section */
.partners {
    padding: 6rem 0;
    background: white;
    overflow: hidden;
}

.partners-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 4rem;
}

.carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200% + 2rem); /* Double width for seamless loop */
}

.partner-slide {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin: 0 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 160px;
}

.partner-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.partner-logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-slide:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.3s ease;
}

.partner-slide:hover .partner-name {
    color: var(--bazical-primary);
}

/* Carousel animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners {
        padding: 4rem 0;
    }
    
    .partner-slide {
        flex: 0 0 150px;
        padding: 1.5rem 0.75rem;
        margin: 0 0.5rem;
        min-height: 120px;
    }
    
    .partner-logo {
        width: 60px;
        height: 45px;
    }
    
    .partner-name {
        font-size: 0.8rem;
    }
    
    .carousel-track {
        animation-duration: 20s; /* Faster on mobile */
    }
}

@media (max-width: 480px) {
    .partner-slide {
        flex: 0 0 120px;
        padding: 1rem 0.5rem;
        min-height: 100px;
    }
    
    .partner-logo {
        width: 50px;
        height: 40px;
    }
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.contact-info .section-subtitle {
    text-align: left;
    margin: 0 0 3rem 0;
    max-width: none;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bazical-pink) 0%, var(--bazical-accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.method-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.method-info p {
    color: var(--text-secondary);
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bazical-pink);
    box-shadow: 0 0 0 3px rgba(217, 70, 168, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bazical-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--bazical-pink);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bazical-pink);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-header h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.spinner {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--bazical-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        background: transparent;
        border: none;
        position: relative;
    }

    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #553575 !important;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
        display: block !important;
        opacity: 1 !important;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .language-toggle {
        margin-left: 0;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: 1rem;
    }

    .nav-item-lang {
        width: 100%;
        justify-content: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-card.featured {
        transform: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .course-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .course-actions {
        gap: 0.75rem;
    }

    .btn-download {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}

/* WhatsApp Course Buttons */
.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: 2px solid #25D366 !important;
    margin-top: 0.5rem;
}

.btn-whatsapp:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-whatsapp i {
    margin-right: 0.5rem;
}

.btn-whatsapp-help {
    background: transparent !important;
    color: #25D366 !important;
    border: 2px solid #25D366 !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-whatsapp-help:hover {
    background: #25D366 !important;
    color: white !important;
}

/* Mobile WhatsApp buttons */
@media (max-width: 768px) {
    .btn-whatsapp,
    .btn-whatsapp-help {
        width: 100%;
        justify-content: center;
        margin-top: 0.75rem;
    }
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: 1.8rem;
    color: white;
}

.whatsapp-tooltip {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-chat:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

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

/* Download notification */
.download-notification {
    animation: slideInUp 0.3s ease-out;
}

/* Mobile adjustments for WhatsApp */
@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 1.6rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile to save space */
    }
}

/* WhatsApp Chat Button */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.whatsapp-button i {
    font-size: 1.8rem;
    color: white;
}

.whatsapp-tooltip {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-chat:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

/* Mobile adjustments for WhatsApp */
@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 1.6rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile to save space */
    }
}

/* Enrollment Modal - FIXED for button visibility */
.enrollment-modal {
    max-width: 600px;
    max-height: 85vh; /* Reduced from 90vh to ensure button visibility */
    overflow: hidden; /* Changed from auto to hidden - let body handle scroll */
    display: flex;
    flex-direction: column;
    margin: 5vh auto; /* Reduced top margin */
}

/* Modal Header - Fixed height */
.enrollment-modal .modal-header {
    flex-shrink: 0; /* Prevent header from shrinking */
    padding: 1.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid #eee;
    background: white;
    position: relative;
    z-index: 1;
}

/* Modal Body - Scrollable content */
.enrollment-modal .modal-body {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Enable scrolling */
    padding: 1rem 2rem 0 2rem;
    
    /* Custom scrollbar for better UX */
    scrollbar-width: thin;
    scrollbar-color: var(--bazical-pink) #f1f1f1;
}

/* Custom scrollbar for Webkit browsers */
.enrollment-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.enrollment-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.enrollment-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--bazical-pink);
    border-radius: 4px;
}

.enrollment-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #b8327e;
}

.enrollment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem; /* Extra space before sticky button */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bazical-pink);
    box-shadow: 0 0 0 3px rgba(217, 70, 168, 0.1);
}

.course-summary {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-header h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.price-highlight {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--bazical-pink);
}

.enrollment-btn {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--bazical-pink);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    
    /* Ensure button is always visible */
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.enrollment-btn:hover {
    background: #b8327e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

/* Enrollment Messages */
.enrollment-message {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
    animation: slideInUp 0.3s ease-out;
}

.enrollment-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.enrollment-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.enrollment-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.enrollment-message h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.enrollment-message p {
    margin: 0;
    font-size: 0.95rem;
}

/* Mobile adjustments for enrollment form */
@media (max-width: 768px) {
    .enrollment-modal {
        margin: 2vh auto;
        width: 95%;
        max-height: 90vh; /* Slightly larger on mobile */
    }
    
    .enrollment-modal .modal-header {
        padding: 1rem 1.5rem 0.5rem 1.5rem;
    }
    
    .enrollment-modal .modal-body {
        padding: 0.5rem 1.5rem 0 1.5rem;
    }
    
    .enrollment-btn {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .course-summary {
        padding: 1rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .enrollment-modal {
        margin: 1vh auto;
        width: 98%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .enrollment-modal .modal-header {
        padding: 0.75rem 1rem 0.5rem 1rem;
    }
    
    .enrollment-modal .modal-body {
        padding: 0.5rem 1rem 0 1rem;
    }
    
    .enrollment-btn {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 45px;
    }
}

/* HubSpot Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideInUp 0.3s ease-out;
}

.form-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

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

/* ===== DISCOUNT PRICING STYLES ===== */
.price-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.price-original {
    font-size: 0.9rem;
    color: #666;
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current .price-label {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
}

.price-current .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

.course-badge.discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== END DISCOUNT PRICING STYLES ===== */
/* ===== MOBILE FIXES ===== */

/* Fix iOS Safari viewport height */
:root {
    --vh: 1vh;
}

/* Improve mobile navigation */
@media (max-width: 768px) {
    /* Better mobile menu positioning */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Better language toggle on mobile */
    .language-toggle {
        margin-left: 0;
        justify-content: center;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
        background: rgba(248, 249, 250, 0.8);
    }

    .nav-item-lang {
        width: 100%;
        justify-content: center;
    }

    .lang-btn {
        min-height: 44px; /* Better touch target */
        min-width: 44px;
        padding: 0.75rem;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.2s ease;
        justify-content: center;
    }

    .lang-btn .flag {
        font-size: 1.4rem;
    }

    .lang-btn:hover,
    .lang-btn:focus,
    .lang-btn.active {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }

    /* Better mobile navigation links */
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.2s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(var(--primary-color-rgb), 0.1);
        color: var(--primary-color);
        transform: translateY(-2px);
    }
}

/* Fix mobile viewport issues */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 70px);
        min-height: calc(var(--vh, 1vh) * 100 - 70px);
    }

    /* Better mobile button spacing */
    .hero-actions {
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn {
        min-height: 44px; /* Better touch target */
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Fix mobile form issues */
@media (max-width: 768px) {
    .enrollment-modal {
        margin: 1vh auto;
        width: 95%;
        max-height: 95vh;
        max-height: calc(var(--vh, 1vh) * 95);
    }

    .modal-content {
        max-height: calc(95vh - 120px);
        max-height: calc(var(--vh, 1vh) * 95 - 120px);
    }

    /* Better mobile form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
}

/* Fix mobile course cards */
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .course-card {
        margin: 0;
    }

    .course-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-course,
    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* Fix mobile pricing display */
@media (max-width: 768px) {
    .price-discount {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .price-current {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .price-current .price-amount {
        font-size: 1.25rem;
    }
}

/* ===== END MOBILE FIXES ===== */
