:root {
    /* Playful Colors */
    --primary: #FFDE00;
    /* Vibrant Yellow */
    --primary-hover: #F0D000;
    --secondary: #00F5FF;
    /* Electric Cyan */
    --accent: #FF5C8D;
    /* Playful Pink/Coral */
    --background: #FFFFFF;
    /* Light background for playful feel */
    --surface: #F8FAFC;
    --surface-dark: #1E293B;
    --text: #0F172A;
    --text-muted: #64748B;

    /* Playful Gradients */
    --gradient-primary: linear-gradient(135deg, #FFDE00 0%, #FF9A00 100%);
    --gradient-accent: linear-gradient(135deg, #FF5C8D 0%, #FF8E53 100%);
    --gradient-cool: linear-gradient(135deg, #00F5FF 0%, #00A3FF 100%);

    /* Spacing & Radii */
    --container-width: 1200px;
    --section-padding: 120px 20px;
    --radius-lg: 40px;
    --radius-md: 24px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}


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

.text-accent {
    color: var(--accent);
}

/* Spacing Utilities */
.mb-20 {
    margin-bottom: 20px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.pt-2 {
    padding-top: 8px;
}

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

.hidden-card {
    display: none !important;
}

@media (max-width: 768px) {
    .hidden-card {
        display: flex !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    /* Fully rounded buttons */
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 20px 35px -10px rgba(255, 215, 0, 0.4);
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border: 3px solid var(--text);
}

.btn-outline:hover {
    background: var(--text);
    color: #fff;
    transform: translateY(-5px) rotate(1deg);
}

.btn-lg {
    padding: 20px 48px;
    font-size: 1.25rem;
    font-weight: 800;
}

.btn-dark {
    background: var(--text);
    color: #fff;
    border: 3px solid var(--text);
}

.btn-dark:hover {
    background: #000;
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 12px 32px;
    border: 2px solid var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: var(--primary);
    border: 2px solid var(--text);
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--text);
    transition: var(--transition);
}

.mobile-menu-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--text);
}

.logo {
    font-size: 1.5rem;
    color: var(--text);
}

.logo-accent {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 8px;
    border: 2px solid var(--text);
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #FFFBE6;
    /* Soft yellow background */
}

/* Decorative Blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 650px;
}

.badge {
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: inline-block;
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 24px;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.hero h2 {
    font-size: 2.25rem;
    color: var(--text);
    margin-bottom: 32px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 64px;
}

.hero-image-card {
    flex: 0 0 500px;
    position: relative;
    z-index: 1001;
}

.playful-image-frame {
    width: 100%;
    height: 350px;
    border: 4px solid var(--text);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 15px 15px 0 var(--secondary);
    overflow: hidden;
    margin-bottom: -100px;
    /* Overlap with the date card */
    position: relative;
    z-index: 1005;
    transform: rotate(2deg);
    transition: var(--transition);
}

.playful-image-frame:hover {
    transform: rotate(0deg) scale(1.05);
}

.playful-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-course-card {
    background: #fff;
    border: 3px solid var(--text);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 12px 12px 0 var(--text);
    position: relative;
    overflow: hidden;
    z-index: 10;
}



.card-tag {
    background: var(--secondary);
    color: var(--text);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    border: 2px solid var(--text);
    display: inline-block;
    margin-bottom: 24px;
}

.card-date .day {
    font-size: 5rem;
    color: var(--text);
}

.card-date .month-year {
    font-size: 1.75rem;
    color: var(--accent);
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-item i {
    color: var(--primary);
}

.card-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    margin-top: 16px;
    font-weight: 800;
}


.hero-stats {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 24px 40px;
    border-radius: 32px;
    border: 2px solid var(--text);
    box-shadow: 8px 8px 0 var(--text);
    display: inline-flex;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--text);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: #fff;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.text-highlight {
    background: var(--primary);
    padding: 0 8px;
    border-radius: 4px;
    box-shadow: 4px 4px 0 var(--text);
    border: 2px solid var(--text);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-card {
    border-radius: var(--radius-lg);
    border: 4px solid var(--text);
    box-shadow: 20px 20px 0 var(--secondary);
    overflow: hidden;
    height: 550px;
    position: relative;
    z-index: 1;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    top: -40px;
    right: -40px;
    z-index: 10;
    background: var(--accent);
    border: 4px solid var(--text);
    box-shadow: 10px 10px 0 var(--text);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(10deg);
}

.experience-badge .years {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.experience-badge .label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    max-width: 80px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 32px;
    line-height: 1.1;
}

.lead {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.4;
}

.content-text p:not(.lead) {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    background: var(--surface);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 2px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
}

/* Courses Section */
.courses {
    padding: var(--section-padding);
    background: #F0F9FF;
    /* Light blue */
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.course-card {
    background: #fff;
    padding: 60px 32px 40px;
    border-radius: 40px;
    border: 4px solid var(--text);
    box-shadow: 12px 12px 0 var(--text);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
}

.course-card:hover {
    transform: translateY(-12px) rotate(1deg);
    box-shadow: 20px 20px 0 var(--secondary);
}

.course-card.featured {
    background: var(--primary);
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 15px 15px 0 var(--text);
}

.course-card.featured:hover {
    transform: scale(1.05) translateY(-12px) rotate(-1deg);
    box-shadow: 25px 25px 0 var(--accent);
}

.card-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    white-space: nowrap;
}

.course-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.course-header i {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 3px solid var(--text);
    box-shadow: 6px 6px 0 var(--text);
    transition: var(--transition);
}

.course-card.featured .course-header i {
    background: var(--surface);
    box-shadow: 6px 6px 0 var(--text);
}

.course-card h3 {
    font-size: 2rem;
    color: var(--text);
    line-height: 1.1;
    margin-top: 8px;
}

.course-header i svg {
    width: 38px;
    height: 38px;
}

.course-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
}

