/* =========================================
   CSS Variables & Reset
   ========================================= */
   :root {
    --bg-color: #FFFFFF; /* Clean white background */
    --text-color: #310A14; /* Deep, rich dark maroon */
    --text-muted: #8A4C5A; /* Softer maroon for secondary text */
    --accent-color: #A32A42; /* Vibrant but deep red for accents */
    --accent-hover: #7D1D30;
    --surface-color: rgba(49, 10, 20, 0.02); /* Extremely subtle dark maroon tint for surfaces */
    --surface-border: rgba(49, 10, 20, 0.06);
    --transition-premium: cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --spacing-xxl: 12rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 14.5px; /* Slightly smaller base text for premium feel */
}

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

body.no-scroll {
    overflow: hidden;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1000;
}
/* Custom cursor */
::selection {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

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

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500; /* Softer, more elegant weight */
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.mt-large {
    margin-top: var(--spacing-lg);
}

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

/* =========================================
   Noise Overlay
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(163, 42, 66, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Hover States for Cursor */
body.hovering-link .cursor {
    width: 60px;
    height: 60px;
    background-color: var(--text-color);
    mix-blend-mode: difference;
}

body.hovering-link .cursor-follower {
    width: 0;
    height: 0;
    opacity: 0;
}

/* =========================================
   Typography & Utils
   ========================================= */
.accent {
    color: var(--accent-color);
}

.hover-link {
    position: relative;
    display: inline-block;
}

.hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width var(--transition-smooth);
}

.hover-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s var(--transition-premium);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-hover);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--transition-premium);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(163, 42, 66, 0.2);
}

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

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

.btn-outline:hover {
    border-color: var(--accent-color);
    color: #FFFFFF;
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all 0.5s var(--transition-premium);
}

.navbar.scrolled {
    padding: 1.2rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
}


.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 3px;
    z-index: 101;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s var(--transition-premium);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: none;
    z-index: 101;
    padding: 0.5rem;
    transition: transform 0.3s var(--transition-premium);
}

.menu-toggle:active {
    transform: scale(0.9);
}

/* =========================================
   Mobile Menu Overlay
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: center;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 2px;
}

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

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    filter: contrast(1.02) saturate(1.05); /* HD Subtly enhanced quality */
    image-rendering: -webkit-optimize-contrast;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 8rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 3rem;
}

.hero-subtitle {
    max-width: 450px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--surface-border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--accent-color);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(163, 42, 66, 0) 70%);
    top: -15%;
    right: -5%;
    opacity: 0.08; /* Subtler for light cream background */
}

.shape-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #EBE3D5 0%, rgba(235, 227, 213, 0) 70%);
    bottom: -5%;
    left: -10%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 5%) scale(1.1); }
}

/* =========================================
   Marquee Section
   ========================================= */
.marquee-section {
    padding: 0.7rem 0;
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: rotate(-2deg) scale(1.05);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: flex;
}

.marquee-inner {
    display: flex;
    align-items: center;
    animation: marqueeScroll 20s linear infinite;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.3s var(--transition-premium);
}

.logo-italic {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.5s var(--transition-premium);
}

.logo-bold {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--text-color);
    letter-spacing: -0.02em;
    transition: all 0.5s var(--transition-premium);
}

.logo-bold::after {
    content: '.';
    color: var(--accent-color);
}

.logo-link:hover .logo-italic {
    transform: translateX(-3px);
    opacity: 1;
    color: var(--accent-color);
}

