/* Global Styles */
:root {
    --primary: #1E88E5;
    /* Blue */
    --secondary: #4CAF50;
    /* Green */
    --accent: #64B5F6;
    /* Light Blue */
    --light: #F9F9F9;
    /* White shade */
    --dark: #333333;
    --text: #555555;
    --border: #EEEEEE;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #1E88E5 0%, #4CAF50 100%);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    background-image:
        radial-gradient(circle at 25px 25px, rgba(30, 136, 229, 0.03) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, rgba(76, 175, 80, 0.03) 2%, transparent 0%);
    background-size: 100px 100px;
}

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

.testimonial-cotainer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    overflow: hidden;
    border-radius: 20px;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: #0D47A1;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(30, 136, 229, 0.3);
    color: white;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover {
    background-color: #388E3C;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(76, 175, 80, 0.3);
    color: white;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: var(--primary);
    margin-bottom: 0;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--radius);
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: rgba(255, 165, 0, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.8);
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(255, 255, 255, 0.3) 2px, transparent 3px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
    animation: backgroundMove 60s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 15px 30px var(--shadow); */
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Features Section */
.features {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(30, 136, 229, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
    transition: height 0.5s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 15px 30px rgba(30, 136, 229, 0.2);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-icon i {
    font-size: 30px;
    color: var(--primary);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon i {
    color: var(--secondary);
}

/* Book Demo Section */
.book-demo {
    background-color: var(--light);
}

.book-demo-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.form-container {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.form-container::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    z-index: -1;
}

.form-container::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
    z-index: -1;
}

.info-container {
    flex: 1;
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
}

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

.process-list {
    margin-top: 30px;
}

.process-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.process-list li i {
    width: 40px;
    height: 40px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary);
    font-size: 18px;
}

/* How It Works */
.how-it-works {
    background-color: white;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.step {
    width: 22%;
    text-align: center;
    z-index: 2;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
}

.step-content h3 {
    margin-bottom: 10px;
}

/* Service Areas */
.service-areas {
    background-color: var(--light);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.area-item {
    background-color: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: 0 3px 10px var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.area-item:hover {
    transform: scale(1.03);
}

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

/* Testimonials */
.testimonials {
    background-color: white;
    position: relative;
}

.testimonials-slider {
    margin-bottom: 30px;
    display: flex;
    transition: transform 0.5s ease;
    /* overflow: hidden; */
    width: 100%;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary);
    box-sizing: border-box;
}

.testimonial-card::after {
    content: '\201C';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 120px;
    color: var(--accent);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(30, 136, 229, 0.25);
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -15px;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

.rating {
    margin-top: 5px;
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 3px 10px var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.testimonial-control-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* For Tutors */
.for-tutors {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.for-tutors-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.for-tutors-text {
    flex: 1;
}

.for-tutors-image {
    flex: 1;
}

.for-tutors-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--shadow);
}

.tutor-benefits {
    margin: 25px 0;
}

.tutor-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.tutor-benefits li i {
    color: var(--secondary);
    margin-right: 10px;
}

/* FAQ */
.faq {
    background-color: white;
}

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

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle .fa-plus {
    transform: rotate(45deg);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

.whatsapp-float a:hover {
    transform: translateY(-5px);
    color: white;
    animation: none;
    background-color: #22c35e;
}

.whatsapp-float i {
    font-size: 24px;
    margin-right: 8px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    font-size: 18px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo h2 {
    color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #CCC;
}

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

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: #AAA;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links a {
    color: #AAA;
    margin-left: 15px;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {

    .hero-content,
    .book-demo-content,
    .for-tutors-content {
        flex-direction: column;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .steps-container::before {
        display: none;
    }

    .step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 40px;
    }

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .testimonial-card {
        padding: 20px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

.modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 300px;
    max-width: 90%;
    opacity: 1;
    max-height: 76%;
    height: 76%;
}

.form-content {
    /* min-width: 380px; */
    padding: 0px 24px;
    max-height: 600px;
    overflow: auto;
    display: flex;
    flex-direction: column
}   

.form-action {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-head {
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-btn-block {
    max-width: fit-content;
    padding: 8px 20px;
    border: transparent;
    border-radius: 8px;
    color: #757575;
    opacity: 0.9;
}

.form-btn-block:hover {
    cursor: pointer;
    opacity: 1;

}

.form-btn-primary {
    background-color: var(--primary);
    color: white;
    max-width: fit-content;
    padding: 8px 20px;
    border: transparent;
    border-radius: 8px;
    font-weight: 700;
    opacity: 0.9;
}

.form-btn-primary:hover {
    color: white;
    opacity: 1;
    cursor: pointer;
}

/* Optional: style for controls */
.testimonial-control-btn {
    background: #007BFF;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px 5px;
}

.testimonial-control-btn:disabled {
    background: grey;
    cursor: not-allowed;
}