/* ===== HOMEPAGE STYLES ===== */

/* Hero Section */
.hero-section {
    min-height: 85vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
    position: relative;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-4.0.3') center/cover;
    z-index: 1;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--bs-secondary-rgb), 0.95), rgba(var(--bs-primary-rgb), 0.98));
    z-index: 2;
}

/* Hero Video */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1500px) rotateY(-3deg) rotateX(3deg);
    transition: transform 0.5s ease;
    margin: 0 auto;
}

.video-frame:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}

.showcase-video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Decorative Elements */
.decorative-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 1;
    pointer-events: none;
}

.decorative-element-1 {
    width: 220px; 
    height: 220px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.14), rgba(var(--bs-secondary-rgb), 0.08));
    top: -10%; 
    right: 10%;
}

.decorative-element-2 {
    width: 180px; 
    height: 180px;
    background: linear-gradient(135deg, rgba(var(--bs-secondary-rgb), 0.14), rgba(var(--bs-primary-rgb), 0.08));
    bottom: -5%; 
    left: 5%;
}

/* Hero Buttons */
.btn-hero-primary {
    background: var(--brand-light);
    color: var(--bs-secondary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-hero-primary:hover {
    background: var(--bs-primary);
    color: var(--brand-light);
}

.btn-hero-secondary {
    background: rgba(var(--bs-primary-rgb), 0.06);
    color: var(--brand-light);
    padding: 1rem 2rem;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Trust Indicators */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Product Cards */
.product-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-mockup-container {
    position: relative;
    height: 280px;
    background: #f8fafc;
    overflow: hidden;
}

.product-mockup {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-premium:hover .product-mockup {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-premium:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-action:hover {
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-category {
    color: rgba(var(--bs-primary-rgb), 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-black);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-dimensions {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffd700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.rating-text {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-black);
    line-height: 1.2;
}

.price-subtitle {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
    position: relative;
    top: -2px;
}

.btn-product-customize {
    width: 100%;
    background: var(--bs-primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-product-customize:hover {
    background: var(--bs-secondary);
    transform: translateY(-2px);
    color: white;
}

/* Process Section */
.process-mockup {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.process-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.process-video {
    width: 100%;
    height: auto;
    display: block;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-connector {
    height: 2rem;
    width: 2px;
    background: var(--bs-primary);
    margin: 0 auto;
}

.process-decoration-1 {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-secondary-rgb), 0.05));
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.process-decoration-2 {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--bs-secondary-rgb), 0.1), rgba(var(--bs-primary-rgb), 0.05));
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.btn-gallery-view {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #000;
}

.btn-gallery-view:hover {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.testimonial-text {
    font-style: italic;
    color: #4B5563;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.author-avatar-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--bs-primary);
    background-color: #e5e7eb;
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fix for missing or broken images */
.author-avatar:not([src]),
.author-avatar[src=""],
.author-avatar[src="#"],
.author-avatar-container:empty::before,
.author-avatar[style*="display: none"],
.author-avatar:broken {
    content: "";
    background-color: #f0f0f0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Avatar fallback styles */

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--brand-black), #1e293b);
    color: white;
    padding: 4rem 0;
}

.btn-cta-primary {
    background: white;
    color: var(--brand-black);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .video-frame {
        transform: none;
        max-width: 100%;
    }
    
    .decorative-element {
        display: none;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .hero-trust {
        justify-content: center;
        gap: 1rem;
    }
    
    .product-mockup-container {
        height: 220px;
    }
    
    .step-number {
        min-width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .author-avatar-container {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .product-info {
        padding: 1rem;
    }
    
    .step-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .author-avatar-container {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 400px) {
    .author-name, .author-location {
        max-width: 150px;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}
