/* ===== Revolving door & premium site effects ===== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-particles-canvas,
    .hero-door-ring,
    .hero-light-sweep { display: none !important; }
}

/* --- Hero banner --- */
.hero-section {
    isolation: isolate;
}

.hero-swiper .swiper-slide {
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    animation: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, transparent 0%, rgba(0, 0, 0, 0.25) 100%),
        linear-gradient(105deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 45%, transparent 70%);
}

.hero-overlay.hero-overlay--light {
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 38%, transparent 62%);
}

.hero-particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    opacity: 0.75;
}

/* Revolving door ring overlay */
.hero-door-ring {
    position: absolute;
    right: 8%;
    top: 50%;
    width: min(42vw, 520px);
    height: min(42vw, 520px);
    transform: translateY(-50%);
    z-index: 7;
    pointer-events: none;
    opacity: 0.55;
}

.hero-door-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 24px rgba(96, 165, 250, 0.35));
}

.hero-door-ring .door-blades {
    transform-origin: center;
    animation: doorSpin 28s linear infinite;
}

.hero-door-ring .door-blades-reverse {
    transform-origin: center;
    animation: doorSpin 42s linear infinite reverse;
}

@keyframes doorSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-door-ring .door-glow {
    animation: doorPulse 4s ease-in-out infinite;
}

@keyframes doorPulse {
    0%, 100% { opacity: 0.35; }
    50%      { opacity: 0.7; }
}

/* Light sweep */
.hero-light-sweep {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    overflow: hidden;
}

.hero-light-sweep::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 35%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.03) 65%,
        transparent 100%
    );
    transform: skewX(-18deg);
    animation: heroSweep 7s ease-in-out infinite;
}

