/* Global Styles & Variables */
:root {
    /* Updated Palette - Transparent/Dark Theme */
    --bg-color: transparent;
    /* Transparent for bg image */
    --secondary-bg: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    --accent-color: #861211;

    /* ... other vars ... */
    --text-color: #ffffff;
    /* White text for dark bg image */
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}



:root {
    /* Deep Burgundy (Kept) */
    --contrast-color: #2b7575;
    /* Teal (Kept) */
    --text-color: #861211;
    /* Deep Burgundy (Kept - works on white) */
    --text-muted: #555555;
    /* Dark Gray for readability on white */

    /* Card backgrounds for White Theme */
    --card-bg: rgba(0, 0, 0, 0.05);
    /* Light gray tint */
    --nav-bg: rgba(255, 255, 255, 0.7);
    /* Light glass nav */
    --border-color: rgba(134, 18, 17, 0.1);
    /* Burgundy border subtle */

    --nav-height: 80px;
    --font-main: 'Playfair Display',
        serif;
    --font-body: 'Inter',
        sans-serif;

    /* Cinematic Motion Variables */
    --transition-speed: 0.5s;
    --ease-cinematic: cubic-bezier(0.19, 1, 0.22, 1);
    /* Exponential Ease Out */
    --radius-lg: 16px;
    --radius-md: 12px;
}

a,
button,
.card,
.btn,
.nav-link,
.category-nav-card {
    transition: all var(--transition-speed) var(--ease-cinematic) !important;
}

/* --- Motion & Animation Utilities --- */

/* 1. Fade Up (General Elements) */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

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

/* 2. Text Reveal (Headings/Hero) */
.text-reveal {
    overflow: hidden;
    /* Masking effect */
    display: block;
    /* or inline-block depending on context */
}

.text-reveal span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease-out;
    will-change: transform, opacity;
}

.text-reveal.in-view span {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger delays for children */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

/* 3. Parallax Container */
.parallax-wrapper {
    overflow: hidden;
    position: relative;
    height: 100%;
    width: 100%;
}

.parallax-img {
    height: 120%;
    /* Taller than container for movement */
    width: 100%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.1s linear;
    /* Smooth visual update via JS */
    will-change: transform;
}

/* Background Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    opacity: 0.6;
    /* Subtle overlay effect */
    pointer-events: none;
    /* Allow clicking through code */
}

/* Import Playfair Display & Inter */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Global Background matching About Section */
    background: url('assets/images/dress.jpeg') no-repeat center center fixed !important;
    background-size: cover !important;
    background-color: #000;
    /* Fallback */
    min-height: 100vh;
    position: relative;
    /* For pseudo-element overlay */
}

/* Global Dark Glass Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

/* Removed global dark overlays (body::before, body::after) to allow white theme */
/* Hero section has its own .hero-overlay-bg handling */

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-main);
    color: #861211;
    /* Deep Burgundy */
    font-weight: 700;
}

p,
a,
.nav-link,
.btn {
    color: #861211;
    /* Deep Burgundy */
}

/* Enhancing contrast for the Burgundy text against the dark glass */
/* We might need a very subtle glow or lighter burgundy for readability if it's too dark */
/* But sticking to user request for now */

a {
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 4rem;
    /* Big size */
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 25px;
    line-height: 1.1;
    /* Tight line-height */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--contrast-color);
    border-radius: 4px;
}

section {
    padding: 120px 0;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 20px;
    /* Floating slightly from top for modern look */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    /* Not full width to emphasize floating glass */
    max-width: 1200px;
    /* Wider as requested */
    background: transparent;
    /* Transparent as requested (removed blurbar) */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 50px;
    /* Narrower height as requested */
    display: flex;
    align-items: center;
    z-index: 1000;
    border: none;
    /* Removed border */
    border-radius: 0;
    /* Removed pill shape */
    box-shadow: none;
    /* Removed shadow */
    animation: none;
    /* Removed pulse animation */
}

/* Removed keyframes used for navbar border pulse */

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    /* Removed padding to push to edges */
    display: flex;
    justify-content: center;
    /* Center the whole list */
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mobile-logo {
    display: none;
    /* Hidden on desktop */
    width: auto;
    /* Allow auto width */
    height: auto;
    font-size: 1.5rem;
}

/* Glass Cube Style for Logo Container */


.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    /* Remove browser default padding for UL */
    gap: 5px;
}

