/* CSS Variables and Theme */
:root {
    --primary: #0066CC;
    --primary-rgb: 0, 102, 204;
    --secondary: #FF6B35;
    --secondary-rgb: 255, 107, 53;
    --background: #F8F7F2;
    --foreground: #1A1A1A;
    --muted: #F0EFEA;
    --muted-foreground: #666666;
    --border: #E8E8E8;
    --card-bg: #FFFFFF;
    --destructive: #DC2626;
    --success: #10B981;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.font-bold {
    font-weight: 700;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-box > img {
   
    width: 4.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin-left: 0.5rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: white !important;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    width: 1.5rem;
    height: 0.2rem;
    background-color: var(--foreground);
    border-radius: 0.1rem;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.6rem);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.6rem);
}

/* Mobile Menu Dropdown */
.nav-list.mobile-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex !important;
    flex-direction: column;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    gap: 0.5rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 1rem;
    background: linear-gradient(135deg, var(--background) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.05);
    filter: blur(80px);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background-color: rgba(255, 107, 53, 0.05);
    filter: blur(80px);
    z-index: 0;
}

.hero-container {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 28rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 28rem;
}

.founder-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 8px solid rgba(var(--primary-rgb), 0.2);
    animation: slideInRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.founder-image {
    width: 100%;
    height: auto;
    display: block;
}

.founder-info {
    padding: 1.5rem;
    background-color: var(--background);
    border-top: 1px solid var(--border);
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.founder-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.founder-experience {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.founder-location {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* Services Section */
.services-section {
    padding: 4rem 1rem;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.service-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.service-icon img {
    width: 3rem;
    height: 3rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Student Resources Section */
.student-resources-section {
    padding: 4rem 1rem;
    background-color: var(--muted);
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.student-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.student-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.student-icon img {
    width: 4rem;
    height: 4rem;
}

.student-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.student-card-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Free Resources */
.free-resources-section {
    margin-top: 3rem;
}

.resources-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resource-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.resource-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.resource-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.resource-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-subject {
    background-color: rgba(255, 107, 53, 0.2);
    color: var(--secondary);
}

.tag-level {
    background-color: rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
}

.resource-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.resource-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.resource-file {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* About Section */
.about-section {
    padding: 4rem 1rem;
    background-color: var(--background);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    order: 2;
}

.about-text {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
    line-height: 1.8;
}

.about-skills {
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.skills-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    padding: 0.5rem 0.75rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.about-location {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.location-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-text {
    color: var(--muted-foreground);
}

.about-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 8px solid rgba(var(--primary-rgb), 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact Info Section */
.contact-info-section {
    padding: 3rem 1rem;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    text-align: center;
    padding: 1.5rem;
}

.contact-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
}

.contact-info-footer {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Contact Form Section */
.contact-section {
    padding: 4rem 1rem;
    background-color: var(--background);
}

.quick-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.quick-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.quick-link:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
}

.contact-form-container {
    max-width: 48rem;
    margin: 0 auto;
    margin-top: 2rem;
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.required {
    color: var(--destructive);
}

.form-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #D1FAE5;
    border: 1px solid #6EE7B7;
    color: #065F46;
}

.error-message {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

/* Footer */
.footer {
    background-color: var(--muted);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand-name {
    font-weight: 700;
    color: var(--foreground);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-contact {
    font-size: 0.875rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-b12 {
    font-size: 0.875rem;
}

.footer-b12 a {
    color: var(--muted-foreground);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-b12 a:hover {
    color: var(--primary);
}

.b12-text {
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        order: 1;
    }

    .about-image {
        order: 2;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .student-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .quick-contact-links {
        flex-direction: column;
    }

    .quick-link {
        width: 100%;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-list {
        display: none;
    }

    .logo-name {
        display: none;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .contact-form-container {
        padding: 1rem;
    }
}
