/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    height: 100%;
    position: relative;
    background: #ffffff;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Full Page Animated Background */
.full-page-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    background: #ffffff;
}

/* Enhanced video overlay with subtle effects */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.01) 0%, transparent 40%);
    z-index: -9;
}

/* Stars container - remove for white background */
.stars-container {
    display: none;
}

/* Small stars - hide for white background */
.star {
    display: none;
}

/* Shooting star - hide for white background */
.shooting-star {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.brand-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.2);
    opacity: 1 !important;
}

.brand-logo img:hover {
    filter: brightness(1.4);
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffa500, #ff6347);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.lang-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

.lang-btn.active {
    background: #ffa500;
    color: #000;
    border-color: #ffa500;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    width: 50px;
    height: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-toggle:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3);
}

.theme-toggle-slider {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.1);
    left: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.6s ease;
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon.moon-icon {
    opacity: 0;
    position: absolute;
    transform: rotate(-180deg);
}

.theme-icon.sun-icon {
    opacity: 1;
    position: absolute;
    transform: rotate(0deg);
}

/* Dark Theme */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] .full-page-video-background {
    background: #1a1a1a;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.4);
}

[data-theme="dark"] .theme-toggle-slider {
    left: 27px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
}

[data-theme="dark"] .theme-icon.sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon {
    stroke: #fff;
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .brand-logo img {
    filter: brightness(1.4);
}

/* Dark theme for collections */
[data-theme="dark"] .collection-header h2 {
    color: #fff;
}

[data-theme="dark"] .collection-header p {
    color: #ccc;
}

[data-theme="dark"] .tab-btn {
    background: linear-gradient(135deg, #333 0%, #444 100%);
    color: #fff;
    border-color: rgba(255, 165, 0, 0.3);
}

[data-theme="dark"] .tab-btn:hover {
    border-color: rgba(255, 165, 0, 0.6);
}

[data-theme="dark"] .tab-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

[data-theme="dark"] .carpet-card {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .carpet-card:hover {
    border-color: rgba(255, 165, 0, 0.5);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 165, 0, 0.3);
}

[data-theme="dark"] .carousel-nav {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .carousel-nav:hover {
    background: rgba(255, 165, 0, 0.95);
}

[data-theme="dark"] .carousel-nav svg {
    stroke: #fff;
}

[data-theme="dark"] .carousel-nav:hover svg {
    stroke: #000;
}

[data-theme="dark"] .pagination-dot {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .pagination-dot:hover {
    background: rgba(255, 165, 0, 0.7);
}

[data-theme="dark"] .carousel-progress {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carpet-card:not(.loaded) {
    background: #404040;
}

[data-theme="dark"] .carpet-card:not(.loaded)::after {
    border-color: #333;
    border-top-color: #ff6b35;
}

@keyframes carpetGrowthDark {
    0% { 
        transform: scale(1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 1px 4px rgba(0, 0, 0, 0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.3),
            0 1px 4px rgba(0, 0, 0, 0.2);
    }
}

[data-theme="dark"] .carpet-card {
    animation: carpetGrowthDark 10s ease-in-out infinite;
}

[data-theme="dark"] .zoom-modal-content {
    background: #333;
}

[data-theme="dark"] .zoom-info h3 {
    color: #fff;
}

[data-theme="dark"] .zoom-info p {
    color: #ccc;
}

[data-theme="dark"] .nav-link {
    color: #fff;
}

[data-theme="dark"] .nav-link:hover {
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
}

[data-theme="dark"] .lang-btn {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: #fff;
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 165, 0, 0.2);
}

[data-theme="dark"] .lang-btn.active {
    background: #ffa500;
    color: #000;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 165, 0, 0.2);
}

[data-theme="dark"] .theme-icon {
    color: #fff;
}

[data-theme="dark"] .language-switcher {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .theme-switcher {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .page-title,
[data-theme="dark"] .page-subtitle,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-description {
    color: #ffffff !important;
    opacity: 1 !important;
}

[data-theme="dark"] .hamburger span {
    background: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Product Hero Section */
.product-hero {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.product-hero .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-details {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-overlay:hover .view-details {
    background: white;
    color: #333;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
    text-shadow: none;
}

.product-info p {
    color: #333;
    font-size: 0.95rem;
    text-shadow: none;
    opacity: 0.9;
}

/* Collections Section */
.collections-section {
    padding: 40px 0 20px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.collection-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid rgba(255, 165, 0, 0.2);
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Collections Container */
.collections-container {
    padding: 20px 0 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.collection-grid {
    display: block;
}

.collection-header {
    text-align: center;
    margin-bottom: 50px;
}

.collection-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.collection-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* Carpets Grid */
.carpets-grid {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding: 0;
    align-items: center;
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    padding: 0 70px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.carpet-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    width: max-content;
    gap: 16px;
    will-change: transform;
    backface-visibility: hidden;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.06);
    opacity: 0.9;
}

.carousel-nav:hover {
    background: rgba(255, 165, 0, 0.95);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(255, 165, 0, 0.25),
        0 4px 12px rgba(255, 165, 0, 0.15);
    opacity: 1;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #333;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.carousel-nav:hover svg {
    stroke: #fff;
    transform: scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    box-sizing: border-box;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    border: none;
    outline: none;
    flex-shrink: 0;
}

.pagination-dot:hover {
    background: rgba(255, 165, 0, 0.6);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transform: scale(1.3);
    box-shadow: 
        0 4px 16px rgba(255, 165, 0, 0.4),
        0 2px 8px rgba(255, 165, 0, 0.2);
}

.pagination-dot.active::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.2) 0%, transparent 70%);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 1px;
    transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
}

.carpet-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 3px 15px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    position: relative;
    aspect-ratio: 3/4;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    flex: 0 0 224px;
    transform-origin: center;
    user-select: none;
    will-change: transform;
    backface-visibility: hidden;
    contain: layout style paint;
    animation: carpetGrowth 10s ease-in-out infinite;
}

.carpet-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 165, 0, 0.3);
    border-color: rgba(255, 165, 0, 0.5);
}

.carpet-card:focus {
    outline: 2px solid rgba(255, 165, 0, 0.8);
    outline-offset: 2px;
}

.carpet-card:active {
    transform: translateY(-8px) scale(1.01);
}

.carpet-card:not(.loaded) {
    background: #f5f5f5;
}

.carpet-card:not(.loaded)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: carpetSpin 1s linear infinite;
}

@keyframes carpetSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes carpetGrowth {
    0% { 
        transform: scale(1);
        box-shadow: 
            0 3px 15px rgba(0, 0, 0, 0.05),
            0 1px 3px rgba(0, 0, 0, 0.04);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 8px 25px rgba(0, 0, 0, 0.08),
            0 3px 8px rgba(0, 0, 0, 0.06);
    }
    100% { 
        transform: scale(1);
        box-shadow: 
            0 3px 15px rgba(0, 0, 0, 0.05),
            0 1px 3px rgba(0, 0, 0, 0.04);
    }
}

.carpet-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transform: scale(1);
    will-change: transform;
    animation: carpetZoomOut 2.4s ease-in-out forwards;
}

.carpet-card:hover img {
    animation: carpetZoomIn 5s ease-in-out forwards;
}

@keyframes carpetZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.4); }
}

