/* ========================================
   MUFT.AI - Global Design System
   Premium AI Creative Agency
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Primary Colors */
    --primary: #f5b942;
    --primary-light: #ffdb7e;
    --primary-dark: #b3801d;

    /* Background Colors */
    --bg-light: #f8f7f5;
    --bg-dark: #0A0A0A;
    --surface-dark: #121212;
    --surface-card: #1A1A1A;
    --card-dark: #181611;

    /* Text Colors */
    --text-white: #ffffff;
    --text-gray-100: #f0f0f0;
    --text-gray-300: #d1d1d1;
    --text-gray-400: #9ca3af;
    --text-gray-500: #6b7280;
    --text-gray-600: #4b5563;

    /* Border Colors */
    --border-dark: #393328;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-primary: rgba(245, 185, 66, 0.3);

    /* Gradients */
    --gold-gradient: linear-gradient(135deg, #f5b942 0%, #ffdb7e 50%, #f5b942 100%);
    --subtle-glow: radial-gradient(circle at center, rgba(245, 185, 66, 0.08) 0%, transparent 70%);
    --glass-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 6rem;
    --container-max: 1280px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(245, 185, 66, 0.3);
    --shadow-glow-lg: 0 0 30px rgba(245, 185, 66, 0.4);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

p {
    font-family: var(--font-body);
    color: var(--text-gray-400);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    color: var(--primary);
    font-size: 2rem;
    transition: transform 0.7s ease;
}

.nav-logo:hover .nav-logo-icon {
    transform: rotate(180deg);
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray-300);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.card:hover {
    border-color: rgba(245, 185, 66, 0.3);
    box-shadow: 0 0 20px rgba(245, 185, 66, 0.15);
    transform: translateY(-2px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

/* ========== BENTO GRID ========== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    grid-auto-rows: minmax(180px, auto);
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    background: rgba(36, 32, 24, 0.4);
    backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
}

.bento-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(245, 185, 66, 0.15);
    transform: translateY(-2px);
}

.bento-card-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card-wide {
    grid-column: span 2;
}

.bento-card-tall {
    grid-row: span 2;
}

/* ========== PROJECT/WORK CARDS ========== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-card-image {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-card-overlay {
    opacity: 0.6;
}

.project-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    transform: translateY(8px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-card-content {
    transform: translateY(0);
}

/* ========== TEXT EFFECTS ========== */
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(245, 185, 66, 0.3);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-gray-400);
}

/* ========== BADGES/CHIPS ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-primary {
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.2);
    color: var(--primary);
}

.badge-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray-400);
}

/* ========== PULSE DOT ========== */
.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

/* ========== ICON BOXES ========== */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.icon-box .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}

.icon-box:hover,
.card:hover .icon-box {
    background: var(--primary);
    border-color: var(--primary);
}

.icon-box:hover .material-symbols-outlined,
.card:hover .icon-box .material-symbols-outlined {
    color: var(--bg-dark);
}

/* ========== FOOTER ========== */
.footer {
    background: #16120a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245, 185, 66, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-gray-400);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ========== SOCIAL ICONS ========== */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-gray-400);
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

/* ========== FORM ELEMENTS ========== */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-white);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.input::placeholder {
    color: var(--text-gray-500);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.2);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu .nav-link {
    font-size: 1.25rem;
}

/* ========== UTILITIES ========== */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.pointer-events-none {
    pointer-events: none;
}

/* Spacing */
.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* ========================================
   V2 UPGRADES - NEW FEATURES
   ======================================== */

/* ========== UPGRADE 1: TYPOGRAPHY ========== */
/* Note: Add Fontshare fonts to HTML <head> */

/* Typography Enhancement */
:root {
    --font-heading: 'Clash Display', 'Space Grotesk', sans-serif;
    --font-body: 'Satoshi', 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title {
    font-family: var(--font-heading);
}

p,
span,
li,
input,
textarea,
button {
    font-family: var(--font-body);
}

[data-counter],
.stat-number,
.mono {
    font-family: var(--font-mono);
}

/* ========== UPGRADE 2: SCROLL PROGRESS BAR ========== */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 10;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold-gradient);
    box-shadow: 0 0 10px rgba(245, 185, 66, 0.5);
    transition: width 0.05s linear;
}

