/* 1. Fonts & Variables */
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0f172a;
    --accent: #f43f5e;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --container-width: 1200px;
}

/* 2. Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Readex Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 3. Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:hover {
    color: var(--primary);
}

/* 4. Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top right, #eef2ff, #ffffff);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 5. Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* 6. Services Grid */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.price {
    font-weight: 700;
    color: var(--secondary);
}

/* 7. Works Grid */
.grid-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.work-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.3s;
}

.work-card:hover .work-info {
    transform: translateY(0);
    opacity: 1;
}

.work-card:hover img {
    transform: scale(1.1);
}

/* 8. Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 9. Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* سنحتاج لاحقاً لقائمة جوال */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
    }
}
/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.5rem; font-weight: 900; color: var(--secondary); letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-menu { display: flex; gap: 25px; }
.nav-menu a { font-weight: 600; color: var(--text-main); font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }

.auth-buttons { display: flex; gap: 12px; align-items: center; }
.btn-login { color: var(--primary); font-weight: 700; padding: 8px 15px; }
.btn-signup { background: var(--primary); color: white; padding: 10px 20px; border-radius: 8px; font-weight: 700; }
.btn-account { background: var(--secondary); color: white; padding: 10px 20px; border-radius: 8px; display: flex; align-items: center; gap: 8px; font-weight: 600; }

/* Footer Styles */
.main-footer { background: #0f172a; color: #f1f5f9; padding: 80px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-about .logo { margin-bottom: 20px; color: white; font-size: 1.8rem; font-weight: 800; }
.footer-about p { line-height: 1.8; opacity: 0.8; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.main-footer h4 { color: white; margin-bottom: 25px; font-size: 1.1rem; position: relative; }
.main-footer h4::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 30px; height: 2px; background: var(--primary); }
.main-footer ul { list-style: none; padding: 0; }
.main-footer ul li { margin-bottom: 12px; }
.main-footer ul a { opacity: 0.7; font-size: 0.9rem; transition: 0.3s; }
.main-footer ul a:hover { opacity: 1; color: var(--primary); padding-right: 5px; }

.footer-bottom { background: #020617; padding: 25px 0; text-align: center; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); }

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; } /* سنحتاج قائمة همبرغر لاحقاً */
}
/* Legal & About Pages Formatting */
.legal-page, .about-page { padding: 60px 0; line-height: 1.8; }
.container.narrow { max-width: 800px; margin: 0 auto; }
.last-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.content h2 { color: var(--secondary); margin: 35px 0 15px; font-size: 1.4rem; }
.content p { margin-bottom: 20px; color: #4b5563; text-align: justify; }

.about-hero { text-align: center; margin-bottom: 50px; }
.about-hero h1 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.value-item { background: #f8fafc; padding: 25px; border-radius: 12px; border-right: 4px solid var(--primary); }

@media (max-width: 600px) {
    .values-grid { grid-template-columns: 1fr; }
}