﻿/* SYM DESIGN - Core Styles */
@import url('https://fonts.googleapis.com/css2?family=Handlee&family=Instrument+Serif:ital,wght@0,400;1,400&display=swap');

:root {
    /* Color Palette */
    --color-bg: #f3eddf;
    /* Off-white */
    --color-text: #181815;
    /* Dark */
    --color-primary: #965304;
    /* Amber/Brown */
    --color-secondary: #7c7c62;
    /* Olive */
    --color-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Handlee', cursive;

    /* Responsive Transitions */
    --transition-glass: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 140px;
    /* Space for floating header */
}

body.homepage .nav-links,
body.homepage .burger {
    display: none !important;
    /* Hide links on home for minimalist look */
}

body.homepage nav {
    justify-content: center;
    position: relative;
    /* To allow absolute positioning of the switch */
    min-height: 50px;
    /* Match logo height to ensure consistent toolbar height */
}

body.homepage .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

body.homepage .nav-switch-container {
    margin-left: auto;
    /* Push to right in normal flow, but since logo is absolute, this works */
}

body.homepage {
    padding-top: 0;
    /* Homepage has video splash, no padding needed */
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    transition: filter 1s ease;
}

.bg-video-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (min-aspect-ratio: 16/9) {
    .bg-video-youtube {
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .bg-video-youtube {
        width: 177.78vh;
    }
}

.blur-background {
    filter: blur(40px) brightness(0.7);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 24, 21, 0.2);
    z-index: -1;
}

/* Language Splash */
.language-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(24, 24, 21, 0.7);
    /* Darker backdrop */
    transition: opacity 0.8s ease, visibility 0.8s;
}

