:root {
    --color-primary: #1A3620;
    --color-accent: #6A8E4E;
    --color-secondary: #F4F7F5;
    --color-white: #FFFFFF;
    --color-text-dark: #2C3E2D;
    --color-text-light: #5A6B5B;
    --font-main: 'Tajawal', sans-serif;
    --section-spacing: 100px;
    --border-radius: 16px;
    --box-shadow-main: 0 20px 40px rgba(26, 54, 32, 0.06);
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.8;
    background-color: var(--color-white);
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.section-padding { padding: var(--section-spacing) 0; position: relative; }
.bg-light { background-color: var(--color-secondary); }
.text-white { color: var(--color-white) !important; }
.relative-z { position: relative; z-index: 2; }

.bg-dark-pattern {
    background-color: var(--color-primary);
    background-image: linear-gradient(rgba(26, 54, 32, 0.95), rgba(26, 54, 32, 0.95)), url('https://via.placeholder.com/500x500/222/333?text=Pattern');
    background-blend-mode: overlay;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hearts-container { position: absolute; top: 0; right: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.card-hearts-container { position: absolute; top: 0; right: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.floating-heart { position: absolute; bottom: -20px; animation: floatUp linear forwards; pointer-events: none; }
@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-120vh) scale(1.2) rotate(360deg); opacity: 0; }
}

.section-title { text-align: center; font-size: 2.5rem; color: var(--color-primary); margin-bottom: 2rem; font-weight: 900; position: relative; padding-bottom: 20px; }
.section-title.text-white { color: var(--color-white); }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 60px; height: 5px; background: linear-gradient(to left, var(--color-accent), var(--color-primary)); border-radius: 5px; }
.section-title.text-white::after { background: var(--color-accent); }
.section-subtitle { text-align: center; color: var(--color-text-light); margin-bottom: 50px; font-size: 1.2rem; }

nav { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); display: flex; justify-content: flex-start; gap: 50px; align-items: center; padding: 20px 5%; box-shadow: 0 4px 30px rgba(0,0,0,0.03); z-index: 1000; transition: var(--transition-smooth); }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--color-primary); display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--color-accent); }
.nav-links { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--color-text-dark); font-weight: 700; font-size: 1.1rem; position: relative; padding-bottom: 5px; transition: var(--transition-smooth); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 3px; background: var(--color-accent); transition: width 0.4s ease; border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.hero-content { max-width: 800px; }
#hero h1 { font-size: 4rem; font-weight: 900; margin-bottom: 25px; line-height: 1.3; }
#hero p { font-size: 1.5rem; margin-bottom: 50px; opacity: 0.95; }

.btn { display: inline-flex; align-items: center; padding: 16px 40px; text-decoration: none; border-radius: 50px; font-weight: 700; font-size: 1.2rem; transition: var(--transition-smooth); border: none; cursor: pointer; font-family: inherit; box-shadow: 0 10px 20px rgba(106, 142, 78, 0.2); }
.btn-primary { background: var(--color-accent); color: var(--color-white); }
.btn:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(106, 142, 78, 0.4); background: #739955; }
.icon-left { margin-right: 12px; margin-left: 0; }
.btn-block { width: 100%; justify-content: center; padding: 20px; }

.about-box { background: var(--color-white); padding: 50px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-main); text-align: center; font-size: 1.2rem; line-height: 2.2; border-top: 5px solid var(--color-accent); max-width: 900px; margin: 0 auto; }

.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); justify-content: center; }

.card { background: var(--color-white); padding: 40px 25px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-main); text-align: center; transition: var(--transition-smooth); position: relative; border: 1px solid rgba(0,0,0,0.03); overflow: hidden; }
.card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(26, 54, 32, 0.08); border-color: transparent; }
.card-content { position: relative; z-index: 1; pointer-events: none; }
.icon-wrapper { width: 80px; height: 80px; background: var(--color-secondary); color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; margin: 0 auto 25px; transition: var(--transition-smooth); }
.card:hover .icon-wrapper { background: var(--color-accent); color: var(--color-white); transform: scale(1.1) rotate(-5deg); }
.card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--color-primary); }
.card p { color: var(--color-text-light); font-size: 1rem; }

.activity-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--box-shadow-main);
    cursor: pointer;
}

.card-slideshow { width: 100%; height: 100%; position: relative; background: #000; }
.card-slideshow img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 2s ease-in-out, transform 10s linear;
}
.card-slideshow img.active { opacity: 1; transform: scale(1.05); }
.activity-card:hover .card-slideshow img.active { transform: scale(1.10); }

