:root {
    --border-radius: 100px;
    --blur-radius: 5px;
    --menu-blur-radius: 5px;
    --menu-border-radius: 100px;
    --side-spacing: clamp(14px, 2.2vw, 28px);
    --mobile-menu-height: 30px;
    --card-radius: 30px;
    --inner-card-radius: clamp(16px, 2vw, 26px);
    --card-transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    --card-borders: 1px solid rgba(255, 255, 255, 0.3);
    --card-borders-hover: 1px solid rgba(255, 255, 255, 1);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.2);
    /* Widest the header/nav/sections/footer are allowed to stretch on large screens.
       Change this one value to make the whole site wider or narrower on big monitors. */
    --content-max-width: 1400px;
}

* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    height: 100%;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html,
body {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100dvh;
    overflow-x: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    color: white;
    font-size: clamp(15px, 0.6vw + 0.7rem, 18px);

    background-image: url('/Assets/Pyramids.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: inherit;
    z-index: -1;
    transform: scale(1.3);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: inherit;
    z-index: -1;
    transform: scale(1.5);
}

.background-darkener {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.17);
}

/* ── Main ── */
main {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    padding-top: clamp(105px, 9vw, 150px);
}

/* ── Sections (generic card container used by every page) ── */
section {
    scroll-margin-top: calc(clamp(105px, 9vw, 150px) + var(--side-spacing));
    width: calc(100% - 2 * var(--side-spacing));
    margin-left: var(--side-spacing);
    margin-right: var(--side-spacing);
    margin-bottom: var(--side-spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.1rem, 1.5vw, 1.6rem);
    box-shadow: black 0px 0px 70px;
    border: 1px solid white;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(var(--blur-radius));
    backdrop-filter: blur(var(--blur-radius));
    padding: clamp(1.6rem, 2.8vw, 2.6rem);
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 2.8vw, 3rem);
    font-weight: bold;
    line-height: 1.2;
}

.section-text {
    width: 100%;
    font-size: clamp(1rem, 0.7vw + 0.6rem, 1.2rem);
    line-height: 1.6;
}

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

.section-text--muted {
    opacity: 0.7;
    max-width: 500px;
}

/* ── Shared buttons (used on home, contact form, project view actions) ── */
.btn-primary {
    padding: clamp(0.65rem, 0.9vw, 0.9rem) clamp(1.6rem, 2.5vw, 2.4rem);
    background: white;
    color: #111;
    border: none;
    border-radius: 100px;
    font-size: clamp(0.9rem, 0.5vw + 0.6rem, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.25s, transform 0.25s;
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.btn-primary-text {
    background-image: url('/Assets/Pyramids.jpg');
    background-size: cover;
    background-attachment: fixed;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.btn-ghost {
    padding: clamp(0.65rem, 0.9vw, 0.9rem) clamp(1.6rem, 2.5vw, 2.4rem);
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 100px;
    font-size: clamp(0.9rem, 0.5vw + 0.6rem, 1.05rem);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ── Shared stats row (home page "What we do" section + project view page) ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
    width: 100%;
    margin-top: clamp(0.6rem, 1vw, 1rem);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.78rem, 0.4vw + 0.55rem, 0.92rem);
    opacity: 0.6;
    text-align: center;
    line-height: 1.4;
}

/* ── Large screens: stop stretching edge-to-edge, center sections within a max width ── */
/* To change how wide the site gets before centering kicks in, edit --content-max-width above. */
@media (min-width: calc(1800px + 2 * 28px)) {
    section {
        width: calc(var(--content-max-width) + 20 * var(--side-spacing));
        max-width: calc(var(--content-max-width) + 20 * var(--side-spacing));
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Phone only ── */
@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
}