@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8A2BE2;
    --secondary-color: #FFCC99; 
    --accent-color: #D264B6; 
    --text-color: #333333;
    --light-text: #ffffff;
    --background-light: #f9f5ff;
    --background-dark: #6B238E;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Comfortaa', cursive;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.accent {
    color: var(--accent-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

section {
    padding: 5rem 1rem;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--background-dark);
    border-color: var(--background-dark);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.secondary-btn:hover {
    background-color: #FFB366;
    border-color: #FFB366;
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 204, 153, 0.3);
}

.outline-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.2);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
}

.wave-divider path {
    fill: var(--background-light);
}

.wave-divider.inverted {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

.inverted path {
    fill: var(--background-light);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(249, 245, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
}

.logo-container h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.contact-btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.hero {
    background: linear-gradient(135deg, #f5edff, #fff2e6);
    padding: 0;
    margin-top: 0;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 3rem;
    text-align: left;
    padding-bottom: 1rem;
}

.hero-text h2::after {
    left: 0;
    transform: none;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(800px) rotateY(-5deg);
}

.hero .wave-divider path {
    fill: #f9f5ff;
}

.about {
    background-color: var(--background-light);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(800px) rotateY(5deg);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.programs {
    background-color: var(--background-light);
    position: relative;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.program-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.program-card p {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.program-card .btn {
    margin: 0 1.5rem 1.5rem;
}

.benefits {
    background-color: var(--background-light);
    position: relative;
}

.benefits-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.benefits-text {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.benefits-image {
    flex: 1;
}

.benefits-image img {
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonials {
    background-color: var(--background-light);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, #fff, #f5edff);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.testimonial-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin-bottom: 1.5rem;
}

.testimonial-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
}

.contact {
    background-color: var(--background-light);
    position: relative;
}

.contact-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    padding-top: 2rem;
}

.contact-form {
    flex: 2;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 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;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Comfortaa', cursive;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

footer {
    background-color: var(--background-dark);
    color: var(--light-text);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-item {
    flex: 1;
    min-width: 200px;
}

.footer-item h4 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-item h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 1.5px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-item ul li {
    margin-bottom: 0.8rem;
}

.footer-item a {
    color: var(--light-text);
    transition: var(--transition);
}

.footer-item a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.logo-item h3 {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .benefits-content,
    .contact-content {
        flex-direction: column;
    }
    
    .benefits-text {
        grid-template-columns: 1fr;
    }
    
    .about-image,
    .benefits-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 4rem 0;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .main-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .logo-container h1 {
        font-size: 1.2rem;
    }
    
    .footer-item {
        flex: 100%;
    }
}