/* 
  SV Fabrics - Custom Design System 
  Luxury Editorial Aesthetic
*/

:root {
    --jewel-gold: #002080;
    --jewel-gold-rgb: 0, 32, 128;
    --jewel-maroon: #4A0E0E;
    --jewel-emerald: #064E3B;
    --jewel-midnight: #002080;
}

a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--jewel-gold);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

html.dark {
    background-color: #000;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Typography */
h1, h2, h3, h4, .font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* Glassmorphism */
.glass-card {
    background: rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Header States */
#main-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark #main-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Animations */
@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

.animate-slow-zoom {
    animation: slow-zoom 20s linear infinite alternate;
}

/* Kinetic Text Marquee */
.animate-marquee {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.outline-text {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.2);
    color: transparent;
}

.dark .outline-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

/* Fabric Shimmer Effect */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shimmer 15s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-50%) translateY(-50%) rotate(45deg); }
    100% { transform: translateX(50%) translateY(50%) rotate(45deg); }
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--jewel-gold);
}

.filter-btn.active {
    background: var(--jewel-gold);
    color: black;
    border-color: var(--jewel-gold);
    box-shadow: 0 0 20px rgba(var(--jewel-gold-rgb), 0.3);
}

/* Fabric Catalogue Cards */
.fabric-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fabric-card:hover {
    transform: translateY(-10px);
}
/* Lookbook Filter Buttons */
.look-filter-btn {
    padding: 10px 30px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    transition: all 0.3s ease;
}

.look-filter-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.look-filter-btn.active {
    background: white;
    color: black;
    border-color: white;
}

/* Lightbox Base */
#lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 20px;
    transform: scale(0.9);
}

.fabric-card .img-container {
    mask-image: radial-gradient(white, black); /* For rounded corners fix on some browsers */
}

.fabric-card .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.fabric-zoom {
    transition: transform 0.5s ease;
}

.fabric-card:hover .fabric-zoom {
    transform: scale(1.1);
}

/* Transformation Section Layout */
/* Garment cards will be positioned by absolute in HTML, but here we add general styles */
.garment-card {
    opacity: 0.6;
    filter: blur(1px) grayscale(30%);
    transition: all 0.5s ease;
}

.garment-card.active {
    opacity: 1;
    filter: blur(0) grayscale(0);
    z-index: 30;
    transform: scale(1.1);
}

.garment-card:hover {
    opacity: 1;
    filter: blur(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jewel-gold);
}

/* Mobile Nav Link hover effect */
.mobile-nav-link {
    position: relative;
    padding: 0 10px;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--jewel-gold);
    transition: width 0.3s ease;
}

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