/*
 * About Page Styles
 * HalalahSite - Halala Plus
 * Professional and Modern Design
 */

/* ============================================
   HERO SECTION - About Overview
   ============================================ */
.about-hero {
    background: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* 
 * @keyframes هي قاعدة CSS تُستخدم لإنشاء حركات متحركة (animations)
 * هنا نُعرّف حركة تسمى "floatImage" تجعل الصورة تتحرك لأعلى وأسفل
 */
.about-hero .about-image {
    /* 
     * animation: اسم الحركة | المدة (3 ثواني) | نوع الحركة (ease-in-out) | التكرار (infinite = لا نهائي)
     * هذا يطبق الحركة floatImage على الصورة
     */
    animation: floatImage 3s ease-in-out infinite;
}

/* 
 * تعريف الحركة floatImage:
 * - 0% و 100%: الصورة في موضعها الأصلي (translateY(0))
 * - 50%: الصورة تتحرك لأعلى 10 بكسل (translateY(-10px))
 * النتيجة: حركة سلسة لأعلى وأسفل بشكل مستمر
 */
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);  /* الموضع الأصلي - لا حركة */
    }
    50% {
        transform: translateY(-10px);  /* تتحرك لأعلى 10 بكسل */
    }
}

/* ============================================
   MESSAGE SECTION
   ============================================ */
.about-message {
    background: linear-gradient(135deg, #f8f9ff 0%, #edeafd 100%);
    position: relative;
    padding: 80px 0 !important;
}

.about-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.about-message .container {
    position: relative;
    z-index: 1;
}

.about-message h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-halala3);
    margin-bottom: 1.5rem;
}

.about-message p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
}

.about-message .about-image {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.about-message .about-image:hover {
    transform: scale(1.05);
}

/* ============================================
   VISION SECTION
   ============================================ */
.about-vision {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

.about-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.about-vision .container {
    position: relative;
    z-index: 1;
}

.about-vision h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-vision p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.about-vision .about-image {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: floatImage 3s ease-in-out infinite;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.about-team-section {
    padding: 80px 0;
    background: #fff;
}

.about-team-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-halala3);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.about-team-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-halala2), var(--bs-halala4));
    border-radius: 2px;
}

.team-box {
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.team-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--bs-halala3) !important;
}

.team-box .team-img-height {
    padding: 20px;
}

.team-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    transition: all 0.3s ease;
}

.team-box:hover img {
    transform: scale(1.1);
}

.team-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-halala3);
    margin-bottom: 0.5rem;
}

.team-box h6 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem;
}

.team-box p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */
.about-achievements {
    background: linear-gradient(135deg, var(--bs-halala2) 0%, var(--bs-halala4) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 !important;
}

.about-achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.about-achievements .container {
    position: relative;
    z-index: 1;
}

.about-achievements .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-bottom: 1rem;
}

.about-achievements .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.achievement-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.achievement-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-item:hover img {
    transform: scale(1.1);
}

.achievement-item .text-center {
    padding: 1.5rem;
}

.achievement-item h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-halala3);
    margin-bottom: 0.75rem;
}

.achievement-item span {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    display: block;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 992px) {
    .about-hero h2,
    .about-message h2,
    .about-vision h2,
    .about-team-section .section-title,
    .about-achievements .section-title {
        font-size: 2rem;
    }
    
    .about-hero p,
    .about-message p,
    .about-vision p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .about-hero,
    .about-message,
    .about-vision,
    .about-achievements {
        padding: 50px 0 !important;
    }
    
    .about-hero h2,
    .about-message h2,
    .about-vision h2,
    .about-team-section .section-title,
    .about-achievements .section-title {
        font-size: 1.75rem;
    }
    
    .about-hero p,
    .about-message p,
    .about-vision p {
        font-size: 1rem;
    }
    
    .team-box img {
        width: 120px;
        height: 120px;
    }
    
    .achievement-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .about-hero h2,
    .about-message h2,
    .about-vision h2,
    .about-team-section .section-title,
    .about-achievements .section-title {
        font-size: 1.5rem;
    }
    
    .about-hero,
    .about-message,
    .about-vision,
    .about-achievements {
        padding: 40px 0 !important;
    }
}
