/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #00A896; /* A vibrant teal */
    --secondary-color: #02C39A;
    --dark-color: #2b2d42;
    --light-color: #edf2f4;
    --text-color: #8d99ae;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(2, 195, 154, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 400;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* --- HERO SECTION (UPDATED FOR "WOW" EFFECT) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    padding-top: var(--header-height);
    
    /* New dynamic gradient with contrasting colors */
    background: linear-gradient(217deg, rgba(74, 0, 224, 0.8), rgba(43, 45, 66, 0.9), rgba(0, 168, 150, 0.7));
    background-size: 600% 600%;
    
    /* New animation for a slower, more dynamic feel */
    animation: gradient-animation 18s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 82%; }
    50% { background-position: 100% 19%; }
    100% { background-position: 0% 82%; }
}

.hero h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--light-color);
}

.hero .btn {
    margin: 0.5rem;
}

/* Updated secondary button style for better visibility on dark background */
.hero .btn-secondary {
    color: var(--white-color);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white-color);
}
/* --- END OF HERO SECTION UPDATE --- */

/* --- GENERAL SECTION STYLING --- */
section {
    padding: 6rem 0;
}

/* --- ABOUT SECTION --- */
.about-section {
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-graphic {
    max-width: 350px;
    margin: 0 auto;
}

/* --- COURSES SECTION --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- PROCESS SECTION --- */
.process-section {
    background-color: var(--light-color);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    position: relative;
    gap: 2rem;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    font-size: 45px;
    color: var(--primary-color);
    margin-right: 1rem;
}

.testimonial-author span {
    font-weight: 600;
    color: var(--dark-color);
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--white-color);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 3rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--light-color);
}
.footer a:hover {
    color: var(--primary-color);
}

.footer h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer .logo {
    color: var(--white-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-social a {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-graphic {
        grid-row: 1; /* Ensure graphic is above text on mobile */
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
    }

    .nav-btn {
        display: none; /* Hide button in nav bar on mobile */
    }

    .hamburger {
        display: block;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .process-steps::before {
        display: none;
    }

    .testimonials-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .hero .btn {
        display: block;
        width: 80%;
        margin: 1rem auto;
    }
    .container {
        padding: 0 1rem;
    }
    section {
        padding: 4rem 0;
    }
}