/* --- Global Styles --- */
/* --- Global Styles --- */
:root {
    /* Brand Colors */
    --color-bg-light: #EBEBEB;
    --color-bg-dark: #1A1A1A;
    --color-text-primary: #FFFFFF;
    --color-text-search: #1D1D1D;
    --color-search-btn: #1A1A1A;
    --color-signup-border: #E0E0E0;

    /* Spacing and Borders */
    --border-radius-search: 0px; /* Changed to 0 for sharp edges */
    --padding-header: 24px 0;
    --padding-container: 0 5%; /* Responsive horizontal padding */
}

* {
    box-sizing: border-box; /* Fixed typo here */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--padding-container);
}

/* --- 1. Header & Navbar Styles --- */
.main-header {
    background-color: transparent; /* Transparent over the hero */
    padding: var(--padding-header);
    position: fixed; /* Changed to fixed so it stays on screen */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Very high z-index so it sits above all other sections */
    transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth fade effect */
}

/* New class applied by JS when the user scrolls down */
.main-header.scrolled {
    background-color: #000000; /* Pitch black */
    padding: 16px 0; /* Slightly shrink the height to give more screen space */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 900; /* Extra Black */
    color: var(--color-text-primary);
    letter-spacing: -1.5px;
}

.main-nav .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px; /* Spaces out the text and new icons perfectly */
}

.btn-signup {
    background-color: var(--color-text-primary); /* Solid white background */
    color: var(--color-bg-dark); /* Dark text */
    padding: 10px 24px;
    border-radius: 0; /* Sharp edges */
    font-weight: 500;
    border: none;
}
.mobile-menu-toggle, 
.mobile-search,
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
}

/* --- 2. Hero Section Styles --- */
.hero-section {
    background-color: var(--color-bg-light);
    position: sticky; /* Keeps the hero pinned to the top as you scroll */
    top: 0;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    z-index: 1; /* Sets it behind the sections that will slide over it */
}

/* Container for images (user to populate) */
.hero-background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below the content */
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes sure the image fills the space perfectly without distorting */
    object-position: center; /* Keeps the focus on the middle of the image */
}

/* Adds the dark bar at the bottom over the image */
.hero-background-images::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25vh; /* The height of the dark section */
    background-color: var(--color-bg-dark);
    z-index: 2; /* Sits right above the image, but below the text */
}

/* Centering the content wrapper and headline */
.hero-content-wrapper {
    position: relative;
    z-index: 5; /* Above background images, below header */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to bottom */
    padding-bottom: 4vh; /* Dropped the padding to place text entirely inside the black section */
}

.hero-title {
    font-size: 96px;
    font-weight: 400; /* Dropped the weight to 400 as requested */
    color: var(--color-text-primary);
    margin-bottom: 0; /* Removed the 80px margin so it drops down */
    letter-spacing: -2.5px;
    line-height: 1.1;
    position: relative;
    z-index: 6; /* Keeps it above other background layers */
}

/* --- 3. Search Bar Styles --- */
.search-form {
    background-color: var(--color-text-primary);
    display: flex;
    border-radius: 0; /* Sharp edges */
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 40%;
    left: 5%;
    width: 90%;
    max-width: 1520px;
    z-index: 6;
}

.search-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-right: 1px solid #E0E0E0; /* Vertical separator lines */
}

.search-input-group:last-child {
    border-right: none;
}

.search-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-search);
    margin-bottom: 6px;
}

.search-input-group input {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-search);
    border: none;
    outline: none;
}

.search-btn {
    background-color: var(--color-search-btn);
    color: var(--color-text-primary);
    border: none;
    border-radius: 0; /* Sharp edges */
    font-size: 18px;
    font-weight: 500;
    padding: 18px 30px;
    cursor: pointer;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 8px; /* Adjusted for the Phosphor icon */
}

.search-btn .arrow-right {
    font-size: 20px;
}

/* --- 4. Attribution Text --- */
.hero-attribution {
    position: absolute;
    bottom: calc(25vh - 40px); /* Align with the top of the dark bar */
    right: 5%;
    text-align: right;
    font-size: 14px;
    color: var(--color-text-primary);
    line-height: 1.5;
}

.hero-attribution .studio-name {
    font-weight: 500;
}

.hero-attribution .studio-location {
    opacity: 0.8;
}

