/* ===================================
   You Can Do Maths - Stylesheet
   Modern, friendly design with curves
   =================================== */

/* Color Palette:
   Primary: #6366F1 (Indigo - trust, intelligence)
   Secondary: #F97316 (Orange - friendly, energetic)
   Accent: #8B5CF6 (Purple - creativity)
   Dark: #1E293B (Slate - professional)
   Light: #F8FAFC (Off-white - clean)
*/

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #A5B4FC;
    --secondary: #F97316;
    --secondary-dark: #EA580C;
    --secondary-light: #FDBA74;
    --accent: #8B5CF6;
    --dark: #1E293B;
    --dark-light: #334155;
    --text: #475569;
    --text-light: #94A3B8;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-warm: linear-gradient(135deg, var(--secondary) 0%, #F472B6 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 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-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

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

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Highlight text */
.highlight {
    color: var(--secondary);
}

.highlight-light {
    color: var(--secondary-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo:hover {
    color: var(--dark);
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

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

.nav-login {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-login::before {
    content: '🔐';
    font-size: 0.85rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #EEF2FF 0%, #FDF4FF 50%, #FFF7ED 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 12px;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--primary-light) 0%, #C4B5FD 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.placeholder-content {
    text-align: center;
    color: var(--white);
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 12px;
}

.placeholder-icon.large {
    font-size: 5rem;
}

.placeholder-text {
    font-weight: 600;
    opacity: 0.9;
}

.floating-badge {
    position: absolute;
    bottom: 50px;
    width: 450px;
    left: -30px;
    /* translucent background with backdrop blur */
    background-color: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.badge-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Quicksand', sans-serif;
}

.badge-text {
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--white);
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Features Bar */
.features-bar {
    padding: 40px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* About Section */
.about {
    position: relative;
    padding: 100px 0 120px;
    background: var(--light);
}

.about-curve-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.about-curve-top svg {
    display: block;
    width: 100%;
    height: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    z-index: 1;
}

.about-photo {
    width: 100%;
    border-radius: 20px;
    display: block;
}

.about-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary-light) 0%, #FBBF24 100%);
}

.swirl-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 0;
}

.swirl-decoration::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 100px;
    height: 100px;
    background: var(--gradient-warm);
    border-radius: 50%;
    opacity: 0.5;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.section-title.center {
    text-align: center;
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 48px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.credential {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    color: var(--dark);
}

.credential-icon {
    font-size: 1.3rem;
}

.about-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--white);
}

.about-curve svg {
    display: block;
    width: 100%;
    height: 60px;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.service-card.featured {
    background: var(--gradient-primary);
    color: var(--white);
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured li {
    color: var(--white);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 16px;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-card > p {
    margin-bottom: 20px;
    color: var(--text);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

.service-card.featured .service-features li::before {
    color: var(--secondary-light);
}

/* Pricing Box */
.pricing-box {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
}

.pricing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.pricing-info h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.pricing-info p {
    color: var(--text);
}

.pricing-amount {
    text-align: center;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Quicksand', sans-serif;
}

.period {
    display: block;
    color: var(--text);
    font-weight: 600;
}

/* Location Info */
.location-info {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: var(--radius-lg);
}

.location-info h3 {
    margin-bottom: 12px;
}

/* Testimonials Section */
.testimonials {
    position: relative;
    padding: 100px 0;
    background: var(--gradient-primary);
}

.testimonials-curve-top,
.testimonials-curve-bottom {
    position: absolute;
    left: 0;
    right: 0;
    color: var(--white);
}

.testimonials-curve-top {
    top: 0;
}

.testimonials-curve-bottom {
    bottom: 0;
}

.testimonials-curve-top svg,
.testimonials-curve-bottom svg {
    display: block;
    width: 100%;
    height: 60px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: -20px;
}

.testimonial-text {
    color: var(--text);
    margin-bottom: 24px;
    font-style: italic;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
}

.author-detail {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Booking Section */
.booking {
    padding: 80px 0 0;
    background: var(--white);
}

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

.tutorbird-placeholder {
    background: var(--light);
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.tutorbird-placeholder h3 {
    margin: 16px 0 8px;
    color: var(--dark);
}

.tutorbird-placeholder p {
    color: var(--text);
}

.placeholder-note {
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--white);
    border-radius: var(--radius);
    display: inline-block;
}

.booking-alternative {
    text-align: center;
    margin-top: 24px;
    color: var(--text);
}

/* Contact Section */
.contact {
    position: relative;
    padding: 160px 0 80px;
    background: var(--gradient-primary);
}

.contact-curve {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--primary);
}

.contact-curve svg {
    display: block;
    width: 100%;
    height: 120px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

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

.contact-info p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.contact-value {
    font-weight: 600;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--text-light);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
}

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

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--dark-light);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .floating-badge {
        left: auto;
        right: -10px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }
    /* On small screens place the image after the text */
    .about-image { order: 2; }
    .about-text { order: 1; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Place featured service first on mobile */
    .services-grid {
        display: grid; /* ensure grid context */
        grid-template-columns: 1fr;
    }
    .service-card.featured { order: -1; }
    
    .pricing-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
}

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

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--light);
    color: var(--dark);
}

.modal-body {
    padding-top: 12px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 0;
}

.modal-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}
