/* ==============================
   RESET & ROOT VARIABLES
============================== */
:root {
    --green: #1A6B3A;
    --green-light: #2d8a50;
    --green-bg: #f0f7f3;
    --red: #C0392B;
    --red-light: #e04535;
    --red-bg: #fdf2f1;
    --teal: #1a7f7a;
    --teal-bg: #f0f7f7;
    --text-dark: #1A1A2E;
    --text-mid: #374151;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-section: #F3F4F6;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.10);
    --radius: 16px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* ==============================
   TYPOGRAPHY
============================== */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
em { font-style: italic; color: var(--green); }

/* ==============================
   BUTTONS
============================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 4px 14px rgba(26,107,58,0.25);
}
.btn-primary:hover {
    background-color: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,107,58,0.35);
}

.btn-outline {
    background-color: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-outline:hover {
    background-color: var(--green);
    color: #fff;
    transform: translateY(-2px);
}

/* ==============================
   NAVBAR
============================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    border-bottom-color: var(--border);
    padding: 0.9rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.logo span { color: var(--green); }
.logo .logo-dot { color: var(--red); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }

.nav-links .nav-cta {
    background: var(--green);
    color: #fff;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
    background: var(--green-light);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==============================
   HERO SECTION
============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #fff 60%, var(--green-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,107,58,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(26,107,58,0.2);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }

.hero-title {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

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

.hero-image {
    position: relative;
    animation: float-y 6s ease-in-out infinite;
}
.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(26,107,58,0.15));
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ==============================
   STATISTICS STRIP
============================== */
.stats-strip {
    background: var(--bg-section);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 3rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ==============================
   SECTION HEADER (shared)
============================== */
.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(26,107,58,0.15);
}

.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

/* ==============================
   FOCUS AREAS
============================== */
.focus-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.focus-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.focus-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
}
#focus-economic::before { background: var(--green); }
#focus-environment::before { background: var(--teal); }
#focus-zakat::before { background: var(--green-light); }
#focus-policy::before { background: var(--red); }

.focus-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.focus-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 1rem;
}
.focus-icon img { width: 48px; height: 48px; object-fit: contain; }

.focus-card h3 { margin-bottom: 1rem; color: var(--text-dark); }
.focus-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.focus-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}
.focus-tag.green { background: var(--green-bg); color: var(--green); }
.focus-tag.red { background: var(--red-bg); color: var(--red); }
.focus-tag.teal { background: var(--teal-bg); color: var(--teal); }

/* ==============================
   ABOUT SECTION
============================== */
.about-section {
    padding: 6rem 0;
    background: var(--bg-section);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-content .section-tag { margin-bottom: 1rem; }
.about-content h2 { margin-bottom: 1.25rem; }

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-partners { margin-top: 2rem; }
.partner-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.partner-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.partner-badge {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* ==============================
   PORTFOLIO SECTION
============================== */
.portfolio-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--green), var(--red));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.project-card:hover::after { transform: scaleX(1); }

/* Hidden card state for filter */
.project-card.hidden {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-status {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.card-status.ongoing { color: var(--green); }
.card-status.completed { color: var(--text-muted); }

.card-year {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-section);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.card-partners {
    font-size: 0.82rem;
    color: var(--green);
    font-weight: 500;
}

/* ==============================
   FOOTER
============================== */
.footer { background: var(--text-dark); color: #e5e7eb; }

.footer-top { padding: 5rem 0 3rem; }

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

.footer-brand .logo { color: #fff; margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: #9ca3af; font-size: 0.9rem; line-height: 1.7; }

.footer-nav h4, .footer-contact-block h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-nav a:hover { color: #fff; padding-left: 4px; }

.footer-contact-block p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 1.25rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.85rem;
}

/* ==============================
   SCROLL REVEAL
============================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid items */
.focus-card:nth-child(2) { transition-delay: 0.1s; }
.focus-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(2) { transition-delay: 0.05s; }
.project-card:nth-child(3) { transition-delay: 0.10s; }
.project-card:nth-child(4) { transition-delay: 0.15s; }
.project-card:nth-child(5) { transition-delay: 0.20s; }
.project-card:nth-child(6) { transition-delay: 0.25s; }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
    .hero-container { gap: 2.5rem; }
    .footer-top-container { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .focus-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

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

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-image { order: -1; max-width: 400px; margin: 0 auto; }

    .stats-container { gap: 0; }
    .stat-item { padding: 1rem 1.5rem; }
    .stat-divider { display: none; }

    .focus-grid { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-top-container { grid-template-columns: 1fr; gap: 2.5rem; }
}