/* --- 5. Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Header & Navbar */
    .logo {
        font-size: 24px;
    }
    .nav-links li:not(:nth-last-child(-n+2)) { 
        display: none; /* Hides everything except Sign Up and the Hamburger menu */
    }
    .nav-links {
        gap: 16px;
    }
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }
    .mobile-menu-toggle i {
        font-size: 32px;
        color: var(--color-text-primary);
    }

    /* Hero Layout & Text */
    .hero-content-wrapper {
        justify-content: flex-start; /* Pushes content to the top so it naturally flows down */
        padding-top: 20vh; /* Space from the header */
        padding-bottom: 0;
    }
    .hero-title {
        font-size: 48px;
        font-weight: 700; /* Beefed up a bit for mobile readability */
        margin-bottom: 24px; /* Space between the text and the form */
        position: relative; 
    }

    /* Stack the Search Form */
    .search-form {
        position: relative; /* Takes it out of absolute positioning */
        top: auto;
        left: auto;
        width: 100%;
        flex-direction: column; /* Stack vertically */
        padding: 0; /* Remove padding to let elements touch the edges */
    }
    .search-input-group {
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
        padding: 20px 16px;
    }
    .search-input-group:nth-of-type(3) {
        border-bottom: none; /* Remove border above the button */
    }
    .search-btn {
        margin: 16px;
        width: calc(100% - 32px); /* Full width minus margins */
        justify-content: center; /* Center the text and icon */
    }

    /* Clean up background */
    .hero-background-images::after {
        height: 10vh; /* Shrink dark bar on mobile */
    }
    .hero-attribution {
        display: none; /* Hide attribution text on small screens to reduce clutter */
    }

    /* Show new mobile icons */
    .mobile-search {
        display: flex;
        align-items: center;
    }
    .mobile-search i {
        font-size: 28px;
        color: var(--color-text-primary);
    }

    /* Change header bg to solid dark when menu is open */
    .main-header.menu-open {
        background-color: var(--color-bg-dark);
    }

    /* Mobile Menu Overlay Styles */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        z-index: 9; /* Just below the header (z-index 10) */
        display: flex;
        flex-direction: column;
        padding-top: 80px; /* Push content below the header */
        
        /* The Animation Magic */
        transform: translateY(-100%); /* Start hidden entirely above the screen */
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s; /* Smooth acceleration/deceleration */
        visibility: hidden; /* Prevents clicking the invisible menu */
    }

    .mobile-menu-overlay.active {
        transform: translateY(0); /* Slide down exactly into place */
        visibility: visible;
    }

    .mobile-nav-links {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .mobile-nav-links a {
        font-size: 18px;
        font-weight: 700;
        color: var(--color-text-primary);
        display: flex;
        justify-content: space-between; /* Pushes the caret right */
        align-items: center;
    }

    .mobile-nav-links .mobile-globe-icon i {
        font-size: 24px;
        font-weight: 400;
    }
}

/* --- 6. Awards Section Styles --- */
.awards-section {
    background-color: #3B244F; /* Deep purple background matching the design */
    padding: 100px 0;
    width: 100%;
    position: relative; /* Needed for z-index to take effect */
    z-index: 2; /* Ensures this section slides OVER the sticky hero section */
}

.awards-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.awards-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.awards-img {
    width: 100%;
    max-width: 600px; /* Prevents the image from becoming overwhelmingly large */
    height: auto;
    display: block;
}

.awards-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--color-text-primary);
}

.awards-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.awards-title {
    font-size: 88px; 
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 40px;
    /* Note: The design uses a highly condensed font like 'Impact' or 'Oswald'. 
       We are using your existing 'Inter' font here, styled to look as close as possible. */
}

