/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFD700;     /* الأصفر الذهبي */
    --secondary-color: #FFA500;   /* الأصفر البرتقالي */
    --dark-color: #1a1a1a;        /* الأسود الداكن */
    --light-dark: #333333;        /* الرمادي الداكن */
    --white-color: #ffffff;       /* الأبيض */
    --light-gray: #f8f9fa;        /* الرمادي الفاتح */
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-brand h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark-color);
    overflow: hidden;
    background: white;
    background-image: url('text-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--dark-color);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    background: var(--dark-color);
    color: var(--primary-color);
    border-color: var(--dark-color);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4),
                0 3px 10px rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    border-color: var(--dark-color);
    border-width: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
                0 2px 8px rgba(255, 215, 0, 0.2);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: var(--dark-color);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.4),
                0 3px 10px rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--dark-color);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-dark);
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--dark-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
    font-family: 'Cairo', sans-serif;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(26, 26, 26, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--light-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    color: var(--light-dark);
    font-weight: 500;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background: var(--light-gray);
}

/* Partners Stats */
.partners-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: center;
}

.partners-stats .stat-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.partners-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-color);
}

.partners-stats .stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
}

.partners-stats .stat-item p {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.partner-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 2px solid rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.partner-item:hover::before {
    left: 100%;
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-color);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.partner-item:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.partner-info {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.partner-item:hover .partner-info {
    opacity: 1;
    transform: translateY(0);
}

.partner-info h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* Partners Call to Action */
.partners-cta {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.partners-cta h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.partners-cta p {
    font-size: 1.1rem;
    color: var(--light-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.partners-cta .btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    min-width: 200px;
}

/* Events Section */
.events {
    padding: 80px 0;
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.event-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-color);
}

.event-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-item:hover img {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(26, 26, 26, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.event-item:hover .event-overlay {
    opacity: 1;
}

.event-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.event-overlay p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--light-dark);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    color: var(--dark-color);
    font-family: 'Cairo', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-dark);
    opacity: 0.7;
    font-family: 'Cairo', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--light-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .hamburger span {
        background: var(--dark-color);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: right 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partners-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .partners-cta {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .partners-cta h3 {
        font-size: 1.5rem;
    }
    
    .partners-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Additional Yellow & Black Theme Enhancements */
.service-card:hover {
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.2);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--dark-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Focus States */
.btn:focus,
.filter-btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Hover Effects for Interactive Elements */
.nav-menu a,
.btn,
.service-card,
.portfolio-item,
.partner-item {
    cursor: pointer;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}



/* Card Shadows and Effects */
.service-card,
.contact-form,
.partner-item {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.service-card:hover,
.partner-item:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
    transform: translateY(-5px);
}

/* Button Enhancements */
.btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Navigation Enhancements */
.nav-menu a {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text Contrast Improvements */
.section-header h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.service-card h3,
.contact-item h4,
.footer-section h3,
.footer-section h4 {
    color: var(--dark-color);
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-color);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-video,
    .btn,
    .social-links {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}
/* Enhanced Contrast and Visibility Improvements */

/* Ensure all text is readable on white background */
body {
    background-color: white;
    color: var(--dark-color);
}

/* Navigation improvements */
.header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Hero section text contrast */
.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

/* Service cards enhanced visibility */
.service-card {
    background: white;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.25);
}

/* Portfolio items enhanced */
.portfolio-item {
    border: 2px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    border-color: var(--primary-color);
}

/* Contact form improvements */
.contact-form {
    border: 2px solid rgba(255, 215, 0, 0.2);
}

/* Partner items enhanced */
.partner-item {
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.partner-item:hover {
    border-color: var(--primary-color);
}

/* Button text contrast */
.btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Form placeholders */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-dark);
    opacity: 0.7;
}

/* Enhanced focus states */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* Statistics numbers enhancement */
.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
}

/* Section backgrounds for better separation */
.services {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.partners {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Enhanced hover effects */
.nav-menu a:hover {
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.3);
}

/* Mobile menu improvements */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-left: 3px solid var(--primary-color);
    }
    
    .hero-content {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
       
    }
    
    .hero-subtitle {
        font-size: 1rem;
       
    }
}

/* Accessibility enhancements */
@media (prefers-high-contrast: high) {
    .btn-primary {
        background: #000000;
        color: #FFD700;
        border-color: #000000;
    }
    
    .btn-secondary {
        background: #FFD700;
        color: #000000;
        border-color: #FFD700;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .header {
        background: rgba(26, 26, 26, 0.98);
    }
    
    .hero-content {
        background: rgba(26, 26, 26, 0.95);
        color: #ffffff;
    }
    
    .service-card,
    .contact-form,
    .partner-item {
        background: #2a2a2a;
        color: #ffffff;
    }
}
/* Hero Section Enhancements Without Card Background */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced text shadows for better readability */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
       
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
       
    }
    
    .hero-buttons .btn {
        min-width: 150px;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Additional contrast improvements */
.hero-title,
.hero-subtitle {
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 10px;
}
/* Image Loading and Optimization */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Portfolio and Events Image Consistency */
.portfolio-item img,
.event-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Hover Effects for All Gallery Items */
.portfolio-item,
.event-item {
    cursor: pointer;
    overflow: hidden;
}

.portfolio-item:hover img,
.event-item:hover img {
    transform: scale(1.1);
}

/* Loading State for Images */
.portfolio-item img,
.event-item img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item img[data-src],
.event-item img[data-src] {
    opacity: 0.5;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Enhanced Mobile Experience */
@media (max-width: 480px) {
    .portfolio-item img,
    .event-item img {
        height: 200px;
    }
    
    .portfolio-overlay,
    .event-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h4,
    .event-overlay h4 {
        font-size: 1.2rem;
    }
    
    .portfolio-overlay p,
    .event-overlay p {
        font-size: 0.9rem;
    }
}

/* Accessibility Improvements for Images */
img[alt=""] {
    opacity: 0.8;
}

img:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Optimization for Images */
@media print {
    .portfolio-item img,
    .event-item img {
        height: auto;
        max-height: 200px;
    }
    
    .portfolio-overlay,
    .event-overlay {
        display: none;
    }
}
/* Advanced Partners Section Effects */

/* Animated Counter for Partners Stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.partners-stats .stat-item.animate {
    animation: countUp 0.6s ease forwards;
}

/* Partners Grid Animation */
.partner-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.partner-item:nth-child(1) { animation-delay: 0.1s; }
.partner-item:nth-child(2) { animation-delay: 0.15s; }
.partner-item:nth-child(3) { animation-delay: 0.2s; }
.partner-item:nth-child(4) { animation-delay: 0.25s; }
.partner-item:nth-child(5) { animation-delay: 0.3s; }
.partner-item:nth-child(6) { animation-delay: 0.35s; }
.partner-item:nth-child(7) { animation-delay: 0.4s; }
.partner-item:nth-child(8) { animation-delay: 0.45s; }

/* Infinite scroll effect for partners (optional) */
.partners-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.partners-scroll .partners-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Partners hover effects enhancement */
.partner-item:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 1));
}

