:root {
    --primary-color: #8b9b8b;
    --secondary-color: #6B8E23;
    --accent-color: #DAA520;
    --cream-color: #F5F5DC;
    --light-green: #E8F5E8;
    --dark-green: #2E5D2E;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    background: var(--white);
}

.hero-content1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* نخفي العناصر افتراضيًا */
.value-card,
.gallery-item,
.story-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

/* لما تدخل بالسكرول */
.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* Story Section */
.story-section {
    padding: 100px 0;
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-family: 'Marhey', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 1s ease-out;



}

@keyframes glowUp {
    0% { text-shadow: none; }
    100% { text-shadow: 0 0 10px var(--primary-color); }
}

.section-title {
    animation: fadeInUp 1s ease-out, glowUp 2s ease-out 1s forwards;
}

.section-title.center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 90px;
    height: 5px;
    background: linear-gradient(45deg, #8B9B8B, #a8e6cf);
    border-radius: 3px;
}

.section-title.center::after {
    right: 50%;
    transform: translateX(50%);
}

.story-paragraph {
    font-family: 'Marhey', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 1s ease-out 0.3s both;

}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
    transition: transform 0.3s ease;
}

.story-image:hover {
    transform: translateY(-10px);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
    animation: zoomIn 1s ease-out 0.3s both;
}

.story-image:hover img {
    transform: scale(1.05);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: var(--light-green);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(218, 165, 32, 0.1), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-hover);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-family: 'Cairo', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    font-family: 'Cairo', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
}
/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 2px 2px 6px var(--primary-color);}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 3%;
    }
    
    .hero-content1 {
        text-align: center;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        max-width: 80%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}
/* Journey Section */
.journey-section {
    padding: 100px 0;
    background: var(--light-green);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    margin-right: auto;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 3rem;
    text-align: left;
}

.timeline-year {
    position: absolute;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-year {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
    right: -40px;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}




@media (max-width: 768px) {


    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: -1;
    }

    .timeline::before {
        right: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-right: 60px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        padding-right: 60px;
        padding-left: 0;
        text-align: right;
    }

    .timeline-year {
        font-size: 14px;
        height: 50px !important;
        width: 50px !important;
        right: 0 !important;
        left: auto !important;
    }

    .section-title {
        font-size: 2rem;
    }


}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }



    .section-title {
        font-size: 1.8rem;
    }

    .story-paragraph {
        font-size: 1rem;
    }

    .value-card,
    .timeline-content {
        padding: 1.5rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }
}
