/* 
   Lumoura Retouch - Premium Portfolio 
   Theme: White & Gray (#FFFFFF, #F5F5F5, #E0E0E0, #808080, #333333)
*/

:root {
    /* Color Palette */
    --white: #FFFFFF;
    --gray-50: #F9F9F9;
    --gray-100: #F5F5F5;
    --gray-200: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-600: #808080;
    --gray-800: #333333;
    --black: #111111;

    /* Semantic Variables (Light Mode Default) */
    --bg-main: var(--white);
    --bg-section: var(--gray-50);
    --bg-card: var(--gray-50);
    --text-main: var(--gray-800);
    --text-muted: var(--gray-600);
    --border-color: var(--gray-200);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --btn-primary-bg: var(--black);
    --btn-primary-text: var(--white);
    --hover-link: var(--black);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Mode Overrides */
body.dark-mode {
    --bg-main: #0a0a0a;
    --bg-section: #111111;
    --bg-card: #161616;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --nav-bg: rgba(10, 10, 10, 0.9);
    --btn-primary-bg: var(--white);
    --btn-primary-text: var(--black);
    --hover-link: var(--white);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Fluid Canvas Removed */
/* #fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    filter: invert(1);
    transition: filter 0.4s ease;
}

body.dark-mode #fluid-canvas {
    filter: invert(0);
} */

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-main);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: var(--bg-main);
}

#icon-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    /* 60% Opacity */
    /* Fade in from top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    transform: rotate(0deg);
    /* No rotation needed for canvas */
}

body.dark-mode #icon-canvas {
    opacity: 0.6;
    /* 60% in dark mode as well */
    filter: invert(1);
}

/* Old Slideshow styles removed */
.slideshow-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Balanced gap for small icons */
    /* Width set by JS */
    flex-shrink: 0;
    /* Animation handled by JS for duration/direction */
    animation: scroll-vertical 60s linear infinite;
}

.slideshow-col img {
    width: 100%;
    /* Height set by JS */
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Icon Styles */
.slideshow-icon {
    fill: var(--text-main);
    display: block;
    margin: 0 auto;
    /* Size/Opacity set by JS */
}

/* Removed specific child animations as they are randomized in JS */

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
        /* Start halfway up so loop is seamless? 
           Actually, if we have 2 sets of images, we scroll exactly 50%?
           In JS we added 4 sets. So scrolling -50% means we see 2 sets pass. 
           We need to ensure loop point matches.
           If content is 4 sets. 
           translateY(-25%) would match 1 set?
           No, loop is seamless if top half identical to bottom half.
           Let's rely on standard infinite scroll logic.
           If we use 4 sets: [1,2,3,4,5,6] x4.
           Total height H.
           Move from 0 to -H/2.
           Top H/2 must equal Bottom H/2.
           [Set1, Set2] vs [Set3, Set4].
           Set 1==3, Set 2==4. Yes. So -50% works perfectly.
        */
        transform: translateY(-50%);
    }
}

/* Removed full screen overlay */

body.dark-mode .hero-overlay {
    /* No longer needed */
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    /* Glass card effect for readability */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    /* Center alignment looks better in card */
    margin: 0 auto;
    /* Center horizontal */
}

body.dark-mode .hero-content {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Theme Transition */
    /* Theme Transition */
    /* cursor: none;  Moved to Media Query below */
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-main);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
    /* Optional: Cool blend effect */
}



.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--text-main);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(100, 100, 100, 0.1);
    border-color: transparent;
}

/* Enable Custom Cursor ONLY on Desktop */
@media (min-width: 992px) {
    body {
        cursor: none;
    }

    .cursor-dot,
    .cursor-outline {
        display: block;
    }
}

/* Hide on Mobile */
@media (max-width: 991px) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}



h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: 24px;
}

.mb-md {
    margin-bottom: 48px;
}

.mb-lg {
    margin-bottom: 80px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--btn-primary-bg);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-smooth);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--bg-main);
    /* Inverted hover bg */
    z-index: -1;
    transition: all var(--transition-smooth);
}

.btn-primary:hover {
    color: var(--btn-primary-bg);
    /* In dark mode: hover color becomes White text? No, --btn-primary-bg is White. So color becomes White. Invisible on White bg. 
       Let's fix logic: Hover should invert. */
}

