/* Base Settings */
:root {
    --cursor-size: 12px;
    --cursor-follower-size: 48px;
    --brand-red: #3E0E12; /* Deep Burgundy */
    --brand-accent: #F32548; /* Vibrant Red/Pink */
    --brand-cream: #F3F0EB; /* Cream */
    --brand-brown: #4A3B32; /* Brown */
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--brand-cream); /* Updated to Cream base */
    color: #050505;
    cursor: auto;
    font-family: 'DM Sans', sans-serif;
}

/* Soften Image Corners (Client Preference: 20-30px) */
img {
    border-radius: 20px;
}

/* Preloader - CSS Only Fallback */
#preloader {
    animation: preloader-fallback 0.5s ease 5s forwards;
}

@keyframes preloader-fallback {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Magnetic Effect */
.magnetic-wrap {
    display: inline-block;
    position: relative;
}

.magnetic-area {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: 10;
    /* background: rgba(255,0,0,0.1); Debug */ 
}

/* Scramble Text Effect */
.scramble-text {
    position: relative;
    display: inline-block;
}

.scramble-text .text-content {
    display: inline-block;
}

/* Footer Reveal Helper */
#main-content {
    position: relative;
    z-index: 10;
    background-color: #050505; /* Ensure opaque background */
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}
.text-stroke {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    color: transparent;
}

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

.blend-mode-overlay {
    mix-blend-mode: overlay;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.condensed-bold {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* Infinite Marquee System */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-infinite 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-set {
    flex-shrink: 0;
}

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

/* Portfolio Filter Buttons */
.portfolio-filter {
    background: transparent;
    color: var(--brand-brown);
    cursor: pointer;
}

.portfolio-filter.active {
    background: #050505;
    color: #fff;
    border-color: #050505;
}

/* Portfolio Grid Items */
.portfolio-item {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item.hidden-item {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.portfolio-item img {
    border-radius: 8px;
}

/* Cookie Banner */
#cookie-banner {
    font-family: 'DM Sans', sans-serif;
}

#cookie-banner.show {
    transform: translateY(0) !important;
}

/* Privacy Modal Scroll */
#privacy-modal {
    overscroll-behavior: contain;
}

/* Text Stroke */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-accent);
}

/* Utility Classes */
.clip-text-image {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: url('https://placehold.co/1920x1080/3E0E12/FFF?text=Texture');
    background-size: cover;
    background-position: center;
}

/* Slow Spin Animation */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* --- MINT & MARBLE / CREATIVE ELEMENTS --- */

/* 1. Grid Backgrounds */
.graphic-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.graphic-grid-dark {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(62, 14, 18, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(62, 14, 18, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    pointer-events: none;
}

/* 2. Wireframe Globe / Sphere */
.wireframe-sphere {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    position: absolute;
    transform-style: preserve-3d;
    animation: spin-slow 40s linear infinite;
    pointer-events: none;
}

.wireframe-sphere::before,
.wireframe-sphere::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.wireframe-sphere::before { transform: rotateX(60deg); }
.wireframe-sphere::after { transform: rotateY(60deg); }

/* 3. Floating Geometric Shapes */
.geo-shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

.geo-circle { border-radius: 50%; }
.geo-square { transform: rotate(45deg); }

/* 4. Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 5. Depth / Parallax Layers */
.depth-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

/* 6. Creative Typography (Mint & Marble Style) */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
}

.outline-text-dark {
    color: transparent;
    -webkit-text-stroke: 1px rgba(62, 14, 18, 0.2); /* Brand Red Outline */
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
}

.overlap-text {
    line-height: 0.85;
    letter-spacing: -0.03em;
}

/* Broken Grid Layout Helpers */
.broken-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    position: relative;
}

.scattered-text {
    font-size: clamp(3rem, 8vw, 10rem);
    line-height: 0.9;
    font-family: 'Bodoni Moda', serif;
    text-transform: uppercase;
    position: relative;
    z-index: 10;
}

.scattered-img {
    position: relative;
    z-index: 5;
    transition: transform 0.5s ease-out;
}

.scattered-img:hover {
    transform: scale(1.05);
    z-index: 20;
}

/* Fade In Animation for Details */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Reverse Marquee */
@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
.animate-marquee-reverse {
    animation: marquee-reverse 20s linear infinite;
}

/* Broken Grid Layout */
.broken-grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    width: 100%;
}

/* Scattered Elements */
.scattered-text {
    font-family: 'Bodoni Moda', serif;
    font-size: 8vw;
    line-height: 0.9;
    font-weight: 700;
}

.scattered-img {
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Reveal Text Animation */
.reveal-text {
    display: block;
    transform-origin: bottom;
    animation: revealUp 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealUp {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

/* Fixed on Scroll Text */
.fixed-on-scroll {
    position: fixed;
    z-index: 0;
}

/* Hover Trigger for Magnetic Wrap */
.hover-trigger:hover .magnetic-wrap {
    transform: scale(1.1);
}

/* Custom Fonts requested by user */
@font-face {
    font-family: 'Slight';
    src: url('../assets/fonts/slight-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

.font-slight {
    font-family: 'Slight', 'Playfair Display', serif; /* Fallback to Playfair/Serif */
}

.font-georgia {
    font-family: 'Georgia Pro', 'Georgia', serif;
}

.font-abhaya {
    font-family: 'Abhaya Libre', serif;
}

.font-dm-sans {
    font-family: 'DM Sans', sans-serif;
}

