/* Frazman Website Styles */
/* Colors matched with Frazman App DesignSystem.js */

:root {
    /* Primary Green - from app */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;

    /* Secondary Purple - for premium/accents */
    --secondary: #1e293b;
    --accent: #a855f7;
    --accent-light: #c084fc;

    /* Text Colors */
    --text: #1e293b;
    --text-light: #64748b;
    --text-tertiary: #94a3b8;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.95);

    /* Hero Gradient - Green themed */
    --hero-gradient: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);

    /* Special Colors from App */
    --heart: #ef4444;
    --xp: #fbbf24;
    --streak: #f97316;
    --tree: #22c55e;
    --premium: #a855f7;

    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-green: 0 8px 24px rgba(34, 197, 94, 0.25);

    /* Radius */
    --radius: 12px;
    --radius-lg: 20px;
}

/* Dark Mode Variables - Matching App Dark Theme */
[data-theme="dark"] {
    /* Primary Green stays vibrant in dark mode */
    --primary: #4ade80;
    --primary-dark: #22c55e;
    --primary-light: #86efac;
    --primary-50: #14532d;
    --primary-100: #166534;

    /* Dark backgrounds from app */
    --secondary: #0a0f1e;
    --accent: #c084fc;
    --accent-light: #d8b4fe;

    /* Text Colors for dark mode */
    --text: #f8fafc;
    --text-light: #94a3b8;
    --text-tertiary: #64748b;

    /* Dark Backgrounds - matching app dark theme */
    --bg: #0a0f1e;
    --bg-alt: #131b2e;
    --white: #1a2438;
    --card-bg: #131b2e;
    --border-color: #2d3a52;
    --nav-bg: rgba(10, 15, 30, 0.95);

    /* Dark hero gradient */
    --hero-gradient: linear-gradient(135deg, #0a0f1e 0%, #131b2e 50%, #1a2438 100%);

    /* Shadows for dark mode */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-green: 0 8px 24px rgba(74, 222, 128, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--text);
}

.logo-icon {
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
}

.logo-text {
    color: var(--primary);
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-dropdown .dropdown-toggle::after {
    content: '';
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    margin-top: 10px;
    z-index: 100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--white);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* Dark mode dropdown */
[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .dropdown-menu::before {
    border-bottom-color: var(--card-bg);
}

[data-theme="dark"] .dropdown-menu a {
    color: var(--text);
}

[data-theme="dark"] .dropdown-menu a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s;
}

/* Nav Controls (Language Switcher & Theme Toggle) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-alt);
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Logo SVG */
.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon svg,
.logo-icon img {
    width: 48px;
    height: 48px;
}

/* Feature Icon SVG */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    margin-bottom: 15px;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    background: var(--hero-gradient);
    transition: background 0.3s ease;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--secondary);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1e293b;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 30px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.preview-header {
    background: var(--primary);
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    gap: 8px;
}

.preview-lesson {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.preview-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.preview-translation {
    font-size: 1.8rem;
    font-family: 'Noto Sans Arabic', sans-serif;
    color: #94a3b8;
    margin-bottom: 15px;
}

.preview-xp {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.preview-progress {
    width: 85%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    position: relative;
    margin-bottom: 15px;
}

.preview-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.preview-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.preview-hearts,
.preview-streak,
.preview-xp-total {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-weight: 600;
}

.preview-xp-total {
    color: #fbbf24;
}

/* Interactive Phone Preview Styles */
.preview-question-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.preview-question-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 15px 0;
}

.preview-option {
    background: #1e293b;
    border: 2px solid #334155;
    color: white;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.preview-option:hover {
    border-color: var(--primary);
    background: #253347;
    transform: scale(1.02);
}

.preview-option:active {
    transform: scale(0.98);
}

.preview-option.correct {
    background: #166534;
    border-color: #22c55e;
    animation: pulse-correct 0.5s ease;
}

.preview-option.incorrect {
    background: #991b1b;
    border-color: #ef4444;
    animation: shake 0.5s ease;
}

.preview-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

@keyframes pulse-correct {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.preview-progress-bar {
    width: 90%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0 10px;
}

.preview-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4ade80);
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Feedback Screen */
.preview-feedback-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.feedback-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pop-in 0.3s ease;
}

.feedback-icon.correct {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.feedback-icon.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.feedback-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.feedback-text.correct {
    color: #4ade80;
}

.feedback-text.incorrect {
    color: #f87171;
}

.feedback-xp {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 25px;
    animation: bounce-in 0.5s ease 0.2s both;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.preview-continue-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-continue-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.preview-continue-btn:active {
    transform: translateY(0);
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Features - Interactive Showcase */
.features {
    background: var(--bg-alt);
}

.features-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

/* Feature Tabs */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.feature-tab svg {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.feature-tab span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.feature-tab:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-tab:hover svg,
.feature-tab:hover span {
    color: var(--primary);
}

.feature-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.feature-tab.active svg,
.feature-tab.active span {
    color: white;
}

/* Feature Panels */
.feature-panels {
    position: relative;
    min-height: 400px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.feature-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
    animation: panelFadeIn 0.5s ease;
}

.feature-panel.active {
    display: grid;
}

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

/* Panel Visual Side */
.panel-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 280px;
}

.visual-badge {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.visual-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 250px;
    height: 250px;
    animation-delay: 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.4; }
}

.visual-tree {
    position: relative;
    z-index: 2;
}

.visual-tree svg {
    color: var(--primary);
    animation: treeBob 3s ease-in-out infinite;
}

@keyframes treeBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
}

.leaf {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    animation: leafFloat 4s ease-in-out infinite;
}

.leaf-1 { top: 20%; left: 20%; animation-delay: 0s; }
.leaf-2 { top: 30%; right: 25%; animation-delay: 1s; }
.leaf-3 { bottom: 30%; left: 30%; animation-delay: 2s; }

@keyframes leafFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(45deg); }
    50% { transform: translate(-5px, -25px) rotate(90deg); }
    75% { transform: translate(-15px, -10px) rotate(135deg); }
}

.visual-star {
    animation: starSpin 10s linear infinite;
}

@keyframes starSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.xp-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particle {
    position: absolute;
    font-weight: 700;
    color: #fbbf24;
    font-size: 1.2rem;
    animation: particleFloat 2s ease-out infinite;
}

.particle:nth-child(1) { animation-delay: 0s; top: 20%; left: 30%; }
.particle:nth-child(2) { animation-delay: 0.6s; top: 40%; right: 20%; }
.particle:nth-child(3) { animation-delay: 1.2s; bottom: 30%; left: 25%; }

@keyframes particleFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(0.5); }
}

