/* ============================
   MODERN RESET & VARIABLES
   ============================ */
:root {
    --brand-50: #eff6ff;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-900: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --font-en: 'Inter', system-ui, -apple-system, sans-serif;
    --font-ar: 'Tajawal', 'Cairo', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-en);
    background: var(--slate-50);
    color: var(--slate-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Arabic version overrides */
html[lang="ar"] body {
    font-family: var(--font-ar);
    direction: rtl;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================
   LAYOUT UTILITIES
   ============================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center { text-align: center; }

/* ============================
   HEADER & NAVIGATION
   ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-600);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-600);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-600);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    padding: 8px 16px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
}

.lang-switch:hover {
    border-color: var(--brand-600);
    color: var(--brand-600);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-600);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: white;
    color: var(--slate-800);
    border: 1px solid var(--slate-200);
}

.btn-outline:hover {
    background: var(--slate-100);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--slate-800);
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--brand-600);
}

.hero p {
    font-size: 1.15rem;
    color: var(--slate-600);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: white;
    border-top: 1px solid var(--slate-200);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: var(--slate-600);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--brand-600);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--slate-200);
    text-align: center;
    color: var(--slate-600);
    font-size: 0.85rem;
}

/* ============================
   PRODUCTS GRID
   ============================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid var(--slate-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-500);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.product-card p {
    color: var(--slate-600);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    border-top: 1px solid var(--slate-200);
    padding-top: 20px;
}

.product-features li {
    padding: 8px 0;
    color: var(--slate-600);
    font-size: 0.9rem;
}

/* ============================
   PRICING CARD
   ============================ */
.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.15);
    border: 2px solid var(--brand-500);
}

.pricing-header {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-900));
    color: white;
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html[lang="ar"] .pricing-badge {
    right: auto;
    left: 20px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pricing-amount .price {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.pricing-amount .currency {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.pricing-duration {
    opacity: 0.8;
    font-size: 0.95rem;
}

.pricing-body {
    padding: 40px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--slate-700, #334155);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--slate-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ============================
   MOBILE MENU (Open State)
   ============================ */
@media (max-width: 768px) {
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 30px;
        gap: 20px;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
}

/* ============================
   CONTACT PAGE
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--slate-200);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--slate-600);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--brand-600);
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ============================
   CONTACT FORM
   ============================ */
.contact-form-wrap {
    background: white;
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid var(--slate-200);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

@media (max-width: 500px) {
    .contact-form-wrap {
        padding: 30px 24px;
    }
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--brand-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

html[lang="ar"] .contact-form select {
    background-position: left 16px center;
    padding-right: 18px;
    padding-left: 45px;
}

.form-status-success {
    color: #059669 !important;
    font-weight: 600;
}

.form-status-error {
    color: #dc2626 !important;
    font-weight: 600;
}