/* Reset & Variables */
:root {
    --primary-color: #0A192F;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #e2e8f0;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-main: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

[data-theme="dark"] .header {
    background: rgba(18, 18, 18, 0.9);
}

[data-theme="dark"] .btn-primary {
    background-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: #2d2d2d;
    color: #e2e8f0;
    border-color: #444;
}

[data-theme="dark"] .about-badge {
    color: #121212;
    background-color: var(--primary-color);
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15) 0%, rgba(18, 18, 18, 0) 50%),
                radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.05) 0%, rgba(18, 18, 18, 0) 50%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.whatsapp-btn-main {
    background-color: #25d366;
    color: white;
    border-color: #25d366;
}

.whatsapp-btn-main:hover {
    background-color: #128c7e;
    border-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header */
.header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .tagline {
        display: block;
    }
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 50%),
                radial-gradient(circle at bottom left, rgba(10, 25, 47, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

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

.feature-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-profile {
    text-align: center;
}

.about-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.teacher-name {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.teacher-photo-container {
    width: 320px;
    height: 320px;
    margin: 5rem auto 2.5rem; /* Extra top margin for pop-out */
    position: relative;
}

.teacher-photo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

[data-theme="dark"] .teacher-photo-container::before {
    border-color: #333;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.teacher-photo-clipper {
    position: absolute;
    bottom: 4px; /* Inside the border */
    left: 4px;
    width: 312px; /* 320px - 8px border */
    height: 450px;
    overflow: hidden;
    border-radius: 0 0 156px 156px; /* Matches inner circle radius */
    z-index: 2;
}

.teacher-photo-img {
    width: 85%; /* Zoom out so shoulders and arms fit inside the circle */
    height: auto;
    position: absolute;
    bottom: 0;
    left: 47%; /* Shift left to center the PERSON visually */
    transform: translateX(-50%);
}

.photo-placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.teacher-qualifications {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 600;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.about-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.05s linear;
    width: max-content;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
}

.author-info strong {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Demo Form Section */
.demo-booking {
    padding: 6rem 0;
}

.form-container {
    max-width: 600px;
}

.demo-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    font-size: 1.125rem;
    padding: 1rem;
}

/* Contact Section */
.contact-info {
    padding: 4rem 0 6rem;
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact-card a,
.contact-card p {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: #0A192F; /* Keep dark even in dark mode */
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128c7e;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .demo-form {
        padding: 2rem;
    }
}