.nav-link {
    font-weight: 500;
    color: #861211;
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 10px 20px;
    /* Added horizontal padding for button look */
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 30px;
    /* Rounded pill shape */
}

/* Home on the far left */
.nav-links li:first-child {
    margin-right: auto;
    padding-right: 0;
    text-align: left;
    transform: translateX(-70px);
    /* Move left to match symmetry */
}

/* Ensure consistent alignment for right-group items */
.nav-links li:not(:first-child) {
    text-align: center;
    padding: 0;
    transform: translateX(70px);
    /* Move slightly to right */
}

@media (hover: hover) {

    .nav-link:hover,
    .nav-link.active {
        background-color: #ffffff;
        /* White fill */
        color: #861211;
        /* Keep text burgundy */
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
        /* Subtle glow */
    }
}

/* Active state should persist regardless of hover capability */
.nav-link.active {
    background-color: #ffffff;
    color: #861211;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Removed ::after underline effect */

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #861211;
    border-radius: 3px;
    transition: var(--transition-speed);
}

/* Full-Page Scroll Transition Sections */
body {
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Override for standard scrolling pages (About, etc.) */
html.scrollable,
body.scrollable {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
}

.snap-section {
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    z-index: 1;
}

.snap-section.transitioning {
    pointer-events: none;
}

.snap-section:first-child {
    z-index: 2;
}

/* Ensure sections with padding still fill viewport */
#portfolio-nav.snap-section,
#contact.snap-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
}

#contact::before,
#contact::after {
    display: none !important;
    content: none !important;
}



/* Home Section (Editorial Center) */
#home {
    min-height: 100vh;
    height: 100vh;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: transparent;
    /* background-image removed for video */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Dark overlay for text readability on hero image */
.hero-overlay-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    /* Removed overlay for original video */
    /* backdrop-filter removed */
    z-index: 1;
    pointer-events: none;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Split hero: half brand.mp4, half infographics.mp4 */
.hero-split-videos {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}

.hero-video-half {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-video-half video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* vm2.mp4: show full video content (zoomed out) - NOW ON RIGHT */
.hero-video-right video {
    object-fit: contain;
    width: 100%;
    height: 100%;
    min-width: auto;
    min-height: auto;
}

/* infographics2mp4.mp4: fill the left half, cover (default) but explicit here */
.hero-video-left video {
    object-fit: cover;
}

.hero-main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    line-height: 1;
}

/* Logo: solid M E on top, STUDIO in a row below (aligned under M E) */
.hero-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Large solid M E – bold, geometric, dark red */
.hero-me {
    font-family: 'Inter', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    color: #861211;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* STUDIO horizontal row – thin sans-serif, light teal, spaced to align under M E */
.hero-studio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 18rem;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    color: #5ba39e;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* O as outline for subtle contrast */
.hero-studio-o {
    color: transparent;
    -webkit-text-stroke: 1px #5ba39e;
}

.editorial-subtitle {
    font-family: 'Tenor Sans', sans-serif;
    /* Consistent font */
    font-size: 1.1rem;
    color: #861211;
    margin-bottom: 50px;
    max-width: 600px;
    text-transform: uppercase;
    /* Match reference */
    letter-spacing: 4px;
    /* Wide spacing like reference */
}

/* "Watch Video" Button (Outline Style) */
.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
    padding: 18px 30px;
    /* Taller rectangle */
    background: transparent;
    color: #861211;
    border: 1px solid #861211;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-family: 'Tenor Sans', sans-serif;
    text-decoration: none;
    transition: all 0.4s ease;
}

.hero-centered-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Ensure full width for centering */
    max-width: 1000px;
    /* Allow wider title */
    padding: 0 20px;
    padding-top: 0;
    /* Reset padding, use Flexbox for true center */
    min-height: 100vh;
    /* Stretch to fill viewport for centering */
    animation: fadeIn 1.2s ease-out;
}

.hero-top-label {
    font-family: 'Bodoni Moda', serif;
    /* New Fashion Font */
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    opacity: 0.95;
    font-weight: 500;
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    /* Massive */
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 30px;
}

.editorial-title .italic-highlight {
    font-style: italic;
    font-weight: 400;
    /* Ensures the beautiful font italic glyphs are used */
    font-family: 'Playfair Display', serif;
}

