/* ============================
   DARK LUXURY PALETTE (2026 Trend)
   ============================ */
:root {
    --bg-dark: #FFFFFF;
    /* Pure White */
    --bg-panel: #F9F9F9;
    /* Light Grey for sections */
    --bg-glass: rgba(255, 255, 255, 0.9);
    --primary-gold: #B8860B;
    /* Dark Goldenrod */
    --primary-gold-hover: #DAA520;
    /* Goldenrod */
    --text-main: #000000;
    /* Pure Black */
    --text-muted: #000000;
    /* Force Grey to Black */
    --text-dark: #000000;
    --border-gold: rgba(212, 175, 55, 0.5);
    --border-glass: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1400px;
    --header-height: 90px;
    --section-spacing: 150px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

img {
    max-width: 100%;
    border-radius: 4px;
}

/* ============================
   UTILITIES
   ============================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

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

.text-gold {
    color: var(--primary-gold);
}

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

/* Cinematic Glass Card */
.glass-card {
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--primary-gold);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: transparent;
    color: var(--primary-gold);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-gold);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.btn-primary {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--bg-dark);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.btn-primary:hover::before {
    width: 0;
}

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

.btn-outline:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* ============================
   NAVIGATION
   ============================ */
.main-header {
    position: fixed;
    top: 40px;
    /* Desktop default */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
}

.main-header.scrolled,
.main-header.minimal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.main-header.scrolled {
    height: 75px;
}

.main-header.minimal {
    height: 60px;
    top: 0 !important;
}

.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #F5F5F5;
    color: #555;
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: transform 0.4s ease;
}

.top-info-bar.hidden {
    transform: translateY(-100%);
}

.studio-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.15em;
    margin: 0;
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #111 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover .nav-underline,
.nav-link.active .nav-underline {
    width: 100%;
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

/* Tablet/Laptop Adjustment to prevent overlap */
@media (min-width: 769px) and (max-width: 1200px) {
    .main-header .container {
        justify-content: space-between !important;
    }

    .main-header .container>a {
        position: relative;
        left: auto;
        transform: none;
        margin-right: auto;
    }
}

/* Mobile Nav */
@media (max-width: 768px) {
    .top-info-bar {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .main-header {
        height: 60px !important;
        justify-content: center !important;
        top: 0 !important;
    }

    .studio-name {
        font-size: 1.2rem !important;
    }

    .studio-subtitle {
        display: none !important;
    }

    .gold-underline {
        display: none !important;
    }
}

/* Bottom Nav (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 8px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: none;
    width: auto;
    max-width: 90vw;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
}

.bottom-nav-item {
    position: relative;
    color: #555;
    min-width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
    margin-top: 4px;
}

.bottom-nav-item.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-gold);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-gold);
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.fade-in.visible {
    opacity: 1;
}

/* JS will add 'visible' class */

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.hover-float:hover {
    transform: translateY(-3px);
}

/* Hero Animations */
@keyframes topDividerFadeIn {
    from {
        opacity: 0;
        width: 0%;
    }

    to {
        opacity: 1;
        width: 60%;
    }
}

@keyframes heroLogoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

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

@keyframes heroTaglineFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes heroHeadingFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes heroButtonsFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes shimmerText {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes underlineDrawIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Portfolio Grid */
.home-portfolio-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .home-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* 1. Global Typography & Spacing */
    :root {
        --section-spacing: 80px;
        --container-width: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .section {
        padding: 3rem 1rem;
    }

    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* 2. Header & Nav Refinements */
    .main-header {
        height: 64px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: center !important;
        /* Ensure centered content */
    }

    .container.header-container {
        /* Target specifically if class added, or assume default */
        justify-content: center !important;
    }

    /* Ensure Logo is perfectly centered vertically */
    .main-header .container>a {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        align-items: center;
        z-index: 2000;
    }

    .studio-name {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
    }

    .studio-subtitle {
        display: none !important;
    }

    .gold-underline {
        display: none !important;
    }

    .nav-link,
    .desktop-nav {
        display: none !important;
    }

    .top-info-bar {
        display: none !important;
    }

    /* 3. Hero Section */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
        align-items: center;
    }

    .hero-actions .btn {
        width: 80%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 12px 24px;
        margin: 0 auto;
    }

    /* 4. Bottom Navigation (Crucial for Mobile) */
    .bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        width: 90%;
        max-width: 400px;
        padding: 10px 0;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 40px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        z-index: 9999;
    }

    .bottom-nav-item {
        min-width: auto;
        flex: 1;
        gap: 2px;
        color: #555;
    }

    .bottom-nav-item.active {
        color: var(--primary-gold);
        background: transparent;
        /* Remove bg on active */
    }

    .bottom-nav-item.active::after {
        bottom: -4px;
        /* Move dot lower */
    }

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item span {
        font-size: 9px;
        letter-spacing: 0.5px;
        display: block;
        margin-top: 4px;
    }

    /* 5. Forms & Inputs */
    input,
    textarea,
    select {
        font-size: 16px !important;
        padding: 12px !important;
        width: 100%;
    }

    .glass-card form {
        grid-template-columns: 1fr !important;
        /* Force 1 column form */
        gap: 1.5rem;
    }

    .glass-card form>div {
        grid-column: span 1 !important;
    }

    /* 6. Cards & Grid */
    .glass-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Fix for ultra-small screens */
@media (max-width: 380px) {
    h1 {
        font-size: 1.8rem;
    }

    .bottom-nav-item span {
        display: none;
    }

    .bottom-nav-item svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================
   NEW HERO UPDATES (White & Gold)
   ============================ */

/* Hero Section Background Override */
.hero-section-white {
    background-color: #FFFFFF;
    color: #000000;
}

/* New Cinematic Brand Title */
.hero-brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-align: center;
    cursor: default;

    /* Gold Gradient Text */
    background: linear-gradient(135deg,
            #B8860B 0%,
            #D4AF37 25%,
            #8B6914 50%,
            #D4AF37 75%,
            #B8860B 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Animations */
    opacity: 0;
    animation:
        heroEnter 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
        goldSweep 4s linear infinite;

    transition: transform 0.4s ease, text-shadow 0.4s ease, filter 0.4s ease;
}

/* Hover Effect */
.hero-brand-title:hover {
    transform: scale(1.05);
    /* Slight scale increase */
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.4));
    /* Soft darker gold glow */
}

/* Entrance Animation */
@keyframes heroEnter {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Continuous Gold Light Sweep */
@keyframes goldSweep {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .hero-brand-title {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-brand-title {
        font-size: 2.8rem;
        /* Responsive without breaking alignment */
        letter-spacing: 0.02em;
        margin-bottom: 1.5rem;
    }
}