.logo-link:hover .logo-bold {
    transform: translateX(3px);
    letter-spacing: 0.05em;
}
.marquee .dot {
    font-size: 1rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   Services Section (Bento Grid)
   ========================================= */
.section-header {
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.section-desc {
    max-width: 420px;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--transition-premium);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(163, 42, 66, 0.2);
    box-shadow: 0 30px 60px -20px rgba(49, 10, 20, 0.08);
}

/* Asymmetrical staggered bento logic for 4 items */
.service-card:nth-child(1) { grid-column: span 7; } 
.service-card:nth-child(2) { grid-column: span 5; } 
.service-card:nth-child(3) { grid-column: span 5; } 
.service-card:nth-child(4) { grid-column: span 7; } 

@media (max-width: 900px) {
    .service-card:nth-child(1), .service-card:nth-child(2),
    .service-card:nth-child(3), .service-card:nth-child(4) {
        grid-column: span 12;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(163, 42, 66, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(227, 194, 159, 0.3);
    transform: translateY(-5px);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-link {
    margin-top: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.service-card:hover .service-link {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* =========================================
   Work Section
   ========================================= */
.work-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
}

.work-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .work-item { grid-template-columns: 5fr 4fr; }
    .work-item:nth-child(even) { grid-template-columns: 4fr 5fr; }
    
    /* Alternating text alignment and layout direction for dynamic flow */
    .work-item:nth-child(even) .work-image-wrapper { order: 2; }
    .work-item:nth-child(even) .work-info { order: 1; text-align: right; padding-right: 2rem; }
    .work-item:nth-child(odd) .work-info { padding-left: 2rem; }
}

.work-image-wrapper {
    position: relative;
    border-radius: 12px; /* Sharper, more modern editorial look */
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--surface-color);
    box-shadow: 0 10px 30px -10px rgba(49, 10, 20, 0.1);
    transition: transform 0.8s var(--transition-premium), box-shadow 0.8s var(--transition-premium);
}

.work-item:hover .work-image-wrapper {
    transform: scale(1.02);
    box-shadow: 0 40px 80px -25px rgba(49, 10, 20, 0.15);
}

.work-img {
    width: 100%;
    height: 120%; /* For parallax */
    object-fit: cover;
    transform: translateY(-10%);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
    filter: brightness(0.9) contrast(1.05) saturate(1.1); /* HD Vivid boost */
    image-rendering: -webkit-optimize-contrast;
}

.work-item:hover .work-img {
    filter: brightness(1) contrast(1.1) saturate(1.2); /* Even more vivid on hover */
    transform: translateY(-10%) scale(1.05); /* Slight zoom on hover, parallax handled by JS separately */
}

.work-info {
    padding: 0 1rem;
}

.work-category {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.work-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* =========================================
   About Section
   ========================================= */
.about {
    background-color: #FAFAFA; /* Very light grey off-white for contrast */
    padding: var(--spacing-xxl) 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-headline {
    font-size: clamp(2rem, 4.5vw, 5rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}

.about-text {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}


/* =========================================
   Footer
   ========================================= */
.footer {
    padding: var(--spacing-xxl) 0 2rem;
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.footer-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.massive-text {
    font-size: clamp(2.5rem, 7vw, 8rem);
    line-height: 1;
    letter-spacing: 0.01em;
    word-wrap: break-word;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Animation Classes (Triggered by JS)
   ========================================= */
.reveal-text {
    overflow: hidden;
}

.reveal-text > * {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.reveal-text.is-revealed > * {
    transform: translateY(0);
    opacity: 1;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.reveal-fade.is-revealed {
    opacity: 1;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 992px) {
    .nav-links, .navbar .btn {
        display: none; /* Hide desktop nav and button on mobile */
    }
    
    .menu-toggle {
        display: block; /* Show menu toggle */
    }
    
    .hero {
        background-size: 70% !important; /* Larger background for mobile visibility */
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 6rem);
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
        padding-bottom: 4rem;
        width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
        text-align: center !important;
        margin: 0 auto;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .section-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        align-items: center;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }

    .footer-links a {
        font-size: 1.1rem; /* Slightly larger for touch targets */
        width: 100%;
        text-align: center;
    }

    .copyright {
        font-size: 0.85rem;
        opacity: 0.8;
        width: 100%;
        text-align: center;
    }

    .massive-text {
        font-size: clamp(2.8rem, 15vw, 6rem);
        text-align: center;
        line-height: 1.1;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 7%;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.8;
    }

    .about-headline {
        font-size: 2.5rem;
    }

    .work-title {
        font-size: 2.2rem;
    }
}

/* =========================================
   Service Detail Page Styles
   ========================================= */
.service-detail-page {
    background-color: var(--bg-color);
}

.service-hero {
    margin-top: 1rem; /* Move even higher up */
    margin-bottom: 4rem;
    max-width: 900px;
}

.hero-title-main {
    font-size: clamp(3.5rem, 8vw, 6.5rem); /* Significantly larger */
    line-height: 1;
    margin-bottom: 1.5rem;
}

.detail-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text wider, images smaller */
    gap: 5rem;
    align-items: center;
    margin-bottom: 10rem;
}

.detail-section.reverse {
    direction: rtl;
}

.detail-section.reverse .detail-text {
    direction: ltr;
}

.detail-subtitle {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.detail-list {
    list-style: none;
}

.detail-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.sub-detail h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.detail-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Premium soft shadow */
}

.detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition-premium);
    filter: brightness(1.02) contrast(1.05) saturate(1.05); /* Enhance quality */
    image-rendering: -webkit-optimize-contrast; /* Sharper rendering */
}

.detail-section:hover .detail-img {
    transform: scale(1.05);
}

.placeholder-box {
    width: 100%;
    height: 100%;
    background-color: var(--surface-color);
    border: 1px dashed var(--surface-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .service-hero {
        text-align: center;
        margin: 2rem auto 4rem;
    }

    .hero-title-main {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .detail-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 6rem;
        text-align: center;
    }
    
    .detail-section.reverse {
        direction: ltr;
    }
    
    .detail-subtitle {
        font-size: 2.2rem;
    }

    .detail-list li {
        text-align: left;
        display: inline-block;
        max-width: 90%;
    }

    .sub-detail h3 {
        text-align: center;
    }
}
/* =========================================
   Project Detail Page Styles
   ========================================= */
.project-detail-page {
    background-color: var(--bg-color);
}

.project-hero {
    margin-top: 2rem;
    margin-bottom: 6rem;
    max-width: 900px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 6rem 0;
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.info-block h4 {
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.info-block p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.detail-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--surface-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.6s var(--transition-premium);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--transition-premium);
}

.gallery-item:hover .detail-image-wrapper {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

/* --- New Aesthetic Project Gallery --- */
.project-gallery-new {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.gallery-column:nth-child(2) {
    margin-top: 3rem; /* Staggered effect */
}

.gallery-item-new {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-new:hover {
    transform: translateY(-8px) scale(1.02);
}

.gallery-img-new {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
    transition: filter 0.4s ease;
}

.gallery-item-new:hover .gallery-img-new {
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

@media (max-width: 768px) {
    .project-gallery-new {
        flex-direction: column;
    }
    .gallery-column:nth-child(2) {
        margin-top: 0;
    }
}


.detail-text {
    flex: 1;
    padding-right: 4rem;
}

.detail-image-placeholder {
    display: flex !important;
    justify-content: flex-end !important; /* Force to right side */
    width: 100%;
}

.service-image-right {
    flex-shrink: 0;
    max-width: 320px;
    height: auto;
    margin-left: auto !important; /* Ensure it stays on the right */
    border-radius: 16px;
    box-shadow: 0 15px 35px -10px rgba(49, 10, 20, 0.15);
    transition: transform 0.6s var(--transition-premium), box-shadow 0.6s var(--transition-premium);
    image-rendering: -webkit-optimize-contrast;
    border: 1px solid var(--surface-border);
}

.service-image-right:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px -15px rgba(49, 10, 20, 0.2);
}

@media (max-width: 768px) {
    .service-image-right {
        float: none;
        margin-left: 0;
        margin-top: 1.5rem;
        max-width: 100%;
        width: 100%;
    }
}

/* =========================================
   Staggered Project Gallery Component
   ========================================= */
.project-gallery-new {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.gallery-column:nth-child(2) {
    margin-top: 3.5rem; /* Staggered effect */
}

.gallery-item-new {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface-color);
    transition: transform 0.6s var(--transition-premium);
}

.gallery-item-new:hover {
    transform: translateY(-8px) scale(1.02);
}

.gallery-img-new {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.95) contrast(1.05) saturate(1.05);
    transition: filter 0.4s ease;
}

.gallery-item-new:hover .gallery-img-new {
    filter: brightness(1) contrast(1.1) saturate(1.2);
}

@media (max-width: 768px) {
    .project-gallery-new {
        flex-direction: column;
    }
    .gallery-column:nth-child(2) {
        margin-top: 0;
    }
}
