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

:root {
    --primary-blue: #4A90E2;
    --primary-purple: #7B68EE;
    --primary-orange: #FFA500;
    --primary-green: #50C878;
    --primary-red: #FF6B6B;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--primary-green);
}

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

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

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

.course-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

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

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-orange);
}

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.95);
    color: var(--white);
    padding: 1.5rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    display: block;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
}

.cookie-banner .btn {
    padding: 0.7rem 1.5rem;
}

.legal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--primary-purple);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

.animated-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4A90E2, #7B68EE, #4A90E2);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape-1 { left: 10%; top: 20%; animation-delay: 0s; }
.shape-2 { left: 70%; top: 50%; animation-delay: 1.5s; }
.shape-3 { left: 30%; top: 70%; animation-delay: 3s; }
.shape-4 { left: 85%; top: 30%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(3deg); }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

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

nav ul li a {
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    transition: left 0.3s;
}

nav ul li a:hover::before {
    left: 0;
}

.animated-hero {
    position: relative;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatAround 20s ease-in-out infinite;
}

.element-1 { left: 5%; top: 10%; animation-duration: 15s; }
.element-2 { right: 10%; top: 20%; animation-duration: 18s; animation-delay: 2s; }
.element-3 { left: 15%; bottom: 30%; animation-duration: 22s; animation-delay: 4s; }
.element-4 { right: 20%; bottom: 20%; animation-duration: 20s; animation-delay: 6s; }
.element-5 { left: 50%; top: 15%; animation-duration: 17s; animation-delay: 1s; }
.element-6 { right: 30%; top: 60%; animation-duration: 19s; animation-delay: 3s; }

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -30px) rotate(90deg) scale(1.2); }
    50% { transform: translate(-20px, -50px) rotate(180deg) scale(0.9); }
    75% { transform: translate(40px, -20px) rotate(270deg) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: bold;
    animation: fadeInDown 0.8s ease-out;
    backdrop-filter: blur(10px);
}

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

.bouncy-title {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.bouncy-title span {
    display: inline-block;
    animation: bounce 1s ease-in-out;
}

.word-1 { animation-delay: 0.1s; }
.word-2 { animation-delay: 0.2s; }
.word-3 { animation-delay: 0.3s; }
.word-4 { animation-delay: 0.4s; }
.emoji-bounce { animation-delay: 0.5s; font-size: 3.5rem; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); }
}

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

.hero-description {
    animation: slideInRight 1s ease-out;
}

@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);
    }
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    animation: scaleIn 0.6s ease-out backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.2s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.6s; }
.stat-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    opacity: 0.9;
}

.btn-pulse {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(255, 165, 0, 0); }
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-animation svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.3) rotate(10deg);
}

@media (max-width: 768px) {
    .hero h1, .bouncy-title {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
    
    .emoji-bounce {
        font-size: 2.5rem !important;
    }
    
    .floating-element {
        font-size: 1.5rem;
    }
    
    .shape {
        font-size: 1rem;
    }
}
