/* --- Global Styles & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&family=Poppins:wght@400;500;600&family=Quicksand:wght@500;700&display=swap');

:root {
    --text: #fbf5f3;
    --accent: #009ddc;
    --bg-primary: #191919;
    --bg-secondary: #2a2d34;

    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #4a4a4a;
    --medium-gray: #888888;
    --dark-gray: #E8E8E8; /* For text on dark bg */
    
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;

    --font-heading: 'Quicksand', sans-serif;
    --font-subheading: 'Nunito', sans-serif;
    --font-body: 'Poppins', sans-serif;

    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.7);

    --border-radius: 12px;

    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text);
    margin-bottom: 0.8em;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 3rem; font-family: var(--font-subheading); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; font-family: var(--font-body); }

p {
    margin-bottom: 1.2em;
    color: #cccccc;
    max-width: 65ch; /* Improve readability */
}

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

a:hover, a:focus {
    color: #33bfff;
    text-decoration: underline;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

ul, ol {
    list-style-position: inside;
    padding-left: 1em;
}

/* --- Utility Classes --- */
.hidden { display: none !important; }

.active-section {
    display: block;
    animation: fadeIn 0.6s ease-in-out;
}

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: var(--font-subheading);
    font-weight: 700;
    padding: 0.85em 1.75em;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-light);
    margin: 0.5em;
    text-decoration: none;
}

.btn i { margin-right: 0.75em; }

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text);
    border-color: var(--accent);
}
.btn-primary:hover { background-color: #007bb5; border-color: #007bb5; }

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border-color: var(--accent);
}
.btn-secondary:hover { background-color: var(--accent); }

.btn-large {
    padding: 1em 2em;
    font-size: 1.1rem;
}

/* --- Header --- */
.site-header {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent);
}

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

.header-container img {
    height: 77px; 
    margin-right: 2.5px;
	margin-bottom: -7px;
	margin-top: -7px;
    }

.logo-link {
    font-weight: 800;
    font-family: var(--font-subheading);
    font-size: 2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.05em;
}
.logo-link:hover, .logo-link:focus { text-decoration: none; color: var(--text); outline: none; }

.logo-svg {
    height: 4.4rem;
    width: auto;
}

.logo-highlight { color: var(--accent); }

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation .nav-link {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: #cccccc;
    padding: 0.5em 0;
    position: relative;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width var(--transition-medium);
}

.main-navigation .nav-link:hover,
.main-navigation .nav-link:focus,
.main-navigation .nav-link.active {
    color: var(--text);
    outline: none;
}

.main-navigation .nav-link:hover::after,
.main-navigation .nav-link:focus::after,
.main-navigation .nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        box-shadow: var(--shadow-medium);
        padding: 1rem 0;
    }
    .main-navigation.active { display: block; }
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .main-navigation .nav-link {
        padding: 0.8em 1em;
        width: 90%;
        text-align: center;
        border-radius: var(--border-radius);
    }
     .main-navigation .nav-link::after { display: none; }
     .main-navigation .nav-link:hover,
     .main-navigation .nav-link:focus,
     .main-navigation .nav-link.active {
        background-color: rgba(0, 157, 220, 0.15);
        color: var(--text);
     }
    .mobile-menu-toggle { display: block; }
}

/* --- Content Sections --- */
.content-section {
    padding: 5rem 0;
    display: none;
}
.content-section#home {
    padding: 0; /* Remove padding for the home section wrapper */
}

.content-section:nth-child(even) {
   background-color: var(--bg-secondary);
}
.content-section.active-section { display: block; }

.section-container {
     padding-top: 1rem;
     padding-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.section-header .icon-header {
    color: var(--accent);
    margin-right: 0.75rem;
}
.section-header p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

.subsection { margin-bottom: 4rem; }
.subsection h3 {
    font-family: var(--font-subheading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- Homepage Specific Styles --- */
#home { 
    background: var(--bg-primary);
}

.hero-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  background-color: var(--bg-primary);
  overflow: hidden;
  min-height: 60vh; /* big enough for hero, but not too big */
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.37) 0%,
    rgba(0,0,0,0.01) 15%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;            /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;          /* was -1; this is the key change */
  display: block;
  pointer-events: none; /* clicks go to buttons/links on top */
}

.hero-content {
  position: relative;
  z-index: 2;          /* ensure text sits above the video */
}

