/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Green & White Theme (Pro-IELTS inspired) */
    --primary-green: #3eb072;
    --primary-green-dark: #2d8a5a;
    --primary-green-light: #579c77;
    --accent-green: #4bc884;
    --dark-text: #141f19;
    --white: #ffffff;
    --off-white: #f8fafc;
    --cream: #f1e8d9;
    --light-gray: #e2e8f0;
    --medium-gray: #64748b;
    --dark-gray: #1e293b;
    --text-dark: #0f172a;

    /* Legacy blue variables for compatibility */
    --primary-blue: var(--primary-green);
    --primary-blue-dark: var(--primary-green-dark);
    --primary-blue-light: var(--primary-green-light);
    --accent-blue: var(--accent-green);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.language-selector {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    padding: 8px 12px;
    border: 2px solid var(--light-gray);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.lang-btn.active {
    border-color: var(--primary-green);
    background: var(--primary-green);
    box-shadow: var(--shadow-md);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-blue);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    bottom: -100px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-blue-light);
    top: 50%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

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

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--medium-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0px 0px 34px 9px rgba(62,176,114,0.5);
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0px 0px 40px 12px rgba(62,176,114,0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.social-link:hover .social-link-icon {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0px 0px 30px 8px rgba(62,176,114,0.4);
}

.social-link-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-text);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-link-label {
    opacity: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(62, 176, 114, 0.1);
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 40px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--light-gray);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0px 10px 30px rgba(62,176,114,0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-description {
    font-size: 15px;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-green));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-role {
    font-size: 14px;
    color: var(--medium-gray);
}

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

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    padding: 64px 40px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: 0px 20px 40px rgba(62,176,114,0.3);
}

.contact-info .section-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 280px;
    justify-content: center;
}

.contact-social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--off-white);
}

/* Footer */
.footer {
    padding: 64px 0 32px;
    background: var(--text-dark);
    color: var(--white);
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--light-gray);
    font-size: 14px;
}

.footer-links h4,
.footer-languages h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-lang-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-lang-list span {
    font-size: 14px;
    color: var(--light-gray);
}

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

.footer-bottom p {
    color: var(--light-gray);
    font-size: 14px;
}

/* YouTube Videos Section */
.videos {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.video-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.video-slider {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.video-slide {
    display: none;
    width: 100%;
}

.video-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0px 0px 20px rgba(62,176,114,0.4);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--primary-green);
    width: 32px;
    border-radius: 6px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* FAQ Section */
.faq {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--primary-green);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--medium-gray);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .language-selector {
        gap: 4px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 16px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero-image {
        order: -1;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

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

    .social-links {
        flex-wrap: wrap;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        padding: 40px 24px;
    }

    .contact-social-link {
        min-width: auto;
        width: 100%;
    }

    .video-slider-container {
        padding: 0 50px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card,
    .testimonial-card {
        padding: 24px;
    }

    .video-slider-container {
        padding: 0 40px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
}