.visual-streak {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg, #ff9600 0%, #ff6b00 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 150, 0, 0.3);
}

.streak-fire::before {
    content: '🔥';
    font-size: 5rem;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes fireFlicker {
    from { transform: scale(1) rotate(-3deg); }
    to { transform: scale(1.1) rotate(3deg); }
}

.streak-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-top: -10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.visual-hearts {
    display: flex;
    gap: 8px;
    padding: 25px 35px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.heart {
    font-size: 2.2rem;
    animation: heartBeat 1s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.heart-1 { animation-delay: 0s; }
.heart-2 { animation-delay: 0.1s; }
.heart-3 { animation-delay: 0.2s; }
.heart-4 { animation-delay: 0.3s; }
.heart-5 { animation-delay: 0.4s; }

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.visual-globe {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.globe-icon svg {
    color: var(--primary);
    animation: globeSpin 20s linear infinite;
}

@keyframes globeSpin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.language-flags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.flag {
    background: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Panel Content Side */
.panel-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.panel-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
}

.panel-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.stat-item strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

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

/* Feature Progress */
.feature-progress {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 33.33%;
    transition: width 0.5s ease;
}

.progress-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
    border-color: var(--primary-dark);
}

/* Mobile Responsive for Features */
@media (max-width: 768px) {
    .feature-tabs {
        gap: 6px;
    }

    .feature-tab {
        padding: 12px 14px;
        min-width: auto;
    }

    .feature-tab svg {
        width: 20px;
        height: 20px;
    }

    .feature-tab span {
        font-size: 0.75rem;
    }

    .feature-panel {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
    }

    .panel-visual {
        min-height: 200px;
        order: -1;
    }

    .panel-content h3 {
        font-size: 1.5rem;
    }

    .panel-stats {
        justify-content: center;
    }
}

/* Dark Mode for Feature Showcase */
[data-theme="dark"] .features {
    background: var(--bg);
}

[data-theme="dark"] .features .section-title {
    color: var(--text);
}

[data-theme="dark"] .features .section-subtitle {
    color: var(--text-light);
}

[data-theme="dark"] .feature-tab {
    background: var(--bg-alt);
    border-color: var(--border-color);
    color: var(--text-light);
}

[data-theme="dark"] .feature-tab svg {
    color: var(--text-light);
}

[data-theme="dark"] .feature-tab:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--primary-light);
}

[data-theme="dark"] .feature-tab:hover svg {
    color: var(--primary-light);
}

[data-theme="dark"] .feature-tab.active {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .feature-tab.active svg,
[data-theme="dark"] .feature-tab.active span {
    color: var(--bg);
}

[data-theme="dark"] .feature-panels {
    background: var(--card-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .panel-visual {
    background: transparent;
}

[data-theme="dark"] .visual-badge {
    color: var(--primary);
}

[data-theme="dark"] .ring {
    border-color: var(--primary);
    opacity: 0.4;
}

[data-theme="dark"] .panel-content h3 {
    color: var(--text);
}

[data-theme="dark"] .panel-content p {
    color: var(--text-light);
}

[data-theme="dark"] .panel-stats {
    background: transparent;
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius);
}

[data-theme="dark"] .stat-item strong {
    color: var(--primary);
}

[data-theme="dark"] .stat-item span {
    color: var(--text-light);
}

[data-theme="dark"] .streak-number {
    color: var(--text);
}

[data-theme="dark"] .progress-bar {
    background: var(--border-color);
}

[data-theme="dark"] .dot {
    background: var(--border-color);
    border-color: transparent;
}

[data-theme="dark"] .dot:hover {
    background: var(--primary-50);
    border-color: var(--primary);
}

[data-theme="dark"] .dot.active {
    background: var(--primary);
    border-color: var(--primary-light);
}

/* Dark mode visual elements */
[data-theme="dark"] .visual-streak {
    background: linear-gradient(135deg, #ff9600 0%, #ff6b00 100%);
    box-shadow: 0 10px 30px rgba(255, 150, 0, 0.2);
}

[data-theme="dark"] .visual-hearts {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
}

[data-theme="dark"] .visual-badge {
    color: var(--primary);
}

[data-theme="dark"] .visual-rings {
    background: transparent;
}

/* How It Works */
.how-it-works {
    background: var(--secondary);
    color: var(--white);
}

.how-it-works .section-title {
    color: var(--white);
}

.steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: #94a3b8;
}

/* Download */
.download {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.download .section-title {
    color: var(--white);
}

.download .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.store-btn .small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-btn .big {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Testimonials - 3D Carousel */
.testimonials-carousel-section {
    background: var(--bg-alt);
    overflow: hidden;
}

.testimonials-3d-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.testimonials-3d-carousel {
    position: relative;
    min-height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-3d-item {
    position: absolute;
    width: 100%;
    max-width: 450px;
    opacity: 0;
    transform: scale(0.8) translateX(100px) rotateY(-25deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.testimonial-3d-item.active {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0);
    pointer-events: auto;
    z-index: 2;
}

.testimonial-3d-item.prev {
    opacity: 0.4;
    transform: scale(0.85) translateX(-120px) rotateY(15deg);
    z-index: 1;
}

.testimonial-3d-item.next {
    opacity: 0.4;
    transform: scale(0.85) translateX(120px) rotateY(-15deg);
    z-index: 1;
}

.testimonial-content {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary);
}

.testimonial-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary), var(--accent)) border-box;
    animation: ringRotate 3s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.testimonial-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 15px;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.stars-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.testimonial-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.testimonial-badge.teacher-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.testimonial-badge.parent-badge {
    background: #fef3c7;
    color: #d97706;
}

/* Testimonial Navigation */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text);
}

.testimonial-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.testimonial-indicators {
    display: flex;
    gap: 10px;
}

.testimonial-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicators .indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

.testimonial-indicators .indicator:hover {
    background: var(--primary-light);
}

/* Old styles kept for backward compatibility */
.testimonials {
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text);
}

.author {
    font-weight: 600;
    color: var(--primary);
}

/* Mobile Testimonials Carousel */
@media (max-width: 768px) {
    .testimonials-3d-wrapper {
        padding: 0 20px;
    }

    .testimonial-3d-item.prev,
    .testimonial-3d-item.next {
        opacity: 0;
    }

    .testimonial-content {
        padding: 30px 20px;
    }

    .testimonial-text p {
        font-size: 1rem;
    }
}

/* CTA */
.cta {
    text-align: center;
    background: var(--bg-alt);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    padding: 120px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Content Page */
.content-page {
    padding: 60px 20px;
}

.content-page .container {
    max-width: 800px;
}

.content-page h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--primary);
}