.hero-text {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-text .tagline {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 65ch;
    margin: 0 auto 2em;
    text-align: center;

    /* Gradient fill */
    background: linear-gradient(45deg, var(--accent), #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Gradient-style shadow */
    text-shadow:
        2px 2px 8px rgba(79, 70, 229, 0.6),  /* purple side */
        -2px -2px 8px rgba(6, 182, 212, 0.6); /* teal side */
}
.hero-cta-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- New Homepage Content Sections --- */
.home-content-wrapper {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
}

.home-subsection {
    margin-bottom: 6rem;
}

.home-subsection:last-child {
    margin-bottom: 0;
}

.home-subsection .subsection-header {
    text-align: center;
    margin-bottom: 3rem;
}

.home-subsection .subsection-header h2 {
    font-size: 2.2rem;
    color: var(--text);
}

/* 1. Philosophy Section */
.philosophy-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.philosophy-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 300px;
}

.philosophy-image video {
	height: 333px;
    border-radius: 50%;
    border: 5px solid var(--accent);
    box-shadow: var(--shadow-large);
}

.philosophy-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

.philosophy-text p {
    font-size: 1.1rem;
    color: #cccccc;
    text-align: center;
}

@media (min-width: 992px) {
    .philosophy-section {
        flex-direction: row;
        gap: 4rem;
    }
    .philosophy-text h2, .philosophy-text p {
        text-align: left;
    }
    .philosophy-text {
        flex-basis: 60%;
    }
}


/* 2. How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.step-card {
    background: var(--bg-primary);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--light-gray);
    transition: transform var(--transition-medium), border-color var(--transition-medium);
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.step-card .step-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.step-card h3 {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: #cccccc;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3. Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent);
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #dcdcdc;
    margin: 0 0 1rem 0;
    border-left: none;
    padding: 0;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--accent);
    font-style: normal;
}

@media (min-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4. Who We Help Section */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.profile-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--light-gray);
}

.profile-card .profile-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.profile-card h4 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

@media (min-width: 600px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .profile-grid { grid-template-columns: repeat(4, 1fr); }
}


/* 5. Final CTA Section */
.final-cta-section {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
}

.final-cta-section h2 {
    font-size: 2.2rem;
    color: var(--text);
}

.final-cta-section p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Tutoring Section --- */
.method-steps {
    list-style-type: none;
    counter-reset: step-counter;
    padding-left: 0;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.method-steps li {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    border-left: 4px solid var(--accent);
    counter-increment: step-counter;
}

.method-steps li::before {
    content: '0' counter(step-counter);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
}

.method-steps li strong {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-proof {
    text-align: center;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--accent);
}
.social-proof blockquote {
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #dcdcdc;
}
.social-proof footer {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.cta-section {
    text-align: center;
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 1.8rem;
    color: var(--text);
}

.pcenterp {
    margin-left: 19%;
}


/* --- Feed Grid & Cards (For Tutoring & PCs) --- */
.feed-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.content-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid #333;
}
.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent);
}

.card-media { width: 100%; background-color: var(--light-gray); }
.card-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    color: var(--text);
    margin-bottom: 0.5rem;
}
.card-text {
    font-size: 1rem;
    color: #cccccc;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.badge {
    background-color: #3e3e3e;
    color: var(--text);
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge.ai-ready { background-color: var(--accent); color: var(--text); }
.badge.beginner-friendly { background-color: var(--success); color: var(--text); }
.badge.budget { background-color: var(--warning); color: #191919; }

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.card-price-label {
    font-size: 0.9rem;
    color: #cccccc;
}
.card-cta .btn {
    margin: 0;
    padding: 0.6em 1.2em;
}

/* --- PC Section: Compare Table --- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    font-size: 0.95rem;
}
.compare-table th, .compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
}
.compare-table th {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: var(--accent);
    background-color: #2f2f2f;
}
.compare-table tbody tr:last-child td {
    border-bottom: none;
}
.compare-table tbody tr:hover {
    background-color: #333;
}
.compare-table .badges-cell .badge {
    margin-right: 0.4rem;
}


/* --- Policies Section --- */
.policies-list {
    list-style: none;
    padding-left: 0;
}
.policies-list li {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent);
}
.policies-list h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}
#scheduling-info .payment-options {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
#scheduling-info .payment-options i {
    font-size: 2rem;
}


/* --- Footer --- */
.site-footer {
    background-color: var(--bg-secondary);
    color: #cccccc;
    padding: 4rem 0 0;
    margin-top: 4rem;
    border-top: 3px solid var(--accent);
}

.footer-content {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding-bottom: 3rem;
}

.footer-about h4, .footer-links h4, .footer-contact h4 {
    font-family: var(--font-subheading);
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}
.footer-about p { font-size: 1rem; }

.footer-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: #cccccc; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-email {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.footer-email:hover {
    color: #33bfff;
}

.footer-bottom {
    background-color: var(--bg-primary);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--medium-gray);
    border-top: 1px solid var(--light-gray);
}


/* --- Accessibility Improvements --- */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 157, 220, 0.5);
}
*:focus:not(:focus-visible) {
  outline: none;
}