body.dark-mode .btn-primary:hover {
    color: var(--white);
}

body:not(.dark-mode) .btn-primary:hover {
    color: var(--black);
}

.btn-primary:hover::before {
    width: 100%;
}

/* WhatsApp Button */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    color: #25D366 !important;
    /* Green text on hover to match brand */
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    transition: padding var(--transition-fast), background-color 0.4s ease;
}

.header.scrolled {
    padding: 16px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--hover-link);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--hover-link);
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Horizontally center */
    position: relative;
    background-color: var(--bg-main);
    overflow: hidden;
}

/* Duplicate hero-bg removed */

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    /* Center text */
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(60px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 0.9;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin: 0 auto 40px auto;
    /* Center block + margin bottom */
    max-width: 500px;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-badge {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-card);
    padding: 60px 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 100%;
    /* Uniform height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    /* Ensure tall boxy look */
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--text-main);
    /* White border on hover in dark mode */
}

/* Specific spacing for Number */
.service-number {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: auto;
    /* Pushes content down if using flex column? No, we want number at top. */
    display: block;
    margin-bottom: 40px;
}

.service-card h3 {
    font-size: 32px;
    /* Larger Heading */
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
    max-width: 90%;
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-top: auto;
    /* Push to bottom if needed, or just stay under title */
}

/* Dark Mode Overrides to match reference exactly */
body.dark-mode .service-card {
    background: #0a0a0a;
    /* Darker specific bg */
    border-color: #333;
}

body.dark-mode .service-card:hover {
    border-color: #fff;
    /* Bright white border */
    background: #0a0a0a;
}

/* Comparison Section */
.comparison-section {
    background-color: #111;
    /* Keep dark regardless of theme for impact? Or semantic? Let's use semantic but inverted for effect? No, let's keep it specific or use vars. */
    /* Let's keep it intentionally dark/black as it's a "feature" section, creates contrast in light mode. */
    color: #fff;
    overflow: hidden;
}

body.dark-mode .comparison-section {
    background-color: #000;
    /* Darker in dark mode */
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    /* aspect-ratio removed to allow auto-height */
    border-radius: 4px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    line-height: 0;
    /* Remove font line-height gaps */
}

/* Background Image - Drives Height */
.comparison-wrapper>img.comp-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Ensure it shows fully */
}

/* General comp-img reset (others are absolute via overlay or specific rules) */
.comp-img {
    user-select: none;
    -webkit-user-drag: none;
}

.comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid var(--white);
    /* background-color: #f5f5f5; Removed to avoid gray flash */
}

.comp-overlay .comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    /* Allow ratio to drive width */
    height: 100%;
    /* Match container height */
    object-fit: cover;
    max-width: unset;
}

.comp-handle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    color: #000;
}

/* Portfolio Gallery (Antigravity Section) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8vh 4vw;
}

.gallery-item {
    position: relative;
    margin-bottom: 60px;
}

.gallery-item:nth-child(even) {
    transform: translateY(80px);
}

.gallery-item h4 {
    color: var(--text-main);
}

.gallery-item span {
    color: var(--text-muted);
}

/* Antigravity Hover Effect */
.levitate-wrapper {
    position: relative;
    transition: transform 0.1s linear;
}

.levitate-wrapper img,
.levitate-wrapper>div {
    border-radius: 2px;
    filter: grayscale(10%);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Should ideally be variable */
}

.levitate-wrapper:hover img,
.levitate-wrapper:hover>div {
    transform: scale(1.02);
    filter: grayscale(0%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.testimonial-card {
    min-width: 0;
    /* Allow flex shrinking in grid */
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    /* Soft corners */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth transition */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
    /* Individual card load */
}

/* Stagger Animations */
.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.4s;
}


/* Quote Icon Decoration */
.testimonial-card::before {
    content: '“';
    font-family: serif;
    font-size: 80px;
    line-height: 1;
    color: var(--text-muted);
    opacity: 0.1;
    position: absolute;
    top: 30px;
    left: 40px;
    pointer-events: none;
}

.testimonial-card p {
    color: var(--text-main);
    font-size: 16px;
    /* Slightly Adjust text size for density */
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.testimonial-card strong {
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    /* Push to bottom */
}

/* Hover Effect */
.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Lift and slight grow */
    background: var(--bg-main);
    /* Contrast against track */
    border-color: var(--text-main);
    /* Highlight border */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Dark Mode Hover Override */
body.dark-mode .testimonial-card:hover {
    background: #1a1a1a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--white);
}

/* Contact */
.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--text-main);
    background: var(--bg-main);
}

