/* ============================================
   FILMIX STYLESHEET
   ============================================ */

/* --------------------------------------------
   CSS VARIABLES
   -------------------------------------------- */
:root {
    --bg: #0f0f10;
    --panel: #141414;
    --muted: #9a958f;
    --accent: #d4b483;
    --accent-2: #7a8b6f;
    --text: #f5f5f5;
}

/* --------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------- */
* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a,
button,
.brand,
.brand a,
.category-card,
.nav a,
.carousel-btn,
.carousel-dot,
.gallery-thumb,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    background: #100c08;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--text);
    background: transparent;
}

/* --------------------------------------------
   SCROLL ANIMATIONS
   -------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --------------------------------------------
   TYPEWRITER EFFECT
   -------------------------------------------- */
.typewriter-hidden {
    visibility: hidden;
}

.typewriter-active {
    display: inline-block;
    width: fit-content;
}

.typewriter-active::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: typewriter-cursor 0.7s infinite;
}

@keyframes typewriter-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --------------------------------------------
   PULSATING BACKGROUND PARTICLES
   -------------------------------------------- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(140, 55, 55, 0.018) 0%, rgba(140, 55, 55, 0) 70%);
    border-radius: 50%;
    animation: particlePulse var(--pulse-duration, 8s) cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: var(--pulse-delay, 0s);
    transition: transform 0.5s ease-out;
}

.particle--large {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(140, 55, 55, 0.012) 0%, rgba(140, 55, 55, 0) 70%);
}

.particle--small {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(150, 60, 60, 0.025) 0%, rgba(150, 60, 60, 0) 70%);
}

@keyframes particlePulse {
    0% { 
        opacity: 0.5;
        transform: scale(1) translate(0, 0);
    }
    25% { 
        opacity: 0.7;
        transform: scale(1.03) translate(2px, -2px);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.06) translate(0, 2px);
    }
    75% { 
        opacity: 0.65;
        transform: scale(1.02) translate(-2px, -1px);
    }
    100% { 
        opacity: 0.5;
        transform: scale(1) translate(0, 0);
    }
}

@media (max-width: 700px) {
    .particle {
        width: 400px;
        height: 400px;
    }
    .particle--large {
        width: 600px;
        height: 600px;
    }
    .particle--small {
        width: 300px;
        height: 300px;
    }
}

/* --------------------------------------------
   SUBTLE LIFE ANIMATIONS
   -------------------------------------------- */

/* Logo breathing animation - subtle but visible pulse */
@keyframes logoBreathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

