/* Tailwind CSS is loaded via CDN in the layout file */

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}

.en-text {
    font-family: 'Poppins', sans-serif;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cccc48 0%, #61ce5b 100%);
    border-radius: 10px;
}

/* ========== GRADIENT BACKGROUNDS ========== */
.gradient-lime-yellow {
    background: linear-gradient(135deg, #61ce5b 0%, #cccc48 100%);
}

.gradient-yellow-green {
    background: linear-gradient(135deg, #cccc48 0%, #61ce5b 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* Scroll Animations - Clean & Simple */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Stagger delays for sequential animations */
.fade-in-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.fade-in-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.fade-in-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.fade-in-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

/* Fade-in for initial page load elements */
.fade-in {
    opacity: 0;
    animation: simpleFadeIn 1s ease-out forwards;
}

@keyframes simpleFadeIn {
    to {
        opacity: 1;
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* ========== GLASS MORPHISM EFFECT ========== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ========== IMAGE PLACEHOLDER ========== */
.img-placeholder {
    background: linear-gradient(135deg, rgba(97, 206, 91, 0.3) 0%, rgba(204, 204, 72, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ========== SMOOTH SCROLL ========== */
html {
    scroll-behavior: smooth;
}

/* ========== BUTTON GLOW EFFECT ========== */
.btn-glow {
    box-shadow: 0 0 20px rgba(204, 204, 72, 0.5);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(204, 204, 72, 0.8);
    transform: scale(1.05);
}

/* ========== PARTNER CARD STYLING ========== */
.partner-card {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 204, 72, 0.2);
}

/* ========== ACCESSIBILITY - FOCUS STATES ========== */
*:focus-visible {
    outline: 3px solid #61ce5b;
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #61ce5b;
    outline-offset: 4px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a1a1a;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Improved touch targets for mobile (min 44x44px) */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Respect user's motion preferences - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== NAVIGATION MENU STYLES ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(97, 206, 91, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.2), 0 3px 15px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(97, 206, 91, 0.15);
}

/* Navbar Logo Styles */
.navbar .flex-shrink-0 a {
    transition: transform 0.3s ease;
}

.navbar .flex-shrink-0 a:hover {
    transform: translateY(-2px);
}

.navbar .flex-shrink-0 a div {
    transition: box-shadow 0.3s ease;
}

.navbar .flex-shrink-0 a:hover div {
    box-shadow: 0 4px 15px rgba(97, 206, 91, 0.3);
}

.nav-link {
    position: relative;
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #61ce5b;
    background: rgba(97, 206, 91, 0.1);
}

.nav-link.active {
    color: #61ce5b;
    background: rgba(97, 206, 91, 0.15);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #61ce5b, #cccc48);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18), 0 3px 12px rgba(0, 0, 0, 0.12);
        border-top: 1px solid rgba(97, 206, 91, 0.15);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: right;
        padding: 12px 16px;
    }
}

/* Donate Button Special Style */
.nav-donate-btn {
    background: linear-gradient(135deg, #61ce5b, #cccc48) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(97, 206, 91, 0.3);
}

.nav-donate-btn:hover {
    background: linear-gradient(135deg, #52b84c, #b8b840) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 206, 91, 0.4);
    color: white !important;
}

.nav-donate-btn.active {
    background: linear-gradient(135deg, #52b84c, #b8b840) !important;
    color: white !important;
    box-shadow: 0 6px 25px rgba(97, 206, 91, 0.5);
    transform: scale(1.05);
}

.nav-donate-btn::after {
    display: none;
}
