:root {
    --bg-color: #0F0F0F;
    --text-color: #FBFBFB;
    --accent-color: #A18262;
    --card-bg: #1A1A1A;
    --nav-height: 80px;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

/* Navigation */
#navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(161, 130, 98, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    /* Reduced gap slightly to help with width */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* Prevent line breaks within items */
}

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

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('hero_cages_004.jpg');
    /* Placeholder for specific hero img */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Lightbox Content Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

/* Sections */
.section {
    padding: 120px 0;
}

.alt-bg {
    background-color: var(--card-bg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 60px;
    font-weight: 300;
    color: #AAA;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: contrast(1.05) brightness(1.02) saturate(1.05);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: var(--accent-color);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicator.current-slide {
    background: var(--accent-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--transition-slow), filter 0.6s ease;
    filter: contrast(1.05) brightness(1.02) saturate(1.05);
    image-rendering: -webkit-optimize-contrast;
    /* Perceived sharpness */
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: contrast(1.15) brightness(1.1) saturate(1.15);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    border: 1px solid #FFF;
    padding: 10px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Bio Layout */
.bio-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.bio-text p {
    margin-bottom: 20px;
    font-weight: 300;
}

.cv-list {
    list-style: none;
    margin-top: 30px;
}

.cv-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 300;
    color: #CCC;
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
    transition: color 0.3s ease;
}

.cv-list li strong {
    color: var(--accent-color);
}

.cv-list li:hover {
    color: var(--text-color);
}

.bio-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.artist-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 98%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: contrast(1.05) brightness(1.02);
    display: block;
}

.moustache-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 98%;
    clip-path: inset(32% 35% 61.5% 35% round 2px);
    animation: moustacheVibrate 7s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes moustacheVibrate {

    0%,
    93% {
        transform: translate(0, 0) scale(1.002);
    }

    94% {
        transform: translate(1px, -1.5px) scale(1.005);
    }

    95% {
        transform: translate(-1.5px, 1px) scale(1.005);
    }

    96% {
        transform: translate(1px, 1.5px) scale(1.005);
    }

    97% {
        transform: translate(-1px, -1.5px) scale(1.005);
    }

    98% {
        transform: translate(1px, -1px) scale(1.005);
    }

    99% {
        transform: translate(-1px, 1px) scale(1.005);
    }

    100% {
        transform: translate(0, 0) scale(1.002);
    }
}

/* Contact form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #222;
    border: 1px solid #333;
    color: #FFF;
    font-family: inherit;
    outline: none;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 20, 20, 1) 0%, rgba(0, 0, 0, 1) 100%);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    /* filter: contrast(1.1) brightness(1.05) saturate(1.1); */
    /* filter: contrast(1.1) brightness(1.05) saturate(1.1); */
    /* animation: zoomIn 0.4s var(--transition-slow); */
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #FFF;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    animation: revealUp 1s forwards;
}

.reveal-text-delay {
    animation: revealUp 1s forwards 0.3s;
}

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

/* Mobile Responsiveness */
@media (max-width: 992px) {

    .bio-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        gap: 20px;
        transition: 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
    }

    .nav-links.active li {
        animation: revealUp 0.5s forwards;
    }

    .nav-links.active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-links.active li:nth-child(7) {
        animation-delay: 0.7s;
    }

    .nav-links.active li:nth-child(8) {
        animation-delay: 0.8s;
    }

    .nav-links.active li:nth-child(9) {
        animation-delay: 0.9s;
    }

    .nav-links.active li:nth-child(10) {
        animation-delay: 1.0s;
    }
}

/* Intro Text Block */
.intro-text {
    max-width: 1100px;
    margin: 0 auto 60px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px 60px;
    line-height: 1.8;
}

.intro-header {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 5;
    padding-bottom: 20px;
}

.toggle-icon {
    width: 20px;
    height: 12px;
    position: relative;
    margin-top: 15px;
    transition: transform 0.3s ease;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.toggle-icon::before {
    left: 0;
    transform: rotate(45deg);
}

.toggle-icon::after {
    right: 0;
    transform: rotate(-45deg);
}

.intro-text.expanded .toggle-icon {
    transform: rotate(180deg);
}

.intro-header:hover .toggle-icon::before,
.intro-header:hover .toggle-icon::after {
    background: var(--text-color);
}

.intro-header:hover h3 {
    color: var(--text-color);
}

.intro-text h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
}

.chevron-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.4s ease;
    line-height: 1;
}

.intro-text.expanded .chevron-icon {
    transform: rotate(180deg);
}

.intro-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
    margin-top: 0;
}

.intro-text.expanded .intro-content {
    max-height: 3000px;
    opacity: 1;
    margin-top: 35px;
}

.intro-text p {
    color: #DDD;
    font-size: 1.05rem;
    font-weight: 300;
    text-align: left;
    margin-bottom: 25px;
}




/* Caption Styles */
#caption {
    margin-top: 20px;
    text-align: center;
    max-width: 80%;
    color: var(--text-color);
    opacity: 0;
    /* Start hidden for animation */
    animation: revealUp 0.5s ease-out 0.2s forwards;
    /* changed from both to forwards */
}

#caption h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.1em;
}

#caption p {
    font-size: 1rem;
    font-weight: 300;
    color: #CCC;
    line-height: 1.5;
}

.lightbox {
    flex-direction: column;
}