/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #94a3b8; /* Muted slate body text */
    background-color: #0b0f17; /* Extra dark layout background */
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0b0f17;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;`
    padding: 30px 20px;
    gap: 20px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #14b8a6; /* Vibrant teal/green mark */
    letter-spacing: 0.5px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #14b8a6;
}

/* --- Global Structural Framework --- */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-num {
    display: block;
    font-size: 14px;
    color: #0d9488;
    margin-bottom: 12px;
    font-weight: 500;
}

h2 {
    font-size: 36px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 30px;
}

h3 {
    font-size: 28px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 24px;
}

/* --- Hero / Home Section --- */
#home {
    padding-top: 200px;
    padding-bottom: 120px;
    border-bottom: 1px solid #1e293b;
    text-align: left;
}

#home h1 {
    font-size: 56px;
    color: #ffffff;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 24px;
    max-width: 900px;
}

.hero-credentials {
    font-size: 16px;
    color: #14b8a6; /* Highlighted green subline text */
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: #94a3b8;
    max-width: 800px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Hero Action Group CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-solid {
    display: inline-block;
    padding: 14px 28px;
    background-color: #14b8a6;
    color: #0b0f17;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.btn-solid:hover {
    background-color: #0d9488;
}

.btn-outline {
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    border: 1px solid #14b8a6;
    color: #14b8a6;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    background-color: rgba(20, 184, 166, 0.1);
}

/* --- About Section Layout --- */
#about {
    border-bottom: 1px solid #1e293b;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-text p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 20px;
    max-width: 520px;
}

.image-container {
    display: flex;
    justify-content: flex-end;
}

.profile-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 28px;
    object-fit: cover;
}

/* --- How I Teach Section Layout --- */
#how-i-teach {
    border-bottom: 1px solid #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 36px;
}

/* Top Grid - Subjects & Support */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.subject-card {
    background-color: #111723;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: left;
    transition: transform 0.3s ease;
}

.subject-card:hover {
    transform: translateY(-4px);
}

.card-icon {
    color: #14b8a6;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.subject-card h4 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.subject-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Bottom Section - Structured Approach */
.approach-header {
    color: #14b8a6;
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 500;
}

.approach-intro {
    font-size: 16px;
    color: #94a3b8;
    max-width: 850px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.approach-card {
    background-color: #111723;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 24px;
    text-align: left;
}

.approach-card h4 {
    font-size: 16px;
    color: #14b8a6;
    margin-bottom: 8px;
    font-weight: 500;
}

.approach-card p {
    font-size: 14px;
    color: #94a3b8;
}

/* --- Testimonials Grid Framework --- */
#testimonials {
    border-bottom: 1px solid #1e293b;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.star-card {
    background-color: #111723;
    border: 1px solid #1e293b;
    padding: 32px 28px;
    border-radius: 12px;
    text-align: left;
}

.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

/* Crisp pure-CSS geometric rating stars matching reference image perfectly */
.star-icon {
    width: 18px;
    height: 18px;
    background-color: #f59e0b; /* Bright amber gold */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star-card p {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Contact / Form Section --- */
.contact-container {
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #111723;
    border: 1px solid #223147;
    border-radius: 8px;
    font-size: 15px;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.submit-btn {
    background-color: #0d9488;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #0f766e;
}

/* --- Footer Styles --- */
footer {
  
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #475569;
}

/* --- Mobile Breakpoint Rules --- */
@media (max-width: 768px) {
    #home h1 {
        font-size: 38px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .image-container {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
}











 
        /* Mobile First & Responsive Base Styling Layouts */
        html {
            scroll-behavior: smooth;
        }
        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            overflow-x: hidden;
        }
        
        /* Sticky Navigation Blueprint ensuring links always stay visible */
        header {
            position: -webkit-sticky;
            position: sticky;
            top: 0;
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            z-index: 1000;
            width: 100%;
        }
        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .logo {
            text-decoration: none;
            font-weight: 700;
            color: #333;
            font-size: 1.1rem;
        }
        .nav-links {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 15px;
        }
        .nav-links a {
            text-decoration: none;
            color: #555;
            font-size: 0.95rem;
            font-weight: 500;
            transition: color 0.2s ease;
        }
        .nav-links a:hover {
            color: #0066cc;
        }

        /* Generic Layout Adjustments for Sections */
        section {
            padding: 60px 20px;
            max-width: 1200px;
            margin: 0 auto;
            box-sizing: border-box;
        }
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        /* Forms, Inputs, Buttons updates for Touch Inputs */
        input, select, textarea {
            width: 100%;
            box-sizing: border-box;
            padding: 12px;
            font-size: 16px; /* Prevents auto-zoom on iOS safari safari devices */
            margin-top: 5px;
            border: 1px solid #ccc;
            border-radius: 6px;
        }
        .btn-solid, .btn-outline, .submit-btn {
            display: inline-block;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-weight: 600;
            text-align: center;
            transition: transform 0.2s, background 0.2s;
        }
        .hero-cta-group {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 25px;
        }

        /* Default Grid structures for modern viewports */
        .about-grid, .subjects-grid, .approach-grid, .testimonials-grid {
            display: grid;
            gap: 20px;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            margin-top: 30px;
        }
        .about-grid {
            grid-template-columns: 1fr 1fr;
        }

        /* Core Media Queries for Mobile Screens (< 768px) */
        @media (max-width: 768px) {
            /* Keep links visible but stack the navbar elements cleanly */
            .nav-container {
                flex-direction: column;
                gap: 12px;
                padding: 12px 10px;
                text-align: center;
            }
            .nav-links {
                gap: 12px;
                justify-content: center;
                width: 100%;
            }
            .nav-links a {
                font-size: 0.88rem;
                padding: 4px 6px;
            }

            /* Main Layout Stacking elements */
            .about-grid {
                grid-template-columns: 1fr; /* Stacks image below or above text */
            }
            .image-container {
                order: -1; /* Puts the profile photo above the bio text on small viewports */
                display: flex;
                justify-content: center;
            }
            .profile-img {
                max-width: 250px;
                border-radius: 50%; /* Circle look optimization optional */
            }

            /* Adjust typography scaling for mobile screens */
            h1 { font-size: 1.8rem; line-height: 1.3; }
            h2 { font-size: 1.5rem; }
            h3 { font-size: 1.25rem; }
            
            .hero-credentials {
                font-size: 0.9rem;
                line-height: 1.4;
            }
            
            /* CTA Stretch adjustments */
            .hero-cta-group .btn-solid, 
            .hero-cta-group .btn-outline {
                width: 100%; /* Makes buttons full-width thumb targets */
                box-sizing: border-box;
            }

            /* Extra adjustments for social references */
            .find-me-section a {
                display: block !important;
                margin-right: 0 !important;
                margin-bottom: 8px;
                text-align: center;
            }
        }
    