/* --- GLOBAL CONSOLIDATED STYLES --- */
:root {
    --brand-red: #C41E24; /* New PPF Brand Red */
    --brand-navy: #0f3c4f;
    --brand-dark: #153243;
    --brand-grey: #4B4F58;
    --hero-text: #f8fafc;
    --hero-text-muted: rgba(248, 250, 252, 0.82);
    --hero-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --hero-ease-soft: cubic-bezier(0.19, 1, 0.22, 1);
    --hero-font: 'Outfit', 'Montserrat', system-ui, -apple-system, sans-serif;
    --scrollbar-track: #e8eef2;
    --scrollbar-thumb: var(--brand-navy);
    --scrollbar-thumb-hover: var(--brand-red);
}

/* Custom scrollbar — right edge, matches navy / red brand */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
    width: 11px;
}

html::-webkit-scrollbar-track {
    background: linear-gradient(180deg, var(--scrollbar-track) 0%, #dce6ec 100%);
    border-left: 1px solid rgba(15, 60, 79, 0.08);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #153243 0%, var(--brand-navy) 45%, #1a4f66 100%);
    border-radius: 999px;
    border: 2px solid var(--scrollbar-track);
    min-height: 48px;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a01820 0%, var(--brand-red) 50%, #e02832 100%);
    border-color: #f0f4f7;
}

html::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

/* Site-wide typography: one stack (Outfit + Montserrat). Hero h1 (.hero-display-title) excluded so homepage hero stays as designed. */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
    font-family: var(--hero-font) !important;
}
h1:not(.hero-display-title),
.entry-content h1:not(.hero-display-title),
.entry-content h1:not(.hero-display-title) a,
h2, .entry-content h2, .entry-content h2 a,
h3, .entry-content h3, .entry-content h3 a,
h4, .entry-content h4, .entry-content h4 a,
h5, .entry-content h5, .entry-content h5 a,
h6, .entry-content h6, .entry-content h6 a,
.site-title,
.site-title a,
.elementor-heading-title {
    font-family: var(--hero-font) !important;
}
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-tab-content,
.elementor-toggle .elementor-tab-content {
    font-family: var(--hero-font) !important;
}

/* Prose readability: line height and neutral word spacing (avoid cramped or airy gaps) */
.entry-content p,
.elementor-widget-text-editor p {
    line-height: 1.68;
    word-spacing: normal;
}

/* 1. GLOBAL LAYOUT CLEANUP (Remove Grey Sidebars) */
body, .site, #page, .ast-separate-container, #primary, #content, .site-content, .entry-content { 
    background-color: #ffffff !important;
    background-image: none !important;
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}
/* Photos in cards/hero: prefer showing the top of the frame */
img:not(.custom-logo):not(.ast-mobile-header-logo):not(.ppf-footer-logo) {
    object-position: top center;
}

/* Brand mark everywhere (header, footer, or inside content): fit box, no crop, no stretch */
img.custom-logo,
img.ast-mobile-header-logo,
img.ppf-footer-logo,
.site-logo-img img,
img[src*="Variopool-logo"] {
    object-fit: contain !important;
    object-position: center !important;
}

/* 2. CUSTOM HERO SECTION */
.custom-hero {
    position: relative;
    width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    height: clamp(500px, 48vw, 850px) !important; /* Increased height to show more of the image */
    overflow: hidden;
    background-color: #000;
    /* VARIOPOOL line scale (PPF slightly smaller; tagline = 40% via CSS) */
    --hero-brand-size: clamp(34px, 7.8vw, 108px);
    --hero-stack-gap: 0.32em;
}
@media (max-width: 991px) {
    .custom-hero { height: 60vh !important; }
}
@media (max-width: 575px) {
    .custom-hero {
        --hero-brand-size: clamp(28px, 9.5vw, 64px);
        --hero-stack-gap: 0.4em;
    }
}
.hero-main-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Adjusted to top (0%) to ensure nothing is 'covered from up' */
    background-position: 28% 0%; 
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-overlay-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        rgba(8, 28, 42, 0.78) 0%,
        rgba(15, 60, 79, 0.45) 36%,
        transparent 56%,
        rgba(5, 15, 28, 0.28) 100%
    );
    z-index: 1;
}
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    /* Tighter right inset + stack nudge so copy sits clearer of background subjects */
    padding: clamp(72px, 12vh, 120px) clamp(12px, 3vw, 44px) clamp(28px, 5vh, 48px) clamp(20px, 5vw, 72px) !important;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}