@keyframes heroSweep {
    0%   { left: -60%; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

/* Hero text reveal */
.hero-content {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-swiper .swiper-slide-active .hero-content,
.hero-swiper .swiper-slide:first-child .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-swiper .swiper-slide-active .hero-title {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-swiper .swiper-slide-active .hero-subtitle {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-swiper .swiper-slide-active .hero-btn {
    animation: heroTextIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-title {
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
    max-width: min(100%, 52rem);
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
}

.hero-subtitle {
    max-width: min(100%, 48rem);
    word-break: keep-all;
    overflow-wrap: normal;
    line-break: strict;
}

@media (min-width: 1024px) {
    .hero-title {
        white-space: nowrap;
        max-width: none;
    }

    .hero-subtitle {
        white-space: nowrap;
        max-width: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        white-space: nowrap;
        max-width: none;
        font-size: clamp(2.25rem, 4.2vw, 3rem);
    }

    .hero-subtitle {
        white-space: normal;
        max-width: 42rem;
    }
}

.hero-overlay--light + .hero-particles-canvas + .hero-door-ring + .hero-light-sweep + .hero-content .hero-title,
.hero-slide-light .hero-title {
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.5);
}

/* Shine button */
.btn-shine {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.45);
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
}

@keyframes btnShine {
    0%, 70% { left: -120%; }
    100%     { left: 180%; }
}

/* Autoplay progress bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 20;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
    transition: width 0.1s linear;
}

/* Scroll indicator */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2.2s ease-in-out infinite;
}

.hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 2.5rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* Swiper controls upgrade */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s, transform 0.3s;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 700;
}

.hero-swiper .swiper-pagination-bullet {
    width: 2rem;
    height: 4px;
    border-radius: 2px;
    opacity: 0.45;
    transition: width 0.3s, opacity 0.3s;
}

.hero-swiper .swiper-pagination-bullet-active {
    width: 3rem;
    opacity: 1;
}

/* --- Stats section --- */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.stats-ring-1 {
    width: 400px;
    height: 400px;
    top: -120px;
    right: -80px;
    animation: doorSpin 30s linear infinite;
}

.stats-ring-2 {
    width: 260px;
    height: 260px;
    bottom: -60px;
    left: -40px;
    animation: doorSpin 22s linear infinite reverse;
}

.stat-item {
    position: relative;
}

.stat-item .counter {
    color: #fff;
}

/* --- Page headers (inner pages) --- */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 85% 20%, rgba(59, 130, 246, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(96, 165, 250, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-door {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    opacity: 0.2;
    pointer-events: none;
}

.page-hero-door svg {
    width: 100%;
    height: 100%;
    animation: doorSpin 24s linear infinite;
}

.page-hero-title {
    position: relative;
    display: inline-block;
}

.page-hero-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 2px;
}

/* --- Scroll reveal (progressive: visible by default, hide only after JS ready) --- */
.fx-reveal,
.fx-reveal-left,
.fx-reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

html.fx-ready .fx-reveal:not(.fx-visible) {
    opacity: 0;
    transform: translateY(32px);
}

html.fx-ready .fx-reveal-left:not(.fx-visible) {
    opacity: 0;
    transform: translateX(-32px);
}

html.fx-ready .fx-reveal-right:not(.fx-visible) {
    opacity: 0;
    transform: translateX(32px);
}

.fx-reveal.fx-visible,
.fx-reveal-left.fx-visible,
.fx-reveal-right.fx-visible {
    opacity: 1;
    transform: none;
}

.fx-stagger > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html.fx-ready .fx-stagger:not(.fx-visible) > * {
    opacity: 0;
    transform: translateY(20px);
}

.fx-stagger.fx-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fx-stagger.fx-visible > *:nth-child(2) { transition-delay: 0.12s; }
.fx-stagger.fx-visible > *:nth-child(3) { transition-delay: 0.19s; }
.fx-stagger.fx-visible > *:nth-child(4) { transition-delay: 0.26s; }
.fx-stagger.fx-visible > *:nth-child(5) { transition-delay: 0.33s; }
.fx-stagger.fx-visible > *:nth-child(6) { transition-delay: 0.4s; }
.fx-stagger.fx-visible > *:nth-child(7) { transition-delay: 0.47s; }
.fx-stagger.fx-visible > *:nth-child(8) { transition-delay: 0.54s; }

.fx-stagger.fx-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* --- Card effects --- */
.fx-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.fx-card:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.fx-card .media-frame img,
.fx-card .media-fill {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Section title accent */
.section-title-wrap {
    position: relative;
}

.section-title-wrap h2::before {
    content: '';
    display: block;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

/* Video section glow */
.brand-video-wrap {
    position: relative;
}

.brand-video-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(147,197,253,0.2), rgba(59,130,246,0.5));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    top: -200px;
    right: -100px;
    animation: doorSpin 35s linear infinite;
    pointer-events: none;
}

/* Header transparent on hero */
.site-header--hero {
    background: transparent !important;
    box-shadow: none !important;
}

/* Top gradient scrim so white nav stays readable on bright hero images */
.site-header--hero:not(.site-header--light-slide):not(.site-header--scrolled)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.site-header--hero:not(.site-header--light-slide):not(.site-header--scrolled) > * {
    position: relative;
    z-index: 1;
}

.site-header--hero .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.site-header--hero .nav-link:hover,
.site-header--hero .nav-link.active {
    color: #fff !important;
}

.site-header--hero .header-phone {
    color: #fff !important;
}

.site-header--hero .lang-switch {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.site-header--hero .menu-btn {
    color: #fff !important;
}

/* Light banner slide: solid header so menu stays readable */
.site-header--hero.site-header--light-slide:not(.site-header--scrolled) {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.08) !important;
}

.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .nav-link {
    color: #0F3D8C !important;
    text-shadow: none;
}

.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .nav-link:hover,
.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .nav-link.active {
    color: #1B5FBF !important;
}

.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .header-phone {
    color: #1B5FBF !important;
}

.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .lang-switch {
    border-color: #e5e7eb !important;
    background: rgba(255, 255, 255, 0.8);
}

.site-header--hero.site-header--light-slide:not(.site-header--scrolled) .menu-btn {
    color: #0F3D8C !important;
}

.site-header--hero.site-header--scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.site-header--hero.site-header--scrolled .nav-link {
    color: #1f2937 !important;
}

.site-header--hero.site-header--scrolled .nav-link:hover,
.site-header--hero.site-header--scrolled .nav-link.active {
    color: #2563eb !important;
}

.site-header--hero.site-header--scrolled .header-phone {
    color: #2563eb !important;
}

.site-header--hero.site-header--scrolled .lang-switch {
    border-color: #e5e7eb !important;
}

.site-header--hero.site-header--scrolled .menu-btn {
    color: #1f2937 !important;
}

@media (max-width: 768px) {
    .hero-door-ring {
        right: -15%;
        width: 55vw;
        height: 55vw;
        opacity: 0.35;
    }
    .hero-scroll-hint { display: none; }
}
