/* Visionary Cinematic Design - Polished */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;500;700&family=Montserrat:wght@100;300;400;500&display=swap');

:root {
    --gold: #c5a059;
    --gold-glow: rgba(197, 160, 89, 0.3);
    --charcoal: #0f0f0f;
    --concrete: #2a2a2a;
    --white: #ffffff;
    --text-muted: #a0a0a0;
    --border-thin: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    background-color: var(--charcoal);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    /* Main scroll handled by snap-container */
    height: 100vh;
}

/* Scroll Container */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-thin);
}

/* Typography */
h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 5vw, 6rem);
    font-weight: 200;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1.5s forwards 0.5s;
}

h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 600px;
}

/* Navigation - Floating */
.logo-corner {
    position: fixed;
    top: 2rem;
    left: 3rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--white);
    text-decoration: none;
    z-index: 1000;
    background: white;
    padding: 5px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-trigger {
    position: fixed;
    top: 2rem;
    right: 3rem;
    z-index: 1000;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--gold);
    transition: var(--transition);
    background: white;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-trigger:hover {
    letter-spacing: 4px;
}


.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay a {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 200;
    margin: 0.5rem 0;
    transition: var(--transition);
}

.nav-overlay a:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* Slides */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Slide 1 - Hero */
.slide-hero {
    background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}

.slide-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent);
}

/* Hero Text Adjustments */
.hero-text-box {
    position: absolute;
    bottom: 15%;
    /* Moved up slightly to avoid bottom edge */
    left: 5%;
    right: 5%;
    /* Add right constraint to prevent overflow */
    z-index: 3;
    border-left: 2px solid var(--gold);
    padding-left: 1rem;
    /* Reduced padding for mobile */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-text-box h1 {
    font-size: clamp(1.2rem, 4vw, 6rem);
    /* Smaller min size */
    line-height: 1.1;
    /* Increased line height to prevent overlap if it wraps */
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.hero-text-box p {
    max-width: 100%;
    /* On larger screens, keep nowrap as requested, but allow wrap on mobile */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
}

@media (max-width: 768px) {
    .nav-trigger {
        right: 1.5rem;
        /* Adjust position for mobile */
        top: 1.5rem;
    }

    .logo-corner {
        left: 1.5rem;
        top: 1.5rem;
    }

    .hero-text-box p {
        white-space: normal;
        /* Allow wrap on mobile to prevent cut-off */
        line-height: 1.4;
    }
}

.hyphen {
    display: inline-block;
    transform: translateY(-10%);
    /* Slight lift to center vertically if needed for Oswald */
    opacity: 0.8;
    margin: 0 1rem;
    /* Add breathing room around hyphens */
}

/* Slide 2 - Split */
.split-layout {
    display: flex;
    width: 100%;
    height: 100%;
}

.split-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
    opacity: 0.6;
}

.split-layout:hover .split-img img {
    transform: scale(1.1);
    opacity: 1;
}

.split-text {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111;
}

/* Slide 3 - Horizontal Scroll */
.slide-services {
    background: #0f0f0f;
    display: flex;
    align-items: center;
}

.h-scroll-container {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding: 0 5%;
    gap: 2rem;
    scrollbar-width: none;
}

.service-card {
    min-width: 300px;
    height: 50vh;
    background: #1a1a1a;
    border: 1px solid var(--border-thin);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.service-card:hover {
    background: var(--gold);
    color: black;
    transform: translateY(-10px);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .num {
    color: black;
}

.service-card .num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 4rem;
    font-family: 'Oswald';
    color: #333;
    transition: var(--transition);
}

.service-card h3 {
    font-family: 'Oswald';
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Slide 4 - Gallery */
.slide-gallery {
    background: url('../assets/images/gallery-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-box {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    padding: 4rem 6rem;
    border: 1px solid var(--border-thin);
    text-align: center;
    transition: var(--transition);
}

.glass-box:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

/* Buttons */
.btn-line {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-family: 'Oswald';
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-line:hover {
    color: white;
    border-color: white;
    padding-left: 10px;
}

/* Subpage Utilities */
.page-container {
    min-height: 100vh;
    padding: 8rem 5% 4rem 5%;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-thin);
    padding-bottom: 2rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media(max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .split-text {
        padding: 3rem;
    }

    .nav-overlay a {
        font-size: 2.5rem;
    }

    .h-scroll-container {
        gap: 1rem;
    }

    .service-card {
        min-width: 250px;
    }
}

/* Services Page Specific */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Removing gap to have flush sections if desired, or keep specific gap */
    padding-top: 8rem;
    /* Space for fixed header/logo */
}

.service-row {
    display: flex;
    min-height: 50vh;
    border-bottom: 1px solid var(--border-thin);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--charcoal);
}

.service-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-text p {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.service-text ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-muted);
}

.service-text li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-text li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--gold);
    margin-right: 10px;
    border-radius: 50%;
}

.service-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Enforce square */
    filter: none;
    /* Ensure color */
    transition: var(--transition);
}

.other-services {
    padding: 6rem 5%;
    text-align: center;
    background: #111;
    border-top: 1px solid var(--border-thin);
}

.other-services ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    margin-top: 3rem;
}

.other-services li {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--text-muted);
    border: 1px solid var(--border-thin);
    padding: 1rem 2rem;
    transition: var(--transition);
}

.other-services li:hover {
    color: var(--gold);
    border-color: var(--gold);
}

@media (max-width: 768px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column;
    }

    .service-text {
        padding: 2rem;
    }

    .service-img img {
        aspect-ratio: 16/9;
        /* Not necessarily square on mobile if it takes too much height, but lets stick to plan if possible, or 4/3 */
        max-height: 300px;
    }
}