﻿
:host {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-color: #212529;
}

.btn-pill {
    border-radius: 50rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-pill:hover {
        transform: scale(1.05);
    }

/* Hero Section with Parallax */
.hero-section {
    height: 100vh;
    min-height: 600px;
    overflow: hidden; /* or just delete the property */
    position: relative;
    background-color: #000;
}


.hero-bg {
    position: fixed; /* KEY: fixed instead of absolute */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/products/adu/adu.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

#philosophy {
    background-color: rgba(255,255,255,0.88) !important;
    position: relative;
    z-index: 2;
}

#packages {
    background-color: rgba(0,0,0,0.92) !important;
    position: relative;
    z-index: 5;
}

#case-studies {
    position: relative;
    z-index: 5;
}

#features {
    position: relative;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge-blur {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Glassmorphism Hover Cards */
.hover-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 1.5rem;
    border: 1px solid #f8f9fa;
}

    .hover-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.1) !important;
    }

.card-img-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.7s ease-out;
    }

.hover-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-icon-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 10;
}

/* Horizontal Scroll Case Studies */
.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 1.5rem;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch; /* smooth on iOS */
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

    .horizontal-scroll::-webkit-scrollbar {
        display: none; /* Chrome */
    }

.case-card {
    flex: 0 0 auto;
    width: 85vw;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
}

    .case-card img {
        /* ... your existing properties ... */
        -webkit-user-drag: none; /* Prevents the ghost image from detaching */
        user-drag: none;
    }

/* ADD THIS NEW RULE: Prevents accidental clicks while dragging */
.horizontal-scroll.is-dragging * {
    pointer-events: none !important;
}

@media (min-width: 768px) {
    .case-card {
        width: 550px;
    }
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.7s ease;
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Features */
.feature-icon {
    font-size: 2.5rem;
    color: #212529;
    margin-bottom: 1rem;
}

/* Final CTA */
.cta-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(33,37,41,0.85);
}

.scroll-section {
    /* Height determines how long the user has to scroll 
     to complete the animation. 400vh = 4x the screen height.
            */
    height: 400vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 150px; /* Offset to sit right below the 100px fixed nav */
    height: calc(100vh - 150px); /* Adjust height so it doesn't overflow bottom */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 'contain' ensures the floorplan isn't cropped, you can change to 'cover' if preferred */
    object-fit: contain;
    will-change: transform, opacity;
}

#real-kitchen {
    opacity: 0; /* Starts hidden */
}

.progress-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid white;
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

@keyframes custom-bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8,0,1,1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0,0,0.2,1);
    }
}

.custom-animate-bounce {
    animation: custom-bounce 1s infinite;
}

.intro-arrow {
    width: 32px;
    height: 32px;
    color: #9ca3af; /* Matches text-gray-400 */
    margin: 0 auto;
}