/* ========== UPGRADE 3: TRUST MARQUEE ========== */
.trust-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.trust-label {
    text-align: center;
    font-size: 0.625rem;
    color: var(--text-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.trust-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.trust-track {
    display: flex;
    gap: 3rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.trust-track:hover {
    animation-play-state: paused;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.trust-item:hover {
    color: var(--primary);
}

.trust-item .material-symbols-outlined {
    font-size: 1.25rem;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== UPGRADE 4: FEATURED PROJECTS SCROLLER ========== */
.featured-section {
    padding: 5rem 0;
    overflow: hidden;
    background: var(--bg-dark);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured-scroller {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.featured-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-projects 60s linear infinite;
    width: max-content;
}

.featured-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-projects {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.featured-card {
    position: relative;
    width: 320px;
    height: 420px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
}

.featured-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 185, 66, 0.1);
}

.featured-card-image {
    position: absolute;
    inset: 0;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.1);
}

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    transition: opacity 0.3s ease;
}

.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.featured-card:hover .featured-card-content {
    opacity: 0;
    transform: translateY(10px);
}

.featured-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0.75rem 0 0.25rem;
}

.featured-card-content .featured-stat {
    font-size: 0.875rem;
    color: var(--text-gray-400);
    margin: 0;
}

.featured-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.featured-card:hover .featured-card-hover {
    opacity: 1;
}

.featured-card-hover .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary);
}

.featured-card-hover span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== UPGRADE 5: FLOATING CTA ========== */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 185, 66, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.floating-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(245, 185, 66, 0.5);
    background: var(--primary-light);
}

.floating-cta-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.floating-cta-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: var(--primary);
    opacity: 0;
    animation: floating-pulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes floating-pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* ========== UPGRADE 6: PROJECT MODAL ========== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.project-modal-container {
    position: relative;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.project-modal.active .project-modal-container {
    transform: scale(1) translateY(0);
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.project-modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.project-modal-media {
    background: var(--bg-dark);
    min-height: 300px;
}

.project-modal-media .video-wrapper {
    position: relative;
    padding-top: 56.25%;
    height: 100%;
}

.project-modal-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-modal-media .gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.project-modal-media .gallery-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.project-modal-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-top: 0.75rem;
}

.project-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray-400);
}

.meta-item .material-symbols-outlined {
    font-size: 1rem;
    color: var(--primary);
}

.meta-label {
    color: var(--text-gray-500);
}

.project-modal-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-modal-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-gray-300);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.result-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
}

.result-metric {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
}

.result-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray-400);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--primary);
}

.project-modal-nav {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.3);
}

.project-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: var(--text-gray-300);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== UPGRADE 7: CONSULTATION MODAL ========== */
.consultation-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.consultation-modal.active {
    opacity: 1;
    visibility: visible;
}

.consultation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.consultation-container {
    position: relative;
    width: 95%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.consultation-modal.active .consultation-container {
    transform: scale(1);
}

.consultation-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-gray-400);
    cursor: pointer;
    transition: all 0.2s;
}

.consultation-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.consultation-progress {
    padding: 1.5rem 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-gray-500);
    white-space: nowrap;
}

.consultation-steps {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.consultation-step {
    display: none;
}

.consultation-step.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.consultation-step h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.consultation-step>p {
    color: var(--text-gray-400);
    margin-bottom: 2rem;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.service-option {
    cursor: pointer;
}

.service-option input {
    display: none;
}

.service-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.service-option:hover .option-content {
    border-color: rgba(245, 185, 66, 0.3);
    background: rgba(245, 185, 66, 0.05);
}

.service-option input:checked+.option-content {
    border-color: var(--primary);
    background: rgba(245, 185, 66, 0.1);
}

.service-option .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-option .option-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    text-align: center;
}

.budget-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.budget-option {
    cursor: pointer;
}

.budget-option input {
    display: none;
}

.budget-option .option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.budget-option:hover .option-content {
    border-color: rgba(245, 185, 66, 0.3);
}

.budget-option input:checked+.option-content {
    border-color: var(--primary);
    background: rgba(245, 185, 66, 0.1);
}

.budget-range {
    font-weight: 600;
    color: white;
}

.budget-label {
    font-size: 0.75rem;
    color: var(--text-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-gray-300);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray-500);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-gray-500);
}

.form-note .material-symbols-outlined {
    font-size: 1rem;
}

.calendly-container {
    min-height: 400px;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    overflow: hidden;
}

.calendly-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-gray-400);
    text-align: center;
    padding: 2rem;
}

.calendly-placeholder .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.calendly-placeholder .small {
    font-size: 0.75rem;
    color: var(--text-gray-500);
    margin-top: 0.5rem;
}

.alt-contact {
    margin-top: 1.5rem;
    text-align: center;
}

.alt-contact p {
    font-size: 0.875rem;
    color: var(--text-gray-500);
    margin-bottom: 0.5rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #25D366;
    font-weight: 500;
    text-decoration: none;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

.consultation-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.2);
}

/* ========== UPGRADE 8: EXIT INTENT POPUP ========== */
.exit-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup.active {
    opacity: 1;
    visibility: visible;
}

.exit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.exit-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    padding: 3rem 2rem;
    background: var(--surface-dark);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.exit-popup.active .exit-content {
    transform: scale(1) translateY(0);
}

.exit-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-gray-400);
    cursor: pointer;
    transition: all 0.2s;
}

