/* ==============================================
   منظمة أتري للتعاون والتنمية - الأنماط الرئيسية
   ============================================== */

/* استيراد خط عربي جميل */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* المتغيرات الأساسية */
:root {
    --primary-blue: #1a5fb4;
    --primary-red: #c01c28;
    --primary-yellow: #f5c211;
    --dark-blue: #0d3f7a;
    --light-blue: #3584e4;
    --bg-gradient: linear-gradient(135deg, #1a5fb4 0%, #0d3f7a 100%);
    --text-dark: #1e1e1e;
    --text-light: #ffffff;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* إعادة التعيين الأساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* الروابط */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* القوائم */
ul {
    list-style: none;
}

/* الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* الحاوية */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================
   الهيدر والتنقل
   ============================================== */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==============================================
   قسم البطل (Hero)
   ============================================== */
.hero {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-50px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 30px;
    animation: fadeInDown 1s ease;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: var(--radius);
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ffd000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 194, 17, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* ==============================================
   العناوين والأقسام
   ============================================== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* ==============================================
   قسم من نحن
   ============================================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 2;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--primary-blue);
    color: var(--text-light);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.9rem;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-yellow);
    border-radius: var(--radius);
    z-index: -1;
}

/* ==============================================
   قسم الأهداف
   ============================================== */
.goals {
    background: var(--bg-light);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.goal-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.goal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.goal-card:hover::before {
    transform: scaleX(1);
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.goal-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.goal-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ==============================================
   قسم الأخبار
   ============================================== */
.news {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--dark-blue);
    gap: 12px;
}

/* ==============================================
   قسم التبرع
   ============================================== */
.donate {
    background: var(--bg-gradient);
    color: var(--text-light);
    text-align: center;
}

.donate .section-title h2 {
    color: var(--text-light);
}

.donate .section-title h2::after {
    background: var(--primary-yellow);
}

.donate .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.donate-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 50px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-info {
    text-align: right;
}

.bank-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-info-item:last-child {
    border-bottom: none;
}

.bank-info-item .label {
    font-weight: 600;
    color: var(--primary-yellow);
}

.bank-info-item .value {
    font-family: 'Courier New', monospace;
    direction: ltr;
    text-align: left;
}

.donate-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(245, 194, 17, 0.2);
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--primary-yellow);
}

/* ==============================================
   قسم التواصل
   ============================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.contact-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(-5px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    color: var(--text-light);
    border-radius: 50%;
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background: var(--bg-gradient);
    color: var(--text-light);
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 95, 180, 0.4);
}

/* ==============================================
   الفوتر
   ============================================== */
footer {
    background: #0d2137;
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about .logo img {
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-yellow);
    padding-right: 10px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* ==============================================
   الحركات والانيميشن
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأثير الظهور عند التمرير */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   التجاوب - Responsive
   ============================================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about .logo {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .donate-card {
        padding: 30px 20px;
    }
    
    .bank-info-item {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .bank-info-item .value {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero-logo {
        width: 140px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* ==============================================
   معرض الصور (Gallery)
   ============================================== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.gallery-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-close:hover {
    color: var(--primary-yellow);
}

/* شريط التمرير المخصص */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}
