:root {
    --primary-color: #FFD700;    /* أصفر */
    --secondary-color: #1a1a1a;  /* أسود فاتح */
    --dark-bg: #111111;         /* أسود داكن */
    --text-light: #e0e0e0;      /* نص فاتح */
    --text-gray: #999999;       /* نص رمادي */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.about-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(255, 0, 0, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 900px;
}

.text-wrapper {
    padding: 2rem;
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.glowing-text {
    font-family: 'Michroma',sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.underline {
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent
    );
    margin: 1rem auto;
    position: relative;
}

.underline::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 15px var(--primary-color);
}

.sliding-text {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    color: var(--text-light);
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s forwards 0.8s;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-5px);
}

.badge i {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.badge span {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* glow keyframes removed for performance — static text-shadow used instead */

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

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

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .about-hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-badges {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .badge {
        flex-direction: row;
        gap: 1rem;
    }
}

.stars-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000033;
    z-index: -1;
}

.stars-background::before,
.stars-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 40px 70px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 50px 160px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 90px 40px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 130px 80px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0)),
        radial-gradient(4px 4px at 160px 120px, #FFD700, rgba(255,215,0,0.2) 50%, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: stars-animation 8s linear infinite;
    opacity: 1;
}

.stars-background::after {
    background-position: 125px 125px;
    animation: stars-animation 12s linear infinite;
    opacity: 0.8;
}

@keyframes stars-animation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-250px);
    }
}

/* إضافة توهج للنجوم */
.stars-background::before,
.stars-background::after {
    filter: drop-shadow(0 0 6px #FFD700);
}

/* Our Story Section */
.our-story {
    padding: 80px 0;
}

.our-story .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-content h2 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.story-content p {
    line-height: 1.8;
    margin-bottom: 30px;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.story-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Mission & Vision */
.mission-vision {
    padding: 80px 0;
    background: var(--secondary-color);
}

.mission-vision .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-box, .vision-box {
    padding: 40px;
    border-radius: 15px;
    background: var(--dark-bg);
    text-align: center;
    transition: transform 0.3s ease;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-10px);
}

.mission-box i, .vision-box i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-box h2, .vision-box h2 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Team Structure */
.team-structure {
    padding: 80px 0;
}

.team-structure h2 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.department-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

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

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

.department-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.department-card p {
    color: var(--text-gray);
}

/* Join Us Section */
.join-us {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('../images/about/join-bg.jpg') center/cover fixed;
}

.join-us h2 {
    font-family: 'Michroma',sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.join-us p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .our-story .container {
        grid-template-columns: 1fr;
    }

    .story-stats {
        grid-template-columns: 1fr;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
    }

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

/* Animation Classes */
.scrolled {
    opacity: 1;
    transform: translateY(0);
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* تحسينات التصميم المتجاوب */
@media (max-width: 768px) {
    /* تحسين Hero Section */
    .about-hero {
        height: auto;
        min-height: 100vh;
    }


    /* تحسين Our Story Section */
    .our-story {
        padding: 40px 0;
    }

    .our-story .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-content h2 {
        font-size: 2rem;
        text-align: center;
    }

    .story-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 15px;
    }

    .stat-item i {
        font-size: 1.5rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    /* تحسين Mission & Vision */
    .mission-vision {
        padding: 40px 0;
    }

    .mission-vision .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-box, .vision-box {
        padding: 25px;
    }

    .mission-box i, .vision-box i {
        font-size: 2.5rem;
    }

    /* تحسين Team Structure */
    .team-structure {
        padding: 40px 0;
    }

    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .department-card {
        padding: 20px;
    }

    /* تحسين Join Us Section */
    .join-us {
        padding: 50px 0;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* تحسينات إضافية للشاشات الأصغر */
@media (max-width: 480px) {
    .story-stats {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        flex-direction: column;
        gap: 1.5rem;
    }

    .badge {
        flex-direction: row;
        justify-content: center;
    }

    .badge i {
        font-size: 1.8rem;
    }

    .badge span {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Media Queries - تحسينات متناسقة */
/* Large Screens (1400px and up) */
@media screen and (min-width: 1400px) {
    .our-story .container {
        max-width: 1400px;
        gap: 80px;
    }
}

/* Desktop (1200px to 1399px) */
@media screen and (max-width: 1399px) {
    .our-story .container {
        gap: 60px;
    }
}

/* Tablets and Small Laptops (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .our-story .container {
        gap: 40px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (max-width: 991px) {
    .about-hero {
        height: 70vh;
    }

    .our-story .container,
    .mission-vision .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media screen and (max-width: 767px) {
    .about-hero {
        height: 60vh;
    }

    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Portrait (575px and down) */
@media screen and (max-width: 575px) {
    .about-hero {
        height: 50vh;
    }

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

    .story-stats {
        grid-template-columns: 1fr;
    }
} 