.course-card.featured .course-desc {
    color: var(--text);
    opacity: 0.8;
}

.course-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.course-features li i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.course-card.featured .course-features li i {
    color: var(--secondary);
}

.course-pricing {
    margin-top: auto;
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--surface);
    border-radius: 24px;
    border: 2px solid var(--text);
}

.course-card.featured .course-pricing {
    background: rgba(255, 255, 255, 0.3);
}

.pricing-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.course-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
}

.contact-card.cta-version {
    text-align: center;
    padding: 100px 40px;
    background: #fff;
    border: 4px solid var(--text);
    box-shadow: 24px 24px 0 var(--accent);
    border-radius: 60px;
}

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

.cta-badge {
    background: var(--primary);
    color: var(--text);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    display: inline-block;
    border: 3px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    margin-bottom: 32px;
}

.phone-display {
    margin: 48px 0;
}

.phone-numbers-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    text-decoration: none;
    background: var(--surface);
    padding: 20px 40px;
    border-radius: 100px;
    border: 4px solid var(--text);
    box-shadow: 8px 8px 0 var(--secondary);
    transition: var(--transition);
}

.phone-number i {
    color: var(--accent);
}

.phone-number:hover {
    transform: translateY(-8px) scale(1.02) rotate(-1deg);
    box-shadow: 20px 20px 0 var(--secondary);
    background: #fff;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

.cta-feature i {
    color: var(--secondary);
}

.cta-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: var(--transition);
}

.reveal-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Mini Game Section */
/* Game Teaser Section */
.game-teaser-section {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

.game-teaser-card {
    background: var(--text);
    border-radius: 32px;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: #fff;
    border: 4px solid var(--primary);
    box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.1);
}

.teaser-content h2 {
    font-size: 2rem;
    margin: 8px 0;
}

.teaser-content p {
    color: #94A3B8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.game-modal-content {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--primary);
    border: 2px solid var(--text);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 var(--text);
    transition: var(--transition);
}

.modal-close:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mini Game Styles */
.game-card-wrapper {
    background: #fff;
    border-radius: 40px;
    border: 4px solid var(--text);
    box-shadow: 20px 20px 0 var(--text);
    padding: 60px;
    text-align: center;
}

.game-board {
    margin: 32px 0;
    background: var(--surface);
    border: 3px solid var(--text);
    border-radius: 24px;
    padding: 32px;
    position: relative;
}