.exit-close:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.exit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.2);
    border-radius: 50%;
}

.exit-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}

.exit-content h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.75rem;
}

.exit-content>p {
    color: var(--text-gray-400);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.exit-content strong {
    color: var(--primary);
}

.exit-cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.exit-dismiss {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--text-gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.exit-dismiss:hover {
    color: var(--text-gray-300);
}

/* ========== V2 RESPONSIVE UPDATES ========== */
@media (max-width: 768px) {
    .featured-track {
        animation: none;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .featured-card {
        width: 280px;
        height: 360px;
        scroll-snap-align: start;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        padding: 1rem;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-light);
        border-radius: 0;
    }

    .floating-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .project-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .project-modal-content {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 60px);
    }

    .project-modal-info {
        padding: 1.5rem;
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .result-item {
        padding: 0.75rem 0.5rem;
    }

    .result-metric {
        font-size: 1.25rem;
    }

    .consultation-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .service-options {
        grid-template-columns: 1fr;
    }
}

/* ========== REVAMP CUSTOM STYLES ========== */

/* Neon Glow Effect */
.neon-glow {
    filter: drop-shadow(0 0 5px rgba(245, 185, 66, 0.5)) drop-shadow(0 0 10px rgba(245, 185, 66, 0.3));
    transition: filter 0.3s ease;
}

.neon-glow:hover {
    filter: drop-shadow(0 0 8px rgba(245, 185, 66, 0.8)) drop-shadow(0 0 15px rgba(245, 185, 66, 0.5));
}

/* Shimmer Button Effect */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Hero Video Background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: black;
}

.hero-video-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video-item.active {
    opacity: 0.6;
    /* Overlay opacity handled by video container, this is visibility */
}

/* Marquee Scrollers - Overrides existing trust-marquee if needed, or new class */
.logo-marquee-section {
    padding: 3rem 0;
    background: var(--bg-dark);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll-logos 30s linear infinite;
    padding-right: 4rem;
    width: max-content;
}

.logo-marquee-img {
    height: 80px;
    width: auto;
    filter: sepia(100%) hue-rotate(5deg) saturate(200%) brightness(0.7) contrast(1.2);
    /* Golden tint to match theme if possible, or just grayscale */
    opacity: 0.7;
    transition: all 0.3s;
}

/* Reset filter for color on hover if desired, or keep monochrome gold */
.logo-marquee-img:hover {
    filter: none;
    opacity: 1;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats Section */
.stats-section {
    padding: 6rem 1.5rem;
    background: var(--surface-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.stat-item p {
    color: var(--text-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

/* Services V2 */
.bento-card-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.5s;
    z-index: 0;
}

.bento-card:hover .bento-card-video-bg {
    opacity: 0.6;
}

/* 8. Masonry Services Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    /* Base height for grid rows */
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.masonry-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(245, 185, 66, 0.5);
}

.masonry-item.wide {
    grid-column: span 2;
}

.masonry-item.tall {
    grid-row: span 2;
}

.masonry-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.4), transparent);
}

.masonry-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-video-container {
    opacity: 0.8;
}

/* Responsive Masonry */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .masonry-item,
    .masonry-item.wide,
    .masonry-item.tall {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
        /* Fixed height for mobile uniformity */
        min-height: 250px;
    }
}

/* ========== BUTTON GLIMMER ANIMATION ========== */
@keyframes glimmer {
    0% {
        box-shadow: 0 0 10px rgba(245, 185, 66, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(245, 185, 66, 0.6), 0 0 10px rgba(245, 185, 66, 0.4);
    }

    100% {
        box-shadow: 0 0 10px rgba(245, 185, 66, 0.2);
    }
}

.btn-glimmer {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    animation: glimmer 2.5s infinite ease-in-out;
    color: var(--surface-dark) !important;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-glimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: all 0.5s;
    z-index: -1;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    50% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}



/* Refactored from inline styles */
.logo-marquee-section {
    padding-top: 3rem;
    background: var(--bg-dark);
}

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.portfolio-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.portfolio-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-card);
    aspect-ratio: 16/9;
    /* Default aspect ratio */
}

.portfolio-item.wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.portfolio-item.tall {
    grid-row: span 2;
    aspect-ratio: 9/16;
}

.portfolio-item-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.portfolio-item:hover .portfolio-item-bg {
    transform: scale(1.05);
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 0.4;
}

.portfolio-item-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(2px);
    background: rgba(0, 0, 0, 0.3);
}

.portfolio-item:hover .portfolio-item-hover {
    opacity: 1;
}

.portfolio-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 20;
    transform: translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-content {
    transform: translateY(0);
}

/* ========== VIDEO MODAL ========== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1280px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: black;
    transform: rotate(90deg);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.wide,
    .portfolio-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 16/9;
        /* Force 16:9 on mobile for uniformity */
    }
}