.awards-link {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.awards-link:hover {
    opacity: 0.7;
}

.awards-link i {
    font-size: 20px;
}

/* Responsive adjustments for the Awards section */
@media (max-width: 992px) {
    .awards-title {
        font-size: 64px;
    }
}

@media (max-width: 768px) {
    .awards-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .awards-content {
        align-items: center; /* Centers text on mobile */
    }

    .awards-title {
        font-size: 56px;
        margin-bottom: 24px;
    }
}

/* --- 7. Activities Section Styles --- */
.activities-section {
    background-color: var(--color-text-primary); /* Changed to white to match your design goal */
    padding: 100px 5%; /* Restored the 5% left/right padding to pull things away from the edges */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
    position: relative; /* Allows z-index to take effect */
    z-index: 2; /* Forces this section to slide OVER the sticky hero, just like the awards section */
}

.activities-left-column {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.activities-text-content {
    margin-bottom: 40px;
}

.activities-title {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-bg-dark);
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.activities-subtitle {
    font-size: 18px;
    color: var(--color-text-search);
}

.activities-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 40px;
}

.activity-item a {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-thumb {
    display: none; /* Hide thumbnails on desktop */
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.activity-item.active-activity a {
    font-weight: 700;
}

.btn-browse-activities {
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    padding: 12px 24px;
    border-radius: 0;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: center;
}

.activities-right-column {
    flex: 0 0 40%;
    height: 100%;
}

.large-activity-img-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.activities-large-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.2s ease-in-out;
}

/* Smooth fade transition for the activities image and text swap */
.attribution-location,
.attribution-activity {
    transition: opacity 0.2s ease-in-out;
}

/* Class applied by JS to fade elements out before swapping content */
.activities-fade-out {
    opacity: 0;
}

.vertical-attribution {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This pushes the two text blocks to opposite ends */
    align-items: center;
    padding: 24px;
    writing-mode: vertical-rl; /* Key for vertical text */
    text-align: left; /* Aligns from the top down */
    transform: rotate(180deg); /* Corrects reading direction of the vertical text */
    color: var(--color-bg-dark); /* Switched to a darker, more solid text color */
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.vertical-attribution p {
    margin: 0;
}

.activities-mobile-nav {
    display: none; /* Hide mobile navigation on desktop */
}

/* --- 7. Mobile Responsiveness for Activities Section --- */
@media (max-width: 768px) {
    .activities-section {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        gap: 40px;
    }

    .activities-left-column {
        flex: 0 0 100%;
        align-items: center;
        overflow: hidden; /* ADDED: Hides the horizontal scrolling overflow */
        width: 100%;
    }

    .activities-title {
        font-size: 40px;
    }

    .activities-text-content {
        text-align: left;
        margin-bottom: 24px;
        padding: 0 5%; /* ADDED: Aligns the text with the new 5% edge */
        width: 100%;
    }

    .activities-list {
        display: grid;
        grid-template-rows: repeat(5, auto); 
        grid-auto-flow: column; 
        grid-auto-columns: 100%; 
        row-gap: 24px; 
        column-gap: 60px; /* WIDER: Increased from 40px to 60px */
        width: 90%; /* CHANGED: Shrinks the list so it doesn't touch edges */
        margin-left: 5%; /* ADDED: Pushes the first column exactly 5% from the edge */
        margin-bottom: 24px; 
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); 
    }

    .activity-item a {
        width: 100%;
        font-size: 18px;
        gap: 16px;
        white-space: nowrap; /* ADDED: Forces the text to stay on exactly one line */
    }

    .activity-thumb {
        display: block; 
        width: 60px;
        height: 60px;
    }

    .activities-mobile-nav {
        display: flex;
        justify-content: space-between; 
        width: 100%;
        margin-top: 16px;
        margin-bottom: 24px;
        padding: 0 5%; /* ADDED: Aligns the arrows with the new 5% edge */
    }

    .nav-arrow i {
        font-size: 28px; /* Slightly larger for easier tapping */
        color: var(--color-bg-dark);
        transition: opacity 0.2s ease;
    }

    .activities-right-column {
        flex: 0 0 100%;
    }

    .vertical-attribution {
        display: none; /* Hide vertical attribution on small screens */
    }
}

/* --- 8. Made In Section Styles --- */
.made-in-section {
    background-color: var(--color-bg-dark);
    height: 300vh; /* The taller this is, the longer the animation takes to scroll through */
    position: relative;
    z-index: 3; /* Over activities section */
}

.made-in-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.made-in-text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Keep text behind the images */
    pointer-events: none;
}

.made-in-text {
    position: absolute;
    font-size: 9.5vw; /* Reduced from 13vw */
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    color: var(--color-text-primary);
    text-align: center;
    width: 100%;
    left: 0;
    transition: transform 0.1s ease-out; /* Smooths the mousewheel jumps */
    will-change: transform;
}

.top-text {
    top: 50%;
    transform: translateY(-100%);
}

.bottom-text {
    top: 50%;
    transform: translateY(0);
}

.made-in-gallery {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img-wrapper {
    position: absolute;
    width: 25vw;
    max-width: 450px;
    min-width: 280px;
    height: 65vh;
    max-height: 650px;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stacking Order */
.img-center { z-index: 5; transform: scale(0); opacity: 0; }
.img-2, .img-4 { z-index: 4; transform: scale(0); opacity: 0; }
.img-1, .img-5 { z-index: 3; transform: scale(0); opacity: 0; }

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Disabled until animation finishes */
}

.gallery-arrow.active {
    pointer-events: auto; /* Enable clicks once fully open */
}

.gallery-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.6);
}