.hero-content-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: min(640px, calc(100vw - 40px));
    transform: translateX(clamp(10px, 2vw, 36px));
    padding-left: clamp(18px, 2.4vw, 28px);
    font-size: var(--hero-brand-size);
    line-height: 1;
    gap: clamp(0.28em, 2.5vw, 0.42em);
    text-align: left;
    font-family: var(--hero-font);
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Dark panel behind hero type removed — text reads on photo with shadows only (previous ::after overlay) */

.hero-content-stack::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 2px;
    height: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        var(--brand-red) 0%,
        rgba(196, 30, 36, 0.35) 65%,
        rgba(255, 255, 255, 0.12) 100%
    );
    border-radius: 2px;
    opacity: 0;
    animation:
        heroAccentFade 0.45s var(--hero-ease-out) 0.08s forwards,
        heroAccentGrow 1.2s var(--hero-ease-out) 0.12s forwards;
}
@keyframes heroAccentFade {
    to { opacity: 1; }
}
@keyframes heroAccentGrow {
    to { height: calc(100% - 6px); }
}
.hero-display-title {
    margin: 0;
    padding: 0;
    font-family: var(--hero-font) !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0.9;
    perspective: 800px;
    position: relative;
    z-index: 1;
}
/* PPF + all hero h1 lines use same face as slogan (“alive”) — overrides Astra h1 Montserrat */
.hero-title-ppf,
.hero-title-ppf__text {
    font-family: var(--hero-font) !important;
}
/* PPF — choreographed reveal + drawn rule */
.hero-title-ppf {
    display: inline-block;
    position: relative;
    font-size: 0.85em;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.02em;
    padding-bottom: 0;
    border-bottom: none;
}
.hero-title-ppf__text {
    display: inline-block;
    color: var(--brand-red);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(196, 30, 36, 0.25);
    opacity: 0;
    transform: translateY(0.65em) rotateX(-18deg);
    transform-origin: 50% 100%;
    clip-path: inset(0 0 100% 0);
    animation: heroPpfEnter 0.92s var(--hero-ease-out) 0.22s forwards;
}
.hero-title-ppf::after {
    content: '';
    display: block;
    height: 3px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--brand-red), rgba(196, 30, 36, 0.45));
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    box-shadow: 0 0 18px rgba(196, 30, 36, 0.4);
    animation: heroRuleDraw 0.78s var(--hero-ease-out) 0.78s forwards;
}
@keyframes heroPpfEnter {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        clip-path: inset(0 0 0 0);
    }
}
@keyframes heroRuleDraw {
    to { transform: scaleX(1); }
}
/* VARIOPOOL — horizontal mask + weight shift */
.hero-title-brand {
    display: block;
    font-size: 1.12em;
    font-weight: 900;
    color: var(--hero-text);
    line-height: 0.95;
    margin: 0;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    animation:
        heroBrandEnter 1.05s var(--hero-ease-soft) 0.42s forwards,
        heroBrandShine 14s ease-in-out 1.65s infinite;
}
@keyframes heroBrandEnter {
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        letter-spacing: 0.02em;
    }
}
@keyframes heroBrandShine {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 0 transparent);
    }
    40% {
        filter: brightness(1.07) drop-shadow(0 0 20px rgba(255, 255, 255, 0.12));
    }
    60% {
        filter: brightness(1.03) drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
    }
}
/* Tagline — float up + tracking settles */
.hero-title-tagline {
    display: block;
    font-size: max(0.95rem, 0.32em);
    font-weight: 500;
    color: var(--hero-text-muted);
    line-height: 1.45;
    margin: 0.38em 0 0;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    animation: heroTagEnter 1s var(--hero-ease-out) 0.68s forwards;
}
@keyframes heroTagEnter {
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.28em;
    }
}
.branding-header {
    position: absolute;
    left: 60px;
    top: 72%;
    transform: translateY(-50%);
    text-transform: uppercase;
}
.txt-ppf {
    font-size: clamp(60px, 8vw, 110px) !important;
    font-weight: 900 !important;
    color: #C41E24 !important;
    line-height: 0.9 !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.txt-variopool {
    font-size: clamp(50px, 7vw, 90px) !important;
    font-weight: 800 !important;
    color: var(--brand-navy) !important;
    line-height: 0.9 !important;
    margin: -5px 0 0 0 !important;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.txt-tagline {
    font-size: clamp(18px, 2.2vw, 36px) !important;
    color: #fff !important; /* Changed to white for better UI on dark backdrop */
    margin-top: 10px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-transform: capitalize;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero slogan — second act, staggered */
.hero-slogan-animated {
    margin-top: clamp(-8px, -0.85vw, 4px);
    transform: translateY(clamp(-6px, -0.65vw, -2px));
    position: relative;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.slogan-text-top {
    font-size: clamp(16px, 1.55vw, 21px);
    font-weight: 500;
    color: var(--hero-text-muted);
    margin: 0;
    opacity: 0;
    transform: translateY(22px);
    letter-spacing: 0.06em;
    font-family: inherit;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
    animation: heroSloganSoftUp 0.85s var(--hero-ease-out) 0.95s forwards;
}

.slogan-main-wrap {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: clamp(10px, 1.5vw, 20px);
    margin-top: 4px;
}

.slogan-dash {
    font-size: clamp(28px, 3.4vw, 48px);
    font-weight: 200;
    color: var(--brand-red);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    line-height: 1;
    animation: dashGrow 0.65s var(--hero-ease-out) 1.12s forwards;
}

.slogan-text-main {
    font-size: clamp(26px, 3.2vw, 44px);
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
    font-family: inherit;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.04em;
}

.slogan-text-main__lead {
    display: inline;
    opacity: 0;
    transform: translateX(-14px);
    animation: sloganLeadReveal 0.75s var(--hero-ease-out) 1.22s forwards;
}

.text-alive {
    position: relative;
    display: inline-block;
    isolation: isolate;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: var(--brand-red);
    opacity: 0;
    transform: translateY(8px);
    -webkit-text-fill-color: var(--brand-red);
    animation:
        sloganAlivePop 0.75s var(--hero-ease-out) 1.38s forwards,
        aliveThrob 1.45s cubic-bezier(0.45, 0, 0.55, 1) 2.2s infinite;
    text-shadow: 0 0 14px rgba(196, 30, 36, 0.55), 0 2px 12px rgba(0, 0, 0, 0.35);
}

.text-alive::before {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.12em;
    right: -0.14em;
    top: -0.1em;
    bottom: -0.22em;
    background: radial-gradient(
        ellipse 90% 85% at 50% 55%,
        rgba(196, 30, 36, 0.55) 0%,
        rgba(196, 30, 36, 0.18) 48%,
        transparent 70%
    );
    opacity: 0;
    border-radius: 0.12em;
    transform-origin: center center;
    animation:
        aliveAuraIn 0.6s var(--hero-ease-out) 1.85s forwards,
        aliveHaloBreath 1.45s cubic-bezier(0.45, 0, 0.55, 1) 2.2s infinite;
    pointer-events: none;
}

.text-alive::after {
    content: '';
    position: absolute;
    z-index: 1;
    bottom: clamp(3px, 0.65vw, 7px);
    left: 0;
    width: 0;
    height: clamp(3px, 0.45vw, 6px);
    background: linear-gradient(
        90deg,
        rgba(196, 30, 36, 0.35) 0%,
        rgba(220, 55, 60, 0.95) 35%,
        var(--brand-red) 50%,
        rgba(220, 55, 60, 0.95) 65%,
        rgba(196, 30, 36, 0.35) 100%
    );
    background-size: 220% 100%;
    background-position: 0% 50%;
    border-radius: 2px;
    opacity: 0.95;
    animation:
        underlineGrow 0.85s var(--hero-ease-out) 1.95s forwards,
        aliveRedSweep 1.8s linear 2.2s infinite;
    box-shadow: 0 0 12px rgba(196, 30, 36, 0.65);
}

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

@keyframes sloganLeadReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* “alive” loop: heartbeat throb + halo breath + red sweep (no non-red hues) */
@keyframes aliveThrob {
    0%, 100% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 12px rgba(196, 30, 36, 0.5),
            0 2px 12px rgba(0, 0, 0, 0.35);
    }
    18% {
        transform: translateY(0) scale(1.07);
        text-shadow:
            0 0 28px rgba(196, 30, 36, 1),
            0 0 48px rgba(196, 30, 36, 0.55),
            0 2px 12px rgba(0, 0, 0, 0.35);
    }
    32% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 14px rgba(196, 30, 36, 0.55),
            0 2px 12px rgba(0, 0, 0, 0.35);
    }
    48% {
        transform: translateY(0) scale(1.05);
        text-shadow:
            0 0 22px rgba(196, 30, 36, 0.85),
            0 0 38px rgba(196, 30, 36, 0.45),
            0 2px 12px rgba(0, 0, 0, 0.35);
    }
    65% {
        transform: translateY(0) scale(1);
        text-shadow:
            0 0 12px rgba(196, 30, 36, 0.48),
            0 2px 12px rgba(0, 0, 0, 0.35);
    }
}

@keyframes aliveAuraIn {
    to {
        opacity: 1;
    }
}

@keyframes aliveHaloBreath {
    0%, 100% {
        opacity: 0.72;
        transform: scale(1);
    }
    18% {
        opacity: 1;
        transform: scale(1.14);
    }
    40% {
        opacity: 0.78;
        transform: scale(1.02);
    }
    55% {
        opacity: 0.95;
        transform: scale(1.1);
    }
    72% {
        opacity: 0.75;
        transform: scale(1);
    }
}

@keyframes aliveRedSweep {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(196, 30, 36, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(196, 30, 36, 0.85);
    }
    100% {
        background-position: 220% 50%;
        box-shadow: 0 0 10px rgba(196, 30, 36, 0.5);
    }
}

@keyframes dashGrow {
    to { opacity: 1; transform: scaleX(1); }
}

@keyframes underlineGrow {
    to { width: 100%; }
}

@media (max-width: 991px) {
    .hero-overlay-layer {
        background: linear-gradient(
            to top,
            rgba(8, 28, 42, 0.78) 0%,
            rgba(8, 28, 42, 0.4) 42%,
            transparent 70%
        );
    }
    .hero-content-wrapper {
        align-items: flex-end;
        justify-content: flex-end;
        padding-top: clamp(88px, 14vh, 140px) !important;
        padding-right: clamp(10px, 3.5vw, 36px) !important;
        padding-bottom: clamp(24px, 6vh, 48px) !important;
    }
    .hero-content-stack {
        max-width: min(520px, calc(100vw - 32px));
        align-items: flex-start;
        text-align: left;
    }
    .hero-display-title,
    .hero-slogan-animated {
        align-items: flex-start;
        text-align: left;
    }
    .slogan-main-wrap {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .slogan-text-main {
        font-size: clamp(22px, 6.2vw, 30px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content-stack::before {
        animation: none !important;
        opacity: 1 !important;
        height: calc(100% - 6px) !important;
    }
    .hero-title-ppf__text,
    .hero-title-brand,
    .hero-title-tagline {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
        letter-spacing: inherit;
    }
    .hero-title-brand {
        letter-spacing: 0.02em;
    }
    .hero-title-tagline {
        letter-spacing: 0.28em;
    }
    .hero-title-ppf::after {
        animation: none !important;
        transform: scaleX(1) !important;
    }
    .slogan-text-top,
    .slogan-dash,
    .slogan-text-main__lead,
    .text-alive,
    .text-alive::after {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .text-alive {
        color: var(--brand-red) !important;
        background: none !important;
        background-image: none !important;
        -webkit-text-fill-color: var(--brand-red) !important;
        background-clip: border-box !important;
        -webkit-background-clip: border-box !important;
    }
    .text-alive::before {
        display: none !important;
    }
    .slogan-dash {
        transform: scaleX(1) !important;
    }
    .text-alive::after {
        width: 100% !important;
        background: var(--brand-red) !important;
        background-size: auto !important;
        background-position: center !important;
        box-shadow: 0 0 8px rgba(196, 30, 36, 0.45) !important;
    }
}

/* Masthead / nav / CTA: consolidated in css/modern-navigation.css (all pages). */

/* 4. WHY PPF ARTICLE */
.vairo-article-section { padding: 80px 0 80px 0 !important; background-color: #ffffff; }
.article-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.vairo-article-section .vairo-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.vairo-article-section .article-wrapper,
.vairo-article-section .article-inner {
    margin: 0;
    padding: 0;
}
.article-header { margin-bottom: 40px; text-align: center; }
.article-header .subtitle {
    color: #0274be; text-transform: uppercase; font-size: 14px;
    letter-spacing: 3px; font-weight: 700; display: block; margin-bottom: 15px;
}
.article-header h2 {
    font-size: clamp(32px, 4vw, 42px); color: var(--brand-dark);
    display: inline-block; border-bottom: 3px solid #0274be; padding-bottom: 10px;
    font-weight: 700; font-family: 'Montserrat', sans-serif;
}
.article-content { max-width: 900px; margin: 0 auto; }
.vairo-article-section .article-content {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
}
/* Same left edge for every body paragraph (blockquote keeps its own inset) */
.vairo-article-section .article-content > p {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-indent: 0 !important;
    text-align: left;
}
.article-content p { font-size: 18px; line-height: 1.72; word-spacing: normal; color: var(--brand-grey); margin-bottom: 25px; }
.article-content blockquote {
    font-family: 'Montserrat', sans-serif; font-style: italic; font-size: 21px;
    color: #0274be; border-left: 5px solid var(--brand-red);
    padding: 20px 0 20px 30px; margin: 40px 0; background: #ffffff;
}
.article-content strong { color: var(--brand-dark); font-weight: 700; }

/* .vp-experience-years: defined in custom-gallery.css (loaded with index + About) */

@media (max-width: 768px) {
    .article-header h2 {
        font-size: 32px;
    }
}

/* 5. PROJECTS SECTION */
.vairo-projects-section { padding: 120px 0 44px 0; background-color: #ffffff; }
.projects-container { max-width: 1100px !important; margin: 0 auto; padding: 0 40px; }
.projects-header { text-align: center; margin-bottom: 60px; }
.projects-header h2 { font-size: clamp(30px, 4vw, 38px); color: var(--brand-dark); margin: 10px 0; font-weight: 700; }
.projects-header .subtitle { color: #C41E24; text-transform: uppercase; font-size: 13px; letter-spacing: 3px; font-weight: 700; }
.header-line { width: 60px; height: 3px; background-color: #C41E24; margin: 20px auto; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-item { position: relative; overflow: visible; border-radius: 15px; cursor: pointer; transition: all 0.4s ease; }
.project-image-wrapper { 
    position: relative; 
    width: 100%; 
    height: 380px; /* Increased height so more of the picture is shown */
    overflow: hidden; 
    border-radius: 15px; 
}
.project-item img {
    width: 100%; height: 100%; display: block; 
    object-fit: cover; 
    object-position: top center; /* Show the top of the project photos */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}
.project-item:hover img { transform: scale(1.1); box-shadow: 0 20px 45px rgba(0,0,0,0.15); }
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 50, 67, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 15px;
}
.overlay-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(250, 5, 5, 0.3);
}
.project-info {
    padding: 20px 25px;
    text-align: left;
}
.project-info h4 {
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
}
.project-info p {
    color: #5a8090;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 !important;
}
.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(15, 60, 79, 0.12);
}
.project-item:hover .project-overlay {
    opacity: 1;
}
.project-item:hover .overlay-icon {
    transform: scale(1);
}
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .projects-header h2 { font-size: 28px; }
}

/* 6. SERVICES SHOWCASE */
.services-showcase-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 60px 0 100px 0;
    background-color: #f4f6f8;
}
.services-container {
    max-width: 1100px !important;
    margin: 0 auto;
    padding: 0 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    position: relative;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: top center; /* Ensure top of images is visible */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    container-type: inline-size;
    container-name: service-card;
}
.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(15, 60, 79, 0.25);
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 60, 79, 0.2) 40%, rgba(15, 60, 79, 0.95) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}
.service-card:hover::before {
    background: linear-gradient(180deg, rgba(15, 60, 79, 0.1) 0%, rgba(15, 60, 79, 0.6) 40%, rgba(15, 60, 79, 1) 100%);
}
.service-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #ffffff;
    transition: all 0.5s ease;
}
.service-content h3 {
    /* One line per card: size tracks card width (container query) so longest title fits */
    font-size: clamp(14px, 1.75vw, 19px);
    font-size: clamp(13px, 5.75cqw, 19px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.service-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    /* Collapse from layout when “invisible” so h3 + CTA share the same baseline on every card */
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        margin-bottom 0.45s ease;
}
.service-card:hover .service-content p {
    opacity: 1;
    transform: translateY(0);
    max-height: 12rem;
    margin-bottom: 25px;
}
.service-card:hover .service-content {
    transform: translateY(-10px);
}
.service-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.service-link span {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}
.service-link::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}
.service-card:hover .service-link::after {
    transform: translateX(8px);
}
.service-link:hover {
    color: var(--brand-red);
}
.service-link:hover span {
    border-color: var(--brand-red);
}
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        height: 400px;
    }
    .service-content p {
        opacity: 1;
        transform: none;
        max-height: none;
        margin-bottom: 25px;
    }
}

