/* ============================================================
   Experior FM — Home Page Styles
   ============================================================ */

/* ── "Why Us" Grid — 3 columns × 2 rows on desktop ── */
.grid--5-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid--5-home .card {
    text-align: center;
}

.grid--5-home .card__icon {
    margin-left: auto;
    margin-right: auto;
}

/* ── Visual Cards — Themed Image Headers ── */
.card--visual {
    padding: 0;
    overflow: hidden;
}

.card--visual .card__title,
.card--visual .card__text {
    padding: 0 var(--space-lg);
}

.card--visual .card__title {
    padding-top: var(--space-md);
}

.card--visual .card__text {
    padding-bottom: var(--space-lg);
}

/* Visual header area */
.card__visual {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card__visual svg {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.5s ease;
}

/* Geometric decoration: rotated square */
.card__visual::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transform: rotate(45deg);
    right: -20px;
    top: -20px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
    z-index: 1;
}

/* Geometric decoration: circle */
.card__visual::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    left: -15px;
    bottom: -15px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease;
    z-index: 1;
}

/* Hover animations */
.card--visual:hover .card__visual svg {
    transform: scale(1.15) translateY(-4px);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

.card--visual:hover .card__visual::before {
    transform: rotate(45deg) scale(1.15) translate(5px, 5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card--visual:hover .card__visual::after {
    transform: scale(1.2) translate(-5px, 5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Theme: Comprehensive FM — Deep blue (infrastructure/buildings) ── */
.card__visual--fm {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a6496 50%, #1e4d7a 100%);
}

/* ── Theme: Safety — Emerald green (protection/security) ── */
.card__visual--safety {
    background: linear-gradient(135deg, #1a5c3a 0%, #2a9664 50%, #1e7a4d 100%);
}

/* ── Theme: Skilled Technicians — Warm amber (craftsmanship) ── */
.card__visual--team {
    background: linear-gradient(135deg, #7a4a0e 0%, #c87818 50%, #a86210 100%);
}

/* ── Theme: 24/7 Support — Deep purple (reliability) ── */
.card__visual--support {
    background: linear-gradient(135deg, #3a1a5c 0%, #6a2a96 50%, #4d1e7a 100%);
}

/* ── Theme: Quality-Driven — Brand magenta (excellence) ── */
.card__visual--quality {
    background: linear-gradient(135deg, #8c0e42 0%, #ec1970 50%, #c81460 100%);
}

/* ── Theme: Technology — Brand olive/teal (innovation) ── */
.card__visual--tech {
    background: linear-gradient(135deg, #3a5c0e 0%, #6e8c18 50%, #a0ac08 100%);
}

/* Scanline sweep animation on visual headers */
@keyframes cardScanline {
    0%   { left: -60%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

.card--visual .card__visual {
    position: relative;
}

/* Futuristic light sweep on hover */
.card--visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 50%;
    height: 160px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.card--visual:hover::after {
    animation: cardScanline 1.2s ease-in-out;
}

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

    .card__visual {
        height: 130px;
    }

    .card--visual::after {
        height: 130px;
    }
}

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

    .card__visual {
        height: 140px;
    }

    .card--visual::after {
        height: 140px;
    }
}

/* ── Services Preview Section Background ── */
.section--services {
    position: relative;
    background: linear-gradient(180deg, #f8f9fc 0%, #eef1f8 50%, #f8f9fc 100%);
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.services-bg__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.services-bg__shape--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -80px;
    right: -60px;
    animation: serviceFloat1 20s ease-in-out infinite;
}

.services-bg__shape--2 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: serviceFloat2 25s ease-in-out infinite;
}

.services-bg__shape--3 {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 45%;
    left: 55%;
    animation: serviceFloat3 18s ease-in-out infinite;
}

@keyframes serviceFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-30px, 25px) scale(1.12); }
    66%      { transform: translate(15px, -15px) scale(0.92); }
}

@keyframes serviceFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -25px) scale(1.1); }
}

@keyframes serviceFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, 18px) scale(1.08); }
    66%      { transform: translate(-18px, -22px) scale(0.95); }
}

.section--services .container {
    position: relative;
    z-index: 1;
}

/* ── Animated Heading Shimmer ── */
.section-title--shimmer {
    background: linear-gradient(
        90deg,
        var(--color-dark) 0%,
        var(--color-dark) 35%,
        var(--color-primary) 50%,
        var(--color-dark) 65%,
        var(--color-dark) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 4s ease-in-out infinite;
}

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

/* ── Service Cards (Home Preview) ── */
.service-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.service-card__icon--secondary {
    background: var(--color-secondary-bg);
    color: var(--color-secondary);
}

.service-card:hover .service-card__icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.service-card:hover .service-card__icon--secondary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.service-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
}

.service-card__text {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: var(--line-height-loose);
    margin-bottom: var(--space-sm);
}

.service-card__link {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.service-card:hover .service-card__link {
    color: var(--color-primary-dark);
}

/* ── Time-Frame Themed Service Cards ── */
.service-card--timed {
    padding: 0;
}

.service-card--timed .service-card__body {
    padding: var(--space-lg);
}

/* Time-frame visual header */
.service-card__timeframe {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Service card image */
.service-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
}

/* Themed gradient overlay on top of image */
.service-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Time badge */
.service-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-family: var(--font-family-heading);
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Theme: 24/7 — Deep navy overlay ── */
.service-card__timeframe--247 {
    background: #0a1628;
}

.service-card__timeframe--247 .service-card__overlay {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.45) 0%, rgba(26, 58, 92, 0.3) 50%, rgba(42, 90, 140, 0.25) 100%);
}

