/* style/main.css */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5a27;
    --secondary-color: #5a8c5a;
    --accent-color: #f1c40f;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --gray-color: #777;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    right: 15%;
    border-radius: 3px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    right: 0;
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(to left, rgba(45, 90, 39, 0.1), rgba(90, 140, 90, 0.05));
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-left: 40px;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-content span {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.image-container:hover .main-image {
    transform: scale(1.05);
}

.image-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #f0f7ef;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    padding: 20px;
}

.image-fallback i {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.image-fallback p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* Fallback when image fails to load */
.main-image:not([src]), 
.main-image[src=""],
.main-image[src*="error"] {
    display: none;
}

.main-image:not([src]) + .image-fallback,
.main-image[src=""] + .image-fallback,
.main-image[src*="error"] + .image-fallback {
    display: flex;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text strong {
    color: var(--primary-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

/* style/main.css - Activities Section Update */

/* Activities Section */
.activities {
    padding: 100px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

/* Original Activities Design with Icons */
.activities-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fcf8 100%);
    border-radius: 20px;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(45, 90, 39, 0.05);
}

.activity-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ef 100%);
}

.activity-item:nth-child(odd) {
    margin-right: 50px;
}

.activity-item:nth-child(even) {
    margin-left: 50px;
}

.activity-icon {
    width: 120px;
    flex-shrink: 0;
    margin-left: 20px;
}

.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(45, 90, 39, 0.2);
    transition: var(--transition);
}

.activity-item:hover .icon-circle {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(45, 90, 39, 0.3);
}

.icon-circle i {
    font-size: 2.8rem;
    color: white;
    transition: var(--transition);
}

.activity-item:hover .icon-circle i {
    transform: scale(1.1);
}

.icon-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    z-index: 1;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.2;
    }
    50% {
        transform: scale(1);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.2;
    }
}

.activity-content {
    flex: 1;
    position: relative;
}

.activity-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.activity-content h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    bottom: 0;
    right: 0;
    border-radius: 2px;
}

.activity-content p {
    color: var(--gray-color);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 600px;
}

.activity-tag {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(241, 196, 15, 0.3);
}

.activity-connector {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-item:nth-child(odd) .activity-connector {
    right: -30px;
}

.activity-item:nth-child(even) .activity-connector {
    left: -30px;
}

.connector-line {
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.5s ease;
}

.activity-item:hover .connector-line {
    height: 100%;
}

.connector-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.activity-item:hover .connector-dot {
    opacity: 1;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(-50%) scale(1);
    }
    to {
        transform: translateY(-50%) scale(1.3);
    }
}

/* Decorative Elements */
.activities-decoration {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.05), rgba(90, 140, 90, 0.05));
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -100px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
}

/* Responsive Styles for Activities */
@media (max-width: 992px) {
    .activity-item:nth-child(odd),
    .activity-item:nth-child(even) {
        margin-right: 0;
        margin-left: 0;
    }
    
    .activity-connector {
        display: none;
    }
    
    .activities-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .activity-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }
    
    .activity-icon {
        margin-left: 0;
        margin-bottom: 25px;
    }
    
    .activity-content h3::after {
        right: 50%;
        transform: translateX(50%);
    }
}
/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #f0f7ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background-color: #e8f7ee;
    color: #2d5a27;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #fde8e8;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }
    
    .activity-icon {
        margin-left: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content {
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}