:root {
    --primary: #e8403f;
    --primary-dark: #c13433;
    --secondary: #16a34a;
    --background: #f5f6f9;
    --surface: #ffffff;
    --text-main: #101828;
    --text-muted: #5f6b7d;
    --border: rgba(16, 24, 40, 0.08);
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.15);
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: radial-gradient(120% 120% at 90% 0%, rgba(22, 162, 74, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #f8fbff 0%, var(--background) 100%);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(232, 64, 63, 0.4);
    outline-offset: 3px;
    border-radius: 8px;
}

::selection {
    background: rgba(232, 64, 63, 0.18);
    color: var(--text-main);
}

a:hover,
button:hover {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.hero {
    background: radial-gradient(120% 120% at 90% 0%, rgba(22, 162, 74, 0.15) 0%, transparent 45%),
                linear-gradient(135deg, #fff, #f8f9ff 60%, rgba(232, 64, 63, 0.08));
    padding: 2.5rem 0 5rem;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -4rem;
    right: clamp(-120px, -10vw, -60px);
    width: clamp(260px, 34vw, 540px);
    aspect-ratio: 4 / 3;
    background: url('../images/company-image.jpeg') center/cover no-repeat;
    opacity: 0.22;
    border-radius: 36px;
    filter: saturate(1.05);
    transform: rotate(-2deg);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
    z-index: -1;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 4vw;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(16, 24, 40, 0.05);
    margin: 0 auto 2rem;
    width: min(1100px, 96vw);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(232, 64, 63, 0.18));
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-name {
    font-size: 1.3rem;
    line-height: 1;
}

.brand-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a {
    transition: color 0.2s ease, border-color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.2rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--primary);
}


.hero-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.hero-text {
    display: grid;
    gap: 1.3rem;
    max-width: 560px;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem);
    line-height: 1.25;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(232, 64, 63, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(232, 64, 63, 0.3);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(232, 64, 63, 0.08);
}

.btn-block {
    width: 100%;
}

.hero-points {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
}

.hero-points i {
    color: var(--secondary);
    margin-left: 0.6rem;
}


.hero-card {
    background: rgba(255, 255, 255, 0.88);
    padding: 2.1rem;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 520px;
    margin-inline-start: auto;
}

.hero-card__image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
}

.hero-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-card__chip {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-card__chip i {
    font-size: 0.85rem;
}

.hero-card__badge {
    align-self: flex-start;
    background: rgba(22, 162, 74, 0.12);
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.hero-card h2 {
    font-size: 1.8rem;
}

.hero-card p {
    color: var(--text-muted);
}

.hero-card__stats {
    display: grid;
    gap: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.86);
    border: 1px solid rgba(16, 24, 40, 0.06);
}

.stat-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.stat-title {
    display: block;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-top: 0.1rem;
    line-height: 1.5;
}

.hero-card__cta {
    font-weight: 600;
    color: var(--primary);
}

.section {
    padding: 4rem 0;
}

.section-alt {
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.9rem, 2.5vw + 1rem, 2.6rem);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.about-text > p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
}

.about-highlights {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-highlights h3 {
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.about-visual {
    position: relative;
    min-height: 360px;
}

.about-visual__shape {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(232, 64, 63, 0.72), rgba(22, 162, 74, 0.55)),
                url('../images/company-image.jpeg') center/cover no-repeat;
    filter: contrast(1.05) saturate(1.1);
    box-shadow: 0 24px 50px rgba(16, 24, 40, 0.2);
}

.about-visual__overlay {
    position: absolute;
    inset: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.8rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid rgba(16, 24, 40, 0.05);
    box-shadow: 0 16px 28px rgba(16, 24, 40, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(16, 24, 40, 0.12);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-muted);
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(232, 64, 63, 0.15);
    box-shadow: 0 18px 30px rgba(232, 64, 63, 0.08);
    position: relative;
}

.project__tag {
    position: absolute;
    top: -14px;
    left: 1.2rem;
    background: var(--primary);
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.project h3 {
    margin: 1.5rem 0 0.8rem;
}

.project p {
    color: var(--text-muted);
}

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
}

.why-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.why-list i {
    color: var(--secondary);
    margin-left: 0.7rem;
}

.why-card {
    background: linear-gradient(135deg, rgba(232, 64, 63, 0.88), rgba(22, 162, 74, 0.88));
    border-radius: 28px;
    padding: 2.2rem;
    color: #fff;
    display: grid;
    gap: 1.3rem;
    box-shadow: 0 30px 40px rgba(232, 64, 63, 0.18);
}

.why-card p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-column {
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.8rem 2rem;
    box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
    border: 1px solid rgba(16, 24, 40, 0.05);
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.contact-list i {
    color: var(--primary);
    margin-left: 0.8rem;
}

.contact-note {
    padding: 1.1rem 1.4rem;
    border-radius: 18px;
    background: rgba(22, 162, 74, 0.08);
    color: var(--secondary);
    font-weight: 600;
}

.contact-map {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    justify-self: start;
}

.contact-map p {
    color: var(--text-muted);
}

.map-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
    margin-inline: 0;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--primary);
}

.map-link:hover {
    color: var(--primary-dark);
}

.map-link i {
    font-size: 0.9rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    border-radius: 14px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(232, 64, 63, 0.15);
}

.form-feedback {
    min-height: 1.2rem;
    color: var(--secondary);
    font-weight: 600;
}

.form-feedback.success {
    color: var(--secondary);
}

.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.86);
    padding: 1.8rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.footer-powered a {
    color: var(--primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.footer-powered a:hover {
    background: rgba(255, 255, 255, 0.22);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .navbar {
        position: relative;
    }
    .hero::before {
        right: -40px;
        top: -2rem;
        width: clamp(220px, 55vw, 360px);
        opacity: 0.18;
        transform: rotate(-1deg);
    }
    .hero-content,
    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        margin: 0 auto;
        max-width: 480px;
    }

    .contact-column {
        gap: 1.2rem;
    }

    .contact-map {
        max-width: 100%;
    }

    .map-frame {
        max-width: 100%;
        margin-inline: 0;
    }

    .about-visual,
    .why-card {
        order: -1;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 115%;
        right: 1rem;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: max(240px, 40vw);
        border: 1px solid rgba(16, 24, 40, 0.06);
    }

    .nav-links.show {
        display: flex;
    }

    .navbar {
        border-radius: 20px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 1rem;
    }

    .hero::before {
        display: none;
    }

    .navbar {
        padding: 0.8rem 1rem;
    }

    .hero-card__stats {
        grid-template-columns: 1fr;
    }

    .project {
        padding: 1.6rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0.9rem;
        gap: 0.8rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .hero {
        padding: 1.8rem 0 3.5rem;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

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

    .cards-grid,
    .projects-grid {
        gap: 1.1rem;
    }

    .projects-grid .project,
    .cards-grid .card {
        padding: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-powered a {
        padding: 0.3rem 0.65rem;
    }
}