.activity-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 20px 15px;
    background: linear-gradient(to top, rgba(15, 30, 18, 0.98) 0%, rgba(15, 30, 18, 0.8) 40%, transparent 100%);
    color: var(--color-white);
    transform: translateY(0);
    opacity: 1;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 4px;
    z-index: 2;
}

.activity-overlay h3 { margin: 0; font-weight: 900; font-size: 1.35rem; line-height: 1.2; }
.activity-overlay p { margin: 0; font-size: 0.95rem; line-height: 1.4; color: #e2e8f0; }
.act-date-badge {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.join-container { max-width: 650px !important; }
.form-group { position: relative; margin-bottom: 25px; }
input, textarea { width: 100%; padding: 20px 20px 20px 20px; border: 2px solid rgba(255,255,255,0.1); background: rgba(255, 255, 255, 0.05); border-radius: 12px; font-family: inherit; font-size: 1.1rem; color: var(--color-white); outline: none; transition: var(--transition-smooth); resize: none; backdrop-filter: blur(5px); text-align: right; }
.form-group label { position: absolute; top: 22px; right: 20px; color: rgba(255, 255, 255, 0.5); pointer-events: none; transition: var(--transition-smooth); font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--color-accent); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 15px rgba(106, 142, 78, 0.2); }
input:focus ~ label, input:not(:placeholder-shown) ~ label, textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label { top: -10px; right: 15px; font-size: 0.85rem; color: var(--color-white); background: var(--color-accent); padding: 2px 10px; border-radius: 6px; font-weight: bold; }
.form-msg { text-align: center; margin-top: 20px; font-weight: bold; font-size: 1.1rem; }

footer { padding: 60px 0 30px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-logo { font-size: 2rem; font-weight: 900; color: var(--color-white); margin-bottom: 20px; }
.footer-logo i { color: var(--color-accent); }
.social-links { margin: 30px 0; display: flex; justify-content: center; gap: 16px; }
.social-links a { display: inline-flex; width: 50px; height: 50px; background: rgba(255,255,255,0.05); color: var(--color-white); text-decoration: none; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--transition-smooth); border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 15px rgba(106,142,78,0.3); }
.copyright { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

.animate-block { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.visible { opacity: 1; transform: translateY(0) scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.gallery-modal {
    position: fixed; inset: 0;
    background: rgba(10, 20, 12, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    opacity: 0; pointer-events: none;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto; overflow-x: hidden;
}

.gallery-modal::-webkit-scrollbar { width: 8px; }
.gallery-modal::-webkit-scrollbar-track { background: transparent; }
.gallery-modal::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 10px; }

.gallery-modal.active { opacity: 1; pointer-events: all; }

.gallery-close {
    position: fixed; top: 20px; right: 30px;
    color: white; font-size: 1.8rem; cursor: pointer; z-index: 10000;
    background: rgba(0,0,0,0.4); width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; border: 1px solid rgba(255,255,255,0.1);
}
.gallery-close:hover { background: var(--color-accent); transform: rotate(90deg) scale(1.1); }

.vertical-gallery-container {
    width: 100%; max-width: 750px;
    display: flex; flex-direction: column;
    padding: 60px 20px 80px;
}

.vertical-gallery-header {
    text-align: center; color: white; margin-bottom: 40px;
    transform: translateY(20px); opacity: 0;
    transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-modal.active .vertical-gallery-header { transform: translateY(0); opacity: 1; transition-delay: 0.2s; }
.vertical-gallery-header h2 { font-size: 2.2rem; color: var(--color-accent); margin-bottom: 5px; font-weight: 900; }
.vertical-gallery-header p { font-size: 1.1rem; color: #ddd; font-weight: bold; background: rgba(255,255,255,0.1); display: inline-block; padding: 4px 15px; border-radius: 20px; margin-top: 10px;}

.vertical-gallery-item {
    width: 100%; border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    object-fit: contain; margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(50px); opacity: 0;
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-modal.active .vertical-gallery-item.show { transform: translateY(0); opacity: 1; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    nav { padding: 15px 5%; justify-content: space-between; }
    .section-padding { padding: 60px 0; }
    #hero { padding-top: 120px; min-height: auto; padding-bottom: 60px; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .about-box { padding: 30px 20px; font-size: 1.1rem; line-height: 1.8; }
    .card { padding: 35px 20px; }
    .grid-container { gap: 20px; }
    .form-group input, .form-group textarea { padding: 15px; font-size: 1rem; }
    .btn { padding: 15px 30px; font-size: 1.1rem; }
    .gallery-close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 1.5rem; }
    .vertical-gallery-header h2 { font-size: 1.8rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 { font-size: 3rem; }
    .nav-links { gap: 15px; }
}