/* Homepage CSS - Zenith Parfume */

/* Sticky Footer - Footer selalu di bawah */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}

/* Homepage specific styles */
.homepage-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.homepage-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.homepage-banner h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.homepage-banner p {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.featured-products-title {
    color: #7b2ff2;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
}

.featured-products-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #7b2ff2, #5a1db8);
    border-radius: 2px;
}

.featured-product-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
    position: relative;
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.featured-product-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.4s ease;
}

.featured-product-card:hover .featured-product-image {
    transform: scale(1.05);
}

.featured-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-product-card:hover .featured-product-image::before {
    opacity: 1;
}

.featured-product-body {
    padding: 25px;
}

.featured-product-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-product-price {
    color: #7b2ff2;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.featured-product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

.order-now-btn {
    background: linear-gradient(135deg, #7b2ff2, #5a1db8);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(123, 47, 242, 0.3);
}

.order-now-btn:hover {
    background: linear-gradient(135deg, #5a1db8, #4a1a9e);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(123, 47, 242, 0.4);
    text-decoration: none;
}

.order-now-btn:active {
    transform: translateY(-1px);
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
    animation-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .homepage-banner {
        padding: 40px 15px;
    }
    
    .homepage-banner h1 {
        font-size: 2.2rem;
    }
    
    .homepage-banner p {
        font-size: 1.1rem;
    }
    
    .featured-products-title {
        font-size: 2rem;
    }
    
    .featured-product-image {
        height: 200px;
    }
    
    .featured-product-body {
        padding: 20px;
    }
    
    .featured-product-title {
        font-size: 1.2rem;
    }
    
    .featured-product-price {
        font-size: 1.1rem;
    }
    
    .order-now-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .homepage-banner {
        padding: 30px 10px;
    }
    
    .homepage-banner h1 {
        font-size: 1.8rem;
    }
    
    .homepage-banner p {
        font-size: 1rem;
    }
    
    .featured-products-title {
        font-size: 1.8rem;
    }
    
    .featured-product-image {
        height: 180px;
    }
    
    .featured-product-body {
        padding: 15px;
    }
    
    .featured-product-title {
        font-size: 1.1rem;
    }
    
    .featured-product-price {
        font-size: 1rem;
    }
    
    .featured-product-description {
        font-size: 0.9rem;
    }
    
    .order-now-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}