@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-main: #ffffff;
    --bg-surface: #f8fafc;
    --border-color: #e2e8f0;
    --border-dark: #1e293b;
    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-hover: #2563eb;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    box-sizing: border-box;
}

.logo-wrapper a,
.footer-brand a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.logo-wrapper img,
.footer-logo {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-wrapper a:hover img,
.footer-brand a:hover .footer-logo {
    opacity: 0.85;
    transform: scale(1.02);
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] .btn {
    font-family: 'Cairo', sans-serif !important;
}

/* ================== HEADER ================== */
header {
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-wrapper {
    flex: 0 0 auto;
}

.logo-wrapper img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #ffffff;
}

.lang-selector {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

/* ================== HERO ================== */
.hero-wrapper-full {
    position: relative;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(37, 211, 102, 0.04) 0%, transparent 50%);
    border-bottom: 1px solid var(--border-dark);
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
}

.hero-section {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

.hero-slogan {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(59, 130, 246, 0.08);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero-section h1 {
    font-size: 3.25rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-section h1 span {
    background: linear-gradient(to right, #60a5fa, #93c5fd, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.05rem;
    color: var(--text-light-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

.cta-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.btn-secondary:hover {
    background-color: #25d366;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-showcase-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    animation: floatingArrow 2s infinite ease-in-out;
}

@keyframes floatingArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

/* ================== SERVICES ================== */
.services-section {
    padding: 6rem 2rem;
    background-color: var(--bg-surface);
    width: 100%;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.services-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 110px;
}

html[dir="rtl"] .service-card {
    align-items: flex-start;
    text-align: right;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--accent-blue);
}

html[dir="rtl"] .service-card:hover {
    border-left: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-blue);
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    padding-bottom: 0.5rem;
    width: 100%;
}

.service-card p {
    color: var::var(--text-muted);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    text-decoration: none;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--accent-hover);
}

[data-i18n="card_inf_desc"] span {
    font-weight: 600;
    color: #1e40af;
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-blue);
    display: inline-block;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* ================== FOOTER ================== */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-dark);
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    height: 82px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.2));
}

.footer-brand-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.footer-brand p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0;
}

.footer-links-sect h4, 
.footer-contact-sect h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.footer-links-sect ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-sect ul li a {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links-sect ul li a:hover {
    color: #ffffff;
}

.footer-contact-sect p {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
}

.footer-contact-sect a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-contact-sect a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-light-muted);
    font-size: 0.85rem;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    html {
        scroll-padding-top: 150px;
    }
    .service-card {
        scroll-margin-top: 160px;
    }
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
    }
    .logo-wrapper { order: 1; }
    .lang-selector { order: 2; }
    nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 0.5rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .hero-wrapper-full {
        min-height: auto;
        padding-top: 180px;
        padding-bottom: 3rem;
    }
    .hero-section {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
        text-align: center;
    }
    .hero-content,
    html[dir="rtl"] .hero-content {
        text-align: center;
    }
    .hero-section h1 {
        font-size: 2.15rem;
        line-height: 1.3;
    }
    .hero-section p {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }
    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    .scroll-down-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ================== CARD TARGET HIGHLIGHT ================== */
.service-card:target {
    animation: cardPulse 1.8s ease-in-out;
}

@keyframes cardPulse {
    0% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
        transform: scale(1.02);
    }
    50% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 35px rgba(59, 130, 246, 0.8);
        transform: scale(1.03);
    }
    100% {
        border-color: var(--border-dark);
        box-shadow: var(--shadow-premium);
        transform: scale(1);
    }
}