:root {
    --accent-bronze: #a47e5f;
    --bg-charcoal: #1a1a1a;
    --fg-off-white: #f0f0f0;
    --muted-gray: #555555;

    --font-display: 'Amiri', serif;
    --font-body: 'Tajawal', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
    background-color: var(--bg-charcoal);
    color: var(--fg-off-white);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--fg-off-white);
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--accent-bronze);
    margin-top: 1rem;
    font-weight: 400;
}

#journey {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    position: relative;
    z-index: 1;
    padding-top: 100vh; 
}

.model-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#watch-model {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
    z-index: 1;
    --progress-bar-color: transparent;
    --progress-bar-height: 0px;
}

.content-scroll {
    grid-column: 2 / 3;
}

.content-section {
    min-height: 100vh;
    padding: 96px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--muted-gray);
}

.content-wrapper {
    max-width: 500px;
    margin-left: auto;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent-bronze);
    margin-bottom: 8px;
}

.content-section h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--muted-gray);
    margin-bottom: 32px;
}

.content-section p {
    color: var(--fg-off-white);
    margin-bottom: 32px;
}

.content-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--muted-gray);
}

.specs-section {
    padding: 128px 64px;
    text-align: center;
    background-color: #111;
    position: relative;
    z-index: 2;
}

.specs-section h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 64px;
}

.specs-table {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--muted-gray);
    font-size: 1.1rem;
}

.spec-item span:first-child {
    font-weight: 700;
    color: var(--accent-bronze);
}

.acquire-section {
    padding: 128px 64px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    position: relative;
    z-index: 2;
}

.acquire-section h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: 16px;
}

.acquire-section p {
    max-width: 600px;
    color: var(--muted-gray);
    margin-bottom: 48px;
    font-size: 1.2rem;
    line-height: 1.8;
}

.cta-button {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-charcoal);
    background-color: var(--accent-bronze);
    border: none;
    padding: 18px 48px;
    cursor: pointer;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo);
}

.cta-button:hover {
    background-color: var(--fg-off-white);
}

/* Responsive */
@media (max-width: 900px) {
    #journey {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .model-container {
        display: none; /* Hide the complex 3D view on mobile */
    }

    .content-scroll {
        grid-column: 1 / -1;
    }

    .content-section {
        min-height: auto;
        padding: 64px 32px;
    }

    .content-wrapper {
        margin-left: 0;
    }

    .hero {
        height: 80vh;
    }
}