/* Moderniz Font Face */
@font-face {
    font-family: 'Moderniz';
    src: url('fonts/Moderniz.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SourceSans3';
    src: url('fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.hero-subtitle-split {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    /* Reduced from 50px */
    font-family: 'SourceSans3', sans-serif;
    font-size: 1.2rem;
    /* Increased from 0.8rem */
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.split-text-left {
    flex: 1;
    text-align: right;
    color: #ffffff;
    /* White as requested */
    padding-right: 8px;
    /* Small gap from center */
}

.split-text-right {
    flex: 1;
    text-align: left;
    color: #861211;
    /* Red as requested */
    padding-left: 8px;
    /* Small gap from center */
}

/* "Watch Video" Button (Outline Style) */
.btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    padding: 10px 24px;
    /* Reduced padding */
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Reduced font size */
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-outline-hero:hover {
    background: #861211;
    color: #fff;
    padding-right: 50px;
    /* Slide effect */
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    .editorial-title {
        font-size: 3.5rem;
    }

    .hero-top-label {
        font-size: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Creative Duo Media Blend */
.media-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Video takes slightly more space */
    gap: 0;
    margin-bottom: 50px;
    align-items: center;
    position: relative;
    max-width: 1000px;
    /* Wider container for duo */
    margin-left: auto;
    margin-right: auto;
}

.video-side {
    position: relative;
    z-index: 2;
    /* Sits on top */
    transform: perspective(1000px) rotateY(2deg);
    /* Subtle 3D angle towards image */
    transition: transform 0.5s var(--ease-cinematic);
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a2a30, #0b181c);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.video-side:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.image-side {
    position: relative;
    z-index: 1;
    margin-left: -80px;
    /* Negative margin for overlap */
    height: 100%;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent, black 20%);
    /* Blend mask */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
    opacity: 0.9;
    transition: all 0.5s var(--ease-cinematic);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: sepia(20%) contrast(110%);
    /* Artistic touch */
    object-fit: cover;
    display: block;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(43, 117, 116, 0.1) 50%, transparent 60%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(150%);
    }
}

.intro-text h1 {
    font-size: 5rem;
    /* Massive size */
    margin-bottom: 24px;
    line-height: 1.05;
    /* Tight line-height */
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.intro-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--contrast-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(192, 78, 1, 0.3);
    font-family: var(--font-body);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 78, 1, 0.5);
    background: #d9600e;
}

/* Category Navigation (Home Page) */
.category-nav.split-screen-nav {
    display: flex;
    width: 100vw;
    /* Full viewport width relative to document */
    margin-left: calc(-50vw + 50%);
    /* Break out of container */
    margin-right: calc(-50vw + 50%);
    height: 100vh;
    /* Full Height Split */
    margin-top: 0;
    gap: 0;
    /* No gap for split screen */
}

.category-nav-card {
    flex: 1;
    /* Equal width layout */
    background: var(--card-bg);
    border: none;
    border-right: 1px solid var(--border-color);
    /* Separators */
    border-radius: 0;
    /* Square edges for split screen */
    padding: 40px;
    text-align: center;
    /* transition: all var(--transition-speed); Removed generic transition */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Fill container */
}

.category-nav-card:last-child {
    border-right: none;
}

.category-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(134, 18, 17, 0.1));
    /* Red tint on hover */
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.category-nav-card:hover {
    transform: none !important;
    /* No lift in split screen - Forced */
    background: rgba(134, 18, 17, 0.05);
    /* Subtle highlight */
}

.category-nav-card:hover::before {
    opacity: 1;
}

.category-nav-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    z-index: 1;
    font-family: 'SourceSans3', sans-serif;
    text-transform: uppercase;
    /* white-space: nowrap; Removed to allow multi-line */
}

.contact-bottom-group {
    position: absolute;
    top: 70%;
    left: -10px;
    /* Adjusted slightly right */
    width: 100%;
}

.card-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken video slightly for text */
    z-index: 1;
    transition: background 0.3s ease;
}

.category-nav-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.2);
    /* Lighten on hover */
}

/* Ensure content sits on top */
.category-nav-card h3,
.category-nav-card .arrow-icon {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.category-nav-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 1;
    font-family: var(--font-body);
}

.category-nav-card .arrow-icon {
    margin-top: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition-speed);
    color: var(--contrast-color);
    font-size: 1.5rem;
}