@keyframes carpetZoomOut {
    0% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.carpet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 107, 53, 0.05) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.carpet-card:hover::before {
    opacity: 1;
}



.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.section-description {
    font-size: 1.125rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

/* Infinite Scroll Container - Fill bottom space */
.infinite-scroll-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.02);
    border: 8px solid rgba(0, 0, 0, 0.05);
    margin: 40px 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* Gallery Navigation Buttons - Remove completely */
.gallery-nav-btn {
    display: none;
}

.gallery-nav-left {
    display: none;
}

.gallery-nav-right {
    display: none;
}

.scroll-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carpet-image {
    flex: 0 0 auto;
    width: 150px;
    height: 180px;
    margin-right: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carpet-image:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carpet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease; /* Simpler transition */
    border-radius: 11px;
    filter: brightness(1) contrast(1) saturate(1); /* Normal colors */
}

.carpet-image:hover img {
    transform: scale(1.05); /* Simple scale on hover */
    filter: brightness(1.05) contrast(1.05) saturate(1.1); /* Subtle enhancement */
}

/* Infinite scroll animation */
@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.infinite-scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 3rem 0 1rem;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-brand p {
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: #fff;
        padding: 1rem 0;
        display: block;
        font-family: 'Inter', sans-serif;
    }

    .nav-menu .nav-link:hover {
        color: #ffa500;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu.active .lang-btn {
        color: #fff;
        border-color: rgba(255, 165, 0, 0.3);
        background: rgba(255, 165, 0, 0.1);
    }
    
    .nav-menu.active .lang-btn.active {
        background: #ffa500;
        color: #000;
        border-color: #ffa500;
    }

    .nav-menu.active .theme-toggle {
        width: 45px;
        height: 25px;
    }
    
    .nav-menu.active .theme-toggle-slider {
        width: 18px;
        height: 18px;
        left: 2px;
    }
    
    [data-theme="dark"] .nav-menu.active .theme-toggle-slider {
        left: 25px;
    }
    
    .nav-menu.active .theme-icon {
        width: 10px;
        height: 10px;
    }

    .product-hero {
        padding: 100px 0 25px;
    }

    .page-title {
        font-size: 2.5rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 1.2rem;
        font-family: 'Inter', sans-serif;
    }

    .page-subtitle {
        font-size: 1.1rem;
        font-weight: 400;
        max-width: 90%;
        letter-spacing: -0.01em;
        margin-bottom: 2rem;
        font-family: 'Inter', sans-serif;
    }

    .brand-logo img {
        height: 45px;
    }

    .collections-section {
        padding: 30px 0 15px;
    }

    .collection-tabs {
        gap: 15px;
        margin-bottom: 30px;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 12px 24px;
        min-width: 120px;
    }

    .collections-container {
        padding: 15px 0 40px;
    }

    .collection-header h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .collection-header p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .carousel-container {
        padding: 0 55px;
    }

    .carousel-nav {
        width: 44px;
        height: 44px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    .carpet-card {
        flex: 0 0 196px;
        aspect-ratio: 3/4.5;
    }

    .pagination-dot {
        width: 9px;
        height: 9px;
    }

    .carousel-pagination {
        gap: 8px;
        padding: 0 15px;
        margin-top: 8px;
    }

    .infinite-scroll-container {
        height: 280px;
        margin: 0.5rem auto;
        max-width: 95%;
        border-radius: 20px;
        border: 6px solid rgba(0, 0, 0, 0.05);
    }

    .carpet-image {
        width: 180px;
        height: 220px;
        margin-right: 15px;
        margin-top: 30px;
        border-radius: 15px;
    }

    .carpet-image:hover {
        transform: perspective(800px) rotateY(-3deg) scale(1.08) translateY(-6px);
    }

    .language-switcher {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-left: none;
    }

    .theme-switcher {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        border-left: none;
    }
    
    /* Gallery Navigation Mobile Styles */
    .gallery-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .gallery-nav-left {
        left: 15px;
    }
    
    .gallery-nav-right {
        right: 15px;
    }
    
    /* Zoom Modal Mobile Styles */
    .zoom-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .zoom-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .product-hero {
        padding: 90px 0 20px;
    }

    .page-title {
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin-bottom: 1rem;
        font-family: 'Inter', sans-serif;
    }

    .page-subtitle {
        font-size: 1rem;
        font-weight: 400;
        max-width: 95%;
        letter-spacing: -0.01em;
        font-family: 'Inter', sans-serif;
    }

    .brand-logo img {
        height: 40px;
    }

    .section-title {
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        font-family: 'Inter', sans-serif;
    }

    .section-description {
        font-size: 0.95rem;
        font-weight: 400;
        letter-spacing: -0.01em;
        font-family: 'Inter', sans-serif;
    }

    .collections-section {
        padding: 25px 0 10px;
    }

    .collection-tabs {
        gap: 10px;
        margin-bottom: 25px;
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        min-width: 140px;
    }

    .collections-container {
        padding: 10px 0 30px;
    }

    .collection-header h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .collection-header p {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .carousel-container {
        padding: 0 45px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 14px;
        height: 14px;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .carpet-card {
        flex: 0 0 168px;
        aspect-ratio: 3/5;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
    }

    .carousel-pagination {
        gap: 6px;
        margin-top: 8px;
        padding: 0 10px;
    }

    .lang-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        font-family: 'Inter', sans-serif;
    }

    .gallery-nav-btn {
        width: 45px;
        height: 45px;
    }

    .gallery-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .gallery-nav-left {
        left: 10px;
    }

    .gallery-nav-right {
        right: 10px;
    }
}

/* Zoom Modal for Detailed View */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.zoom-modal.active {
    display: flex;
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zoom-modal img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    object-fit: contain;
    margin-bottom: 20px;
    /* Security measures */
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.zoom-info {
    text-align: center;
    max-width: 500px;
}

.zoom-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}

.zoom-info p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* AI FAQ Widget */
.ai-faq-widget {
    position: fixed;
    bottom: 20px;
    right: 100px;
    z-index: 9999;
}

.ai-faq-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    animation: aiFaqPulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.ai-faq-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.ai-faq-button.expanded {
    width: 400px;
    height: auto;
    min-height: 500px;
    border-radius: 20px;
    bottom: 20px;
    right: 20px;
    animation: none;
}

.ai-faq-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 2;
}

.ai-faq-button.expanded .ai-faq-icon {
    top: 20px;
    left: 20px;
    transform: none;
    width: 30px;
    height: 30px;
}

.ai-faq-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: all 0.3s ease;
}

.ai-faq-button.expanded .ai-faq-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes aiFaqPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.7);
    }
}

.ai-faq-content-inside {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 60px 20px 20px 20px;
    height: 100%;
    overflow-y: auto;
}

.ai-faq-button.expanded .ai-faq-content-inside {
    opacity: 1;
    visibility: visible;
}

.ai-faq-header-inside {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.ai-faq-header-inside h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.ai-faq-header-inside p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.faq-items-inside {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item-inside {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item-inside:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-question-inside {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question-inside::after {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.faq-answer-inside {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
} 