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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1;
}

/* Top Info Bar */
.info-bar {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-align: right;
}

.phone-number {
    font-size: 14px;
    color: white;
    text-decoration: none;
    cursor: default;
}

.phone-number.clickable {
    cursor: pointer;
}

.phone-number.clickable:hover {
    text-decoration: underline;
}

.phone-number::before {
    content: "☎ ";
}

/* Navigation */
.nav-container {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-text {
    position: absolute;
    bottom: 80px;
    left: 10%;
    text-align: left;
    color: white;
    max-width: 600px;
    width: 90%;
}

.slide-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8),
                 -1px -1px 2px rgba(0,0,0,0.6);
    font-weight: bold;
    text-align: left;
}

.slide-text p {
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8),
                 -1px -1px 2px rgba(0,0,0,0.6);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.scroll-top:hover {
    background: #2980b9;
}

.scroll-top.visible {
    display: flex;
}

/* Content Sections */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

section {
    margin-bottom: 80px;
}

h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.section-content {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.signature {
    margin-top: 30px;
    text-align: right;
}

.signature img {
    max-width: 250px;
    height: auto;
}

/* Profile Image */
.profile-image {
    float: left;
    margin: 0 30px 20px 0;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
    padding: 60px 20px;
}

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

.testimonial {
    display: none;
    padding: 40px;
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: #2c3e50;
}

.testimonial-student {
    color: #7f8c8d;
    font-size: 14px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

.math-challenge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.math-challenge input {
    width: 80px;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2980b9;
}

.honeypot {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slide-text {
        bottom: 60px;
        left: 5%;
        max-width: 90%;
    }
    
    .slide-text h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .container {
        padding: 40px 15px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}