/* ============================================
   KhairTech.org — Design System
   Color palette derived from the logo:
   - Deep forest green, olive green, teal
   - Dark background for modern aesthetic
   ============================================ */

:root {
    /* Primary palette — from logo */
    --green-50: #f0f7f0;
    --green-100: #d4ebd4;
    --green-200: #a8d5a8;
    --green-300: #7cc07c;
    --green-400: #5fa85f;
    --green-500: #4a8f4a;
    --green-600: #3a7a3a;
    --green-700: #2d6b2d;
    --green-800: #1e4d1e;
    --green-900: #0f2d0f;

    /* Accent — teal from logo */
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;

    /* Olive accent */
    --olive-400: #a3b86c;
    --olive-500: #8a9a5b;
    --olive-600: #6b7b3d;

    /* Dark theme */
    --dark-950: #030806;
    --dark-900: #0a1a10;
    --dark-800: #0f2418;
    --dark-700: #142e1f;
    --dark-600: #1a3828;
    --dark-500: #234a33;

    /* Surfaces */
    --surface-primary: var(--dark-900);
    --surface-card: rgba(20, 46, 31, 0.4);
    --surface-card-hover: rgba(26, 56, 40, 0.6);
    --surface-glass: rgba(15, 36, 24, 0.65);

    /* Text */
    --text-primary: #f0f7f0;
    --text-secondary: #a8d5a8;
    --text-muted: #5fa85f;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5fa85f 0%, #2dd4bf 50%, #a3b86c 100%);
    --gradient-hero: radial-gradient(ellipse at top, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(95, 168, 95, 0.06) 0%, transparent 50%);
    --gradient-card: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(95, 168, 95, 0.03) 100%);

    /* Borders */
    --border-subtle: rgba(95, 168, 95, 0.12);
    --border-hover: rgba(45, 212, 191, 0.25);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.15);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-max: 1200px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--dark-950);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Particle Canvas (cursor effect)
   ============================================ */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out-expo);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out-expo);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.04) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 24px;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeUp 0.8s var(--ease-out-expo) 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark-950);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.35);
}

.btn-secondary {
    background: var(--surface-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeUp 0.8s var(--ease-out-expo) 1s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-400);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Floating logo */
.hero-logo-float {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.06;
    pointer-events: none;
}

.hero-logo-img {
    width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeUp 0.8s var(--ease-out-expo) 1.2s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--teal-400);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.3;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Prominent Quote Banner
   ============================================ */
.quote-banner {
    position: relative;
    padding: clamp(100px, 14vw, 180px) 24px;
    overflow: hidden;
    background: var(--dark-900);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.quote-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.quote-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.quote-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
    top: -30%;
    left: 10%;
    animation: orbFloat1 10s ease-in-out infinite;
}

.quote-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(95, 168, 95, 0.1) 0%, transparent 70%);
    bottom: -20%;
    right: 10%;
    animation: orbFloat2 12s ease-in-out infinite;
}

.quote-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(163, 184, 108, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 8s ease-in-out infinite;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 30px) scale(1.15);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, -20px) scale(1.1);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }
}

.quote-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.quote-arabic-bg {
    font-size: clamp(4rem, 12vw, 10rem);
    color: rgba(45, 212, 191, 0.03);
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.quote-decorative-line {
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0.6;
}

.quote-banner-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 32px 0 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--teal-400) 50%, var(--green-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: quoteGradientShift 6s ease-in-out infinite alternate;
}

@keyframes quoteGradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.quote-banner-cite {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-style: normal;
    color: var(--teal-400);
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

/* ---- Scroll-triggered animation ---- */
.quote-banner [data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.quote-banner [data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Section Common Styles
   ============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--teal-400);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
#about {
    background: var(--dark-900);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-lead strong {
    color: var(--teal-400);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out-expo);
}

.value-item:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.value-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.value-item p {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* About visual stack */
.about-card-stack {
    position: relative;
    padding-top: 40px;
}

.about-card {
    padding: 28px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.about-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px) !important;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.about-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-1 {
    transform: rotate(-2deg);
    margin-bottom: -12px;
    z-index: 3;
    position: relative;
}

.card-2 {
    transform: rotate(1deg) translateX(20px);
    margin-bottom: -12px;
    z-index: 2;
    position: relative;
}

.card-3 {
    transform: rotate(-1deg) translateX(-10px);
    z-index: 1;
    position: relative;
}

/* ============================================
   Services Section
   ============================================ */
#services {
    background: var(--dark-950);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
}

.service-card:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    background: rgba(45, 212, 191, 0.15);
    border-color: rgba(45, 212, 191, 0.3);
    transform: scale(1.1);
}

.service-icon {
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tech span {
    padding: 4px 12px;
    background: rgba(45, 212, 191, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--teal-400);
}

/* ============================================
   Projects Section
   ============================================ */
#projects {
    background: var(--dark-900);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.project-image {
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-600) 100%);
    font-size: 4rem;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-img-placeholder {
    transform: scale(1.05);
}

.project-info {
    padding: 32px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.project-tags span {
    padding: 4px 12px;
    background: rgba(45, 212, 191, 0.06);
    border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--teal-400);
}

.tag-featured {
    background: rgba(163, 184, 108, 0.15) !important;
    border-color: rgba(163, 184, 108, 0.3) !important;
    color: var(--olive-400) !important;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.project-metrics div {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-metrics strong {
    color: var(--teal-400);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
}

/* ============================================
   Impact Section
   ============================================ */
#impact {
    background: var(--dark-950);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.impact-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
}

.impact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.impact-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.impact-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.impact-bar {
    width: 100%;
    height: 4px;
    background: var(--dark-700);
    border-radius: 2px;
    overflow: hidden;
}

.impact-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1.5s var(--ease-out-expo);
}

.impact-fill.animate {
    width: var(--fill);
}

.impact-quote {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.impact-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-secondary);
    padding: 40px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    position: relative;
}

.impact-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 5rem;
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-family: Georgia, serif;
}

.impact-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--teal-400);
    font-weight: 600;
}

/* ============================================
   Contact Section
   ============================================ */
#contact {
    background: var(--dark-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s var(--ease-out-expo);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: var(--surface-card-hover);
    border-color: var(--border-hover);
    color: var(--teal-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--dark-800);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group label {
    position: absolute;
    top: -9px;
    left: 16px;
    padding: 0 6px;
    background: var(--dark-800);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-400);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.1);
}

.form-group input:focus+label,
.form-group select:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    opacity: 1;
}

.form-group select option {
    background: var(--dark-800);
    color: var(--text-primary);
}

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

/* ============================================
   Footer
   ============================================ */
#footer {
    background: var(--dark-950);
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

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

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

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--teal-400);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-arabic {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-logo-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--dark-900);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        z-index: 1000;
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

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

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

    .project-featured {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

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

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

    .hero-stats {
        flex-direction: column;
    }

    .contact-form {
        padding: 24px;
    }
}