.category-nav-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Portfolio Section (Sub-pages) */
#portfolio {
    position: relative;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(18, 72, 76, 0.2), transparent);
    pointer-events: none;
}

.portfolio-category {
    margin-bottom: 100px;
}

.portfolio-category h3 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
    padding-left: 20px;
    border-left: 5px solid var(--contrast-color);
    display: inline-block;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Softer base shadow */
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    /* Cinematic lift & slight movement */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    /* Softer hover shadow */
    border-color: var(--contrast-color);
}

.card-img-placeholder {
    width: 100%;
    height: 220px;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    font-family: var(--font-body);
}

.card-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 41, 49, 0.8), transparent);
    opacity: 0.6;
}

.card-info {
    padding: 24px;
}

.card-info h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.2;
}

.card-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Blog Section */
#blog {
    background: transparent;
}

.blog-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
    transition: transform var(--transition-speed);
}

.blog-item:hover {
    transform: translateX(10px);
    border-color: var(--contrast-color);
}

.blog-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.blog-content h3 a {
    color: var(--text-color);
}

.blog-content h3 a:hover {
    color: var(--contrast-color);
}

.blog-excerpt {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: var(--font-body);
}

.tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(43, 117, 116, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #4fd1cd;
    border: 1px solid rgba(43, 117, 116, 0.4);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

/* Footer */
footer {
    background-color: transparent;
    /* Transparent to show global bg */
    color: var(--text-muted);
    text-align: center;
    padding: 50px 0;
    margin-top: auto;
    border-top: none;
    /* Removed red line */
    font-family: var(--font-body);
}

footer p {
    color: #ffffff;
    /* Override red default */
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.contact-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.contact-link {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1.2rem;
    color: #861211;
    /* Red Text */
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.contact-link:hover {
    color: #ffffff;
    /* White on Hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* --- NEW CONTACT SECTION STYLES --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
    text-align: left;
    /* Reset text align */
}

/* Left Column: Info */
.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Align content to bottom */
}

/* ... existing headings ... */

.contact-methods {
    margin-bottom: 5px;
    /* Minimal space to socials */
    margin-top: auto;
    /* Push to bottom if justify-content doesn't cover it */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between email and phone */
}

/* ... existing styles ... */

/* Right Column: Form */
.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* Limit form width */
}

.contact-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #8D1B1B;
    /* Red Title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f0f0f0;
    /* Light text for dark bg */
    margin-bottom: 30px;
}

.contact-desc {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 1rem;
    color: #ccc;
    /* Light grey */
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}



.contact-bottom-group {
    position: absolute;
    top: auto;
    bottom: 50px;
    left: 60px;
    /* Moved slightly right from 30px */
    width: auto;
    /* Removed background, padding, border-radius */
}

.contact-method-link {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    /* Smaller font */
    color: #ddd;
    /* Reverted to light text */
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    width: fit-content;
}

/* ... hover ... */
.contact-method-link:hover {
    color: #8D1B1B;
    border-bottom-color: #8D1B1B;
}

.contact-socials-icons {
    display: flex;
    gap: 15px;
    /* Reduced gap */
}

/* Resize Icons */
.contact-method-link svg,
.contact-socials-icons svg {
    width: 18px !important;
    /* Smaller icons */
    height: 18px !important;
}

.contact-socials-icons a {
    color: #fff;
    /* Reverted to white icons */
    transition: all 0.3s ease;
}

/* Right Column: Form */
.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 80%;
    /* Slightly smaller form as requested */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    color: #ddd;
    /* Light label */
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #666;
    /* Darker border */
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #fff;
    /* White input text */
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #8D1B1B;
}

textarea.form-input {
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Match hero */
    width: auto;
    min-width: 200px;
    /* Match hero */
    background: transparent;
    /* Match hero */
    color: #861211;
    /* Match hero */
    border: 1px solid #861211;
    /* Match hero */
    padding: 18px 30px;
    /* Match hero */
    font-family: 'Tenor Sans', sans-serif;
    font-size: 0.9rem;
    /* Match hero */
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Match hero */
    cursor: pointer;
    transition: all 0.4s ease;
    /* Match hero */
}

.btn-submit:hover {
    background-color: #861211;
    /* Match hero hover assumption (usually fill) */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 18, 17, 0.3);
}

