/* CSS Variables & Reset */
:root {
    /* Enhanced Color Palette */
    --bg-primary: #0A0A0F;
    --bg-secondary: #14141F;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #0a0a0f;

    --text-primary: #F5F5F7;
    --text-secondary: #B8B8C0;
    --text-muted: #8A8A95;

    /* Rich Gold Palette */
    --accent-gold: #F4C542;
    --accent-gold-light: #FFD966;
    --accent-gold-dark: #D4A829;
    --accent-gold-vibrant: #FFE57F;
    --accent-copper: #C77D51;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #F4C542 0%, #FFD966 50%, #D4A829 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    --gradient-glow: linear-gradient(135deg, rgba(244, 197, 66, 0.1) 0%, rgba(255, 217, 102, 0.05) 100%);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(244, 197, 66, 0.15);
    --glow-gold: 0 0 20px rgba(244, 197, 66, 0.3), 0 0 40px rgba(244, 197, 66, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 20px rgba(244, 197, 66, 0.2);
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

h3 {
    font-size: 1.8rem;
    color: var(--accent-gold-light);
}

h4 {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-gold);
}

.btn-secondary {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(244, 197, 66, 0.05);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(244, 197, 66, 0.15);
    color: var(--accent-gold-vibrant);
    border-color: var(--accent-gold-vibrant);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(244, 197, 66, 0.2);
}

/* Header */
.site-header {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 197, 66, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(244, 197, 66, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

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

.main-nav a:hover {
    color: var(--accent-gold-vibrant);
}

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

/* Hero Section */
.hero-section {
    padding: 200px 0 140px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(244, 197, 66, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(26, 26, 46, 0.8) 0%, transparent 50%),
        var(--gradient-dark);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0%, rgba(244, 197, 66, 0.03) 50%, transparent 100%);
    background-size: 100px 100%;
    animation: shimmer 20s linear infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(100px);
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

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

.bg-alt {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-header {
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subheader {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.content-block {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.pillar-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(20, 20, 31, 0.8) 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(244, 197, 66, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.pillar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(244, 197, 66, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pillar-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(244, 197, 66, 0.2), var(--shadow-medium);
    border-color: var(--accent-gold-vibrant);
}

.pillar-card:hover::before {
    opacity: 0.3;
}

.pillar-card:hover::after {
    opacity: 1;
}

.pillar-card h3 {
    color: var(--accent-gold-vibrant);
    font-size: 1.6rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pillar-card h4 {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pillar-card p {
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

/* Governance */
.governance-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .governance-content {
        grid-template-columns: 1fr 1fr;
    }
}

.waqf-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.trustees-list {
    list-style: none;
    margin-top: 20px;
}

.trustees-list li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.trustees-list .role {
    color: var(--accent-gold);
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    padding: 100px 0 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-gradient-start) 100%);
    border-top: 1px solid rgba(244, 197, 66, 0.15);
    position: relative;
}

.site-footer h2 {
    margin-bottom: 30px;
}

.footer-body {
    max-width: 800px;
    margin: 0 auto;
}

.footer-body p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.quote-box {
    margin: 50px auto;
    max-width: 750px;
    padding: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.05) 0%, rgba(244, 197, 66, 0.02) 100%);
    border: 2px solid rgba(244, 197, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    font-family: var(--font-heading);
    color: rgba(244, 197, 66, 0.1);
    line-height: 1;
}

.quote-box blockquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
}

.footer-details {
    margin: 50px 0;
}

.footer-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.location {
    color: var(--text-secondary);
}

.email-link {
    color: var(--accent-gold-vibrant);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.email-link:hover {
    border-bottom-color: var(--accent-gold-vibrant);
    text-shadow: var(--shadow-glow);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    h3 {
        font-size: 1.4rem;
    }

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

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        border-bottom: 1px solid rgba(244, 197, 66, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 150px 0 100px;
        min-height: 70vh;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pillar-card {
        padding: 30px 25px;
    }

    .quote-box {
        padding: 30px 25px;
    }

    .quote-box::before {
        font-size: 80px;
        top: -5px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-section {
        padding: 130px 0 80px;
    }

    .section {
        padding: 60px 0;
    }
}