/* Orbiting ring */
.service-card__timeframe--247::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(236, 25, 112, 0.5);
    border-radius: 50%;
    animation: orbitSpin 6s linear infinite;
    z-index: 2;
}

/* Smaller counter-rotating ring */
.service-card__timeframe--247::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-right-color: rgba(160, 172, 8, 0.3);
    border-radius: 50%;
    animation: orbitSpin 10s linear infinite reverse;
    z-index: 2;
}

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

/* ── Theme: Scheduled — Warm amber overlay ── */
.service-card__timeframe--scheduled {
    background: #3a2508;
}

.service-card__timeframe--scheduled .service-card__overlay {
    background: linear-gradient(135deg, rgba(92, 58, 10, 0.45) 0%, rgba(140, 106, 26, 0.3) 50%, rgba(200, 152, 24, 0.2) 100%);
}

/* Pulsing sunburst */
.service-card__timeframe--scheduled::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: sunPulse 3s ease-in-out infinite;
    z-index: 2;
}

/* Expanding glow ring */
.service-card__timeframe--scheduled::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 200, 50, 0.2);
    border-radius: 50%;
    animation: sunRing 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.8); opacity: 0.15; }
}

@keyframes sunRing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(2.2); opacity: 0; }
}

/* ── Theme: Daily — Soft teal overlay ── */
.service-card__timeframe--daily {
    background: #0a2a2a;
}

.service-card__timeframe--daily .service-card__overlay {
    background: linear-gradient(135deg, rgba(10, 58, 58, 0.45) 0%, rgba(26, 100, 100, 0.3) 50%, rgba(42, 140, 140, 0.2) 100%);
}

/* Gentle wave */
.service-card__timeframe--daily::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50% 50% 0 0;
    animation: serviceWave1 4s ease-in-out infinite;
    z-index: 2;
}

/* Second wave layer */
.service-card__timeframe--daily::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -5%;
    width: 110%;
    height: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 50% 0 0;
    animation: serviceWave2 5s ease-in-out infinite;
    z-index: 2;
}

@keyframes serviceWave1 {
    0%, 100% { transform: translateX(-3%) scaleY(1); }
    50%      { transform: translateX(3%) scaleY(1.4); }
}

@keyframes serviceWave2 {
    0%, 100% { transform: translateX(3%) scaleY(1); }
    50%      { transform: translateX(-3%) scaleY(1.6); }
}