.language-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.language-picker {
    text-align: center;
    padding: 2.5rem 2rem;
    max-width: 380px;
    /* Further reduced box width */
    width: 90%;
    background: var(--color-secondary) !important;
    /* Brand Olive */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Splash Project Background Removed as per request */

.splash-logo {
    height: 180px;
    /* Slightly more compact logo */
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.language-picker h2 {
    font-size: 1.8rem;
    /* Reduced "Welcome" size */
    margin-bottom: 0.5rem;
    color: var(--color-bg);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.language-picker p {
    color: rgba(243, 237, 223, 0.8);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Tactile Switch Button (Recessed 3D Look) */
.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.lang-label {
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-bg);
    font-size: 0.9rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 42px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    /* Recessed track */
    transition: .6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 255, 255, 0.1);
    /* 3D Inner shadow */
}

.slider:before {
    position: absolute;
    content: "";
    height: 34px;
    width: 40px;
    left: 4px;
    bottom: 4px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    transition: .6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    /* Physical pill look */
}

input:checked+.slider {
    background-color: rgba(150, 83, 4, 0.3);
    /* Brand amber glow shadow */
}

input:checked+.slider:before {
    transform: translateX(42px);
    background: linear-gradient(145deg, var(--color-primary), #7a4303);
    /* Branded orange side */
    box-shadow: 0 10px 20px rgba(150, 83, 4, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.5);
    /* Glowing shadow */
}

.enter-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.enter-btn:hover {
    background-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Visibility management */
.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

/* Hero V2 for Video bg */
.hero-v2 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centering horizontally */
    color: var(--color-bg);
}

.hero-text-v2 {
    text-align: center;
    /* Ensure internal text/bubbles are centered */
    width: 100%;
}

.hero-text-v2 h1 {
    font-size: 5.5rem;
    color: var(--color-bg);
    max-width: 900px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-text-v2 p {
    font-size: 1.8rem;
    margin: 1.5rem 0 3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Bubble Navigation */
.nav-bubbles {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0;
    /* Removed margin since text is gone */
}

.nav-bubbles.project-pagination {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin: 0;
    background: rgba(243, 237, 223, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-pagination .bubble-nav {
    width: 56px;
    height: 56px;
    font-size: 0.5rem;
    padding: 0.3rem;
    flex-shrink: 0;
}

.project-pagination .bubble-nav.prev,
.project-pagination .bubble-nav.next {
    font-size: 1.2rem;
    /* Large arrows */
    font-family: Arial, sans-serif;
    /* Better arrow glyphs */
}

/* Ensure horizontal layout on all screens */
@media screen and (max-width: 768px) {
    .nav-bubbles.project-pagination {
        gap: 1rem;
        padding: 0.8rem 1.5rem;
        width: auto;
        max-width: 90%;
    }

    .project-pagination .bubble-nav {
        width: 50px;
        height: 50px;
    }

    .project-pagination .bubble-nav.back-to-all {
        width: 70px;
        /* Slightly wider for "Projects" */
        border-radius: 30px;
        /* More pill-like for the middle one on mobile */
    }
}

.bubble-nav {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(243, 237, 223, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: #965304;
    /* Ocre/Amber color */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-family: var(--font-heading);
    padding: 1.2rem;
    font-weight: 500;
}

.bubble-nav:hover {
    transform: scale(1.1) translateY(-10px);
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    /* Fluid horizontal padding */
}

/* Ultra-Wide Scaling (2K/4K) */
@media screen and (min-width: 2000px) {
    :root {
        --spacing-md: 3rem;
        --spacing-lg: 6rem;
        --spacing-xl: 12rem;
    }

    .container {
        max-width: 1800px;
    }

    html {
        font-size: 18px;
        /* Scale up base typography for large screens */
    }

    .bubble-nav {
        width: 180px;
        height: 180px;
        font-size: 1rem;
    }
}

@media screen and (min-width: 3000px) {

    /* 4K and beyond */
    .container {
        max-width: 2400px;
    }

    html {
        font-size: 22px;
    }
}

/* Section Common */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    /* For ambient decor */
}

.ambient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: blur(80px) saturate(1.5);
    opacity: 0.15;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.homepage-section {
    margin-bottom: var(--spacing-xl);
}

.section-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.section-link:hover {
    transform: translateX(10px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

/* Navigation */
header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 0.8rem 2.5rem;
    background: rgba(243, 237, 223, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    z-index: 1000;
    box-shadow: 0 15px 45px rgba(24, 24, 21, 0.15);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    /* Reduced for floating header */
    width: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.lang-btn.active {
    opacity: 1;
    color: var(--color-primary);
}

.logo-group {
    display: none;
    /* Removed from index.html, keeping for safety or cleaning up later if used elsewhere */
}

.nav-switch-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-lang-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-lang-label.active {
    opacity: 1;
    color: var(--color-primary);
}

.switch.nav-switch {
    width: 50px;
    height: 24px;
}

.switch.nav-switch .slider:before {
    height: 18px;
    width: 20px;
    left: 3px;
    bottom: 3px;
}

input:checked+.slider.round:before {
    transform: translateX(24px);
}

/* Burger customization to include switcher on mobile if needed */

.nav-links a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(243, 237, 223, 0.9), rgba(243, 237, 223, 0.8)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Placeholder Arch Image */
    background-size: cover;
    background-position: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    color: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--color-text);
    color: var(--color-bg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    border: 1px solid var(--color-text);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-text);
}

/* Grid System for Projects/Shop */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.card {
    display: block;
    background: rgba(255, 255, 255, 0.45);
    /* Glass effect */
    backdrop-filter: blur(30px);
    /* Increased blur for more depth */
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    /* Even rounder */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: inherit;
    box-shadow: 0 15px 45px rgba(24, 24, 21, 0.08);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 40px 80px rgba(24, 24, 21, 0.15);
}

.card-image {
    height: 300px;
    background-color: #ddd;
    /* Placeholder */
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    /* Inset image rounding */
    margin: 10px;
    /* Space inside the card */
}

.card-content {
    padding: var(--spacing-sm);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.card-meta {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

/* Coming Soon Shop state */
.card.coming-soon {
    pointer-events: none;
    cursor: default;
}

.card.coming-soon .card-image {
    filter: blur(8px);
    position: relative;
    opacity: 0.7;
}

.card.coming-soon .card-image::after {
    content: attr(data-coming-soon);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(24, 24, 21, 0.6);
    color: var(--color-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Footer */
footer {
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-column h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

/* Shop specific */
.price {
    color: var(--color-primary);
    font-weight: 500;
}

/* Mobile Nav */
.burger {
    display: none;
    cursor: pointer;
    background: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--color-bg);
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.burger span {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.burger:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(150, 83, 4, 0.3);
}

.burger div {
    width: 20px;
    height: 2px;
    background-color: var(--color-bg);
    margin: 3px 0;
    transition: all 0.3s ease;
}

.burger-lines {
    display: flex;
    flex-direction: column;
}

/* Burger Toggle Animations */
.toggle .line1 {
    transform: rotate(-45deg) translate(-4px, 4px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-4px, -4px);
}

/* Projects Page Redesign - Editorial Style */
.project-header {
    text-align: center;
    padding: 0 0 var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.project-page-title,
.page-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    color: var(--color-primary);
    text-align: center;
}

.page-title-olive {
    color: var(--color-secondary);
}

.project-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.project-showcase {
    position: relative;
    margin-bottom: var(--spacing-xl);
    cursor: pointer;
    display: block;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;

    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(24, 24, 21, 0.05);
    /* Lighter default shadow */
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-showcase:hover {
    transform: scale(1.02) translateY(-15px);
    /* Intensified floating effect */
    box-shadow: 0 40px 90px rgba(24, 24, 21, 0.2);
    /* Deepened shadow */
}

.project-triptych {
    display: flex;
    height: 350px;
    /* Reduced height for more compact horizontal look */
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 25px;
    /* Rounding the image container too */
}

.triptych-panel {
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Olive filter on hover */
.project-triptych::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    /* Olive */
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-showcase:hover .project-triptych::after {
    opacity: 0.6;
    /* Strengthened background fade */
}

/* Hover effect on images */
.project-showcase:hover .triptych-panel {
    transform: scale(1.05);
}

.project-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: #965304;
    /* Amber requested color */
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.project-showcase:hover .project-overlay-title {
    opacity: 1;
    /* Revealed on hover */
    transform: translate(-50%, -50%);
    /* Slide up into position */
}

.project-category-label {
    display: none;
    /* Hide categories on projects page as requested */
}

/* Detail Page Styles */
.project-detail-header {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}


.project-detail-meta {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
    color: var(--color-secondary);
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.project-detail-meta p strong {
    color: var(--color-text);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.detail-specs h4 {
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-secondary);
}

.detail-specs p {
    margin-bottom: var(--spacing-sm);
}

.detail-description {
    font-size: 1.2rem;
    line-height: 1.8;
}

.detail-gallery {
    column-count: 2;
    column-gap: var(--spacing-sm);
    display: block;
    /* Override potential legacy grid */
}

.gallery-item {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--spacing-sm);
    break-inside: avoid;
    border-radius: 4px;
    /* Subtle polish */
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(124, 124, 98, 0.2);
    position: relative;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.project-nav-left .nav-btn {
    align-items: flex-start;
}

.project-nav-right .nav-btn {
    align-items: flex-end;
}

.nav-arrow {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.nav-label {
    /* Reset to match bubble-nav */
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.nav-btn:hover {
    color: var(--color-primary);
    transform: translateY(-5px);
}

.project-nav-left,
.project-nav-right {
    flex: 1;
    display: flex;
}

.project-nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.project-nav-right {
    justify-content: flex-end;
}

.nav-link {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-separator {
    color: rgba(124, 124, 98, 0.3);
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 4%;
    }

    .project-overlay-title {
        font-size: 3.5rem;
    }

    .project-triptych {
        height: 300px;
    }

    .team-circular-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        width: 95%;
        padding: 0.6rem 1.2rem;
        top: 1rem;
    }

    .logo-img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background: rgba(243, 237, 223, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 100;
        gap: 2rem;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: flex;
        z-index: 101;
    }

    .nav-lang-switcher {
        display: none;
    }

    .project-triptych {
        flex-direction: row;
        /* Force horizontal editorial look */
        height: 280px;
    }

    .triptych-panel:nth-child(3) {
        display: none;
        /* Drop to 2 images for space */
    }

    .project-overlay-title {
        font-size: 2.2rem;
        opacity: 1;
        transform: translate(-50%, -50%);
        letter-spacing: 0.1em;
    }

    .project-showcase {
        padding: 12px;
        border-radius: 30px;
        width: 94%;
        margin-left: 3%;
        margin-right: 3%;
    }

    .nav-bubbles {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .bubble-nav {
        width: 100px;
        height: 100px;
        font-size: 0.75rem;
    }

    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-circular-grid,
    .citations-section {
        grid-template-columns: 1fr;
    }

    .member-profile-box {
        padding: 1.5rem;
    }

    .team-main-hero-title {
        font-size: 2.8rem;
    }
}

@media screen and (max-width: 480px) {

    /* Mobile-specific refinements */
    html {
        font-size: 14px;
    }

    .project-triptych {
        height: 200px;
    }

    .hero-text-v2 h1 {
        font-size: 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .triptych-panel:nth-child(2) {
        display: none;
        /* Show only 1 image on very small screens */
    }

    .triptych-panel {
        width: 100%;
    }

    .project-overlay-title {
        font-size: 1.6rem;
    }

    .bubble-nav {
        width: 85px;
        height: 85px;
        font-size: 0.65rem;
        padding: 0.8rem;
    }
}

/* Team Page */
.team-header {
    text-align: center;
    margin: 4rem 0 6rem;
}

.team-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 8rem;
}

.team-card {
    padding: 2.5rem;
    text-align: center;
    height: 100%;
}

.member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(243, 237, 223, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.member-info .role {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.member-info .bio {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Team Page Redesign */

.office-hero {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.office-hero.bottom-banner {
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

/* No Hover Variants */
.project-showcase.no-hover {
    cursor: default;
}

.project-showcase.no-hover:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(24, 24, 21, 0.1);
}

.project-showcase.no-hover:hover .triptych-panel {
    transform: none;
}

.project-showcase.no-hover:hover .project-triptych::after {
    opacity: 0;
}

.project-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    width: 80%;
}

.project-category-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-bg);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Consolidated duplicate overlay title styles */

/* Project Filter Bar */
.project-filter-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    color: var(--color-text);
}

.filter-btn:hover,
.filter-btn.active {
    opacity: 1;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

.philosophy-section {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.editorial-title {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.editorial-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.9;
}

.team-circular-section {
    margin-bottom: 1.5rem;
}

.team-circular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

/* Team Page Specific Spacing Refinements */
.team-page section,
.contact-page section {
    padding: 2.5rem 0;
}

.team-page .page-title.team-main-title {
    margin-bottom: 1.5rem;
}

.team-page .office-hero {
    padding-bottom: 0;
}

.team-page .office-hero .project-showcase {
    margin-bottom: 0;
}

.team-page .philosophy-section,
.contact-page .philosophy-section {
    padding-top: 1rem;
}

.contact-page .team-circular-section {
    padding-bottom: 0.5rem;
}

/* Grid Layout for Team Rows */
.florian-row {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.florian-row .member-profile-box {
    max-width: 400px;
    width: 100%;
}

.others-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.member-profile-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
}

.member-profile-box.no-picture {
    padding: 2rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-profile-box:hover {
    transform: translateY(-10px);
}

.circular-profile {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--color-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #7c7c62;
    /* Olive requested color */
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.member-role {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.citations-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(124, 124, 98, 0.2);
    padding-top: 1.5rem;
}

.citations-section.single-citation {
    display: flex;
    justify-content: center;
}

.citation {
    text-align: center;
}

.citation blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    font-weight: 300;
}

.citation .author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .team-circular-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .team-circular-grid,
    .citations-section {
        grid-template-columns: 1fr;
    }

    .office-overlay-title {
        font-size: 3rem;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 24, 21, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 3005;
}

.lightbox-nav-bubble {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 3010;
    transition: all 0.3s ease;
    color: #f5f5f5;
    font-size: 2.5rem;
    background: transparent;
    border: none;
}

.lightbox-nav-bubble.prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 3rem;
}

.lightbox-nav-bubble.next {
    right: 0;
    justify-content: flex-end;
    padding-right: 3rem;
}

.lightbox-nav-bubble:hover {
    background: rgba(255, 255, 255, 0.02);
}

.lightbox-nav-bubble span {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lightbox-nav-bubble:hover span {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-bg);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 3020;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    .lightbox-nav-bubble {
        width: 50%;
        font-size: 1.8rem;
    }

    .lightbox-nav-bubble.prev {
        padding-left: 1rem;
    }

    .lightbox-nav-bubble.next {
        padding-right: 1rem;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

/* --- Responsive Overrides for Project Details --- */
@media screen and (max-width: 1024px) {

    /* Stack gallery images one above the other */
    .detail-gallery {
        column-count: 1 !important;
        gap: 1.5rem !important;
    }

    /* Force pagination bubbles to stay side-by-side on one line */
    .nav-bubbles.project-pagination {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.8rem !important;
        padding: 0.6rem 1.2rem !important;
        width: auto !important;
        max-width: 95% !important;
        bottom: 1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .project-pagination .bubble-nav {
        width: 48px !important;
        height: 48px !important;
        padding: 0.2rem !important;
        font-size: 0.45rem !important;
        flex-shrink: 0 !important;
    }

    .project-pagination .bubble-nav.prev,
    .project-pagination .bubble-nav.next {
        font-size: 1rem !important;
    }

    .project-pagination .bubble-nav.back-to-all {
        width: 75px !important;
        border-radius: 30px !important;
        line-height: 1 !important;
    }
}