﻿:root {
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

body.lang-ar {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.lang-en {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.skip-link {
    position: fixed;
    top: -60px;
    inset-inline-start: 16px;
    z-index: 1200;
    background: #0b1220;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.navbar {
    min-height: 76px;
}

.navbar-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-inline-start: 12px;
}

.lang-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.navbar.scrolled .lang-switch {
    background: rgba(2, 6, 23, 0.05);
    border-color: rgba(2, 6, 23, 0.1);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.navbar.scrolled .lang-btn {
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.hero-section {
    min-height: 100vh;
}

.hero-content {
    max-width: 680px;
}

.hero-subtitle {
    margin-top: 18px;
    font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.hero-features {
    margin-top: 28px;
    margin-bottom: 30px;
}

.hero-buttons {
    gap: 12px;
}

.hero-visual {
    min-height: 420px;
}

.floating-card {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 190px;
}

.floating-card h5 {
    margin: 0;
    font-size: 1rem;
}

.card-1 {
    top: 10%;
    inset-inline-start: 8%;
    inset-inline-end: auto;
}

.card-2 {
    top: 48%;
    inset-inline-end: 6%;
    inset-inline-start: auto;
}

.card-3 {
    bottom: 10%;
    inset-inline-start: 22%;
    inset-inline-end: auto;
}

.section-header {
    margin-bottom: 52px;
}

.section-title {
    max-width: 780px;
    margin-inline: auto;
}

.section-subtitle {
    max-width: 760px;
}

.stat-card,
.service-card,
.portfolio-card,
.process-step,
.contact-form,
.modal-content {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card {
    padding: 30px 22px;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-suffix {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-700);
}

.service-card {
    padding: 28px 24px;
}

.service-card h3 {
    min-height: 2.8em;
    font-size: 1.28rem;
    line-height: 1.35;
}

.service-card p {
    min-height: 4.7em;
    margin-bottom: 18px;
}

.service-features {
    margin-bottom: 0;
}

.service-features li {
    align-items: flex-start;
    line-height: 1.55;
    margin-bottom: 10px;
}

.service-card-large {
    position: relative;
    isolation: isolate;
}

.service-card-large::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.portfolio-filters {
    margin-bottom: 34px;
}

.portfolio-card {
    height: 100%;
}

.portfolio-content h5 {
    font-size: 1.15rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.portfolio-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8em;
}

.portfolio-tags {
    margin-top: 8px;
}

.process-grid .process-step {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-light);
    text-align: center;
    padding: 30px 18px;
}

.process-step p {
    margin-bottom: 0;
}

.cta-section {
    border-radius: 0;
}

.cta-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-content p {
    font-size: 1.04rem;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
}

.form-select {
    border: 2px solid var(--border-light);
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-note {
    margin: -4px 0 4px;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.form-message {
    min-height: 32px;
    margin-bottom: 8px;
}

.form-message .alert {
    border-radius: 999px;
    margin-bottom: 0;
    padding: 0.55rem 1rem;
}

.modal-meta-label {
    font-weight: 700;
    color: var(--text-secondary);
}

.project-intro {
    font-size: 1.01rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

#projectDescription .project-section {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    border-inline-start: 4px solid var(--primary-600);
    background: rgba(248, 250, 252, 0.95);
}

#projectDescription .project-section h5 {
    margin-bottom: 8px;
    font-size: 1rem;
}

#projectDescription ul {
    margin: 0;
    padding-inline-start: 1.1rem;
}

#projectDescription li {
    margin-bottom: 6px;
}

.footer .contact-info p {
    margin-bottom: 10px;
}

.footer-links a:hover {
    transform: translateX(4px);
}

[dir='rtl'] .footer-links a:hover {
    transform: translateX(-4px);
}

[dir='ltr'] .hero-content,
[dir='ltr'] .hero-section {
    text-align: left;
}

[dir='ltr'] .hero-features,
[dir='ltr'] .hero-buttons {
    justify-content: flex-start;
}

[dir='ltr'] .contact-info p i {
    margin-right: 6px;
}

@media (max-width: 991.98px) {
    .navbar-utilities {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    [dir='rtl'] .navbar-utilities {
        justify-content: flex-end;
    }

    .hero-visual {
        min-height: 280px;
        max-width: 420px;
        margin-inline: auto;
    }

    .floating-card {
        width: 170px;
        padding: 18px 14px;
    }

    .card-1,
    .card-2,
    .card-3 {
        position: relative;
        inset: auto;
        margin: 10px auto;
        animation: none;
    }

    .service-card h3,
    .service-card p,
    .portfolio-content h5,
    .portfolio-content p {
        min-height: 0;
    }
}

@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 34px;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 56px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 28px 16px;
    }

    .process-step {
        padding: 24px 14px;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        inset-inline-end: 16px;
        bottom: 16px;
    }
}

/* Clean Professional Home Override */
main {
    overflow: clip;
}

.navbar {
    backdrop-filter: blur(14px) saturate(120%);
}

.nav-link {
    font-size: 0.93rem;
    letter-spacing: 0.01em;
}

.hero-section {
    padding-top: calc(var(--nav-height) + 30px);
    padding-bottom: 70px;
}

.hero-background,
.floating-elements,
.hero-section::after {
    display: none !important;
}

.hero-content {
    max-width: 640px;
    margin: 0;
    padding-inline: 0;
}

.hero-content::before {
    display: none;
}

.hero-title {
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.hero-subtitle {
    max-width: 52ch;
    line-height: 1.8;
    margin-bottom: 1.15rem;
}

.hero-badge {
    padding: 0.5rem 0.92rem;
    border-radius: 999px;
    font-weight: 700;
}

.hero-features {
    margin-top: 20px;
    margin-bottom: 24px;
    gap: 10px;
}

.feature-item {
    border-radius: 999px;
    padding: 0.58rem 0.85rem;
}

.feature-item span {
    font-size: 0.89rem;
}

.hero-buttons {
    gap: 10px;
}

.hero-buttons .btn {
    min-height: 50px;
    font-weight: 700;
    min-width: 188px;
}

.hero-buttons .btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.36);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: auto;
    max-width: 420px;
    margin-inline: auto;
}

.hero-visual::before {
    display: none;
}

.floating-card {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: start;
    animation: none !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(2, 6, 23, 0.1);
    box-shadow: var(--shadow-sm);
}

.floating-card h5 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.floating-card .card-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    border-radius: 12px;
    flex-shrink: 0;
}

.section-header {
    margin-bottom: 42px;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    max-width: 64ch;
}

.stat-card,
.service-card,
.portfolio-card,
.process-step,
.contact-form {
    border: 1px solid rgba(2, 6, 23, 0.1);
    box-shadow: var(--shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover,
.service-card:hover,
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(188, 38, 73, 0.08);
}

.service-card {
    padding: 24px 20px;
}

.service-card::before,
.service-card-large::after {
    display: none;
}

.service-card h3 {
    min-height: 0;
    font-size: 1.22rem;
    margin-bottom: 12px;
}

.service-card p {
    min-height: 0;
    margin-bottom: 14px;
}

.service-features li {
    margin-bottom: 8px;
}

.portfolio-content h5,
.portfolio-content p {
    min-height: 0;
}

.portfolio-image::after {
    display: none;
}

.tag {
    border-radius: 999px;
    font-size: 0.73rem;
}

.process-grid .process-step {
    background: #fff;
    border: 1px solid rgba(2, 6, 23, 0.1);
    padding: 28px 16px;
    overflow: hidden;
}

.process-grid .process-step::before,
.process-grid .process-step::after {
    display: none !important;
}

.cta-content {
    border-radius: var(--radius-md);
    padding: clamp(1.3rem, 2.6vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form {
    border-color: rgba(2, 6, 23, 0.12);
}

.contact-form::before {
    display: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(188, 38, 73, 0.52);
    box-shadow: 0 0 0 3px rgba(188, 38, 73, 0.1);
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer::before {
    display: none;
}

.footer-brand p {
    max-width: 34ch;
}

.social-link {
    width: 42px;
    height: 42px;
}

.reveal-item,
.reveal-item.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 991.98px) {
    .navbar-utilities {
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .hero-section {
        text-align: center;
        padding-bottom: 54px;
    }

    .hero-content {
        margin-inline: auto;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-features,
    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-buttons .btn {
        min-width: 0;
        width: min(360px, 100%);
    }
}

@media (max-width: 767.98px) {
    .section-header {
        margin-bottom: 30px;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + 14px);
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

    .service-card,
    .contact-form {
        padding: 22px 16px;
    }

    .cta-content {
        padding: 1.05rem 0.9rem;
    }
}