/* ── Time-Frame Card Hover Effects ── */
.service-card--timed:hover .service-card__img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.service-card--timed:hover .service-card__overlay {
    opacity: 0.6;
}

.service-card--timed:hover .service-card__timeframe--247::before {
    border-top-color: rgba(236, 25, 112, 0.8);
    animation-duration: 3s;
}

.service-card--timed:hover .service-card__timeframe--scheduled::before {
    animation-duration: 1.5s;
}

.service-card--timed:hover .service-card__timeframe--daily::before {
    animation-duration: 2s;
}

/* ── Services Section Responsive ── */
@media (max-width: 768px) {
    .service-card__timeframe {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .service-card__timeframe {
        height: 150px;
    }
}

/* ── Services Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .services-bg__shape {
        animation: none;
    }

    .section-title--shimmer {
        animation: none;
        -webkit-text-fill-color: var(--color-dark);
    }

    .service-card__img {
        transition: none;
    }

    .service-card__timeframe--247::before,
    .service-card__timeframe--247::after,
    .service-card__timeframe--scheduled::before,
    .service-card__timeframe--scheduled::after,
    .service-card__timeframe--daily::before,
    .service-card__timeframe--daily::after {
        animation: none;
    }
}

/* ── About Visual Section ── */
.about-visual__card {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-visual__item {
    background: var(--color-bg-alt);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-left-color 0.4s ease,
                background 0.4s ease;
}

/* Glow sweep on hover */
.about-visual__item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(236, 25, 112, 0.04) 40%,
        rgba(236, 25, 112, 0.08) 50%,
        rgba(236, 25, 112, 0.04) 60%,
        transparent 100%
    );
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.about-visual__item--accent::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(160, 172, 8, 0.04) 40%,
        rgba(160, 172, 8, 0.08) 50%,
        rgba(160, 172, 8, 0.04) 60%,
        transparent 100%
    );
}

.about-visual__item:hover::after {
    left: 100%;
}

.about-visual__item:hover {
    transform: translateX(6px);
    box-shadow:
        0 4px 20px rgba(236, 25, 112, 0.1),
        -4px 0 0 0 var(--color-primary);
    background: var(--color-white);
    border-left-width: 5px;
}

.about-visual__item--accent:hover {
    box-shadow:
        0 4px 20px rgba(160, 172, 8, 0.1),
        -4px 0 0 0 var(--color-secondary);
}

.about-visual__item--accent {
    border-left-color: var(--color-secondary);
}

.about-visual__item h4 {
    color: var(--color-dark);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease, letter-spacing 0.4s ease;
}

