/* Color Variables */
:root {
    --primary: #2989f3;
    --primary-dark: #1a70d3;
    --primary-light: #5aa5f8;
    --secondary: #f3d430;
    --accent: #29f3a0;
    --light: #f5f9ff;
    --dark: #1a2b47;
    --text: #333333;
    --text-light: #666666;
    --shadow: 0 4px 12px rgba(41, 137, 243, 0.15);
    --transition: all 0.3s ease;
    --islamic-gold: #c9a227;
    --afghan-red: #d32030;
    --afghan-green: #4a7c59;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary);
}

.logo h1 span {
    color: var(--secondary);
    font-size: 1rem;
    display: block;
    font-family: 'Amiri', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(41, 137, 243, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
    color: white;
}

/* Donate Button in Header */
.donate-header-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    margin-left: 1rem;
}

.donate-header-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, rgba(41, 137, 243, 0.85) 0%, rgba(26, 112, 211, 0.9) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,224C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hero h2 span {
    display: block;
    font-size: 2rem;
    font-family: 'Amiri', serif;
    color: var(--secondary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* VR Elements */
.vr-badge {
    position: absolute;
    top: 20%;
    left: 10%;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
    border: 2px solid var(--secondary);
}

.vr-badge i {
    font-size: 2.5rem;
    color: white;
}

.vr-badge-2 {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite 1s;
    border: 2px solid var(--accent);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Pages Container */
.pages-container {
    padding-top: 100px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 2rem 0;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 1rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--light);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(41, 137, 243, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(41, 137, 243, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.2rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Classes Overview */
.classes-overview {
    margin-top: 4rem;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.class-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: block;
}

.class-card:hover {
    transform: translateY(-5px);
}

.class-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.1;
}

.class-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.class-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.class-card p {
    color: var(--text-light);
}

/* VR Experience */
.vr-experience {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.vr-experience h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.vr-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.vr-demo-content {
    padding-right: 2rem;
}

.vr-demo-image {
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed var(--secondary);
}

.vr-demo-image i {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Coming Soon */
.coming-soon-full {
    text-align: center;
    padding: 4rem;
    background: var(--light);
    border-radius: 12px;
}

.coming-soon-full i {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.coming-soon-full h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text {
    padding-right: 2rem;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
}

/* Team Section */
.team-section {
    margin-top: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-img {
    height: 250px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.contact-text h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 137, 243, 0.2);
}

/* Fundraising Page Styles */
.fundraising-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
}

.stat-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.8rem; }
.stat-card h3 { font-size: 2rem; color: var(--primary-dark); margin: 0.5rem 0; }
.stat-card p { color: var(--text-light); font-weight: 600; }

.progress-graph-container {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

canvas#progressChart { max-height: 280px; width: 100%; }

.progress-bar-custom {
    background: #e9ecef;
    border-radius: 30px;
    height: 30px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    height: 100%;
    border-radius: 30px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.payment-card {
    background: white;
    border-radius: 20px;
    padding: 1.2rem 1.8rem;
    text-align: center;
    flex: 1;
    min-width: 180px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.payment-card:hover { transform: translateY(-5px); background: var(--light); }
.payment-card i { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--primary); }

.copy-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f3f5;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    margin-top: 0.5rem;
}

.copy-area span { font-family: monospace; font-size: 0.9rem; }
.copy-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
}

.donation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 2rem 0;
}

.donation-amount {
    background: white;
    border: 2px solid var(--primary-light);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.donation-amount:hover, .donation-amount.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.custom-amount-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1.5rem 0;
}

.custom-amount-input input {
    padding: 0.8rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    width: 200px;
    font-size: 1rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    background: var(--light);
    border-radius: 24px;
    padding: 1.5rem;
}

.impact-item { text-align: center; }
.impact-number { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-section p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Modal Styles for Pitch Deck */
#pitchModal {
    font-family: 'Inter', sans-serif;
}

#modalClose:hover {
    color: #1b8c4e;
}

#viewBreakdownBtn {
    transition: all 0.3s ease;
}

#viewBreakdownBtn:hover {
    background: #0f5c3a !important;
    transform: translateY(-2px);
}

#modalBody .presentation-container {
    border-radius: 0 0 2rem 2rem;
}

#modalBody .nav-controls {
    background: #f8faf7;
    border-radius: 0 0 2rem 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

#viewBreakdownBtn, a[href="powerpoint.html"] {
    transition: all 0.3s ease;
}

#viewBreakdownBtn:hover, a[href="powerpoint.html"]:hover {
    background: #0f5c3a !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-container, .vr-demo {
        grid-template-columns: 1fr;
    }
    .about-text { padding-right: 0; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; }
    .nav-menu { margin-top: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .nav-menu li { margin: 0.5rem 0.8rem; }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .section-title h2 { font-size: 2rem; }
    .vr-badge, .vr-badge-2 { display: none; }
}
.founder-card {
    background: linear-gradient(135deg, #f3d43020, #c9a22720);
    border: 2px solid #c9a227;
}
.founder-card i {
    color: #c9a227;
}
.founder-card h3 {
    color: #c9a227;
}
/* Special Donors Section */
.special-donors-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 20px;
}

.donors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.donor-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 3px solid #c9a227;
}

.donor-card:hover {
    transform: translateY(-5px);
}

.donor-card i {
    font-size: 2.5rem;
    color: #c9a227;
    margin-bottom: 1rem;
}

.donor-card .donor-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.donor-card .donor-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c9a227;
    margin-bottom: 0.5rem;
}

.donor-card .donor-message {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}