:root {
    --bg-dark: #0a0a0a;
    --text-dark: #f0f0f0;
    --bg-light: #ffffff;
    --text-light: #1a1a1a;
    --accent: #d4af37;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-center {
    text-align: center;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    font-size: clamp(0.88rem, 1vw, 1rem);
    color: #aaa;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 24px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.section-padding {
    padding: 120px 0;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn:hover {
    color: var(--bg-dark);
}

/* Logo "denimsan" */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 32px;
    text-decoration: none;
    color: inherit;
    letter-spacing: 2px;
    font-weight: 300;
    z-index: 100;
    position: relative;
    line-height: 1;
    white-space: nowrap;
}

.logo strong {
    font-weight: 600;
}

.logo-sub {
    font-size: 10px;
    letter-spacing: 5px;
    opacity: 0.7;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    font-size: 3rem;
    opacity: 0;
}

/* Top Bar */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 0;
    font-size: 0.78rem;
    color: #e0e0e0;
    font-weight: 400;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.site-header.scrolled .top-bar {
    display: none;
    /* Hide top bar on scroll for cleaner navigation */
}

.top-bar .container {
    padding: 0 24px;
    max-width: 100%;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.top-link,
.lang-switch-top {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.top-link:hover,
.lang-switch-top:hover {
    color: white;
}

.separator {
    opacity: 0.3;
}

.top-socials {
    display: flex;
    gap: 12px;
    font-size: 1rem;
}

.top-socials a {
    color: inherit;
    transition: color 0.3s;
}

.top-socials a:hover {
    color: white;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    color: white;
}

.site-header.scrolled {
    background: rgba(8, 8, 12, 0.97);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 25px 0;
}

.left-nav {
    justify-content: flex-start;
}

.right-nav {
    justify-content: flex-end;
}

.desktop-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 30, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 240px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    border-radius: 0 0 6px 6px;
    mix-blend-mode: normal;
    color: #fff;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.dropdown-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

/* Info Card Hover */
.hover-glow:hover {
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-5px);
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    padding: 80px 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid #222;
}

.mobile-nav.active {
    right: 0;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links .nav-link {
    font-size: 1rem;
    letter-spacing: 1.5px;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 14px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--bg-dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 2s ease-in-out, visibility 2s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transform: scale(1.05);
    transition: transform 8s ease-out;
}

.slide.active .hero-media-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 0 20px;
    pointer-events: none;
}

.hero-content .btn {
    pointer-events: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    opacity: 0.8;
}

/* About Section */
.about-section {
    background-color: var(--bg-dark);
    text-align: center;
}

.about-text {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    line-height: 1.4;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 300;
}

/* Collections/Categories Section */
.collections-section {
    background-color: var(--bg-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: stretch;
}

.category-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    color: white;
    cursor: default;
    flex-shrink: 0;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-img-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    flex-shrink: 0;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-img {
    transform: scale(1.04);
}

.category-info {
    padding: 16px 20px;
    background: #000000;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    color: #ffffff;
    word-break: break-word;
    text-transform: uppercase;
}

.category-desc-text {
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* Keep old classes harmless in case still referenced */
.category-overlay,
.category-content,
.category-desc {
    display: none;
}

/* Category Modal */
.category-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.category-modal-content {
    background: #0f111a;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
}

.category-modal-overlay.active .category-modal-content {
    transform: translateY(0);
}

.category-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.category-modal-close:hover {
    color: var(--accent);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-text-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 85vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-img-col img {
        height: 250px;
    }

    .modal-text-col {
        padding: 24px;
    }
}

/* Story / Video Section */
.story-section {
    padding: 150px 0;
    background: var(--bg-dark);
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    max-width: 1200px;
    margin: 60px auto 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #666;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.site-footer {
    background-color: rgba(15, 17, 55, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 0 100px;
    /* Increased bottom padding to avoid fixed buttons overlap */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-col a,
.footer-col p {
    display: block;
    color: #888;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    color: white;
}

/* --- Sticky Language Button (shows while scrolling, all screen sizes) --- */
#lang-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#lang-float.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#lang-float a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.95);
    color: #1a1300;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

#lang-float a:hover {
    transform: scale(1.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 1.8rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1500;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        left: 20px;
    }
}

/* Legacy mobile floating class — hide since we use the unified #lang-float */
.mobile-floating-lang {
    display: none !important;
}

/* Responsive */
@media (max-width: 1300px) {
    .desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .category-card {
        flex: 0 0 38vw !important;
        width: 38vw !important;
        min-width: 38vw !important;
        max-width: 38vw !important;
        height: auto;
    }

    /* --- Horizontal Swipe Carousel for Collections (like ISKO) --- */
    .categories-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        margin-top: 30px;
        padding-bottom: 16px;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .categories-grid .category-card {
        scroll-snap-align: start;
    }

    /* Mobile Top Bar: compact strip with phone + lang switcher */
    .top-bar {
        display: flex !important;
        padding: 6px 0;
        font-size: 0.7rem;
        background: rgba(8, 8, 12, 0.9);
    }

    .top-bar .container {
        padding: 0 16px;
    }

    .top-bar-inner {
        justify-content: space-between;
    }

    /* On mobile, hide left side (email), only show phone + lang */
    .top-bar-left {
        display: none !important;
    }

    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }

    /* Hide 'Pzt-Cmt' hours text on very small screens */
    .top-text {
        display: none;
    }

    .separator {
        display: none;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px !important;
    }

    .logo {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 4px;
        margin-top: 2px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
        margin-bottom: 15px;
        word-break: break-word;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }

    .about-text {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 38vw !important;
        width: 38vw !important;
        min-width: 38vw !important;
        max-width: 38vw !important;
        height: auto !important;
    }

    .categories-grid {
        gap: 10px;
        /* Keep flex carousel from the 1024px block - do NOT override to grid */
    }

    .story-section {
        padding: 80px 0;
    }

    .play-btn-overlay {
        font-size: 3.5rem;
    }

    .story-text-slide h3 {
        font-size: 1.2rem !important;
    }

    /* iPhone 14 / small screen tight rules */
    .container {
        padding: 0 16px;
    }

    .category-card {
        flex: 0 0 38vw !important;
        width: 38vw !important;
        min-width: 38vw !important;
        max-width: 38vw !important;
        height: auto !important;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        word-break: break-word;
    }

    .header-inner {
        padding: 10px 16px !important;
    }

    /* Top bar: only lang switcher on very small screens */
    .top-bar-left,
    .top-socials,
    .top-text {
        display: none !important;
    }

    .top-bar-right {
        justify-content: flex-end;
        width: 100%;
    }
}