/* Partners section background pattern */
.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.partners .container {
    position: relative;
    z-index: 1;
}

/* Enhanced CTA button */
.partners-cta .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Partners loading state */
.partner-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Partners section responsive enhancements */
@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partners-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partner-item {
        min-height: 120px;
        padding: 1rem;
    }
    
    .partner-item img {
        max-height: 60px;
    }
    
    .partners-cta h3 {
        font-size: 1.3rem;
    }
    
    .partners-cta .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Print styles for partners */
@media print {
    .partners-cta,
    .partner-info {
        display: none;
    }
    
    .partner-item {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    .partner-item img {
        filter: none !important;
    }
}
/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.1);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-color);
}

.testimonial-content {
    padding: 2.5rem;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.quote-icon i {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 2rem;
    font-style: italic;
    margin-top: 1rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--light-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Testimonials responsive */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .quote-icon {
        width: 50px;
        height: 50px;
        top: -5px;
        right: 15px;
    }
    
    .quote-icon i {
        font-size: 1.2rem;
    }
}
/* Loading State Styles */
body.loading {
    overflow: hidden;
}

body.loading * {
    animation-play-state: paused;
}

body.loaded {
    overflow-x: hidden;
}

body.loaded .hero-content {
    animation: fadeInUp 1s ease 0.5s both;
}

body.loaded .service-card {
    animation: fadeInUp 0.6s ease both;
}

body.loaded .service-card:nth-child(1) { animation-delay: 0.1s; }
body.loaded .service-card:nth-child(2) { animation-delay: 0.2s; }
body.loaded .service-card:nth-child(3) { animation-delay: 0.3s; }
body.loaded .service-card:nth-child(4) { animation-delay: 0.4s; }
body.loaded .service-card:nth-child(5) { animation-delay: 0.5s; }
body.loaded .service-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading screen backdrop */
.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Prevent flash of unstyled content */
.hero-content,
.service-card,
.portfolio-item,
.event-item,
.partner-item {
    opacity: 0;
    transform: translateY(30px);
}

body.loaded .hero-content,
body.loaded .service-card,
body.loaded .portfolio-item,
body.loaded .event-item,
body.loaded .partner-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Font Family Fixes for Forms and Buttons */
input, textarea, button, select {
    font-family: 'Cairo', sans-serif !important;
}

.btn, .filter-btn {
    font-family: 'Cairo', sans-serif !important;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    font-family: 'Cairo', sans-serif !important;
}

.portfolio-filter button {
    font-family: 'Cairo', sans-serif !important;
}

/* Ensure placeholders use Cairo font */
input::placeholder,
textarea::placeholder {
    font-family: 'Cairo', sans-serif !important;
}

/* Form button styling */
.contact-form .btn {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 600 !important;
}

/* Portfolio filter buttons */
.portfolio-filter .filter-btn {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 500 !important;
}