/* ==========================================================================
   V6 - Soft Modern Airy Minimalist UI/UX (NOVABUILD)
   100% Mobile-First Responsive, Ultra-Clean, Zero Overflow
   ========================================================================== */

:root {
    --bg-page: #FBFBFA;
    --bg-subtle: #F4F3EF;
    --bg-card: #FFFFFF;
    --bg-pill: #EFECE6;
    
    --text-dark: #18181B;
    --text-body: #52525B;
    --text-muted: #71717A;
    
    --accent: #27272A;
    --accent-warm: #8C6D46;
    --accent-warm-bg: #F7F3ED;
    --accent-warm-border: #E5DEC9;
    
    --border-light: #E7E5E0;
    --border-hover: #D1CEC7;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 9999px;
    
    --shadow-soft: 0 4px 20px -2px rgba(24, 24, 27, 0.04), 0 1px 3px -1px rgba(24, 24, 27, 0.02);
    --shadow-hover: 0 16px 36px -6px rgba(24, 24, 27, 0.07), 0 4px 10px -2px rgba(24, 24, 27, 0.03);
    
    --font-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --container: 1160px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.en {
    font-family: var(--font-en);
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ==========================================================================
   Sticky Clean Header (100% Fit on Mobile & Desktop)
   ========================================================================== */
.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.navbar {
    max-width: var(--container);
    margin-inline: auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-body);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-dark);
    background: var(--bg-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Minimal Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    font-family: var(--font-ar);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.48rem 1rem;
    font-size: 0.84rem;
}

.btn-dark {
    background: var(--text-dark);
    color: #FFFFFF;
}

.btn-dark:hover {
    background: #3F3F46;
}

.btn-soft {
    background: var(--bg-subtle);
    color: var(--text-dark);
    border-color: var(--border-light);
}

.btn-soft:hover {
    background: var(--bg-pill);
    border-color: var(--border-hover);
}

.mobile-toggle {
    display: none;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-dark);
    flex-shrink: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 3.5rem 0 3.5rem;
}

.hero-header {
    max-width: 780px;
    margin-bottom: 2.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--accent-warm-bg);
    border: 1px solid var(--accent-warm-border);
    color: var(--accent-warm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
    max-width: 100%;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-warm);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(1.65rem, 3.6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: clamp(0.96rem, 1.4vw, 1.08rem);
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.65rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-showcase {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
}

.hero-showcase img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
}

/* Metrics Strip */
.metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.15rem;
}

.metric-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.metric-num {
    font-family: var(--font-en);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.metric-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */
.section {
    padding: 4.5rem 0;
}

.section-subtle {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.section-header-text {
    max-width: 640px;
}

.section-title {
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.38;
    color: var(--text-dark);
    margin-bottom: 0.45rem;
}

.section-desc {
    color: var(--text-body);
    font-size: 0.96rem;
}

/* Bento Grid for About & Founder */
.bento-about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
}

.surface-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.surface-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.surface-card p {
    color: var(--text-body);
    font-size: 0.96rem;
    margin-bottom: 0.9rem;
}

.surface-card p:last-child {
    margin-bottom: 0;
}

.founder-bento {
    background: var(--accent-warm-bg);
    border: 1px solid var(--accent-warm-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.founder-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.founder-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font-en);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.15rem;
}

.tag-chip {
    background: #FFFFFF;
    border: 1px solid var(--accent-warm-border);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
}

.vm-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.vm-image-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    padding: 0.5rem;
}

.vm-image-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
}

/* Services Cards */
.services-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-index {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--accent-warm);
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.service-en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.service-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.service-item p {
    font-size: 0.92rem;
    color: var(--text-body);
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.clean-checks {
    border-top: 1px solid var(--border-light);
    padding-top: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.clean-checks li {
    font-size: 0.86rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clean-checks li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-warm);
    flex-shrink: 0;
}

/* Projects Showcase Cards */
.projects-clean-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.7rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.proj-img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 220px;
    margin-bottom: 1.05rem;
}

.proj-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-pill {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    color: var(--text-dark);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 600;
}

.proj-content {
    padding: 0.2rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proj-loc {
    font-size: 0.78rem;
    color: var(--accent-warm);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.proj-content h3 {
    font-size: 1.14rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.proj-content p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

.proj-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

.proj-card:hover .proj-btn {
    background: var(--text-dark);
    color: #fff;
}

.notice-box {
    margin-top: 1.5rem;
    padding: 0.9rem 1.15rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

/* Credentials Minimal Row */
.creds-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.cred-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.cred-tag {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent-warm);
    background: var(--accent-warm-bg);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.75rem;
}

.cred-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.cred-box p {
    font-size: 0.88rem;
    color: var(--text-body);
}

/* Contact Minimal Split */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.contact-pill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    margin-bottom: 0.95rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: var(--bg-page);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-ar);
    font-size: 0.94rem;
    color: var(--text-dark);
}

/* Project Detail Subpages */
.subpage-header {
    padding: 2.75rem 0 2rem;
}

.breadcrumb-clean {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.breadcrumb-clean a {
    color: var(--text-dark);
    font-weight: 600;
}

.meta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.meta-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
}

.meta-item span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.meta-item strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.doc-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    box-shadow: var(--shadow-soft);
}

.doc-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: zoom-in;
}

.doc-meta {
    padding: 0.75rem 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-body);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(24, 24, 27, 0.92);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1.25rem;
    gap: 1rem;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 94vw;
    max-height: 78vh;
    border-radius: var(--radius-md);
}

.lightbox p {
    color: #F4F4F5;
    font-size: 0.92rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: #FFFFFF;
    color: var(--text-dark);
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-ar);
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer-clean {
    border-top: 1px solid var(--border-light);
    padding: 2.25rem 0;
    margin-top: 2.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE RULES (100% Fit, Zero Overflow)
   ========================================================================== */
@media (max-width: 992px) {
    .bento-about,
    .vm-row,
    .services-clean-grid,
    .projects-clean-grid,
    .creds-clean-grid,
    .contact-box,
    .meta-strip,
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .metrics-strip {
        grid-template-columns: 1fr 1fr;
    }

    /* Hide desktop links, show clean dropdown menu inside viewport */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        background: #FFFFFF;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        z-index: 200;
    }

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

    .nav-links a {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }

    .mobile-toggle {
        display: inline-flex;
    }

    /* Hide phone number in header on tablets & phones */
    .nav-phone-btn {
        display: none !important;
    }
}

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

    .navbar {
        padding: 0.65rem 1rem;
        gap: 0.5rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-sub {
        font-size: 0.68rem;
    }

    .nav-cta-btn {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.78rem !important;
    }

    .mobile-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero {
        padding: 1.75rem 0 2.25rem;
    }

    .eyebrow {
        font-size: 0.74rem;
        padding: 0.25rem 0.7rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.42;
    }

    .hero-lead {
        font-size: 0.94rem;
        line-height: 1.75;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-showcase img {
        height: 220px;
    }

    .metrics-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .metric-item {
        padding: 0.95rem;
    }

    .metric-num {
        font-size: 1.15rem;
    }

    .metric-label {
        font-size: 0.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .surface-card,
    .founder-bento,
    .service-item,
    .contact-box {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .form-grid-row {
        grid-template-columns: 1fr;
    }

    .doc-item img {
        height: 210px;
    }
}
