@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

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

.animate-fade {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .logo-container img {
    height: 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 65px;
    width: auto;
    transition: height 0.3s ease;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    background: linear-gradient(45deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top right, #e0f2fe, transparent),
                radial-gradient(circle at bottom left, #d1fae5, transparent);
    padding: 0 10%;
    position: relative;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    background: var(--primary-dark);
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About/Vision/Mission Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.info-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Projects/Activities Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Landing Page Cards */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

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

.project-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
}

/* Internal Page Vertical Stack Cards */
.project-card.vertical-stack {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
    border-radius: 40px;
}

.project-header {
    padding: 40px 50px 20px;
}

.project-header h4, .project-header h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin: 0;
}

.project-image.full-width {
    width: calc(100% - 80px);
    height: 500px;
    margin: 0 40px;
    border-radius: 30px;
}

.project-content {
    padding: 30px 50px 60px;
    text-align: right;
}

.project-content .description {
    font-size: 1.25rem;
    line-height: 2;
    color: #475569;
}

.project-content h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-image.full-width {
        height: 350px;
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-header {
        padding: 30px 25px 15px;
    }
    .project-header h4 {
        font-size: 1.8rem;
    }
    .project-content {
        padding: 20px 25px 40px;
    }
}

/* Partners */
.partners-slider {
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.partner-logo {
    height: 80px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 10% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h6 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}