.gallery-arrow.disabled {
    opacity: 0.2 !important; /* Visual cue when no more images */
    cursor: not-allowed;
    pointer-events: none;
}

/* Arrow positioning fixed to the gallery edges */
.left-arrow { left: 5%; }
.right-arrow { right: 5%; }


/* Responsive tweaks for smaller screens */
@media (max-width: 768px) {
    .made-in-text {
        font-size: 15vw; /* Reduced from 20vw */
    }
    .gallery-img-wrapper {
        width: 60vw;
    }
    /* Removed the display: none on .img-1 and .img-5 so all 5 images can be swiped */
}

/* --- 9. Cities Section Styles --- */
.cities-section {
    background-color: #f9f1e1; /* CHANGED: Creamy off-white background */
    color: var(--color-bg-dark); /* CHANGED: Dark text for contrast */
    padding: 100px 0;
    position: relative;
    z-index: 4; 
}

.cities-container {
    display: flex;
    justify-content: space-between;
    gap: 5%;
}

.cities-left-column {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    padding-right: 40px;
}

.cities-heading {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 60px;
}

.cities-list {
    margin-bottom: 50px;
}

.city-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* CHANGED: Dark subtle border */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.city-item a {
    display: block;
    padding: 20px 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-bg-dark); /* CHANGED: Dark link text */
    transition: opacity 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.city-item a:hover {
    opacity: 0.6;
}

.country-code {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px; 
}

.btn-all-cities {
    background-color: var(--color-bg-dark); /* CHANGED: Dark background for button */
    color: var(--color-text-primary); /* CHANGED: White text for button */
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    transition: background-color 0.2s;
}

.btn-all-cities:hover {
    background-color: #333333; /* Slightly lighter dark on hover */
}

.cities-right-column {
    flex: 0 0 50%;
}

.city-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.city-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Smooth fade transition for the image and text swap */
.city-img, 
.city-vertical-attribution-top, 
.city-vertical-attribution-bottom {
    transition: opacity 0.2s ease-in-out;
}

/* Class applied by JS to fade elements out before swapping content */
.fade-out {
    opacity: 0;
}

.city-vertical-attribution-top,
.city-vertical-attribution-bottom {
    position: absolute;
    right: 0;
    writing-mode: vertical-rl;
    text-align: left;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 24px;
    background-color: rgba(26, 26, 26, 0.3); /* Slight dark fade behind text for readability */
}

.city-vertical-attribution-top {
    top: 0;
    transform: rotate(180deg); /* Reads top to bottom */
}

.city-vertical-attribution-bottom {
    bottom: 0;
    transform: rotate(180deg);
}

/* Responsive Styles for Cities */
@media (max-width: 992px) {
    .cities-heading {
        font-size: 40px;
    }
    .city-item a {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cities-container {
        flex-direction: column;
        gap: 60px;
    }
    .cities-left-column {
        flex: 0 0 100%;
        padding-right: 0;
    }
    .cities-right-column {
        flex: 0 0 100%;
    }
}

/* --- 10. Why Peerspace Section Styles --- */
.why-peerspace-section {
    background-color: var(--color-bg-dark); /* CHANGED: Dark background */
    color: #f9f1e1; /* CHANGED: Cream text */
    padding: 120px 0;
    position: relative;
    overflow: hidden; /* Contains the giant background text so it doesn't cause horizontal scrolling */
    z-index: 5;
}

.why-bg-text {
    position: absolute;
    top: 0; 
    left: 5%; /* Aligned to the left container margin */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns text to the left instead of center */
    justify-content: flex-start;
    font-size: 14vw; /* Reduced from 20vw to match the design */
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    color: #f9f1e1; /* CHANGED: Cream text */
    z-index: 0;
    pointer-events: none; /* Prevents the text from interfering with clicks */
}

.why-bg-text .bg-peerspace {
    padding-left: 8%; /* Indents the word 'Peerspace' to stagger it */
}

.why-container {
    position: relative;
    z-index: 1; /* Keeps content above the giant background text */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin-top: 15vw; /* Pushes image down so it perfectly overlaps the 'Peerspace' text */
}

.why-left-column {
    flex: 1;
    max-width: 50%;
}

.why-image-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5; /* Keeps the images consistently sized */
    overflow: hidden;
}

