:root {
    color-scheme: light;
    --bg: #050810;
    --surface: #0f1524;
    --card: #141c31;
    --accent: #1ec6ff;
    --accent-strong: #53f0d4;
    --text: #f7f9ff;
    --muted: #9aabc8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 18px;
    --max-width: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, rgba(12, 118, 243, 0.15), transparent 40%) var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

header,
main {
    width: min(calc(100% - 3rem), var(--max-width));
    margin-inline: auto;
}

.hero {
    position: relative;
    min-height: 70vh;
    padding: 4rem 0 6rem;
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 68, 232, 0.45), rgba(2, 175, 255, 0.2));
    filter: blur(100px);
    opacity: 0.8;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--accent);
}

h1 {
    font-size: clamp(2.6rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subtext {
    color: var(--muted);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #03060d;
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--whatsapp {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
    background: #20BA5A;
    border-color: #20BA5A;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.lead-time {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.lang-toggle {
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.nav a {
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--accent);
}

.section {
    padding: 4.5rem 0;
}

.section__header {
    margin-bottom: 2.5rem;
}

.section__header h2 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.services__grid,
.projects__grid,
.testimonials__grid {
    display: grid;
    gap: 1.5rem;
}

.services__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.testimonials__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.project-card,
.quote-card {
    border-radius: var(--radius);
    background: var(--card);
    padding: 1.35rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.card h3,
.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.card p,
.project-card p,
.quote-card p {
    color: var(--muted);
}

.project-card__image {
    border-radius: calc(var(--radius) - 8px);
    height: 170px;
    background-size: cover;
    background-position: center;
    margin: -1.1rem -1.1rem 1rem;
    cursor: zoom-in;
    outline: none;
    transition: transform 0.2s ease;
}

.project-card__image:hover {
    transform: scale(1.02);
}

.project-card__image:focus-visible {
    box-shadow: 0 0 0 3px var(--accent);
}

.project-card--featured .project-card__image {
    aspect-ratio: 576 / 464;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.projects__actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.projects__action-btn {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.projects__action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.projects__action-btn[disabled] {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.quote-card span {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.contact__details {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
}

.contact__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact__list span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #fff !important;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.contact__map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 400px;
}

.footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem;
    color: var(--muted);
}

.footer__content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__copyright {
    margin: 0;
    font-size: 0.9rem;
}

.footer__location {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.8;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer__link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.footer__link--whatsapp {
    background: #25D366;
    color: #fff !important;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.footer__link--whatsapp:hover {
    background: #20BA5A;
    border-color: #20BA5A;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: #fff !important;
}

.footer__link svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@media (min-width: 640px) {
    .footer__content {
        grid-template-columns: 1fr auto;
        text-align: left;
        align-items: center;
    }

    .footer__links {
        justify-content: flex-end;
    }
}

html {
    scroll-behavior: smooth;
}

body.is-rtl .nav {
    flex-direction: row-reverse;
}

body.is-rtl .hero__actions {
    flex-direction: row-reverse;
}

body.is-rtl .lang-toggle {
    margin-left: 0;
    margin-right: auto;
}

body.is-rtl .contact__list,
body.is-rtl .section__header,
body.is-rtl .card,
body.is-rtl .project-card,
body.is-rtl .quote-card {
    text-align: right;
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.lightbox__content {
    position: relative;
    max-width: min(900px, 90vw);
    max-height: min(90vh, 700px);
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
    color: #fff;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox__close {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox__close:hover {
    color: var(--accent);
}

.lightbox[hidden] {
    display: none !important;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.lightbox__content {
    position: relative;
    max-width: min(900px, 90vw);
    max-height: min(90vh, 700px);
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
    color: #fff;
}

.lightbox__content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox__close {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.lightbox__close:hover {
    color: var(--accent);
}

@media (max-width: 640px) {
    header,
    main {
        width: calc(100% - 2rem);
    }

    .hero {
        padding-top: 3rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .nav {
        gap: 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .lang-toggle {
        margin-left: 0;
        width: 100%;
    }
}

