:root {
    /* Color Palette - Pastel & Premium */
    /* 3 Pastel Colors as requested */
    --pastel-pink: #E8C3C3;
    --pastel-sage: #BDD6BD;
    --pastel-cream: #F5E6CC;

    /* Neutrals */
    --bg-body: #FAFAFA;
    --bg-alt: #F4F4F4;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;

    /* Functional */
    --primary-color: #D4A3A3;
    /* A slightly deeper version of pastel pink for accessibility/buttons */
    --accent-color: #A3BFA3;
    /* Deeper sage */

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-modern: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.subtitle {
    font-family: var(--font-heading);
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

.section {
    padding: var(--section-padding);
}

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

.bg-accent {
    background-color: var(--pastel-cream);
}

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

.subtitle {
    display: block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-main);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-main);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-outline:hover {
    color: var(--white);
    border-color: transparent;
}

.btn-outline:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Header & Nav */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1003;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

#header.scrolled,
#header.solid {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    overflow: hidden;
}

.logo {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    justify-self: center;
}

.logo-text {
    font-family: var(--font-modern);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    transition: var(--transition);
}

#header.scrolled .logo-text,
#header.solid .logo-text {
    color: var(--text-main);
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(0) invert(1);
}

#header.scrolled .logo-img,
#header.solid .logo-img {
    /* Return to original color (dark) on white background */
    filter: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    transition: width 0.3s ease;
}

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

#header.scrolled .nav-links a,
#header.solid .nav-links a {
    color: var(--text-main);
}

#header.scrolled .nav-links a::after,
#header.solid .nav-links a::after {
    background-color: var(--text-main);
}

.btn-nav {
    border: 1px solid var(--white);
    padding: 8px 20px;
}

.btn-nav:hover {
    background: var(--white);
    color: var(--text-main);
}

#header.scrolled .btn-nav,
#header.solid .btn-nav {
    border-color: var(--text-main);
    color: var(--text-main);
}

#header.scrolled .btn-nav:hover {
    background: var(--text-main);
    color: var(--white);
}

.main-nav {
    display: flex;
    justify-content: flex-end;
    grid-column: 3;
}

.hamburger {
    display: none;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#header.scrolled .hamburger,
#header.solid .hamburger {
    opacity: 0.6;
}

/* Hero Section - Split Screen */
.split-hero {
    height: 100vh;
    width: 100%;
    display: flex;
}

.hero-panel {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.hero-panel:hover {
    flex: 1.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.6s ease;
}

.hero-panel:hover .hero-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.weddings-panel {
    background-image: url('assets/images/full/hero.webp');
}

.commercial-panel {
    background-image: url('assets/projects/commercial/Carlo/full/250809_Carlo_shoot1-1.webp');
}

.travel-panel {
    background-image: url('assets/projects/travel/India/full/cover.webp');
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.hero-panel:hover .hero-content {
    transform: translateY(0);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
    border-color: var(--white);
    color: var(--white);
}

.hero-content .btn::before {
    background-color: var(--white);
}

.hero-content .btn:hover {
    color: var(--text-main);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    object-position: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
}

.about-image.active img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

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

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

.pattern-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--pastel-pink);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
    perspective: 1000px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Make some items span 2 columns/rows for masonry feel if supported */
.gallery-item:nth-child(2) {
    grid-column: span 1;
}

@media(min-width: 768px) {
    .gallery-item:nth-child(1) {
        grid-row: span 2;
        height: 820px;
        /* 400*2 + 20 gap */
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
    /* Reduced opacity for text readability */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Text at the bottom */
    padding-bottom: 30px;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    background: rgba(232, 195, 195, 0.4);
    /* Subtle pastel tint on hover */
}

.gallery-item .overlay .text {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.gallery-item:hover .overlay .text {
    transform: scale(1.05);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.project-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
    font-family: var(--font-body);
}

/* Services Section */
#services h2 {
    font-family: var(--font-modern);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-top: 4px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--pastel-sage);
}

.pricing-card.featured {
    border-color: var(--pastel-pink);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    font-family: var(--font-modern);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.pricing-card ul {
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--pastel-pink);
    color: var(--white);
    padding: 4px 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

/* Testimonials */
#testimonials {
    padding: 60px 0;
}

.narrow-container {
    max-width: 800px;
}

.quote-mark {
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 0.5;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.6;
}

.client-name {
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

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

.contact-details {
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

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

.contact-form .form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pastel-pink);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-form .form-group:focus-within::after {
    width: 100%;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-body);
    border: 1px solid #E0E0E0;
    font-family: var(--font-body);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--pastel-pink);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(232, 195, 195, 0.1);
}