.why-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.why-img.active {
    opacity: 1;
    z-index: 2;
}

.why-right-column {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 5%;
}

.why-text-track {
    position: relative;
}

.why-text-slide {
    position: absolute; /* Stacked by default */
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none;
}

.why-text-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative; /* The active slide takes up real space so the controls below it don't jump */
}

.why-heading {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.why-text {
    font-size: 18px;
    line-height: 1.5;
    color: #f9f1e1; /* CHANGED: Cream text */
    opacity: 0.9; /* Slight fade for readability hierarchy */
}

.why-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.why-arrow {
    background: none;
    border: none;
    font-size: 24px;
    color: #f9f1e1; /* CHANGED: Cream arrows */
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.2s;
}

.why-arrow:hover:not(.disabled) {
    transform: scale(1.1);
}

.why-arrow.disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.why-counter {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .why-bg-text {
        font-size: 16vw; /* Reduced to stop immediate clipping on tablets */
    }
    .why-container {
        flex-direction: column;
        gap: 40px;
        margin-top: 10vw; /* Reduced to match the smaller text */
    }
    .why-left-column, .why-right-column {
        max-width: 100%;
        width: 100%;
    }
    .why-right-column {
        padding-right: 0;
    }
    .why-heading {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .why-peerspace-section {
        padding: 60px 0; /* Tighter padding for mobile */
    }
    .why-bg-text {
        position: relative; /* Takes it out of the background layer */
        font-size: 15vw; /* Scales perfectly to fit the screen width */
        margin-bottom: 24px;
        padding: 0 5%; /* Matches the side margins of the container */
    }
    .why-bg-text .bg-peerspace {
        padding-left: 0; /* Removes the indent so it aligns perfectly left */
    }
    .why-container {
        margin-top: 0; /* Removes the overlap margin since the text is stacked normally now */
        padding: 0 5%;
    }
}

/* --- 11. Host Section Styles --- */
.host-section {
    background-color: var(--color-bg-dark); 
    padding: 120px 0;
    color: var(--color-text-primary);
    position: relative;
    z-index: 5;
}

.host-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px; /* Provides nice breathing room between image and text */
}

.host-image-wrapper {
    flex: 1;
    max-width: 50%;
}

.host-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.host-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 45%;
}

