/* Base Styles */
:root {
    --primary-color: #2a6d39;
    --primary-dark: #1e4d2a;
    --primary-light: #3d8c4e;
    --secondary-color: #f9a825;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #ddd;
    --dark-gray: #777;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(to left, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(42, 109, 57, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(42, 109, 57, 0.4);
    background: linear-gradient(to left, var(--primary-dark), var(--primary-color));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to left, rgba(42, 109, 57, 0.7), rgba(30, 77, 42, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--medium-gray);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.about-image .image-placeholder::before {
    content: "صورة توضيحية للشركة";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

/* Activities Section - Unique Design */
.activities {
    padding: 6rem 0;
    background-color: var(--white);
}

.activity-container {
    max-width: 900px;
    margin: 0 auto;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.activity-item.active {
    opacity: 1;
    transform: translateY(0);
}

.activity-item:hover {
    padding-right: 1rem;
}

.activity-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(42, 109, 57, 0.1);
    transition: var(--transition);
}

.activity-item:hover .activity-number {
    color: var(--primary-color);
}

.activity-content {
    padding-left: 1rem;
}

.activity-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.activity-item:hover .activity-title {
    padding-right: 10px;
}

.activity-desc {
    color: var(--dark-gray);
    font-size: 1.1rem;
    transition: var(--transition);
}

.activity-visual {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-bar {
    width: 20px;
    height: 0;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: bottom;
}

.activity-item:hover .visual-bar {
    height: 100%;
}

.activity-item:nth-child(2n):hover .visual-bar {
    background-color: var(--primary-color);
}

.activities-note {
    margin-top: 4rem;
    padding: 2rem;
    background-color: rgba(42, 109, 57, 0.05);
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    text-align: center;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.3rem;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.contact-visual {
    margin-top: 3rem;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.visual-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(42, 109, 57, 0.1);
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50%) scale(1.2);
        opacity: 0.3;
    }
}

.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 109, 57, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-right: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Reveal Text Animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(0);
    animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
        display: none;
    }
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

/* Add to your existing style.css file */

/* About Section Images */
.about-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Activity Images */
.activity-image {
    width: 120px;
    height: 120px;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Visual */
.contact-visual {
    width: 100%;
    height: 200px;
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

/* Note Icon */
.note-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Feature Icons */
.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Make sure activities are visible */
.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
    transition: var(--transition);
    /* REMOVED the opacity and transform that were hiding the activities */
}

.activity-content {
    padding-left: 1rem;
}

.activity-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.activity-desc {
    color: var(--dark-gray);
    font-size: 1.1rem;
    transition: var(--transition);
    margin-bottom: 1rem;
}

/* Add these to your existing style.css */

/* Text reveal animation */
.reveal-text {
    position: relative;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(0);
    animation: reveal 1.5s ease forwards;
}

.reveal-text.revealed::after {
    display: none;
}

@keyframes reveal {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
        display: none;
    }
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

/* Activity item animation */
.activity-item {
    opacity: 1; /* Changed from 0 to make visible */
    transform: translateY(0); /* Changed from translateY(30px) to make visible */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.activity-item.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.activity-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image loading animation */
img.loading {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

img.error {
    opacity: 0.5;
    background-color: #f0f0f0;
    padding: 20px;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Make sure activities are visible immediately */
.activity-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Only hide if they have the hidden class */
.activity-item.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-item {
        grid-template-columns: auto 1fr;
    }
    
    .activity-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        width: 100%;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .activity-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .activity-number {
        font-size: 2.5rem;
    }
    
    .activity-content {
        padding-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}