/* Footer */
footer {
    background: #2A2A2A;
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-logo {
    font-family: var(--font-modern);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.footer-logo .initial {
    font-size: 0.95rem;
    line-height: 1;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.footer-logo span:hover .initial {
    color: var(--pastel-pink);
    text-shadow: 0 0 20px rgba(232, 195, 195, 0.6);
}

.social-links {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--white);
    margin: 0 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.social-links a:hover i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(-6px);
    }
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Horizontal Scroll Section */
.horizontal-scroll-section {
    position: relative;
    height: 250vh;
    overflow: hidden;
    background: var(--bg-alt);
}

.horizontal-scroll-track {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 5vw;
    will-change: transform;
    overflow-x: hidden;
}

.scroll-card {
    flex-shrink: 0;
    width: 400px;
    height: 550px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.scroll-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.scroll-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
}

/* Mobile: Convert to vertical scroll */
@media (max-width: 768px) {
    .horizontal-scroll-section {
        height: auto;
    }

    .horizontal-scroll-track {
        position: relative;
        height: auto;
        flex-direction: column;
        padding: 50px 5vw;
    }

    .scroll-card {
        width: 100%;
        max-width: 400px;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--pastel-pink);
    border-color: var(--pastel-pink);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(212, 163, 163, 0.3);
}

@media (max-width: 768px) {
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
    opacity: 0;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal {
    transform: translateY(40px);
}

.gallery-item.reveal {
    transform: translateY(60px) scale(0.95);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

.text-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.text-reveal.active {
    clip-path: inset(0 0 0 0);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Responsive — nav switches to hamburger at 960px */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        padding: 10px;
        margin-right: -10px;
        position: relative;
        z-index: 1002;
    }

    /* Mobile Menu styles when active */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(15px);
        padding: 40px;
        z-index: 999;
        gap: 25px;
    }

    .nav-links.active li {
        width: 100%;
        text-align: center;
    }

    .nav-links.active a {
        color: var(--white) !important;
        font-size: 1.5rem;
        font-family: var(--font-heading);
        font-weight: 500;
        letter-spacing: 2px;
    }

    .nav-links.active .btn-nav {
        border-color: var(--white) !important;
        color: var(--white) !important;
        padding: 15px 40px;
        font-size: 1.1rem;
        margin-top: 10px;
    }

    /* Override underline color for mobile menu */
    .nav-links.active a::after {
        background-color: var(--white) !important;
    }

    .hamburger .bar {
        display: block;
        width: 30px;
        height: 2px;
        margin: 6px 0;
        background-color: var(--white);
        transition: var(--transition);
        position: relative;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* On category/project pages, hamburger bars should be dark (until opened) */
    header.scrolled .hamburger .bar,
    header.solid .hamburger .bar {
        background-color: var(--text-main);
    }

    /* When menu is active, bars are always white (for X icon) on all pages */
    .hamburger.active .bar,
    header.scrolled .hamburger.active .bar,
    header.solid .hamburger.active .bar {
        background-color: var(--white) !important;
    }
}

/* Responsive — layout changes at 768px */
@media (max-width: 768px) {
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .split-hero {
        flex-direction: column;
    }

    .hero-panel:hover {
        flex: 1;
    }

    .gallery-item:nth-child(1) {
        grid-row: span 1;
        height: 300px;
    }
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.98);
    opacity: 0;
    transition: opacity 0.5s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-main);
    font-size: 28px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 20000;
    line-height: 1;
    opacity: 0.5;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    background: transparent;
    border: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
    color: var(--text-main);
}

.lightbox-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 40px;
}

.lightbox-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 40px;
}

.lightbox:hover .lightbox-prev,
.lightbox:hover .lightbox-next {
    opacity: 0.4;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1 !important;
}

.lightbox-nav-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Show lightbox navigation on touch devices */
@media (pointer: coarse), (hover: none) {
    .lightbox-prev,
    .lightbox-next {
        opacity: 0.3;
    }

    .lightbox-prev:active,
    .lightbox-next:active {
        opacity: 1;
    }
}

/* Category & Project Hero Banner */
.project-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-color: var(--black);
}

.project-hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    margin-top: 10px;
    letter-spacing: 2px;
    font-family: var(--font-body);
    text-transform: uppercase;
}

#category-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.4);
}

#category-hero-title {
    text-transform: capitalize;
    font-size: 4rem;
}

#category-about {
    display: none;
    padding-bottom: 0;
}

/* Project Page */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 50px 0;
}

.project-gallery img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: var(--transition);
}

.project-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.back-nav {
    position: absolute;
    top: 100px;
    left: 40px;
    z-index: 100;
}

.back-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.back-nav a:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.project-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
}

.project-description h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.project-description p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =============================================
   VIDEO HERO SECTION
   ============================================= */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.video-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

/* Name — Outfit font, elegant, stacked two lines */
.hero-name {
    font-family: var(--font-modern);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 1.05;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

#tw-martino::first-letter,
#tw-allais::first-letter {
    font-size: 1.6em;
    font-weight: 400;
}

/* Blinking cursor */
.hero-cursor {
    display: inline;
    font-weight: 200;
    opacity: 1;
    animation: cursorBlink 0.8s step-start infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Eyebrow tagline — starts hidden, JS transitions it in */
.hero-eyebrow {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    white-space: nowrap;
    margin-top: -25px;
}

/* Scroll indicator — hidden until JS reveals it */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scroll-label {
    font-family: var(--font-modern);
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-line-wrap {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.scroll-line-inner {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    animation: scrollLine 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }

    50% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-name {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: 0.15em;
    }

    .hero-eyebrow {
        font-size: 0.65rem;
        letter-spacing: 3px;
        white-space: normal;
        text-align: center;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-line-wrap {
        height: 35px;
    }

    .hero-video {
        left: 0;
        transform: translate(0, -50%);
    }
}

/* =============================================
   PRELOADER
   =============================================
   To disable the preloader, add this line below:
   .preloader { display: none !important; }
   ============================================= */
.preloader { display: none !important; }
.preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 1;
    visibility: visible;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    font-family: var(--font-modern);
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    display: flex;
    gap: 20px;
}

.preloader-initial {
    font-size: 5rem;
    font-weight: 400;
    color: var(--text-main);
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-initial:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes preloaderPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* =============================================
   PAGE TRANSITION OVERLAY
   ============================================= */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-body);
    z-index: 99999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.page-transition-overlay.hidden {
    opacity: 0;
}

body.page-leaving .page-transition-overlay {
    opacity: 1;
    pointer-events: all;
}