.host-title {
    font-size: 56px;
    font-weight: 700; 
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.host-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.host-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-list-space {
    background-color: var(--color-text-primary);
    color: var(--color-bg-dark);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn-list-space:hover {
    background-color: #d0d0d0;
}

/* Mobile Responsiveness for Host Section */
@media (max-width: 992px) {
    .host-title {
        font-size: 40px;
    }
    .host-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .host-container {
        flex-direction: column;
        padding: 60px 5%;
    }
    .host-image-wrapper, 
    .host-content {
        max-width: 100%;
        width: 100%;
    }
    .host-title {
        font-size: 36px;
        margin-bottom: 24px;
    }
}

/* --- 12. Footer Styles --- */
.main-footer {
    background-color: #000000; /* Pitch black background */
    color: var(--color-text-primary);
    padding: 80px 0 40px 0;
    position: relative;
    z-index: 5;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-col {
    flex: 0 0 12%; 
}

/* Recreating the stacked logo look with CSS */
.footer-logo {
    font-size: 52px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -2px;
    margin: 0;
}

.footer-links-col {
    flex: 1;
    min-width: 130px;
}

.footer-links-col h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-col a {
    font-size: 15px;
    color: #B0B0B0; /* Muted gray text */
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: #FFFFFF;
}

.footer-bottom-wrapper {
    display: flex;
    flex-direction: column;
}

.footer-copyright {
    text-align: right;
    color: #B0B0B0;
    font-size: 13px;
    margin-bottom: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle divider line */
}

.footer-bottom-left {
    color: #B0B0B0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-bottom-left a {
    text-decoration: underline;
    color: #B0B0B0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.footer-bottom-left a:hover {
    color: #FFFFFF;
}

.footer-bottom-left i {
    font-size: 20px;
    text-decoration: none;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.footer-socials a {
    color: #FFFFFF;
    font-size: 24px;
    transition: opacity 0.2s ease;
}

.footer-socials a:hover {
    opacity: 0.7;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 992px) {
    .footer-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-logo-col {
        grid-column: span 3;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 0 40px 0;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-logo-col {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column-reverse; /* Stacks socials on top of language on mobile */
        gap: 32px;
        align-items: flex-start;
    }
    .footer-copyright {
        text-align: left;
        margin-top: 24px;
    }
}

/* --- 13. Host Page Hero Section --- */
.host-page-hero {
    display: flex;
    background-color: #FFFFFF;
    min-height: calc(100vh - 75px);
    margin-top: 75px; /* Pushes content strictly below the black header */
    align-items: stretch;
}

.host-hero-text-col {
    flex: 0 0 45%; /* Takes up 45% of the screen width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5% 0 8%; /* Centers text block aesthetically */
}

.host-title-main {
    font-size: 56px;
    font-weight: 900;
    color: var(--color-bg-dark);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.host-subtitle-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-bg-dark);
    line-height: 1.4;
    margin-bottom: 40px;
    max-width: 90%;
}

.host-signup-form {
    width: 100%;
    max-width: 480px;
}

.host-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.host-input-group label {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-bg-dark);
    margin-bottom: 12px;
}

.host-input-group input {
    font-size: 18px;
    padding: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 0; /* Sharp edges */
    outline: none;
    color: var(--color-text-search);
}

.host-input-group input::placeholder {
    color: #C0C0C0;
}

.btn-get-started {
    width: 100%;
    background-color: #9D72FF; /* Distinct Purple */
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    padding: 18px;
    border: none;
    border-radius: 0; /* Sharp edges */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-get-started:hover {
    background-color: #885ce6;
}

.host-hero-img-col {
    flex: 0 0 55%; /* Takes up remaining 55% */
    position: relative;
}

.host-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.host-img-caption {
    position: absolute;
    bottom: 24px;
    right: 24px;
    text-align: right;
    color: var(--color-bg-dark);
    font-size: 12px;
    opacity: 0.8;
}

.host-img-caption .caption-name {
    font-weight: 900;
    margin-bottom: 4px;
}

/* Responsive adjustments for Host Page */
@media (max-width: 1100px) {
    .host-title-main {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .host-page-hero {
        flex-direction: column-reverse; /* Flips order so Image is on top */
        margin-top: 60px; /* Accounts for mobile header height */
    }

    .host-hero-text-col {
        flex: auto;
        width: 100%;
        padding: 40px 5% 80px 5%;
        align-items: center;
        text-align: center;
    }

    .host-title-main {
        font-size: 42px;
    }

    .host-subtitle-main {
        font-size: 18px;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .host-signup-form {
        max-width: 100%;
    }

    .host-input-group {
        text-align: left; /* Keeps the label left-aligned while the rest is centered */
    }

    .host-hero-img-col {
        flex: auto;
        width: 100%;
        height: 50vh; /* Fixed height for image on mobile */
    }

    .host-main-img {
        height: 100%;
    }
}

/* --- 14. Autocomplete Predictive Text Styles --- */
.autocomplete-group {
    position: relative; /* Crucial so the dropdown positions itself exactly under this specific input */
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%; /* Pushes it exactly below the input group */
    left: 0;
    width: 100%;
    background-color: var(--color-text-primary);
    border: 1px solid #E0E0E0;
    border-top: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}

.autocomplete-dropdown.active {
    display: block; /* Shown via JavaScript */
}

.autocomplete-item {
    padding: 12px 16px;
    font-size: 16px;
    color: var(--color-bg-dark);
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: var(--color-bg-light);
}

.autocomplete-no-results {
    padding: 12px 16px;
    font-size: 14px;
    color: #777;
    font-style: italic;
}