/* Gold shimmer effect for headings */
@keyframes goldShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Button ripple effect */
@keyframes ripple {
    0% { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Elegant warm gradient - soft wine-red glow from corners, fading to dark center */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse 70% 60% at 0% 0%, rgba(140, 55, 55, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(130, 50, 50, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #18140f 0%, #14110d 30%, #11100c 60%, #0e0c09 100%);
}

a {
    color: var(--accent);
}

/* --------------------------------------------
   TYPOGRAPHY - CONSISTENT HEADINGS
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
}

/* --------------------------------------------
   LAYOUT
   -------------------------------------------- */
.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

main.container {
    flex: 1;
}

/* --------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    background: linear-gradient(0deg, rgba(18, 15, 12, 0.7), rgba(18, 15, 12, 0.65));
    backdrop-filter: blur(10px);
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand h1 {
    font-size: 20px;
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--accent);
    letter-spacing: 0.6px;
}

.brand img {
    height: 44px;
    display: block;
    object-fit: contain;
    animation: logoBreathing 4s ease-in-out infinite;
}

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

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav a:hover::after {
    width: 100%;
}

.nav a.lang::after {
    display: none;
}

.lang {
    font-size: 13px;
    padding: 4px 10px;
    border: none;
    border-radius: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
    width: 100px;
    height: 100px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.menu-toggle.active img {
    transform: rotate(90deg);
}

/* --------------------------------------------
   HERO SECTION (Legacy)
   -------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    margin-bottom: 30px;
}

.slider {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    padding: 12px;
    border-radius: 8px;
}

.slides {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.slides img {
    width: calc(50% - 4px);
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------
   NEW HERO SECTION
   -------------------------------------------- */
.hero-new {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.hero-carousel {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    overflow: hidden;
    min-height: 380px;
}

.carousel-track {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.carousel-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.carousel-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}

.carousel-btn:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.carousel-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.hero-about {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-about h2 {
    margin-top: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    filter: drop-shadow(0 0 1px rgba(212, 180, 131, 0.5));
}

.hero-about p {
    line-height: 1.7;
    color: var(--muted);
}

/* --------------------------------------------
   FEATURED CATEGORIES SECTION
   -------------------------------------------- */
.featured-section {
    position: relative;
    z-index: 2;
}

.featured-section h2 {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 1px var(--accent), 0 0 2px rgba(212, 180, 131, 0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-container {
    max-width: 1400px;
    width: 92%;
}

.category-grid.portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-grid.portfolio-grid .category-card {
    aspect-ratio: 4/3;
}

.category-card {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/3;
    background: var(--panel);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card:hover {
    box-shadow: 0 8px 32px rgba(212, 180, 131, 0.25), 0 0 0 1px rgba(212, 180, 131, 0.15);
}

/* Touch feedback for mobile */
.category-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(212, 180, 131, 0.3), 0 0 0 2px rgba(212, 180, 131, 0.2);
}

.category-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-card:active .category-image img {
    transform: scale(1.02);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    align-items: flex-end;
}

.category-overlay h3 {
    margin: 0;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 1px var(--accent), 0 0 2px rgba(212, 180, 131, 0.3);
}

/* --------------------------------------------
   PORTFOLIO PAGE
   -------------------------------------------- */
.portfolio-header h2 {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 1px var(--accent), 0 0 2px rgba(212, 180, 131, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
    position: relative;
    z-index: 2;
}

.portfolio-card {
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 16px 20px;
}

.portfolio-info h3 {
    margin: 0 0 6px 0;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
}

.portfolio-info p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --------------------------------------------
   ABOUT SECTION (Legacy)
   -------------------------------------------- */
.about {
    background: var(--panel);
    padding: 18px;
    border-radius: 8px;
}

.about h2 {
    margin-top: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --------------------------------------------
   PORTFOLIO GRID & CARDS
   -------------------------------------------- */
.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    padding: 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 180, 131, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.card h3 {
    margin: 8px 0 0 0;
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
}

/* Polaroid Effect */
.polaroid {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 8px solid rgba(255, 255, 255, 0.02);
    transform: rotate(-2deg);
}

/* --------------------------------------------
   GALLERY
   -------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

.gallery-grid picture,
.gallery-thumb-wrapper {
    display: block;
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.gallery-grid picture:hover img,
.gallery-grid img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------
   LIGHTBOX
   -------------------------------------------- */
#lightboxOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    display: block;
}

.lightbox-close {
    position: absolute;
    right: -8px;
    top: -8px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-caption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* --------------------------------------------
   FORMS
   -------------------------------------------- */
.form-panel {
    max-width: 700px;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.form-panel h2 {
    color: var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    text-shadow: 0 0 1px var(--accent), 0 0 2px rgba(212, 180, 131, 0.3);
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 10px 0 6px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.required {
    color: var(--accent);
    margin-left: 4px;
}

.muted-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 12px;
}

/* --------------------------------------------
   BUTTONS
   -------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #111;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #e5c494;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 180, 131, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.cta {
    display: inline-block;
    padding: 12px 18px;
    background: var(--accent);
    color: #111;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 180, 131, 0.3);
}

.cta:active {
    transform: translateY(0);
}

.cta .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 0.6s linear;
    pointer-events: none;
}


/* --------------------------------------------
   FOOTER
   -------------------------------------------- */
footer {
    padding: 30px 20px;
    margin-top: 40px;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 2;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

footer .container a {
    color: var(--muted);
    text-decoration: none;
}

footer .container a:hover {
    color: var(--accent);
}

/* --------------------------------------------
   RESPONSIVE - TABLET (max-width: 900px)
   -------------------------------------------- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-new {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-carousel {
        min-height: 300px;
    }

    .carousel-slide img {
        max-height: 280px;
    }

    .hero-about {
        padding: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-grid.portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .grid-portfolio {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------
   RESPONSIVE - MOBILE (max-width: 700px)
   -------------------------------------------- */
@media (max-width: 700px) {
    .menu-toggle {
        display: block;
        width: 52px;
        height: 52px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(24, 18, 14, 0.95) 0%, rgba(18, 14, 11, 0.98) 100%);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(180, 110, 70, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        padding: 8px 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .nav.open {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav a {
        padding: 18px 28px;
        border-bottom: 1px solid rgba(180, 110, 70, 0.08);
        width: 100%;
        text-align: left;
        font-size: 16px;
        color: var(--muted);
        transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
    }

    .nav a:hover,
    .nav a:active {
        color: var(--accent);
        background: rgba(180, 110, 70, 0.08);
        padding-left: 36px;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav .lang {
        margin: 12px 28px 8px;
        align-self: flex-start;
        border: none;
        color: var(--accent);
    }

    header {
        padding: 8px 18px;
        position: sticky;
        top: 0;
    }

    .slides img {
        width: 100%;
    }

    .hero-carousel {
        min-height: 250px;
    }

    .carousel-slide img {
        max-height: 220px;
    }

    .carousel-nav {
        gap: 8px;
        bottom: 10px;
        padding: 5px 12px;
    }

    .carousel-btn {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .carousel-dot {
        width: 7px;
        height: 7px;
    }

    .carousel-dot.active {
        width: 16px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        aspect-ratio: 16/9;
    }

    .category-grid.portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-grid.portfolio-grid .category-overlay h3 {
        font-size: 1rem;
    }

    .grid-portfolio {
        grid-template-columns: 1fr;
    }

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

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .lightbox-prev {
        left: 10px;
    }

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

/* --------------------------------------------
   RESPONSIVE - SMALL MOBILE (max-width: 500px)
   -------------------------------------------- */
@media (max-width: 500px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-grid.portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .category-grid.portfolio-grid .category-overlay h3 {
        font-size: 0.9rem;
    }

    .portfolio-container {
        width: 96%;
    }
}
