/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
}

/* CSS Variables for Colors */
:root {
    --primary: #1a2b4a;
    --primary-foreground: #ffffff;
    --secondary: #f4a261;
    --secondary-light: rgba(244, 162, 97, 0.1);
    --accent: #e76f51;
    --muted-foreground: #6b7280;
    --muted-light: rgba(0, 0, 0, 0.05);
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-4 > * + * {
    margin-right: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Grid Classes */
.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (min-width: 768px) {
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .md\\:flex {
        display: flex;
    }
    
    .md\\:hidden {
        display: none;
    }
    
    .md\\:text-5xl {
        font-size: 3rem;
    }
    
    .md\\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\\:text-2xl {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Flex Direction */
.flex-col {
    flex-direction: column;
}

@media (min-width: 640px) {
    .sm\\:flex-row {
        flex-direction: row;
    }
}

/* Typography */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.text-6xl {
    font-size: 3.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Colors */
.text-primary {
    color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-secondary {
    color: var(--secondary);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary-light {
    background-color: var(--secondary-light);
}

.bg-muted-light {
    background-color: var(--muted-light);
}

/* Spacing */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.p-4 {
    padding: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Sizing */
.h-4 {
    height: 1rem;
}

.w-4 {
    width: 1rem;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-10 {
    width: 2.5rem;
}

.h-12 {
    height: 3rem;
}

.w-12 {
    width: 3rem;
}

.h-16 {
    height: 4rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-3xl {
    max-width: 48rem;
}

/* Border Radius */
.rounded-full {
    border-radius: 9999px;
}

/* Opacity */
.opacity-80 {
    opacity: 0.8;
}

.opacity-90 {
    opacity: 0.9;
}

/* Position */
.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.relative {
    position: relative;
}

/* Z-Index */
.z-50 {
    z-index: 50;
}

/* Shadow */
.shadow-lg {
    box-shadow: var(--shadow);
}

.hover\\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Transitions */
.transition-colors {
    transition: color 0.15s ease-in-out;
}

.transition-shadow {
    transition: box-shadow 0.15s ease-in-out;
}

/* Navigation Styles */
nav {
    background: linear-gradient(135deg, var(--primary) 0%, #2a3f5f 100%);
}

nav a:hover {
    color: var(--secondary);
}

/* Hero Section */
.bg-gradient-to-r {
    background: linear-gradient(to left, var(--primary), rgba(26, 43, 74, 0.8));
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #0f1a2e;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #e09145;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid currentColor;
}

.btn-outline:hover {
    background-color: var(--primary-foreground);
    color: var(--primary);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Input Styles */
.input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}

.input::placeholder {
    color: var(--muted-foreground);
}

/* Textarea */
textarea.input {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary) 0%, #0f1a2e 100%);
}

footer a:hover {
    color: var(--secondary);
}

/* Border */
.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* SVG Icons */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 767px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-xl {
        font-size: 1.125rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-16 {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Mobile Menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading Animation for Buttons */
.btn:active {
    transform: scale(0.98);
}