.content-page h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.content-page p {
    margin-bottom: 15px;
    color: var(--text);
}

.content-page ul {
    margin: 15px 0 15px 30px;
}

.content-page li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Donate Page */
.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.donate-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.donate-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.donate-card.featured {
    border-color: var(--primary);
    position: relative;
}

.donate-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.donate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.donate-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.donate-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.donate-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2:first-child {
    margin-top: 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    line-height: 1;
}

.contact-item h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.faq-item {
    background: var(--bg-alt);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.faq-item h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text);
}

.faq-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.contact-form-container h2 {
    margin-top: 0;
}

.contact-form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    max-width: none;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 15px;
}

.form-note a {
    color: var(--primary);
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    margin-bottom: 20px;
}

.form-success h3 {
    color: #22c55e;
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Donate Page Styles */
.donate-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.donate-intro h2 {
    margin-top: 0;
}

/* Impact Journey Timeline */
.impact-journey {
    position: relative;
    padding: 40px 0;
    margin-bottom: 60px;
}

.journey-line {
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: 60px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.journey-step {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    animation: journeyFadeIn 0.6s ease forwards;
}

.journey-step:nth-child(2) { animation-delay: 0.2s; }
.journey-step:nth-child(3) { animation-delay: 0.4s; }
.journey-step:nth-child(4) { animation-delay: 0.6s; }

@keyframes journeyFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-connector {
    position: relative;
    flex-shrink: 0;
    width: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.step-pulse {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 0; }
}

.step-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: var(--text);
}

.step-text p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.step-visual {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tree Animation */
.tree-animation {
    position: relative;
    width: 60px;
    height: 70px;
}

.tree-trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 25px;
    background: #8B4513;
    border-radius: 3px;
}

.tree-leaves {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 35px solid var(--primary);
    animation: treeGrow 2s ease-in-out infinite;
}

.tree-leaves.leaf-2 {
    bottom: 35px;
    border-left-width: 20px;
    border-right-width: 20px;
    border-bottom-width: 28px;
    animation-delay: 0.3s;
}

@keyframes treeGrow {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Book Animation */
.book-animation {
    position: relative;
    width: 50px;
    height: 60px;
}

.book-page {
    position: absolute;
    width: 40px;
    height: 50px;
    background: #1cb0f6;
    border-radius: 0 5px 5px 0;
    left: 5px;
    top: 5px;
    transform-origin: left center;
}

.book-page.page-1 {
    background: #1cb0f6;
    animation: pageFlip 3s ease-in-out infinite;
}

.book-page.page-2 {
    background: #5de0e6;
    animation: pageFlip 3s ease-in-out infinite;
    animation-delay: 0.2s;
}

.book-page.page-3 {
    background: #87ecf1;
    animation: pageFlip 3s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes pageFlip {
    0%, 40%, 100% { transform: rotateY(0deg); }
    20% { transform: rotateY(-30deg); }
}

/* Globe Animation */
.globe-animation {
    position: relative;
    width: 60px;
    height: 60px;
}

.globe {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9600, #ffce00);
    position: absolute;
    top: 5px;
    left: 5px;
}

.orbit {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 150, 0, 0.3);
    border-radius: 50%;
    animation: orbitSpin 4s linear infinite;
}

.orbit-2 {
    transform: rotate(60deg);
    animation-delay: -2s;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Mobile Journey */
@media (max-width: 768px) {
    .journey-line {
        left: 18px;
    }

    .journey-step {
        flex-direction: column;
        gap: 15px;
        padding-left: 50px;
    }

    .step-connector {
        position: absolute;
        left: 0;
        width: 40px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-pulse {
        width: 40px;
        height: 40px;
    }

    .step-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .step-visual {
        display: none;
    }
}

/* Old impact card styles for backward compatibility */
.impact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.impact-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.impact-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.impact-card p {
    color: var(--text-light);
    margin: 0;
}

.donate-options {
    max-width: 800px;
    margin: 0 auto;
}

.donate-options h2 {
    text-align: center;
}

.donate-method {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.donate-method h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
}

.donate-method p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.donate-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.transparency-section {
    margin-top: 60px;
    text-align: center;
}

.usage-breakdown {
    max-width: 500px;
    margin: 30px auto;
}

.usage-item {
    margin-bottom: 20px;
}

.usage-bar {
    height: 10px;
    background: var(--primary);
    border-radius: 5px;
    margin-bottom: 8px;
}

.usage-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.thank-you-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-radius: var(--radius-lg);
}

.thank-you-section h2 {
    color: var(--primary-dark);
    margin-top: 0;
}

/* Legal Page */
.legal-page h2:first-of-type {
    margin-top: 0;
}

.legal-footer {
    margin-top: 50px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    text-align: center;
}

.legal-footer p {
    margin: 0;
    color: var(--text-light);
}

/* Blog Page Styles */
.blog-page .container {
    max-width: 1000px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.blog-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-alt);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-category {
    font-size: 0.8rem;
    background: #d1fae5;
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 20px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.blog-card-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 10px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
}

.no-posts-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-posts p {
    color: var(--text-light);
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-alt);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

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

    .hero-image {
        margin-top: 40px;
    }

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        display: none;
    }

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

    .nav-controls {
        gap: 10px;
    }

    .lang-switcher {
        padding: 3px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

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

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

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container {
        padding: 25px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* Social Link Icons */
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

[data-theme="dark"] .social-links a {
    background: #334155;
}

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

.social-links a svg {
    width: 20px;
    height: 20px;
}

/* Impact Card Icons */
.impact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 20px;
    margin: 0 auto 15px;
}

.impact-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

/* Contact Icon */
.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Donate Icon */
.donate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    margin: 0 auto 15px;
}

.donate-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

/* No Posts Icon */
.no-posts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-alt);
    border-radius: 20px;
    margin: 0 auto 20px;
}

.no-posts-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-light);
}

/* Store button icons */
.store-btn svg {
    width: 28px;
    height: 28px;
}

/* Page header gradient for dark mode */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .thank-you-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Transition for theme changes */
body,
.navbar,
.hero,
.feature-card,
.testimonial-card,
.blog-card,
.page-header,
section {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .print-btn,
    .nav-toggle,
    .lang-switcher,
    .theme-toggle {
        display: none !important;
    }

    .page-header {
        padding: 40px 20px 20px;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .content-page {
        padding: 20px;
    }

    .content-page .container {
        max-width: 100%;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000 !important;
        background: #fff !important;
    }

    h1, h2, h3 {
        page-break-after: avoid;
        color: #000 !important;
    }

    h2 {
        border-bottom: 1px solid #ccc;
        padding-bottom: 5px;
    }

    ul {
        page-break-inside: avoid;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    .legal-footer {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #ccc;
    }
}

/* Print button styles */
.print-btn {
    cursor: pointer;
    border: none;
}
