/* ============================================
   MADAME MARKETING - STYLE.CSS
   Cherry Red, White & Black theme
   ============================================ */

@font-face {
    font-family: 'InterVar';
    src: url('../assets/font/Inter-Variable.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairVar';
    src: url('../assets/font/PlayfairDisplay-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PlayfairVar';
    src: url('../assets/font/PlayfairDisplay-Italic-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #000000;
    --card: #111111;
    --accent: #93061d;
    --accent-soft: #93061d;
    --white: #ffffff;
    --top: 100px;
    --gap: 16px;
    --section-padding: clamp(80px, 12vh, 160px);
    --container-width: min(1200px, 90vw);
    --font-body: 'InterVar', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-ui: 'InterVar', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'PlayfairVar', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

body {
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--white);
    background: var(--bg);
    position: relative;
    overflow-x: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --cursor-opacity: 0;
    --cursor-size: 1px;
    --circle-x: 50%;
    --circle-y: 50%;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
}

body::after {
    content: '';
    position: fixed;
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    left: var(--mouse-x);
    top: var(--mouse-y);
    transform: translate3d(-50%, -50%, 0);
    opacity: var(--cursor-opacity);
    transition: opacity 0.3s ease;
    will-change: transform, opacity;
}


.cursor-circle {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 98;
    left: 0;
    top: 0;
    transform: translate3d(0, 0, 0);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 0.3s ease;
    opacity: 0;
    background: transparent;
    will-change: transform, opacity;
}

.cursor-circle.active {
    opacity: 1;
}

.cursor-circle.hovering-link {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    background: rgba(220, 20, 60, 0.1);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 0;
}

.noise-overlay {
    display: none;
}

/* Common */
.section-container {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.accent-text {
    color: var(--accent);
}

/* ============================================
   NAVIGATION — Centered pill navbar
   ============================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: clamp(14px, 1.8vh, 24px) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0 clamp(20px, 4vw, 48px);
    margin: 0;
    position: relative;
    z-index: 2;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    flex-shrink: 0;
}

.nav-logo-text {
    color: var(--white);
}

.nav-logo-text strong {
    color: var(--accent);
}

.nav-logo img {
    height: clamp(36px, 5vh, 48px);
    width: clamp(44px, 6vw, 58px);
    object-fit: cover;
    object-position: left center;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-text {
    display: flex;
    gap: 0;
}



/* Pill-shaped nav menu */
.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px 8px;
}

.nav-menu a {
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    padding: 10px 20px;
    border-radius: 50px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    will-change: opacity, transform;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translate3d(0, -4px, 0);
}

.back-to-top::before {
    content: "↑";
    font-size: 24px;
    color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(100px, 15vh, 160px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
    position: relative;
    z-index: 2;
    text-align: center;
    contain: layout style;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    font-family: var(--font-ui);
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(220, 20, 60, 0.4);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 40px;
    background: rgba(220, 20, 60, 0.08);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: none;
    color: white;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-cta {
    font-family: var(--font-ui);
    padding: 16px 40px;
    background: var(--accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.hero-cta:hover {
    transform: translate3d(0, -3px, 0);
    background: #b01030;
}

.hero-secondary {
    font-family: var(--font-ui);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.hero-secondary:hover {
    color: white;
}

.hero-secondary::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.hero-secondary:hover::after {
    width: 100%;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
    contain: layout style;
}

.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.about-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 12px;
    position: sticky;
    top: 120px;
}

.about-content {
    max-width: 700px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 650;
    line-height: 1.4;
    color: white;
    margin-bottom: 24px;
}

.section-heading em {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--accent-soft);
}

.about-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

/* ============================================
   SHOWCASE / MADE TO WORK
   ============================================ */

.showcase-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-style: italic;
    font-weight: 700;
    line-height: 0.9;
    text-transform: lowercase;
    color: white;
    letter-spacing: -0.03em;
}

.showcase-description {
    max-width: 400px;
    text-align: right;
}

.showcase-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    line-height: 1.6;
}

.showcase-cta {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.showcase-cta:hover {
    color: var(--accent-soft);
}

.showcase-visual {
    display: flex;
    justify-content: center;
}

/* Title Card */
.title-card {
    width: 100%;
    max-width: 900px;
    padding: clamp(40px, 5vh, 80px) clamp(40px, 5vw, 80px);
    min-height: clamp(250px, 40vh, 400px);
    border-radius: 24px;
    background: #111111;
    /*box-shadow: 0 2px 50px rgba(255, 255, 255, 0.242);*/
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease-in-out 0.7s ease-in-out, border-color 0.7s ease-in-out, box-shadow 0.7s ease-in-out;
    cursor: pointer;
    will-change: transform;
}

.title-card img {
    max-width: 40%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 5;
    transition: transform 1s ease;
    pointer-events: none;
}

.title-card:hover {
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 3px 60px rgba(255, 255, 255, 0.25);
}

.title-card:hover img {
    transform: scale(1.05);
}

/* ============================================
   SERVICES SECTION (interactive list)
   ============================================ */

.services-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
    contain: layout style;
}

.services-header {
    margin-bottom: 60px;
}

.services-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.services-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 650;
    color: white;
}

.services-list {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.4s ease;
    position: relative;
    will-change: transform;
}

.service-item::before {
    content: '';
    position: absolute;
    left: -40px;
    right: -40px;
    top: 0;
    bottom: 0;
    background: rgba(220, 20, 60, 0.03);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.service-item:hover {
    transform: translateX(20px);
}

.service-number {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
}

.service-name {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 650;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-item:hover .service-name {
    color: white;
}

.service-arrow {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.4s ease, transform 0.4s ease;
    text-align: right;
    will-change: transform;
}

.service-item:hover .service-arrow {
    color: var(--accent);
    transform: translate3d(6px, 0, 0);
}

.service-detail {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s ease,
        opacity 0.4s ease;
    opacity: 0;
}

.service-item.active .service-detail {
    max-height: 200px;
    padding: 16px 0 8px 60px;
    opacity: 1;
}

.service-detail p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 600px;
}

.service-item.active .service-arrow {
    transform: rotate(90deg);
    color: var(--accent);
}

/* ============================================
   PROCESS SECTION (sticky card stack)
   ============================================ */

.process-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
    contain: style;
}

.process-header {
    margin-bottom: 40px;
}

.process-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.process-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

/* Card Stack */
.stack-wrap {
    margin-top: 20px;
    padding: 16px 0 0;
    position: relative;
}

.card {
    position: sticky;
    top: var(--top);
    width: 100%;
    min-height: 360px;
    padding: 48px;
    margin-bottom: 24px;
    border-radius: 24px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    will-change: transform;
}

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

.card:hover {
    transform: translate3d(0, -6px, 0) !important;
    border-color: rgba(220, 20, 60, 0.3);
}

.card:nth-child(1) {
    top: 100px;
}

.card:nth-child(2) {
    top: 140px;
    transform: scale(0.98);
}

.card:nth-child(3) {
    top: 180px;
    transform: scale(0.96);
}

.card:nth-child(4) {
    top: 220px;
    transform: scale(0.94);
}

.card:last-child {
    margin-bottom: 60px;
}

.card-spacer {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
    min-height: 360px;
}

.card-spacer:hover {
    transform: none !important;
    border-color: transparent;
}

.card-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.card h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    max-width: 650px;
}

/* Card color variants */
.card-red {
    background: #93061d;
    border: none;
}

.card-red .card-title {
    color: rgba(255, 255, 255, 0.7);
}

.card-red h2 {
    color: #ffffff;
}

.card-red p {
    color: rgba(255, 255, 255, 0.8);
}

.card-red:hover {
    border-color: transparent;
}

.card-white {
    background: #ffffff;
    border: none;
}

.card-white .card-title {
    color: #93061d;
}

.card-white h2 {
    color: #000000;
}

.card-white p {
    color: rgba(0, 0, 0, 0.6);
}

.card-white:hover {
    border-color: transparent;
}

.card-black {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-black .card-title {
    color: #93061d;
}

.card-black h2 {
    color: #ffffff;
}

.card-black p {
    color: rgba(255, 255, 255, 0.55);
}

.card-black:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CLIENTS MARQUEE SECTION
   ============================================ */

.clients-section {
    padding: var(--section-padding) 0 60px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 60px;
}

.clients-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-style: italic;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.clients-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.marquee-item {
    flex-shrink: 0;
    padding: 16px 40px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.marquee-item:hover {
    border-color: var(--accent);
}

.marquee-item img {
    height: 50px;
    width: 50px;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.marquee-item:hover img {
    opacity: 1;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ============================================
   CASE STUDIES SECTION
   ============================================ */

.case-studies-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

.case-studies-header {
    text-align: center;
    margin-bottom: 60px;
}

.case-studies-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.case-studies-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 12px;
}

.case-studies-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.case-studies-carousel-wrapper {
    position: relative;
    margin-top: 48px;
    width: 100%;
    min-height: 500px;
}

.case-studies-grid {
    display: block;
    position: relative;
    width: 100%;
    min-height: 500px;
}

.case-study-card {
    background: linear-gradient(135deg, rgba(147, 6, 29, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(147, 6, 29, 0.2);
    border-radius: 12px;
    padding: 32px;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    contain: layout style;
    cursor: default;
    box-shadow: 0 4px 12px rgba(147, 6, 29, 0.05);
    min-height: 500px;
    opacity: 0;
    pointer-events: none;
}

.case-study-card.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.case-study-card.inactive {
    opacity: 0;
    pointer-events: none;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 6, 29, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.case-study-card:hover {
    background: linear-gradient(135deg, rgba(147, 6, 29, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(147, 6, 29, 0.4);
    box-shadow: 0 8px 24px rgba(147, 6, 29, 0.12);
}

.case-study-card:hover::before {
    opacity: 1;
}



.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.case-study-header-content {
    flex: 1;
}

.case-study-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

.case-study-metric {
    background: linear-gradient(135deg, rgba(147, 6, 29, 0.2) 0%, rgba(147, 6, 29, 0.1) 100%);
    color: #ff6b7a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    border: 1px solid rgba(147, 6, 29, 0.3);
    box-shadow: 0 2px 8px rgba(147, 6, 29, 0.1);
}

.case-study-toggle {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.3s ease;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.case-study-toggle svg {
    width: 20px;
    height: 20px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.case-study-card.expanded .case-study-toggle {
    transform: rotate(180deg);
    color: var(--accent);
}

.case-study-card:hover .case-study-toggle {
    color: rgba(255, 255, 255, 0.6);
}

.case-study-content {
    max-height: none;
    overflow: visible;
    transition: none;
    opacity: 1;
    margin: 0;
    padding: 24px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-card.expanded .case-study-content {
    max-height: 800px;
    padding: 24px 0 0 0;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.case-study-problem,
.case-study-solution,
.case-study-result {
    margin-bottom: 18px;
}

.case-study-problem:last-child,
.case-study-solution:last-child,
.case-study-result:last-child {
    margin-bottom: 0;
}

.case-study-content h4 {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ff6b7a;
    margin-bottom: 8px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(147, 6, 29, 0.2);
    display: inline-block;
}

.case-study-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.case-study-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    max-height: none;
    overflow: visible;
    transition: none;
    opacity: 1;
}

.case-study-card.expanded .case-study-footer {
    max-height: 50px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.case-study-industry {
    background: linear-gradient(135deg, rgba(147, 6, 29, 0.2) 0%, rgba(147, 6, 29, 0.1) 100%);
    color: #ff9ca3;
    padding: 6px 12px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    font-weight: 600;
    border: 1px solid rgba(147, 6, 29, 0.25);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.case-study-timeline {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding: 0 32px;
}

.carousel-btn {
    background: rgba(147, 6, 29, 0.15);
    border: 1px solid rgba(147, 6, 29, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(147, 6, 29, 0.25);
    border-color: rgba(147, 6, 29, 0.5);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    width: 28px;
    border-radius: 20px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
    contain: layout style;
}

.faq-header {
    margin-bottom: 48px;
}

.faq-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.faq-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 650;
    color: white;
}

.faq-list {
    max-width: 800px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question span:first-child {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.faq-question:hover span:first-child {
    color: white;
}

.faq-toggle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.4s ease, color 0.4s ease;
    font-weight: 300;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 650px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
    text-align: center;
    contain: layout style;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-quote {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
}

.cta-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 500px;
    margin: 32px auto 40px;
    line-height: 1.7;
}

.cta-book {
    margin: 0 auto;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: white;
    font-weight: 400;
}

.footer-logo strong {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    font-family: var(--font-display);
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links a {
    font-family: var(--font-body);
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(8px);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    background: transparent;
    will-change: transform;
}

.social-link:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    transform: translate3d(0, -3px, 0);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-bottom span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.1em;
}

/* ============================================
   UTILITY & MISC
   ============================================ */

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 24px 0;
}

.accent {
    color: var(--accent-soft);
}

::selection {
    background: rgba(220, 20, 60, 0.3);
    color: white;
}

html {
    scroll-behavior: smooth;
}