.game-level {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.game-display {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.game-target-btn {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    box-shadow: 0 10px 0 #000;
}

.game-target-btn.waiting {
    background: #f43f5e;
    box-shadow: 0 10px 0 #991b1b;
}

.game-target-btn.ready {
    background: #22c55e;
    box-shadow: 0 10px 0 #166534;
}

.game-footer {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 24px;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

.game-stat {
    display: flex;
    flex-direction: column;
}

.game-stat .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.game-stat .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.game-hint {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .game-teaser-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
        /* Smaller shadow */
    }

    .game-card-wrapper {
        padding: 40px 20px;
    }
}

/* Footer style */
.footer {
    padding: 100px 0 40px;
    background: #0F172A;
    color: #fff;
    border-top: 8px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 222, 0, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.footer-brand .logo {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 24px;
}

.footer-brand p {
    color: #94A3B8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-5px) rotate(5deg);
    border-color: var(--primary);
}

.footer h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 32px;
    font-family: 'Outfit', sans-serif;
}

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

.footer-nav ul li {
    margin-bottom: 16px;
}

.footer-nav ul li a {
    color: #94A3B8;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #CBD5E1;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-info-item i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748B;
    font-size: 0.95rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image-card {
        padding: 0;
        margin: 40px auto 0;
        width: 100%;
        max-width: 500px;
    }

    .playful-image-frame {
        transform: none !important;
        box-shadow: 8px 8px 0 var(--secondary);
        margin-bottom: -40px;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        top: -20px;
        right: -10px;
        transform: rotate(5deg) !important;
    }

    .next-course-card {
        padding: 24px;
        box-shadow: 8px 8px 0 var(--text);
    }

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

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

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

@media (max-width: 768px) {
    .navbar {
        top: 12px;
        padding: 0;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .navbar .container {
        padding: 10px 16px;
        max-width: 100%;
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        background: #fff;
        padding: 40px;
        border: 3px solid var(--text);
        border-radius: 32px;
        margin-top: 12px;
        box-shadow: 12px 12px 0 var(--secondary);
        z-index: 1000;
        gap: 20px;
        animation: menuFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active a {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
            transform: translateY(-20px) scale(0.95);
        }

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

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-actions {
        justify-content: center;
        margin-bottom: 48px;
    }

    .hide-mobile {
        display: none !important;
    }

    .about,
    .courses,
    .contact {
        padding-left: 0;
    }



    /* Reduce horizontal padding for sections */
    .container {
        padding: 0 10px 0 16px;
    }

    .next-course-card .card-tag {
        margin-top: 35px;
        margin-bottom: -12px;
    }

    .hero,
    .game-teaser-section {
        padding-right: 16px;
    }

    #kursy>div {
        margin-right: -30px;
        padding-left: 0px;
    }


    .courses-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 24px;
        padding: 20px 0 40px;
        padding-left: 20px;
        padding-right: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .courses-grid::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .course-card {
        flex: 0 0 calc(100vw - 48px);
        scroll-snap-align: center;
        margin-bottom: 0;
        padding: 32px 20px 24px;
        transform: none !important;
        /* Disable rotation on mobile to prevent overflow */
    }

    .course-desc {
        margin-bottom: 16px;
    }

    .course-features {
        margin-bottom: 20px;
        gap: 6px;
    }

    .course-pricing {
        padding: 12px;
        margin-bottom: 16px;
    }

    .pricing-label {
        font-size: 0.65rem;
    }

    .course-price {
        font-size: 1.6rem;
    }

    .course-card .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .contact-card.cta-version {
        padding: 60px 20px;
        border-radius: 40px;
        box-shadow: 12px 12px 0 var(--accent);
        /* Reduced shadow size on mobile */
    }

    .cta-badge {
        font-size: 0.95rem;
        padding: 8px 20px;
    }

    .contact-card.cta-version h2 {
        font-size: 2rem;
    }

    .contact-card.cta-version .lead {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 8px;
        padding: 16px;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .phone-number {
        font-size: 1.5rem;
        padding: 16px 24px;
        width: 100%;
        justify-content: center;
        box-shadow: 6px 6px 0 var(--secondary);
        /* Smaller shadow */
    }

    .cta-features {
        gap: 20px;
    }

    .cta-feature {
        font-size: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand p,
    .footer-info-item {
        justify-content: center;
        margin: 16px auto 0;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.steering-wheel {
    width: 80px;
    height: 80px;
    color: var(--primary);
    animation: steer 2s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.loader-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--gradient-primary);
    border-radius: 100px;
    animation: progressMove 1.5s infinite ease-in-out;
}

@keyframes steer {
    0% {
        transform: rotate(-30deg);
    }

    50% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(-30deg);
    }
}

@keyframes progressMove {
    0% {
        left: -30%;
        width: 30%;
    }

    50% {
        width: 50%;
    }

    100% {
        left: 100%;
        width: 30%;
    }
}

body.loading {
    overflow: hidden;
}