.footer {
    padding: 80px 0 40px;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer p {
    color: var(--text-muted);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.antigravity {
    animation: float 6s ease-in-out infinite;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Zoom Reveal */
@keyframes zoomReveal {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-reveal {
    opacity: 0;
    /* HIDDEN INITIALLY */
    /* Animation will be applied by JS with random duration */
    transform: scale(1.1);
    transition: opacity 0.5s ease-out;
    /* Fallback */
}

.zoom-reveal.visible {
    animation-name: zoomReveal;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth ease-out */
    animation-fill-mode: forwards;
    opacity: 1;
    transform: scale(1);
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition.is-loaded {
    opacity: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.filter-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-main);
    border-color: var(--text-main);
}

/* Masonry Gallery Layout (True Masonry via Columns) */
.masonry-grid {
    column-count: 5;
    column-gap: 15px;
    /* Slightly tighter gap for more columns */
    width: 100%;
}

/* Responsive Columns */
@media (max-width: 1600px) {
    .masonry-grid {
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 10px;
    }

    .masonry-item {
        margin-bottom: 10px;
    }
}

/* Masonry Item with Skeleton Loading */
.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    cursor: zoom-in;
    /* Skeleton Base */
    min-height: 250px;
    /* Placeholder height */
    background-color: var(--gray-200);
    /* Placeholder color */
    position: relative;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.6s ease-out;
    /* Smooth fade in */
}

/* When loaded, show image and remove skeleton gap */
.masonry-item.loaded {
    min-height: 0;
    background-color: transparent;
}

.masonry-item.loaded img {
    opacity: 1;
}

/* Hover Effect - Subtle Lift */
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Remove old transition/opacity logic that caused hiding */
.masonry-item.hidden {
    display: none;
}

.masonry-item.hidden {
    display: none;
}

.masonry-item.anim-out {
    opacity: 0;
    transform: scale(0.9);
}


/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    /* Slightly darker for better immersion */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox Carousel Container */
.lightbox-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    /* Essential for 3D effect */
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Base Item Style */
.carousel-item {
    position: absolute;
    width: 60vw;
    height: 80vh;
    max-width: 1200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    /* Improve rendering performance */
    will-change: transform, opacity, filter;
}

/* Center Item - In Focus */
.carousel-item.center {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 10;
    filter: blur(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* Left Item - Blurred & Background */
.carousel-item.left {
    transform: translate3d(-60%, 0, -200px) scale(0.85);
    opacity: 0.6;
    z-index: 5;
    filter: blur(4px) brightness(0.7);
    cursor: pointer;
}

/* Right Item - Blurred & Background */
.carousel-item.right {
    transform: translate3d(60%, 0, -200px) scale(0.85);
    opacity: 0.6;
    z-index: 5;
    filter: blur(4px) brightness(0.7);
    cursor: pointer;
}

/* Far Side Items - More Blurred/Hidden */
.carousel-item.far-left {
    transform: translate3d(-100%, 0, -400px) scale(0.7);
    opacity: 0;
    z-index: 1;
}

.carousel-item.far-right {
    transform: translate3d(100%, 0, -400px) scale(0.7);
    opacity: 0;
    z-index: 1;
}

/* Ensure images inside fit correctly */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* Navigation Buttons */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.close-btn {
    top: 30px;
    right: 30px;
    font-size: 28px;
}

.prev-btn {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.prev-btn:hover,
.next-btn:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Animations */
@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.slide-from-right {
    animation: slideFromRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.slide-from-left {
    animation: slideFromLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Tools Section */
.tools-section {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.tool-icon {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    background: var(--bg-card);
}

.tool-item span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover Effects (Color Restore) */
.tool-item:hover .tool-icon {
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-item:hover span {
    color: var(--text-main);
}

/* Brand Colors */
.tool-item:hover .tool-icon.ps {
    background: #31A8FF;
}

.tool-item:hover .tool-icon.lr {
    background: #31E3FF;
    color: #001E36;
}

/* Light cyan text dark? or just keep white for contrast if bg is dark enough. 31E3FF is bright. */
.tool-item:hover .tool-icon.c1 {
    background: #5F2CFF;
}

/* Capture One */
.tool-item:hover .tool-icon.br {
    background: #FFA600;
    /* Bridge Orange */
    color: #111;
}

.tool-item:hover .tool-icon.ip {
    background: #D4AF37;
    /* Portraiture Gold */
    color: #111;
}

/* Dark Mode Adjustment for Default State */
body.dark-mode .tool-icon {
    background: var(--bg-section);
}

/* Responsive General */
@media (max-width: 768px) {
    .hero-title {
        font-size: 56px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-item:nth-child(even) {
        transform: none;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .theme-toggle-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Adjust toggle mobile pos */
}

/* --- New Custom Cursor (Difference Mode) --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    /* Solid white for full inversion */
    background-color: white;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover State - Enlarge */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
}

/* --- Comparison Tabs --- */
.comparison-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--gray-2);
    /* Fallback */
    border-radius: 50px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-4);
    /* Muted */
}

.tab-btn:hover {
    color: var(--black);
    border-color: var(--black);
}

.tab-btn.active {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Dark Mode Adjustment for Tabs */
body.dark-mode .tab-btn {
    border-color: var(--gray-4);
    color: var(--gray-3);
}

body.dark-mode .tab-btn:hover {
    color: var(--white);
    border-color: var(--white);
}

body.dark-mode .tab-btn.active {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* --- Albums Section --- */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Slightly smaller min-width for better density */
    gap: 40px;
    /* More breathing room */
    margin-top: 40px;
}

.album-card {
    background: transparent;
    /* Remove card bg for cleaner book look */
    border-radius: 0;
    padding: 0;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    /* Center align for magazine feel */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    position: relative;
}

/* The Wrapper handles the "Physical Object" look */
.album-cover-wrapper {
    width: 100%;
    height: 350px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1000px;
    /* For 3D Tilt */
    margin-bottom: 10px;
}

/* The actual image or canvas */
.album-cover-img,
.album-cover-canvas {
    max-width: 90%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px 6px 6px 2px;
    /* Slight book curve */
    box-shadow:
        -2px 0 5px rgba(255, 255, 255, 0.05),
        /* Subtle spine highlight */
        5px 10px 25px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
    transition: all 0.5s ease;
    transform-origin: center bottom;
    backface-visibility: hidden;
    /* Stacked Pages Effect (Pseudo-like) */
    border-right: 4px solid #ddd;
    /* Paper edge */
    background: #fff;
}

/* Hover Effect: Lift and Tilt */
.album-card:hover .album-cover-img,
.album-card:hover .album-cover-canvas {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow:
        -2px 0 5px rgba(255, 255, 255, 0.1),
        15px 30px 50px rgba(0, 0, 0, 0.6);
    /* Expanded shadow */
}

.album-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.album-year {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    opacity: 0.7;
    text-transform: uppercase;
}

.album-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.album-card:hover .album-title {
    color: var(--primary);
    /* subtle highlight color if variable exists, else white */
}

.album-type {
    font-size: 12px;
    color: var(--gray-4);
    font-family: var(--font-cursor);
    opacity: 0.6;
}

/* Dark Mode Handling - Ensure text pops */
body:not(.dark-mode) .album-title {
    color: #111;
}

/* --- LIGHTBOX (GENERIC / THANK YOU CARDS) --- */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);

    /* Mobile Footer Alignment */
    @media (max-width: 768px) {
        .footer-content {
            flex-direction: column;
            text-align: center;
            gap: 30px;
            padding-bottom: 20px;
        }

        .footer-left {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .footer-socials {
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .footer-socials ul {
            gap: 25px !important;
        }
    }
}

.lightbox-overlay.active .lightbox-content img {
    transform: scale(1);
}

/* Mobile Footer Alignment - Fixed */
@media (max-width: 768px) {
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
        padding-bottom: 20px !important;
    }

    .footer-left {
        width: 100% !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-socials {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 0 !important;
    }

    .footer-socials ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 20px !important;
        padding: 0;
    }
}