/* 7. SUPPORT CTA SECTION */
.vairo-support-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(rgba(0, 21, 36, 0.85), rgba(0, 21, 36, 0.85)), url('../images/Leisure-by-ppf-variopool.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.support-cta-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.support-cta-wrapper h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: #ffffff !important;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.support-cta-wrapper p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.support-cta-button {
    display: inline-block;
    background: var(--brand-red);
    color: #ffffff !important;
    padding: 20px 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(191, 2, 2, 0.35);
}
.support-cta-button:hover {
    background: #ffffff;
    color: var(--brand-red) !important;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 8. REALISTIC UNDERWATER BUBBLES */
.bubbles-container { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.bubble {
    position: absolute; bottom: -50px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    box-shadow: inset -2px -2px 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.1);
    animation: rise linear infinite, wobble 3s ease-in-out infinite;
    z-index: 5;
    will-change: transform, bottom;
}
@keyframes rise {
    0% { bottom: -50px; opacity: 0; transform: scale(0.6) translateX(0); }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { bottom: 120vh; opacity: 0; transform: scale(1.1) translateX(var(--drift)); }
}
@keyframes wobble {
    0%, 100% { margin-left: -15px; }
    50% { margin-left: 15px; }
}

/* 9. COMPREHENSIVE MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .vairo-article-section { padding: 60px 0 !important; }
    .article-header h2 { font-size: 28px !important; }
    .vairo-projects-section { padding: 60px 0 28px !important; }
    .projects-container { padding: 0 20px !important; }
    .projects-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .project-image-wrapper { height: 220px !important; }
    .services-showcase-section { padding: 40px 0 !important; }
    .services-grid { grid-template-columns: 1fr !important; gap: 30px !important; }
    .service-card { height: 400px !important; }
    .vairo-support-section { padding: 70px 0 !important; background-attachment: scroll !important; }
    .support-cta-wrapper h2 { font-size: 26px !important; }
    .support-cta-wrapper p { font-size: 16px !important; }
    .support-cta-button { padding: 16px 35px !important; width: 100%; box-sizing: border-box; }
}

body { overflow-x: hidden !important; width: 100% !important; }
