/* 
 * HOMEPAGE SPECIFIC CSS
 * Custom styles for the interactive homepage
 */

/* =========================================
   1. HERO SECTION (Premium Parallax)
   ========================================= */
.hero-homepage {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-homepage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(13, 10, 8, 0.9) 100%);
    z-index: 1;
}

.hero-homepage-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease forwards;
}

.hero-homepage h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-homepage .lead {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* =========================================
   2. USP SECTION (Why Buy)
   ========================================= */
.usp-section {
    padding: 6rem 0;
    background-color: var(--light-color);
    position: relative;
}

.usp-card {
    background: var(--white-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.usp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--white-color) 0%, #fdfbf7 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.usp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(94, 75, 53, 0.1);
    border-color: rgba(94, 75, 53, 0.2);
}

.usp-icon {
    width: 70px;
    height: 70px;
    background: var(--gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.usp-card:hover .usp-icon {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.1);
}

.usp-title {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black-color);
}

/* =========================================
   3. ACTION OFFER (Countdown)
   ========================================= */
.action-offer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2a27 100%);
    color: var(--white-color);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Glow effects */
.action-offer::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 90, 43, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.offer-badge {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
    animation: pulseGlow 2s infinite;
}

.countdown-wrapper {
    display: flex;
    gap: 15px;
    margin: 2rem 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 1rem;
    min-width: 80px;
    text-align: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--serif-font);
    line-height: 1;
    display: block;
    color: #e74c3c;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.offer-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.offer-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.price-block {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 1.2rem;
}

.price-new {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
}

/* =========================================
   4. B2B SECTION (Architects & Designers)
   ========================================= */
.b2b-section {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.b2b-content {
    background: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.b2b-image {
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 20px rgba(94, 75, 53, 0.3);
}

.loyalty-badge span {
    font-size: 1.5rem;
}

/* =========================================
   5. INTERACTIVE GALLERY GRID
   ========================================= */
.interactive-gallery {
    padding: 6rem 0;
    background-color: var(--gray-color);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    margin-bottom: 30px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-info {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item h4 {
    color: white;
    margin-bottom: 5px;
    font-family: var(--serif-font);
}

.gallery-item .price {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: white;
    color: var(--black-color);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Utilities for JS animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}