/* Fabbrica Mebel - Custom Styles */
.brand {
    background-color: rgb(189, 184, 137);
}

.brandDark {
    background-color: rgb(169, 169, 169);
}

.text-brand {
    color: rgb(189, 184, 137);
}

/* Improved transitions and hover effects */
.transition-all-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better shadow effects */
.shadow-premium {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-premium-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Improved button hover states */
.btn-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(189, 184, 137, 0.3);
}

/* Better focus states */
.focus-ring:focus {
    outline: 2px solid rgb(189, 184, 137);
    outline-offset: 2px;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Additional custom styles */
.hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

/* Mobile menu styles */
.mobile-menu-enter {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8B5CF6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}

/* Additional styles from HTML */
body { 
    font-family: 'Manrope', sans-serif; 
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu Styles */
.dropdown-container:hover .dropdown-content {
    display: block !important;
}
.dropdown-content {
    display: none !important;
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-scroll {
    animation: scroll 25s linear infinite;
}
.pause-on-hover:hover .animate-scroll {
    animation-play-state: paused;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Animation for Slider */
.fade-enter {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.fade-enter-active {
    opacity: 1;
}

/* Logo width */
.logo-width {
    width: 8rem;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 99999;
}

.dropdown-menu-inner {
    padding: 4px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
}

.dropdown-title {
    font-weight: 500;
    font-size: 14px;
}

.dropdown-desc {
    font-size: 12px;
    color: #9ca3af;
}

/* Thank You Page Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Thank you page specific - make all content visible by default */
.bg-gradient-to-br .reveal,
.py-16 .reveal,
.py-20 .reveal {
    opacity: 1;
    transform: translateY(0);
}

.success-icon {
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step-card {
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card:hover .step-icon {
    background-color: rgb(189, 184, 137);
    color: white;
}

.step-icon {
    transition: all 0.3s ease;
}

.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-brand {
    transition: all 0.3s ease;
}

.btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(189, 184, 137, 0.3);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.order-number {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(189, 184, 137, 0.2);
    box-shadow: 0 4px 15px rgba(189, 184, 137, 0.1);
}

@media (max-width: 768px) {
    .success-icon {
        width: 5rem;
        height: 5rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
}

/* Shop Page Styles */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Shop Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 50;
    margin-top: 8px;
}

.dropdown-menu-inner {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #b8b889;
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-desc {
    font-size: 12px;
    color: #64748b;
}

/* Shop specific logo width */
.logo-width {
    width: 180px;
    height: auto;
}

/* Contact Page Styles */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgb(189, 184, 137);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgb(169, 169, 169);
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* About Page Styles */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.team-card {
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE FIXES
   ============================================ */

/* Mobile First - Small screens (up to 639px) */
@media (max-width: 639px) {
    /* Hero section adjustments */
    header.relative.h-\[70vh\] {
        height: 60vh;
    }
    
    /* Hero content wrapper positioning */
    .absolute.bottom-12.left-0.right-0 {
        bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero text panel adjustments */
    #hero-text-panel {
        padding: 1rem;
        max-width: 100%;
    }
    
    #hero-title {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Next slide card smaller on mobile */
    #next-slide-card {
        width: 8rem;
        height: 5rem;
    }
    
    /* Social icons smaller */
    .bg-white\/20 {
        padding: 0.5rem;
    }
    
    /* Order button adjustments */
    button.bg-white.rounded-full {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Section padding reduction */
    section.py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Stats section - single column */
    #stats-container h3.text-4xl {
        font-size: 2rem;
    }
    
    /* Services cards height */
    .h-80.rounded-2xl {
        height: 20rem;
    }
    
    /* Partners scroll - smaller text */
    .animate-scroll .text-2xl {
        font-size: 1.25rem;
    }
    
    /* Footer adjustments */
    footer .grid-cols-1 {
        gap: 2rem;
    }
    
    /* Dropdown menu positioning on mobile */
    .dropdown-menu {
        left: 0;
        right: auto;
        min-width: 200px;
    }
}

/* Tablet screens (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    header.relative.h-\[70vh\] {
        height: 65vh;
    }
    
    #hero-title {
        font-size: 1.25rem;
    }
}

/* Medium screens and up (768px+) */
@media (min-width: 768px) {
    /* Reset mobile-specific adjustments */
    .dropdown-menu {
        position: absolute;
        z-index: 99999;
    }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    /* Ensure proper spacing */
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Ensure proper touch targets */
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Dropdowns should work with click on touch */
    .dropdown-menu {
        display: none;
    }
    
    .group:active .dropdown-menu {
        display: block;
    }
}

/* Fix horizontal overflow issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Glass panel adjustments for mobile */
@media (max-width: 639px) {
    .glass-panel {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* Mobile menu specific styles */
#mobile-menu-btn {
    touch-action: manipulation;
}

#mobile-menu-overlay nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