/* Response for Mobile */
@media (max-width: 768px) {
    #contact {
        padding: 70px 0 20px 0 !important;
        /* Minimum safe top padding */
        height: auto !important;
        min-height: 100vh;
        overflow-y: visible !important;
        display: flex;
        flex-direction: column;
    }

    .contact-wrapper {
        flex-direction: column-reverse;
        gap: 10px;
        /* Minimal gap */
        flex: 0 0 auto;
        justify-content: flex-start;
        width: 100%;
        margin-bottom: 0;
    }

    .form-row {
        flex-direction: row;
        /* Keep side-by-side on mobile to save vertical space */
        gap: 10px;
    }

    .contact-heading {
        font-size: 1.5rem;
        /* Much smaller */
        text-align: center;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .contact-subheading {
        text-align: center;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .contact-info {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .contact-bottom-group {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        margin-top: 5px;
        padding-left: 0;
        padding-bottom: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-methods {
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        /* Tighter contact links */
    }

    .contact-method-link {
        font-size: 0.75rem;
        /* Smaller text */
        gap: 6px;
    }

    .contact-method-link svg {
        width: 16px;
        height: 16px;
    }

    .contact-socials-icons {
        gap: 15px;
        /* Reduce gap between social icons */
    }

    .contact-socials-icons svg {
        width: 20px;
        /* Smaller social icons */
        height: 20px;
    }

    .contact-form-container {
        max-width: 100%;
        padding: 0 2px;
    }

    .contact-form {
        gap: 6px;
        /* Ultra tight */
    }

    .form-group {
        gap: 0 !important;
        margin-bottom: 2px;
    }

    .form-group label {
        font-size: 0.75rem;
        /* Tiny labels */
        margin-bottom: 2px;
        display: block;
    }

    .form-input {
        padding: 4px 0;
        /* Minimal padding */
        font-size: 0.85rem;
        height: auto;
    }

    textarea.form-input {
        height: 40px;
        /* Very short text area */
        min-height: 40px;
    }

    .btn-submit {
        width: 100%;
        padding: 10px 0;
        font-size: 0.9rem;
        margin-top: 5px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .section-title {
        font-size: 2.5rem;
        /* Reduced from 4rem for mobile */
        margin-bottom: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-logo {
        display: flex;
        /* Show on mobile */
    }

    .nav-container {
        justify-content: space-between;
        /* Spread logo and hamburger */
    }

    .hamburger {
        display: flex;
    }

    .intro-text h1 {
        font-size: 3rem;
        /* Reduced from 5rem to prevent overflow */
    }

    .intro-text p {
        font-size: 1.1rem;
    }

    /* Stack Media on Mobile */
    .media-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .image-side {
        margin-left: 0;
        margin-top: -30px;
        /* Vertical overlap instead */
        mask-image: linear-gradient(to bottom, transparent, black 20%);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);
    }

    .grid-gallery,
    .category-nav {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
        gap: 20px;
    }

    /* Portfolio nav: rows on mobile (stack vertically) */
    .category-nav.split-screen-nav {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .category-nav.split-screen-nav .category-nav-card {
        flex: 1;
        min-height: 33vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .category-nav.split-screen-nav .category-nav-card:last-child {
        border-bottom: none;
    }

    .portfolio-category h3 {
        font-size: 1.8rem;
    }

    /* Disable some hover effects on touch devices to prevent sticky states */
    .card:hover,
    .category-nav-card:hover {
        transform: none;
    }

    .category-nav-card {
        padding: 40px 20px;
        min-height: 250px;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* --- 3D & Page Transitions --- */

/* Page Transition Overlay */
body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

/* Ensure sections are transparent or semi-transparent to show bg */
.snap-section {
    background-color: rgba(0, 0, 0, 0.2);
    /* Lighter overlay for all pages as requested */
}

/* Keep Hero Section Darker/Different if needed, or let it handle itself via its own overlay div */
#home.snap-section {
    background-color: transparent;
    /* Hero has its own overlay-bg div */
}

/* 3D Context for Cards */
.card,
.category-nav-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Transformation is now handled by JS for the tilt, 
       but we keep the transition for the 'mouse leave' reset */
    transition: transform 0.1s linear;
    /* Fast response for mousemove */
}

/* Override general transition for cards when hovering to prevent lag */
.card:hover,
.category-nav-card:hover {
    transition: transform 0.05s linear;
}

/* Ensure content inside card pops out slightly in 3D - REMOVED to prevent movement */
.card h4,
.card p,
.category-nav-card h3,
.category-nav-card p {
    /* transform: translateZ(20px); */
    /* transform-style: preserve-3d; */
    transform: none;
}

.card-img-placeholder {
    transform: translateZ(10px);
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* Sit on top of everything, including navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(14, 41, 49, 0.95);
    /* Dark background overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--secondary-bg);
    margin: 20px;
    padding: 0;
    border: 1px solid var(--contrast-color);
    width: 90%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: var(--text-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--contrast-color);
    background: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

#modal-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

#modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
    font-family: var(--font-body);
}

.modal-details {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-family: var(--font-body);
}

.modal-details strong {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 25px;
    }

    #modal-title {
        font-size: 1.8rem;
    }
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: black;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.video-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Updated About Section Background - Transparent for video */
#about-preview {
    background-color: transparent;
    color: #f0f0f0;
}

.about-glass-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    /* Removed double overlay */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1;
    pointer-events: none;
}

#about-preview p {
    color: #e0e0e0 !important;
    /* Override global p styles and inline if needed, though inline wins usually. We will remove inline. */
}

/* New About Cross Links */
.about-cross-link {
    position: absolute;
    color: #ffffff;
    font-family: 'SourceSans3', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.about-cross-link:hover {
    color: #861211;
    transform: scale(1.1);
}

.link-top {
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 20px;
}

.link-bottom {
    bottom: auto;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px;
}

.link-left {
    left: auto;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 20px;
}

.link-right {
    right: auto;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 20px;
}

#about-preview .section-title {
    color: #ffffff;
}

/* --- Visual Content Gallery --- */
.visual-gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr max-content 1fr 1fr;
    /* 5 Columns with text in middle */
    gap: 30px;
    /* Adjusted Gap */
    width: 100%;
    height: 55vh;
    /* Reduced height */
    margin-bottom: 50px;
    align-items: center;
}

.visual-text-divider {
    display: flex;
    flex-direction: row;
    /* Keeps spans inline */
    align-items: center;
    justify-content: center;
    height: 100%;
    transform: rotate(180deg);
    /* Read bottom-to-top */
    writing-mode: vertical-rl;
    /* Vertical Text */
    font-family: 'Moderniz', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    gap: 8px;
    /* Small gap between words */
}

.visual-text-divider .text-white {
    color: #ffffff;
}

.visual-text-divider .text-red {
    color: #861211;
}

.visual-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounded corner */
    cursor: pointer;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    filter: brightness(0.9);
}

.visual-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* --- About Page Slides --- */
.about-slide {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: transparent;
    /* Use global bg */
    position: absolute;
    /* Changed from relative to absolute for snap-section compatibility */
    top: 0;
    left: 0;
    padding-top: var(--nav-height);
    /* Clear navbar */
}

.about-slide-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    padding: 0 40px;
    text-align: center;
}

.about-slide-container.passion-mode {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-left: 20px;
    max-width: 95vw;
    /* Increased from 1400px to allow wider image */
    padding-right: 0;
    /* Remove right padding to maximize space */
}

.passion-gallery {
    display: flex;
    /* Changed from grid to flex since it's just one image now */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90vh;
    /* Maximize height */
    padding-right: 20px;
    /* Balance left padding */
}

.passion-item {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.passion-item.wide {
    grid-column: span 2;
}

.passion-item.wide-3 {
    grid-column: span 3;
}

.passion-item.tall {
    grid-row: span 2;
}

/* Shapes for M and E */
.shape-m {
    background-color: rgba(255, 255, 255, 0.2) !important;
    /* Slightly brighter for visibility */
    clip-path: polygon(0% 100%, 0% 0%, 25% 0%, 50% 50%, 75% 0%, 100% 0%, 100% 100%, 75% 100%, 75% 40%, 50% 85%, 25% 40%, 25% 100%);
}

.shape-e {
    background-color: rgba(255, 255, 255, 0.2) !important;
    clip-path: polygon(0% 0%, 100% 0%, 100% 20%, 25% 20%, 25% 40%, 80% 40%, 80% 60%, 25% 60%, 25% 80%, 100% 80%, 100% 100%, 0% 100%);
}

.passion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8);
}

