/* Base configuration & fluid scrolling */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- TYPOGRAPHY CLASSES --- */
.font-writer { font-family: 'Cormorant Garamond', serif; }
.font-ui { font-family: 'Inter', sans-serif; }
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-syne { font-family: 'Syne', sans-serif; }

.passepartout { padding: 20px; }
@media (min-width: 1024px) { .passepartout { padding: 60px; } }

.h-header { height: 80px; }
.layer-nav { z-index: 40; }

/* Clear alignment underneath sticky navigation */
#macro-section-1, 
#macro-section-2, 
#macro-section-3, 
#macro-section-4,
#macro-section-5 {
    scroll-margin-top: 80px;
}

.snap-x { scroll-snap-type: x mandatory; }
.snap-center { scroll-snap-align: center; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.modal-overlay { z-index: 50; }

/* Shared Liquid Glass Core Filter */
.liquid-glass-blur {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* DEFAULT DARK BACKGROUND THEME: White Glass styling */
.glass-dark-theme {
    background-color: rgba(10, 10, 10, 0.35);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shared Logo transitions - Enforce white background on all logo containers */
.logo-btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    transition: all 0.3s ease;
}
.logo-btn:hover {
    background-color: #f0f0f0 !important;
}

/* Desktop Nav Link design */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}
.nav-link:hover { color: #ffffff; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link.active-section {
    font-weight: 500;
    color: #ef4444 !important;
}
.nav-link.active-section::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile link colors */
.mobile-slider-link {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-slider-link:hover, .mobile-slider-link:active {
    color: #ffffff;
}
.mobile-slider-link.active-section {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 500;
}

/* CONTRAST ACTIVE STATE */
.bg-white-active {
    background-color: rgba(255, 255, 255, 0.35) !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
.bg-white-active .logo-btn { background-color: #ffffff !important; color: #000000 !important; }
.bg-white-active .logo-btn:hover { background-color: #e0e0e0 !important; }
.bg-white-active .nav-link { color: rgba(0, 0, 0, 0.6) !important; }
.bg-white-active .nav-link:hover { color: #000000 !important; }
.bg-white-active .nav-link.active-section { color: #ef4444 !important; }
.bg-white-active .mobile-slider-link { color: rgba(0, 0, 0, 0.6) !important; }
.bg-white-active .mobile-slider-link:hover { color: #000000 !important; }
.bg-white-active .mobile-slider-link.active-section { color: #ffffff !important; }

/* Premium Liquid Glass Backdrop */
.liquid-glass-modal {
    backdrop-filter: blur(24px) saturate(185%);
    -webkit-backdrop-filter: blur(24px) saturate(185%);
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
#showcase-modal.active { opacity: 1; pointer-events: auto; }

.glass-card {
    position: relative;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
#showcase-modal.active .glass-card { transform: scale(1); opacity: 1; }

.close-btn-transition { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease; }
.close-btn-transition:hover { color: #ef4444 !important; transform: scale(1.15) rotate(90deg); }
.close-btn-transition:active { transform: scale(0.95); }

.text-brand { color: #be00ff; }
.border-brand { border-color: #be00ff; }
.box-scanlines {
    background: linear-gradient(rgba(190, 0, 255, 0.03) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 2px;
    pointer-events: none;
}

/* Mobile Touch Toggles */
.magazine-card-active { border-color: #be00ff !important; box-shadow: 0 0 40px rgba(190,0,255,0.3) !important; }
.magazine-card-active .mag-bg { transform: scale(1.05) !important; }
.magazine-card-active .mag-overlay { opacity: 1 !important; pointer-events: auto !important; }
.magazine-card-active .mag-btn { transform: translateY(0) !important; }

/* Explicit Styling for Wardrobe Card default and active state */
#wardrobe-card {
    opacity: 1 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wardrobe-card-active { 
    border-color: #ffffff !important; 
    box-shadow: 0 0 40px rgba(255,255,255,0.3) !important; 
}
.wardrobe-card-active .wardrobe-bg { transform: scale(1.05) !important; }
.wardrobe-card-active .wardrobe-overlay { opacity: 1 !important; pointer-events: auto !important; }
.wardrobe-card-active .wardrobe-btn { transform: translateY(0) !important; }

/* Active state inner shadows & styling overrides for touch */
.wardrobe-card-active .wardrobe-inner-shadow { opacity: 1 !important; }
.wardrobe-card-active .wardrobe-scanlines { opacity: 0.4 !important; }
.wardrobe-card-active .wardrobe-radial-shadow { opacity: 1 !important; }

@media (hover: hover) {
    #magazine-card:hover { border-color: #be00ff !important; box-shadow: 0 0 40px rgba(190, 0, 255, 0.25) !important; }
    #wardrobe-card:hover { border-color: #ffffff !important; box-shadow: 0 0 40px rgba(255, 255, 255, 0.25) !important; }
    #insta-carousel-section:hover { border-color: #ef4444 !important; box-shadow: 0 0 40px rgba(239, 68, 68, 0.25) !important; }
}

#insta-carousel-section { perspective: 1000px; }
.insta-iframe-zoom { transform: translate(-50%, -50%) scale(0.7); transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1); }
#insta-carousel-section.zoomed #insta-shield { pointer-events: none; }

.mockup-scroll-container img { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); transform: translateY(0); }
.mockup-scroll-container:hover img { transition: transform 5.3s linear; transform: translateY(calc(-100% + 55vh)); }

.modal-scroll-container::-webkit-scrollbar { width: 8px; }
.modal-scroll-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); border-radius: 9999px; margin: 4px; }
.modal-scroll-container::-webkit-scrollbar-thumb { background-color: #ef4444; border-radius: 9999px; border: 2px solid rgba(15, 15, 15, 0.85); transition: background-color 0.2s ease; }
.modal-scroll-container::-webkit-scrollbar-thumb:hover { background-color: #dc2626; }
.modal-scroll-container { scrollbar-width: thin; scrollbar-color: #ef4444 rgba(255, 255, 255, 0.03); }

@keyframes hoverBounceLeft { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes hoverBounceRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.hover-bounce-left:hover svg { animation: hoverBounceLeft 1s infinite; }
.hover-bounce-right:hover svg { animation: hoverBounceRight 1s infinite; }

/* --- TEXT REVEAL ANIMATIONS --- */
.text-box-reveal h2, .text-box-reveal p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.text-box-reveal p {
    transition-delay: 0.15s;
}
.text-box-reveal.is-revealed h2, .text-box-reveal.is-revealed p {
    opacity: 1;
    transform: translateY(0);
}

footer {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                border-radius 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}
.footer-fullscreen {
    transform: scale(1.07) !important;
    border-radius: 0px !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
@media (max-width: 1023px) {
    .footer-fullscreen { transform: scale(1.12) !important; }
}
