/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Color Palette (Soft Beige & Emerald Green) */
    --primary: #10B981;
    /* Emerald Green */
    --primary-light: #34D399;
    /* Light Emerald */
    --primary-dark: #047857;
    /* Deep Emerald */
    --secondary: #D97706;
    /* Amber/Gold Accent */
    --accent: #F59E0B;
    /* Bright Amber */

    /* Neutrals - Light Theme */
    --light: #F4EFE6;
    /* Soft Beige - Main BG */
    --white: #FDFBF7;
    /* Warm Cream - Cards BG */
    --dark: #1F2937;
    /* Dark Charcoal - Headings */
    --darker: #064E3B;
    /* Deepest Emerald - Footer/Alt BG */

    /* Text */
    --text-main: #374151;
    /* Dark Gray - Body text */
    --text-muted: #6B7280;
    /* Muted Gray - Muted text */

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Utilities */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: -2%;
    width: 104%;
    height: 12px;
    background-color: var(--secondary);
    opacity: 0.25;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-1deg);
}

.dark-bg {
    background-color: var(--darker);
    color: var(--light);
}

.dark-bg h2,
.dark-bg h3,
.dark-bg h4 {
    color: var(--white);
}

.dark-bg .text-muted {
    color: #94A3B8;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.dark-bg .section-title p {
    color: #94A3B8;
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: #fe0000;
    color: white;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 0, 0, 0.4);
    background-color: #d10000;
}

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

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

.w-100 {
    width: 100%;
}

/* =========================================
   NAVIGATION
========================================= */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(244, 239, 230, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--darker);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-fast);
}

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

.nav-links .btn-primary-outline {
    padding: 0.5rem 1.5rem;
}

.nav-links .btn-primary-outline:hover {
    color: var(--white);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--darker);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(217, 119, 6, 0.05) 50%, rgba(244, 239, 230, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
    border: 6px solid var(--white);
    position: relative;
    z-index: 2;
    transition: all 1s ease-in-out;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 5;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-card i {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    left: -10%;
}

.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 163, 115, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon .fa-youtube {
    color: #fe0000;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* =========================================
   TEACHING & YOUTUBE
========================================= */
.youtube-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.youtube-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.benefit-list {
    margin-bottom: 2.5rem;
}

.benefit-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.benefit-list i {
    color: var(--accent);
    font-size: 1.25rem;
}

/* =========================================
   RESOURCE HUB
========================================= */
.resource-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.resource-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.grammar-icon {
    background: rgba(212, 163, 115, 0.1);
    color: var(--primary);
}

.writing-icon {
    background: rgba(250, 237, 205, 0.1);
    color: var(--secondary);
}

.resource-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.resource-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.resource-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* =========================================
   CONTACT
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-box.whatsapp {
    background: #25D366;
}

.icon-box.email {
    background: #EA4335;
}

.contact-text span {
    color: #94A3B8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text h4 {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-illustration {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: var(--secondary);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: var(--darker);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    display: block;
    margin-bottom: 1rem;
}

.footer-logo a span {
    color: var(--primary);
}

.footer-logo p {
    color: #94A3B8;
    max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 0.875rem;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 4rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid,
    .youtube-showcase,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide on mobile initially, JS will toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-outline {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .about-features .feature-card {
        padding: 1.5rem;
    }

    .resource-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Premium Resource Hub Cards (Matching Theme Style)
   ========================================================================== */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.hub-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 4px solid var(--primary);
}

.hub-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.hub-banner {
    padding: 2rem 2rem 1rem 2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.banner-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--darker);
    line-height: 1.3;
    margin: 0;
}

.hub-body {
    padding: 0 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hub-body p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hub-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    margin-top: auto;
}

.hub-btn i {
    margin-right: 8px;
}

.hub-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pani Pani (Class Selector) Section (Matching Theme Style)
   ========================================================================== */
.pani-pani-wrapper {
    background: transparent;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.pani-header {
    margin-bottom: 3rem;
}

.pani-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--darker);
    margin-bottom: 1rem;
}

.pani-header h2 span {
    color: var(--primary);
}

.pani-header p {
    font-size: 1.1rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.pani-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pani-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    color: var(--darker);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-sans);
    border-left: 4px solid var(--primary);
}

.pani-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: var(--primary);
}

.pani-btn i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    padding: 12px;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .pani-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pani-grid {
        grid-template-columns: 1fr;
    }

    .pani-pani-wrapper {
        padding: 1rem;
    }
}