/* =========================================
   متغيرات الألوان - Colors Variables
   ========================================= */
:root {
    --primary-color: #00854C;
    --secondary-color: #00854C;
    --accent-color: #00854C;
    --bg-color: #fff;
    --bg-gradient-start: #CDE9D0;
    --bg-gradient-end: #fff;
    --text-color: #00854C;
    --text-secondary: #00854C;
    --card-bg: #fff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   زر تبديل اللغة - داخل المودال فقط
   ========================================= */
.lang-btn {
    background: rgba(0, 133, 76, 0.08);
    border: 1.5px solid rgba(0, 133, 76, 0.25);
    border-radius: 20px;
    padding: 5px 14px;
    color: var(--primary-color);
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* =========================================
   خلفية متحركة - Animated Background
   ========================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25%  { transform: translateY(-100px) translateX(50px); }
    50%  { transform: translateY(-200px) translateX(-50px); }
    75%  { transform: translateY(-100px) translateX(100px); }
}

/* =========================================
   الحاوية الرئيسية - Main Container
   ========================================= */
.container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* =========================================
   الشعار - Logo
   ========================================= */
.logo {
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg  { width: 230px; height: auto; }
.logo img  { width: 250px; height: auto; object-fit: contain; }

/* =========================================
   العناوين - Headings
   ========================================= */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: "Caveat", sans-serif;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.6rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: -10px;
}

.subtitle-en {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 600;
}

/* =========================================
   أيقونات التواصل الاجتماعي - Social Icons
   ========================================= */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.social-icon:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(133, 201, 141, 0.3); }

.social-icon.twitter:hover   { border-color: #000; color: #fff; background: #000; }
.social-icon.instagram:hover { border-color: #fff; color: #fff; background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); border: 0; }
.social-icon.snapchat:hover  { border-color: #F7F400; color: #000; background: #F7F400; }
.social-icon.tiktok:hover    { border-color: #000; color: #fff; background: #000; }
.social-icon.linkedin:hover  { border-color: #0A66C2; color: #fff; background: #0A66C2; }
.social-icon.youtube:hover   { border-color: #FF0000; color: #fff; background: #FF0000; }
.social-icon.facebook:hover  { border-color: #1877F2; color: #fff; background: #1877F2; }
.social-icon.contact:hover   { border-color: var(--accent-color); color: #fff; background: var(--accent-color); }
.social-icon.snapchat        { font-weight: 700; }

/* =========================================
   المودال - Modal
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    background: var(--bg-gradient-start);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(133, 201, 141, 0.3);
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.modal-header {
    padding: 18px 25px;
    border-bottom: 1px solid rgba(133, 201, 141, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-color);
    flex: 1;
    text-align: center;
}

.close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close:hover { color: var(--error-color); }

.modal-body { padding: 30px; }

/* =========================================
   التبويبات - Tabs
   ========================================= */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 2px solid rgba(133, 201, 141, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
}

.tab-content       { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* =========================================
   النماذج - Forms
   ========================================= */
.form-group {
    margin-bottom: 20px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(133, 201, 141, 0.2);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.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(133, 201, 141, 0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(133, 201, 141, 0.4);
}

.submit-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* =========================================
   رسائل النجاح والخطأ - Alert Messages
   ========================================= */
.message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.message.success { background: rgba(16, 185, 129, 0.2); border: 1px solid var(--success-color); color: var(--success-color); }
.message.error   { background: rgba(239, 68, 68, 0.2);  border: 1px solid var(--error-color);   color: var(--error-color); }
.message.warning { background: rgba(245, 158, 11, 0.2); border: 1px solid var(--warning-color);  color: var(--warning-color); }

/* =========================================
   تصميم متجاوب - Responsive
   ========================================= */



@media (max-width: 768px) {
    .container { width: 90%; padding:20px 12px}
    h1 { font-size: 2rem; }
    .subtitle { font-size: 1.3rem; }
	.logo { width: 200px; height: auto; }
    .logo svg { width: 20px; height: auto; }
    .social-icons { gap: 10px; }
    .social-icon { width: 45px; height: 45px; font-size: 1.1rem; }
    .modal-content { margin: 10% auto; width: 95%; }
    .tab-buttons { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { width: 100%; padding:20px 5px}	
    h1 { font-size: 1.8rem; }
    .logo { width: 200px; height: auto; }
    .logo svg { width: 20px; height: auto; }
    .lang-toggle { top: 10px; left: 10px; }
    [dir="rtl"] .lang-toggle { left: auto; right: 10px; }
	
	.subtitle {
		font-size: 1.4rem;
		font-weight: 400;
		line-height:1.5rem;
	}
	.subtitle-en {
		font-size: 1.2rem;
		font-weight: 600;
		line-height:1.5rem;
		margin-top:15px;
	}
}