.about-visual__item:hover h4 {
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.about-visual__item--accent:hover h4 {
    color: var(--color-secondary);
}

.about-visual__item p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.about-visual__item:hover p {
    color: var(--color-body);
}

/* ── Decorated Heading — Animated Underline ── */
.section-title--decorated {
    position: relative;
    display: block;
    width: fit-content;
    padding-bottom: var(--space-sm);
}

.section-title--decorated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% 100%;
    animation: decorLineShimmer 3s linear infinite, decorLineGrow 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes decorLineGrow {
    from { width: 0; opacity: 0; }
    to   { width: 80px; opacity: 1; }
}

@keyframes decorLineShimmer {
    0%   { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   Stats Counter — 3D Animated Background
   ============================================================ */
.section--stats-3d {
    position: relative;
    overflow: hidden;
    perspective: 800px;
}

.section--stats-3d .container {
    position: relative;
    z-index: 2;
}

/* 3D scene container */
.stats-3d {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    perspective: 800px;
}

/* Perspective grid floor */
.stats-3d__grid {
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 120%;
    height: 80%;
    background:
        linear-gradient(rgba(236, 25, 112, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 25, 112, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg);
    transform-origin: center top;
    animation: gridDrift 20s linear infinite;
    opacity: 0.5;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

/* ── 3D Floating Cubes ── */
.stats-3d__cube {
    position: absolute;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
}

.stats-3d__face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(236, 25, 112, 0.15);
    background: rgba(236, 25, 112, 0.03);
    backface-visibility: visible;
}

.stats-3d__face--front  { transform: translateZ(25px); }
.stats-3d__face--back   { transform: rotateY(180deg) translateZ(25px); }
.stats-3d__face--left   { transform: rotateY(-90deg) translateZ(25px); }
.stats-3d__face--right  { transform: rotateY(90deg) translateZ(25px); }
.stats-3d__face--top    { transform: rotateX(90deg) translateZ(25px); }
.stats-3d__face--bottom { transform: rotateX(-90deg) translateZ(25px); }

/* Cube 1 — top left, slow rotation */
.stats-3d__cube--1 {
    top: 15%;
    left: 8%;
    animation: cubeFloat1 18s ease-in-out infinite;
}

/* Cube 2 — top right, medium rotation */
.stats-3d__cube--2 {
    top: 20%;
    right: 12%;
    width: 35px;
    height: 35px;
    animation: cubeFloat2 14s ease-in-out infinite;
}

.stats-3d__cube--2 .stats-3d__face {
    border-color: rgba(160, 172, 8, 0.15);
    background: rgba(160, 172, 8, 0.03);
}

.stats-3d__cube--2 .stats-3d__face--front  { transform: translateZ(17.5px); }
.stats-3d__cube--2 .stats-3d__face--back   { transform: rotateY(180deg) translateZ(17.5px); }
.stats-3d__cube--2 .stats-3d__face--left   { transform: rotateY(-90deg) translateZ(17.5px); }
.stats-3d__cube--2 .stats-3d__face--right  { transform: rotateY(90deg) translateZ(17.5px); }
.stats-3d__cube--2 .stats-3d__face--top    { transform: rotateX(90deg) translateZ(17.5px); }
.stats-3d__cube--2 .stats-3d__face--bottom { transform: rotateX(-90deg) translateZ(17.5px); }

/* Cube 3 — bottom center-left */
.stats-3d__cube--3 {
    bottom: 12%;
    left: 30%;
    width: 40px;
    height: 40px;
    animation: cubeFloat3 22s ease-in-out infinite;
}

.stats-3d__cube--3 .stats-3d__face {
    border-color: rgba(200, 152, 24, 0.15);
    background: rgba(200, 152, 24, 0.03);
}

.stats-3d__cube--3 .stats-3d__face--front  { transform: translateZ(20px); }
.stats-3d__cube--3 .stats-3d__face--back   { transform: rotateY(180deg) translateZ(20px); }
.stats-3d__cube--3 .stats-3d__face--left   { transform: rotateY(-90deg) translateZ(20px); }
.stats-3d__cube--3 .stats-3d__face--right  { transform: rotateY(90deg) translateZ(20px); }
.stats-3d__cube--3 .stats-3d__face--top    { transform: rotateX(90deg) translateZ(20px); }
.stats-3d__cube--3 .stats-3d__face--bottom { transform: rotateX(-90deg) translateZ(20px); }

@keyframes cubeFloat1 {
    0%   { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
    25%  { transform: rotateX(90deg) rotateY(45deg) translateY(-10px); }
    50%  { transform: rotateX(180deg) rotateY(90deg) translateY(0); }
    75%  { transform: rotateX(270deg) rotateY(135deg) translateY(10px); }
    100% { transform: rotateX(360deg) rotateY(180deg) translateY(0); }
}

@keyframes cubeFloat2 {
    0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(0); }
    33%  { transform: rotateX(120deg) rotateY(60deg) rotateZ(30deg) translateY(-15px); }
    66%  { transform: rotateX(240deg) rotateY(120deg) rotateZ(60deg) translateY(8px); }
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg) translateY(0); }
}

@keyframes cubeFloat3 {
    0%   { transform: rotateX(45deg) rotateY(0deg) translateY(0); }
    50%  { transform: rotateX(225deg) rotateY(180deg) translateY(-12px); }
    100% { transform: rotateX(405deg) rotateY(360deg) translateY(0); }
}

/* ── 3D Rotating Rings ── */
.stats-3d__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.stats-3d__ring--1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 25%;
    border-color: rgba(236, 25, 112, 0.12);
    border-top-color: rgba(236, 25, 112, 0.35);
    animation: ringOrbit1 12s linear infinite;
    transform-style: preserve-3d;
}

.stats-3d__ring--2 {
    width: 80px;
    height: 80px;
    bottom: 15%;
    right: 15%;
    border-color: rgba(160, 172, 8, 0.1);
    border-left-color: rgba(160, 172, 8, 0.3);
    animation: ringOrbit2 16s linear infinite;
    transform-style: preserve-3d;
}

@keyframes ringOrbit1 {
    0%   { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes ringOrbit2 {
    0%   { transform: rotateX(55deg) rotateY(20deg) rotateZ(0deg); }
    100% { transform: rotateX(55deg) rotateY(20deg) rotateZ(-360deg); }
}

/* Stats 3D responsive */
@media (max-width: 768px) {
    .stats-3d__cube--1 { display: none; }
    .stats-3d__cube--3 { display: none; }
    .stats-3d__ring--2 { display: none; }
}

/* Stats 3D reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stats-3d__cube,
    .stats-3d__ring,
    .stats-3d__grid {
        animation: none;
    }

    .section-title--decorated::after {
        animation: none;
        width: 80px;
        opacity: 1;
    }
}

/* ============================================================
   CTA Banner — Galaxy Animation
   ============================================================ */
.cta-banner--galaxy {
    position: relative;
    background: linear-gradient(135deg, #0a0015 0%, #1a0a2e 30%, #0d1b3e 60%, #0a0a1a 100%);
    overflow: hidden;
}

.cta-banner--galaxy .container {
    position: relative;
    z-index: 2;
}

.galaxy {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ── Star Layers — CSS radial-gradient dot patterns ── */
.galaxy__stars {
    position: absolute;
    inset: 0;
}

.galaxy__stars--small {
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 55% 15%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 72% 80%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 35%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 20% 90%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 92% 55%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 92%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 5% 50%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: starTwinkle1 4s ease-in-out infinite alternate;
}

.galaxy__stars--medium {
    background-image:
        radial-gradient(1.5px 1.5px at 15% 40%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 10%, rgba(200, 152, 24, 0.6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 65% 70%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 80% 25%, rgba(160, 172, 8, 0.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 75%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 95% 60%, rgba(236, 25, 112, 0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 30%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    animation: starTwinkle2 5s ease-in-out infinite alternate;
}

.galaxy__stars--large {
    background-image:
        radial-gradient(2px 2px at 22% 55%, rgba(255, 255, 255, 0.9) 50%, transparent 100%),
        radial-gradient(2px 2px at 58% 85%, rgba(236, 25, 112, 0.5) 50%, transparent 100%),
        radial-gradient(2.5px 2.5px at 78% 15%, rgba(255, 255, 255, 0.8) 50%, transparent 100%),
        radial-gradient(2px 2px at 35% 30%, rgba(160, 172, 8, 0.4) 50%, transparent 100%),
        radial-gradient(2px 2px at 88% 75%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    animation: starTwinkle3 6s ease-in-out infinite alternate;
}

@keyframes starTwinkle1 {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

@keyframes starTwinkle2 {
    from { opacity: 0.5; }
    to   { opacity: 0.9; }
}

@keyframes starTwinkle3 {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

/* ── Nebula Clouds ── */
.galaxy__nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.galaxy__nebula--1 {
    width: 350px;
    height: 200px;
    top: -30%;
    left: 10%;
    background: radial-gradient(
        ellipse,
        rgba(236, 25, 112, 0.15) 0%,
        rgba(236, 25, 112, 0.05) 40%,
        transparent 70%
    );
    animation: nebulaDrift1 25s ease-in-out infinite;
}

.galaxy__nebula--2 {
    width: 300px;
    height: 180px;
    bottom: -25%;
    right: 5%;
    background: radial-gradient(
        ellipse,
        rgba(160, 172, 8, 0.12) 0%,
        rgba(100, 120, 200, 0.06) 40%,
        transparent 70%
    );
    animation: nebulaDrift2 30s ease-in-out infinite;
}

@keyframes nebulaDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, 15px) scale(1.1); }
    66%      { transform: translate(-20px, -10px) scale(0.95); }
}

@keyframes nebulaDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-25px, 10px) scale(1.08); }
}

/* ── Shooting Stars ── */
.galaxy__shooting-star {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
    opacity: 0;
}

.galaxy__shooting-star--1 {
    top: 20%;
    left: 10%;
    transform: rotate(-35deg);
    animation: shootingStar 6s 1s ease-in infinite;
}

.galaxy__shooting-star--2 {
    top: 40%;
    right: 15%;
    width: 60px;
    transform: rotate(-25deg);
    animation: shootingStar 8s 3.5s ease-in infinite;
}

.galaxy__shooting-star--3 {
    top: 60%;
    left: 40%;
    width: 50px;
    transform: rotate(-40deg);
    animation: shootingStar 10s 6s ease-in infinite;
}

@keyframes shootingStar {
    0%   { opacity: 0; transform: rotate(-35deg) translateX(0); }
    2%   { opacity: 1; }
    8%   { opacity: 0; transform: rotate(-35deg) translateX(200px); }
    100% { opacity: 0; }
}

/* Galaxy responsive */
@media (max-width: 768px) {
    .galaxy__nebula--1 { width: 200px; height: 120px; }
    .galaxy__nebula--2 { width: 180px; height: 100px; }
    .galaxy__shooting-star--3 { display: none; }
}

/* Galaxy reduced motion */
@media (prefers-reduced-motion: reduce) {
    .galaxy__stars,
    .galaxy__nebula,
    .galaxy__shooting-star {
        animation: none;
    }

    .galaxy__shooting-star {
        display: none;
    }

    .galaxy__stars--small,
    .galaxy__stars--medium,
    .galaxy__stars--large {
        opacity: 0.8;
    }
}

/* ══════════════════════════════════════════════════════════════
   Customer Enquiry Section
   ══════════════════════════════════════════════════════════════ */
.section--enquiry {
    position: relative;
    overflow: hidden;
}

/* Decorative gradient blobs behind the section */
.section--enquiry::before,
.section--enquiry::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.08;
    z-index: 0;
}

.section--enquiry::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: var(--color-primary);
    animation: enquiryBlobFloat 10s ease-in-out infinite;
}

.section--enquiry::after {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -80px;
    background: var(--color-secondary);
    animation: enquiryBlobFloat 12s ease-in-out 3s infinite;
}

@keyframes enquiryBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -20px) scale(1.1); }
}

/* ── Layout ── */
.enquiry-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ── Left: Info Panel ── */
.enquiry-info .section-title {
    margin-bottom: var(--space-sm);
}

.enquiry-info > p {
    color: var(--color-muted);
    line-height: var(--line-height-loose);
    margin-bottom: var(--space-lg);
}

/* Feature list */
.enquiry-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.enquiry-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.enquiry-features__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.enquiry-features li:hover .enquiry-features__icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.08);
}

.enquiry-features li strong {
    display: block;
    font-size: var(--text-base);
    color: var(--color-dark);
    margin-bottom: 2px;
}

.enquiry-features li span {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* Direct contact links */
.enquiry-contact {
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.enquiry-contact p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

.enquiry-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
    margin-right: var(--space-lg);
    transition: color 0.3s ease;
}

.enquiry-contact a:hover {
    color: var(--color-primary);
}

.enquiry-contact a svg {
    color: var(--color-primary);
}

/* ── Right: Form Card ── */
.enquiry-form-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.enquiry-form-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Top gradient accent */
.enquiry-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% 100%;
    animation: enquiryGradientSlide 4s linear infinite;
}

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

/* Full-width submit */
.btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .enquiry-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .enquiry-form-card {
        padding: var(--space-lg);
    }

    .enquiry-form .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion — enquiry */
@media (prefers-reduced-motion: reduce) {
    .section--enquiry::before,
    .section--enquiry::after {
        animation: none;
    }

    .enquiry-form-card::before {
        animation: none;
    }
}