.passion-item:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* Blend mode for images with white background */
.blend-multiply {
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1) !important;
    /* Ensure visibility & override dimmer */
    background-color: transparent;
}

/* Quote Style */
.passion-quote-container {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let text be read */
}

.passion-quote {
    padding: 20px;
    text-align: center;
}

.passion-quote p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.about-text {
    padding: 40px;
    z-index: 2;
    color: #fff;
    /* Determine text color based on bg */
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #861211;
    /* Red Title */
    font-family: 'Moderniz', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    /* White text for contrast on dress.jpeg */
    font-weight: 300;
    max-width: 500px;
}

.about-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.about-image {
    width: 100%;
    height: 80vh;
    /* Defined height card style */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Alternate Layout */
.about-slide.alt .about-slide-container {
    direction: rtl;
    /* Swap columns */
}

.about-slide.alt .about-text {
    direction: ltr;
    /* Reset text direction */
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-slide.alt .about-image {
    transform: perspective(1000px) rotateY(5deg);
}

.about-slide.alt .about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Hobbies Grid override if used */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.hobby-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* --- Passion Gallery Modal --- */
.gallery-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    /* Dark overlay */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.show {
    opacity: 1;
    display: flex;
    /* Ensure flex is applied when shown */
}

.gallery-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gallery-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease;
}

/* Close Button */
.close-gallery {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s;
}

@media (hover: hover) {
    .close-gallery:hover {
        color: var(--accent-color);
    }
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 1001;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .gallery-nav:hover {
        color: #fff;
        transform: translateY(-50%) scale(1.1);
    }
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .close-gallery {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }

    .gallery-nav {
        font-size: 30px;
        padding: 10px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Video Indicator Icon */
.video-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-indicator svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
    margin-left: 2px;
    /* Visual centering for play icon */
}

@media (hover: hover) {
    .visual-item:hover .video-indicator {
        background: #861211;
        border-color: #861211;
        transform: scale(1.1);
    }
}

/* Responsive Layout for About Section */
@media (max-width: 768px) {
    #about-preview .about-image-wrapper {
        width: 60% !important;
        /* Make image larger on mobile */
    }

    /* Adjust link positioning on mobile to prevent overlap/cutoff */
    .link-left {
        margin-right: 10px;
        font-size: 0.9rem;
    }

    .link-right {
        margin-left: 10px;
        font-size: 0.9rem;
    }

    .link-top {
        margin-bottom: 10px;
    }

    .link-bottom {
        margin-top: 10px;
    }

    /* Ensure nav links are hidden initially if not using JS to toggle */
    /* Since we added hamburger, we rely on existing JS/CSS */

    /* FIX: Reset 'Home' link alignment on mobile so it centers like the others */
    .nav-links li:first-child {
        margin-right: 0 !important;
        text-align: center !important;
        width: 100% !important;
        padding: 10px 0;
        transform: none !important;
    }

    .nav-links li {
        width: 100% !important;
        text-align: center !important;
        padding: 0;
        transform: none !important;
    }

    /* Make Vision/Mission images readable on mobile */
    /* Make Vision/Mission images readable on mobile */
    .passion-item.wide {
        width: 100% !important;
        /* Allow full width control via margins/flex */
    }

    /* PASSION SECTION MOBILE: Revert Image Size, Keep Title Left */
    #passion .passion-item {
        width: 100% !important;
        /* Revert to full width (or inline 80%) */
        margin-right: auto !important;
        margin-left: auto !important;
    }

    #passion .about-slide-container>img {
        left: -25px !important;
        /* Force past the edge slightly to remove gaps */
        height: auto !important;
        /* Let height scale naturally or use specific % if needed */
        width: 35% !important;
        /* Increased size */
        object-fit: contain;
        object-position: left center !important;
        /* Force to left edge */
    }

    /* HOBBIES SECTION MOBILE: Revert Image Size, Keep Title Right */
    #hobbies .passion-item {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #hobbies .about-slide-container>img {
        right: -25px !important;
        /* Force past the edge slightly */
        height: auto !important;
        width: 35% !important;
        /* Increased size */
        object-fit: contain;
        object-position: right center !important;
        /* Force to right edge */
    }
}

/* GLOBAL FIX: Ensure Portfolio Cards are perfectly centered */
.category-nav-card {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding-top: 0 !important;
    position: relative;
    /* For absolute arrow */
}

/* Fix: Take arrow out of flow to allow H3 to center perfectly */
.category-nav-card .arrow-icon {
    position: absolute;
    bottom: 30px;
    margin-top: 0;
}