:root {
    /* Brand Palette - Refined for High-End "Agency" Feel */
    --color-black: #0a0a0a;
    --color-dark-grey: #1a1a1a;
    --color-gold: #c6a87c;
    --color-gold-light: #e5d5b7;
    --color-white: #ffffff;
    --color-accent: #ff4757;
    /* Subtle punchy red for CTAs */

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-container: 1400px;
    --spacing-section: 120px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-serif);
    font-weight: 400;
}

.display-text {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
}

.subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
}

/* Interaction Classes */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 0;
    /* Boxy = Premium/Modern */
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--color-black);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
}

/* Layout Util */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
    /* High-end effect */
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    /* Always white due to mix-blend or dark bg */
}

/* Hero Section - Magazine Style */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    animation: scaleIn 20s infinite alternate;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badges-vertical {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.v-badge {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 10px;
}

/* Floating Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollDown 2s infinite;
}

/* Service Section - Split Screen */
.services-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    /* Full viewport height sections */
}

.services-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.services-visual img {
    height: 100%;
    object-fit: cover;
}

.services-content {
    padding: var(--spacing-section) 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-dark-grey);
}

.service-item {
    margin-bottom: 4rem;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    border-left-color: var(--color-gold);
    padding-left: 40px;
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-item p {
    color: #999;
}

/* Gallery Section - Aspect Ratio Preserved */
.gallery-section {
    padding: var(--spacing-section) 0;
    background: #000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    padding: 0 20px;
    /* Auto rows flow */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Force 1:1 Square Aspect Ratio for AI Images */
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover is fine if container is 1:1 and image is 1:1 */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Grid Spanning Logic */
.g-half {
    grid-column: span 6;
}

/* 2 per row */
.g-third {
    grid-column: span 4;
}

/* 3 per row */
.g-quarter {
    grid-column: span 3;
}

/* 4 per row */

@media (max-width: 768px) {

    .g-half,
    .g-third,
    .g-quarter {
        grid-column: span 12;
        /* Full width on mobile */
    }

    .services-split {
        grid-template-columns: 1fr;
    }

    .services-visual {
        position: relative;
        height: 50vh;
    }
}

/* Hover Overlay Text */
.hover-text {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .hover-text {
    opacity: 1;
}

.hover-text h4 {
    font-size: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .hover-text h4 {
    transform: translateY(0);
}

/* Hero Section - Redesigned for Legibility */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Lower opacity for better text contrast */
    filter: brightness(0.7) contrast(1.1);
    /* Darken and enhance contrast */
}

/* Gradient Overlay for Text Protection */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    /* Add subtle glass effect for text container */
    backdrop-filter: blur(2px);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Strong shadow for readability */
}

.display-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    /* Larger, more impactful */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #fff;
}

/* Video Hint Badge */
.video-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through */
}

.video-hint i {
    color: #fff;
    font-size: 20px;
    margin-left: 4px;
    /* Optical adjustment for play icon */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-item:hover .video-hint,
.gallery-item.playing .video-hint {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

.gallery-media-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Pricing - Minimalist Cards */
.pricing-section {
    padding: var(--spacing-section) 0;
    background: linear-gradient(to bottom, #000, #111);
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 2rem;
}

.p-card {
    min-width: 280px;
    max-width: 350px;
    flex: 1 1 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered content */
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.p-card.featured {
    background: var(--color-gold);
    color: #000;
}

.p-card.featured .subtitle,
.p-card.featured p {
    color: rgba(0, 0, 0, 0.7);
}

.p-card.featured .btn {
    border-color: #000;
    color: #000;
}

.p-card:hover {
    transform: translateY(-10px);
}

.price-text {
    font-size: 3.5rem;
    font-family: var(--font-serif);
    margin: 1.5rem 0;
    line-height: 1;
}

.price-text span {
    font-size: 1rem;
    font-family: var(--font-sans);
    opacity: 0.6;
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    display: inline-block;
}


/* Mobile Nav Overlay (Hidden for simple demo, assumed default browser behaviors for now or simple sticky header) */

/* Gallery Video Display Control */
.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-image {
    position: relative;
    z-index: 1;
}

/* Video plays on hover or when .playing class is added */
.gallery-item:hover .gallery-video,
.gallery-item.playing .gallery-video {
    opacity: 1;
    z-index: 3;
}

/* Mobile Header Fix */
@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 20px 0 !important;
        mix-blend-mode: normal !important; /* Fix blending issue on mobile */
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    }

    header.scrolled {
        padding: 15px 0 !important;
        background: rgba(10, 10, 10, 0.95) !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
}
