/* Homepage hero layout */
body.homepage {
    overflow-y: auto !important;
    background-color: #000 !important;
}

body.homepage #top-header {
    display: none;
}

body.homepage #main-content {
    padding: 0;
    overflow-y: visible;
}

html {
    scroll-behavior: smooth;
}

.homepage-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.hero-media-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-media-active {
    opacity: 1;
}

/* Ensure unrestored image sits above the video */
#hero-video {
    z-index: 1;
}

#hero-image-unrestored {
    z-index: 2;
}

/* Navbar styling */
.homepage-navbar {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.25s ease;
    z-index: 1050;
}

.homepage-navbar.scrolled {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.homepage-brand {
    font-family: "headline-gothic-atf-rough-n2", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 3rem !important;
    margin-left: 20px;
    transition: font-size 0.75s ease, margin 0.75s ease;
}

.homepage-navbar.scrolled .homepage-brand {
    font-size: 2rem !important;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .homepage-brand {
        font-size: 1.5rem;
    }
}

/* Homepage navbar link */
.homepage-nav-link {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
}

.homepage-nav-link:hover,
.homepage-nav-link:focus {
    color: #ffb6b6;
}

/* Hero overlay content */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    z-index: 3;
}

.hero-overlay-visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-overlay-card {
    max-width: fit-content;
    width: 100%;
    background: rgba(10, 10, 10, 0.75);
    color: #f7f7f7;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero-overlay-text {
    margin: 0 0 1.75rem 0;
    font-size: 2.5rem;
    line-height: 1.6;
    font-family: "inter-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 540;
}

.hero-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.hero-btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 500 !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
    color: #f8f9fa !important;
    text-decoration: none !important;
}

.hero-btn:visited {
    color: #f8f9fa !important;
    text-decoration: none !important;
}

.hero-btn:hover {
    transform: none;
    border-color: #ff4fd8;
    color: #000 !important;
    box-shadow:
        0 0 0 1px rgba(255, 79, 216, 0.6),
        0 0 12px rgba(255, 79, 216, 0.8);
}

@media (max-width: 576px) {
    .hero-overlay-card {
        padding: 1.5rem 1.25rem;
    }

    .hero-overlay-text {
        font-size: 1rem;
    }
}

/* Features section */
.features-section {
    padding: 4rem 0 4.5rem;
    background-color: #f5f5f7;
    color: #111;
}

.features-heading {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 3.5rem !important;
    font-family: "inter-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 540;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 3rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-title {
    font-size: 2.5rem !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.feature-text {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

.feature-illustration {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.feature-illustration-landscape {
    max-width: 960px;
    aspect-ratio: 16 / 9;
}

.feature-illustration-square {
    max-width: 480px;
    aspect-ratio: 1 / 1;
}

.feature-illustration-half {
    flex: 0 0 50%;    /* occupy half of the flex row on desktop */
    width: 50%;
    max-width: 50%;
    aspect-ratio: auto;
    margin-right: 0 !important;  /* keep image+audio the same width */
}

.feature-illustration-half img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
}

.feature-illustration-compare {
    position: relative;
    overflow: hidden;
    /* Let the natural 480x746 image ratio define the height */
    aspect-ratio: auto;
    max-width: 480px;
}

/* Base (restored) image defines natural size */
.image-compare-base {
    display: block;
    width: 100%;
    height: auto;
}

/* Overlay sits on top and clips the original horizontally */
.image-compare-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 33.333% 0 0);  /* start slider at two-thirds across */
}

.image-compare-original {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.image-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.image-compare-handle-line {
    width: 2px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.image-compare-handle-grip {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 576px) {
    .features-section {
        padding: 3rem 0 3.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
    .feature-illustration {
        max-width: 100%;
        margin-right: 1.5rem;
    }
    .feature-illustration-half {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    /* Add horizontal gap between illustration and text on desktop */
    .feature-card {
        gap: 3rem;
    }
}

/* Contact section */
.contact-section {
    padding: 4rem 0 4.5rem;
    background-color: #ffffff;
    color: #111;
}

.contact-heading {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 3.5rem !important;
    font-family: "inter-variable", sans-serif;
    font-variation-settings: "slnt" 0, "wght" 540;
}

.contact-form .form-control {
    border-radius: 12px;
    border-color: #333 !important;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 1px rgba(255, 79, 216, 0.6), 0 0 12px rgba(255, 79, 216, 0.8) !important;
    border-color: #111;
}

.contact-btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    font-weight: 500 !important;
}

.contact-details {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 0 3.5rem;
    }
}


