/* === IHO AL-AMAL AL-ALAMIYA CUSTOM STYLES === */

/* Custom Fonts & Base Reset - Pure White Background */
body {
    background-color: #ffffff;
    color: #1e293b;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* --- Clean Faint Grid Background (Squares/Mouraba'at) --- */
.paper-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(27, 88, 83, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 88, 83, 0.04) 1px, transparent 1px);
    background-size: 60px 60px; /* Big squares like the reference site */
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.paper-grid-fixed {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(27, 88, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 88, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Disabling colored glows as requested */
.bg-glows {
    display: none;
    opacity: 0;
}

/* --- Glassmorphism UI Elements --- */
.glass-menu {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(27, 88, 83, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.glass-card {
    background: #ffffff;
    border: 1px solid rgba(27, 88, 83, 0.08);
    box-shadow: 0 15px 35px rgba(27, 88, 83, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    border-color: rgba(0, 189, 166, 0.35);
    box-shadow: 0 25px 50px rgba(27, 88, 83, 0.1);
    transform: translateY(-5px);
}

.bento-card {
    background: #ffffff;
    border: 1px solid rgba(27, 88, 83, 0.06);
    border-radius: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(27, 88, 83, 0.06);
    border-color: rgba(142, 201, 59, 0.3);
}

/* --- Stepper & Simulator Animation styles --- */
.sim-nav-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sim-nav-btn.active {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 189, 166, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #1b5853;
    border-radius: 20px;
}

/* --- Custom Keyframes & Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes fadeUpScale {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 6s ease-in-out infinite;
}

.animate-heartbeat {
    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.08); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
}

/* --- Reveal on Scroll Helper --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header Brush Highlights (matching Lime/Teal colors) */
.title-highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
    padding: 0 4px;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 20' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,12 Q30,4 60,15 T100,10 L100,20 Q60,25 30,12 T0,20 Z' fill='%238ec93b' opacity='0.4'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
    border-radius: 4px;
}

/* Donors Hexagon pattern */
.hex-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='103.923' viewBox='0 0 60 103.923' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 69.282 L0 51.961 L0 17.32 L30 0 L60 17.32 L60 51.961 L30 69.282 L30 103.923 M0 86.602 L30 69.282 L60 86.602 M30 34.641 L0 17.32 M30 34.641 L60 17.32 M30 34.641 L30 69.282' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
}
