/* Custom Styles for VAVERAN Website - Premium Minimalist Design */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Global Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Playfair Display Font Utility */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Header Styles - Transparent to Solid on Scroll */
#mainHeader {
    background: transparent;
}

#mainHeader.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#mainHeader.scrolled .nav-link,
#mainHeader.scrolled #langBtn,
#mainHeader.scrolled #mobileMenuBtn,
#mainHeader.scrolled a[href="index.html"] {
    color: #1f2937;
}

#mainHeader.scrolled .nav-link:hover,
#mainHeader.scrolled #langBtn:hover,
#mainHeader.scrolled #mobileMenuBtn:hover {
    color: #000000;
}

/* Hero Button - Premium Minimalist Style */
.hero-btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.15em;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.hero-btn:hover::before {
    left: 0;
}

.hero-btn:hover {
    border-color: white;
    transform: translateY(-2px);
}

/* Language Dropdown Animation */
#langDropdown {
    animation: fadeInDown 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Animation */
#mobileMenu {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.hidden {
    max-height: 0;
    overflow: hidden;
}

#mobileMenu:not(.hidden) {
    max-height: 500px;
}

/* Product Card Hover Effect */
.product-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Category Tab Active State */
.category-tab.active {
    background-color: #000000;
    color: white;
}

.sub-category-tab.active {
    background-color: #1f2937;
    color: white;
}

/* Image Hover Effects - Smooth and Elegant */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom Scrollbar - Minimalist */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Hide Scrollbar Utility */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* No Scrollbar Utility - hides vertical scrollbars, keeps scrolling (Chrome, Safari, Firefox, Edge) */
.no-scrollbar {
    -ms-overflow-style: none;   /* IE, legacy Edge */
    scrollbar-width: none;      /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;              /* Chrome, Safari, Opera, Chromium Edge */
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-7xl {
        font-size: 3.5rem;
    }
    
    .text-9xl {
        font-size: 5rem;
    }
    
    .text-[10rem] {
        font-size: 5rem;
    }
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Header Sticky Effect */
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

/* Product Grid Animation */
#productsGrid {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Button Styles */
a[href*="contact.html"],
a[href*="products.html"] {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

a[href*="contact.html"]:hover,
a[href*="products.html"]:hover {
    transform: translateY(-2px);
}

/* Image Container Styles */
.relative.group img {
    will-change: transform;
}

/* Smooth Transitions for Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Link Hover */
footer a {
    transition: color 0.3s ease;
}

/* Ensure proper font rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
