/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #fbbf24;
    --success-color: #34d399;
    --error-color: #f87171;
    --dark-color: #111827;
    --light-color: #1f2937;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --border-color: #374151;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-x: hidden;
    margin-top: 80px;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--dark-color) 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow-large);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 1;
    min-height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.00) rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Navigation */
.nav {
    background: rgba(30, 58, 138, 0.95);
    padding: 0;
    backdrop-filter: blur(10px);
    border: none;
    flex: 1;
    display: flex;
    align-items: stretch;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-right: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-bottom-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page {
    display: none;
    animation: pageSlideIn 0.6s ease-out;
}

.page.active {
    display: block;
}

@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.8), rgba(16, 185, 129, 0.7)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23f8fafc"/><stop offset="50%" stop-color="%23e2e8f0"/><stop offset="100%" stop-color="%23cbd5e1"/></linearGradient></defs><rect fill="url(%23bg)" width="1000" height="600"/><circle fill="rgba(59,130,246,0.1)" cx="200" cy="150" r="80"/><circle fill="rgba(245,158,11,0.1)" cx="800" cy="450" r="120"/><polygon fill="rgba(16,185,129,0.1)" points="0,600 1000,400 1000,600"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 2rem;
    margin-bottom: 3rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.03) 10px,
        rgba(255, 255, 255, 0.03) 20px
    );
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #f1f5f9, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    font-weight: 900;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 5px rgba(255,255,255,0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(255,255,255,0.8)); }
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 50%, #dc2626 100%);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.6);
}

/* Section Styles */
.section {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--success-color));
    z-index: -1;
    opacity: 0;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.section:hover::before {
    opacity: 0.1;
}

.section:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    border-radius: 2px;
    animation: underlineGrow 2s ease-out;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 80px; }
}

.section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.section p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Grid Layouts */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
    opacity: 0;
}

.value-card:hover::before {
    opacity: 1;
    top: -25%;
    right: -25%;
}

.value-card:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-left-color: var(--success-color);
}

.value-card h3 {
    position: relative;
    z-index: 1;
}

.value-card p {
    position: relative;
    z-index: 1;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.partner-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.partner-item:hover::before {
    left: 100%;
}

.partner-item:hover {
    border-color: var(--secondary-color);
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-large);
}

.partner-item img {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item:hover img {
    transform: scale(1.1);
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Dark Theme Filter Buttons */
[data-theme="dark"] .filter-btn {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.3);
    color: var(--text-dark);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.project-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    margin: 0;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.project-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 50px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.project-card.hide {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

/* Disabled Project Link */
.project-link.disabled {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: not-allowed;
    opacity: 0.7;
    display: inline-block;
}

/* Certificate Modal */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.certificate-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.certificate-modal img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.certificate-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.certificate-close:hover {
    color: var(--accent-color);
}

/* Certificate Cards */
.certificate-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-left-color: var(--success-color);
}

/* Google Map */
.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::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"><defs><pattern id="footerGrid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    margin: 2rem 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Scroll animations */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse effect */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    box-shadow: var(--shadow-large);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-large);
}

.theme-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

/* Dark Theme Styles */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: var(--text-dark);
}

[data-theme="dark"] .section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .value-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .partner-item {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .project-card {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .project-info h3 {
    color: var(--text-dark);
    font-weight: 700;
}

[data-theme="dark"] .project-info p {
    color: var(--text-light);
}

[data-theme="dark"] .certificate-card {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .contact-form {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(17, 24, 39, 0.8);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

/* Ripple animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        margin-top: 80px;
    }
    
    .header-content {
        flex-direction: column;
        min-height: auto;
    }

    .logo-container {
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide navigation by default */
    .nav {
        display: none;
        flex: none;
    }

    /* Show navigation when mobile menu is active */
    .nav.mobile-active {
        display: block;
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.95));
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-large);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

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

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-content {
        padding: 0;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .nav-link {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.2rem 1.5rem;
        position: relative;
        overflow: hidden;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: left 0.3s ease;
    }

    .nav-link:active::after {
        left: 0;
    }

    .nav-link:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .partner-item {
        height: 80px;
    }
    
    .partner-item img {
        max-width: 60px;
        max-height: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    .map-container iframe {
        height: 300px;
    }

    .value-card, .partner-item, .project-card {
        opacity: 1;
        animation: none;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
        margin-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 1.5rem;
    }
    
    .values-grid,
    .partners-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Focus styles for keyboard navigation */
.keyboard-navigation *:focus {
    outline: 3px solid var(--accent-color) !important;
    outline-offset: 2px !important;
}

/* WordPress specific styles - إضافة هذا في نهاية ملف style.css */

/* WordPress Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu .menu-item {
    margin: 0;
}

.nav-menu .menu-item-has-children > .nav-link::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 200px;
    box-shadow: var(--shadow-large);
    border-radius: 0 0 10px 10px;
    z-index: 1000;
}

.nav-menu .menu-item:hover .sub-menu {
    display: block;
}

.nav-menu .sub-menu .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .sub-menu .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* WordPress Content Classes */
.wp-block-image {
    margin: 2rem 0;
    text-align: center;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

.wp-block-quote {
    border-right: 4px solid var(--accent-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    font-style: italic;
}

.wp-block-button .wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

/* WordPress Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Project Image Styles */
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Search Form Styles */
.search-form {
    display: flex;
    max-width: 400px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 1rem 1.5rem;
    background: var(--secondary-color);
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-color);
}

/* WordPress Widget Styles */
.widget {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--secondary-color);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* Comments Section */
.comments-area {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 3rem;
    box-shadow: var(--shadow-medium);
}

.comments-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: rgba(248, 250, 252, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-right: 4px solid var(--accent-color);
}

.comment-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Responsive WordPress Styles */
@media (max-width: 768px) {
    .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: rgba(30, 58, 138, 0.8);
    }
    
    .nav-menu .menu-item-has-children > .nav-link::after {
        content: ' ►';
    }
    
    .wp-block-gallery {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        margin: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Dark Theme for WordPress Elements */
[data-theme="dark"] .widget {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .search-form {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .search-form input[type="search"] {
    color: var(--text-dark);
}

[data-theme="dark"] .comments-area {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-theme="dark"] .comment {
    background: rgba(17, 24, 39, 0.9);
    border-right-color: var(--accent-color);
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.3);
    color: var(--text-dark);
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .theme-toggle,
    .progress-bar,
    .loading {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero {
        background: none;
        color: #000;
    }
}