/* ===================================
   TUTORING OVERTIME - MAIN STYLESHEET
   =================================== */

/* ===================================
   CSS VARIABLES & BASE STYLES
   =================================== */
   :root {
    --primary: #5672FF;
    --secondary: #101820;
    --accent: #FD7E14;
    --light: #f8f9fa;
    --dark: #343A40;
    --text: #343A40;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.20);
    --radius: 8px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
}

.responsive-body {
    /* Additional responsive body styles if needed */
}

.responsive-card {
    width: 100%;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

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

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* ===================================
   BUTTONS
   =================================== */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.cta-button.secondary {
    background: var(--primary);
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    margin: 2rem auto;
}

.cta-button:hover {
    background: #e06f10;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-button.secondary:hover {
    background: #455CCA;
}

.cta-button.tertiary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.tertiary:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===================================
   HEADER
   =================================== */
.header {
    background: var(--secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, padding 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.header-cta {
    display: flex;
    align-items: center;
}

/* ===================================
   HERO SECTION
   =================================== */
.section-hero {
    background-color: #0A0F1A;
    color: white;
    text-align: center;
    padding: 6rem 0 4rem 0;
    position: relative; 
    overflow: hidden;
    min-height: 40vh;
}

#hero-star-canvas {
    overflow: hidden;
    will-change: transform;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: white;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.section-hero .hero-cta .cta-button.tertiary {
    color: white;
    border-color: white;
    background-color: transparent;
    opacity: 0.7;
}

.section-hero .hero-cta .cta-button.tertiary:hover {
    color: var(--dark);
    border-color: white;
    background-color: white;
    opacity: 1;
}

/* ===================================
   WHY US SECTION
   =================================== */
.section-why-us {
    background-color: var(--light);
}

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

.why-us-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: auto;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-us-icon {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    margin: 0 auto 1rem auto;
    fill: var(--primary);
    display: block;
}

.why-us-item h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.why-us-item p {
    color: var(--text);
    font-size: 0.95rem;
}

/* ===================================
   TUTORS SECTION
   =================================== */
.featured-tutors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    display: grid;
}

.tutor-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card--featured {
    padding: 3rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    border: 2px solid var(--accent);
}

.tutor-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tutor-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.5rem;
}

.tutor-card p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tutor-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.tutor-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tutor-card li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.tutor-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.service-card.featured {
    order: -1;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
    border: 2px solid #007BFF;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.service-highlight {
    background: #007BFF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    color: #007BFF;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-price {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #007BFF;
    font-size: 1.1rem;
}

.service-card .cta-button {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

/* ===================================
   MISSION SECTION (Science Fair)
   =================================== */
.section-mission {
    background-color: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    text-align: left;
}

.mission-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.mission-text {
    margin-bottom: 1.5rem;
}

.mission-signature {
    font-style: italic;
    color: var(--dark);
    font-weight: 600;
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    text-align: left;
}

.credential-item {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.credential-item::before {
    content: '✓';
    margin-right: 0.5rem;
    color: var(--primary);
}

/* New service card elements */
.service-target, .service-goal {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.service-target {
    background-color: rgba(86, 114, 255, 0.1); /* primary with alpha */
    border: 1px solid var(--primary);
    color: var(--primary);
}

.service-goal {
    background-color: rgba(253, 126, 20, 0.1); /* accent with alpha */
    border: 1px solid var(--accent);
    color: var(--accent);
}

[data-page="scienceFair"] .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

/* ===================================
   REVIEWS SECTION
   =================================== */
.section-reviews {
    background: var(--light);
}

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

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 5px solid var(--primary);
}

.review-card p {
    margin-bottom: 0.5rem;
}

.review-card strong {
    color: var(--dark);
}

.review-text {
    font-style: italic;
    flex-grow: 1;
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #eee;
}

.review-rating {
    font-size: 1.5rem;
    color: var(--accent);
    text-align: right;
    margin-top: 1rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.section-contact {
    background: var(--secondary);
    color: white;
}

.section-contact .section-title {
    color: white;
}

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

.contact-info {
    margin-bottom: 3rem;
    color: white;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info p {
    margin: 1rem 0;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.consultation-cta {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.consultation-cta h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.footer-attributions {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccc;
}

.footer-attributions a {
    color: #ddd;
    text-decoration: underline;
}

.footer-attributions a:hover {
    color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .container { 
        padding: 0 2rem; 
    }
    
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .grid { 
        grid-template-columns: 1fr; 
    }
    
    .team-grid, .services-grid, .why-us-grid, .reviews-grid { 
        grid-template-columns: 1fr; 
    }
    
    .section { 
        padding: 4rem 0; 
    }
}

@media (max-width: 768px) {
    .hero-content { 
        padding: 2rem; 
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-hero {
        min-height: 60vh;
    }
    
    .card { 
        padding: 1.5rem; 
    }
    
    .section-title { 
        font-size: 2rem; 
    }
    
    .cta-button { 
        width: 100%; 
    }
    
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tutor-card img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container { 
        padding: 0 1rem; 
    }
    
    h1, h2, h3 { 
        text-align: center; 
    }
    
    .logo-text { 
        font-size: 1.2rem; 
    }
    
    .hamburger-menu { 
        padding: 5px; 
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media print {
    .hamburger-menu, .mobile-nav {
        display: none !important;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above other header content */
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    position: absolute;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Hamburger Menu Active State */
.hamburger-menu.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger-menu.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.hamburger-menu.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Mobile Navigation */
.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Space for header */
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
}

.mobile-nav.is-open {
    display: flex;
    transform: translateX(0);
}

.mobile-nav-link {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-cta {
    margin-top: 20px;
    font-size: 1.2rem;
}



/* Utility Classes */
.no-scroll {
    overflow: hidden;
}

/* ===================================
   SERVICES OVERVIEW (INDEX PAGE)
   =================================== */
.section-services-overview {
    background-color: white;
}

.services-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-overview-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-overview-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.service-overview-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.service-overview-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* ===================================
   TUTORS/TEAM SECTION
   =================================== */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    display: grid;
    align-items: stretch; /* Ensures cards in a row are same height */
}

.tutor-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutor-card--featured {
    padding: 3rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    border: 2px solid var(--accent);
}

.tutor-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.tutor-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.5rem;
}

.tutor-card p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows bio to expand, pushing achievements down */
}

.tutor-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1.5rem;
}

.tutor-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tutor-card li::before {
    content: '✓';
    color: var(--accent);
    position: absolute;
    left: 0;
}