/* ========================================
   Moon Media - Fixed Stylesheet
   الألوان الأصلية + تحسينات بسيطة فقط
   ======================================== */

/* ========== CSS Variables - الألوان الأصلية ========== */
:root {
    --primary-blue: #0074bc;
    --light-blue: #00b3f0;
    --accent-orange: #ffa400;
    --dark-text: #333333;
    --light-bg: #F9F9F9;
    --white: #FFFFFF;
    --border-color: #f0f0f0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    
    --shadow-sm: 0px 2px 8px 0px rgba(50, 50, 50, 0.08);
    --shadow-md: 0px 4px 12px 0px rgba(0, 116, 188, 0.15);
    --shadow-lg: 0px 8px 24px 0px rgba(0, 116, 188, 0.2);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== Loading Screen ========== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 6px solid var(--light-bg);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Language Switcher - صغير ومميز في نفس الصف ========== */
.language-switcher {
    display: inline-flex;
    align-items: center;
    margin-right: 0.5rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 116, 188, 0.1);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary-blue);
    gap: 0.3rem;
}

.lang-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 116, 188, 0.3);
}

.lang-btn i {
    font-size: 0.9rem;
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9998;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.logo-section img {
    height: 70px;
    transition: transform var(--transition-normal);
}

.logo-section img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.8rem 1.5rem;
    transition: all var(--transition-normal);
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-text);
    cursor: pointer;
    padding: 0.5rem;
}

/* ============= Hero/Slider - محسّن بسيط ============= */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 90px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--primary-blue);
    padding: 3rem 13%;
    max-width: 900px;
    margin-left: auto;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 2px 2px 4px rgba(255,255,255,0.9);
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--dark-text);
    text-shadow: 1px 1px 3px rgba(255,255,255,0.9);
}

.slide-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 116, 188, 0.8);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.3rem;
    font-weight: bold;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 35px;
    border-radius: 7px;
    background: var(--accent-orange);
}

/* ============= Buttons - الألوان الأصلية ============= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 116, 188, 0.3);
}

.btn-primary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 116, 188, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* ============= Stats Section - الألوان الأصلية ============= */
.stats-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    padding: 5rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    transition: transform var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============= Container & Sections ============= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-gray {
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ============= Services Grid - الحجم الأصلي ============= */
.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: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--light-blue);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* استيراد بقية الأنماط من الملف الأصلي */

/* ============= Portfolio Grid - محسّن مع animations ============= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.15) rotate(2deg);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--dark-text);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Lightbox للصور */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--light-blue);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============= Team Section - الحجم الأصلي ============= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 116, 188, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

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

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.member-position {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* ============= Contact Section ============= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-blue);
    min-width: 40px;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.contact-item p,
.contact-item a {
    color: #666;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-normal);
    font-family: 'Tajawal', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 116, 188, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============= CAPTCHA Styles ============= */
.captcha-group {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-question {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    min-width: 150px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.captcha-container input {
    max-width: 150px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    border: 2px solid var(--primary-blue);
}

.captcha-hint {
    display: block;
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

/* ============= Footer - محسّن ============= */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer .social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.footer .social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
}

.footer-content p {
    color: #ccc;
    margin: 0;
    font-size: 0.95rem;
}

.footer .social-links .admin-link {
    background: rgba(220, 53, 69, 0.2);
}

.footer .social-links .admin-link:hover {
    background: #dc3545;
}

/* ============= Scroll to Top Button ============= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 116, 188, 0.4);
    transition: all var(--transition-normal);
    z-index: 9990;
}

.scroll-top:hover {
    background: var(--light-blue);
    transform: translateY(-5px);
}

/* ============= RESPONSIVE ============= */

@media (max-width: 1024px) {
    .nav-links a {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-section img {
        height: 55px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 85px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 85px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
        overflow-y: auto;
        align-items: stretch;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 1.2rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Language switcher in mobile menu */
    .language-switcher {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .lang-btn {
        width: 100%;
        height: auto;
        padding: 0.8rem;
        border-radius: 8px;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* Hero */
    .hero {
        height: 55vh;
        min-height: 400px;
        margin-top: 85px;
    }
    
    .slide-content {
        padding: 2rem 5%;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Grids */
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-question,
    .captcha-container input {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-section img {
        height: 45px;
    }
    
    .hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============= Utility Classes ============= */
.grow {
    transition: all var(--transition-normal);
}

.grow:hover {
    transform: scale(1.05);
}

/* ============= Admin Link in Footer ============= */
.footer .social-links .admin-link {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.footer .social-links .admin-link:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.footer .social-links .admin-link i {
    font-size: 0.9rem;
}

/* ============= WhatsApp Button ============= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-normal);
    z-index: 9990;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn i {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Scroll to Top - على اليسار */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 116, 188, 0.4);
    transition: all var(--transition-normal);
    z-index: 9990;
}

.scroll-top:hover {
    background: var(--light-blue);
    transform: translateY(-5px) scale(1.1);
}

/* ============= تحسين قسم تصميم جرافيك ============= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,116,188,0.2);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.8rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.team-info h4 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.team-info p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* تأثير خاص عند hover */
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.team-member:hover::before {
    opacity: 0.05;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .team-member img {
        height: 250px;
    }
}

/* ============= Portfolio Modal (صفحة منبثقة) ============= */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.portfolio-modal.active {
    display: block;
}

.portfolio-modal-content {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.portfolio-modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-close:hover {
    background: var(--accent-orange);
    transform: rotate(90deg) scale(1.1);
}

.portfolio-modal-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.portfolio-modal-info h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 800;
}

.portfolio-modal-category {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--accent-orange);
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.portfolio-modal-description {
    font-size: 1.3rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 3rem;
}

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

@media (max-width: 768px) {
    .portfolio-modal-content {
        margin: 2rem 1rem;
        padding: 2rem;
    }
    
    .portfolio-modal-info h2 {
        font-size: 2rem;
    }
}
