/* Homepage — logo-driven blue theme (#2776AE) */

.home-hero {
    position: relative;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.home-hero__atmosphere {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(91, 170, 212, 0.45), transparent 55%),
        radial-gradient(ellipse 70% 50% at 15% 80%, rgba(13, 43, 74, 0.55), transparent 50%),
        linear-gradient(155deg, #1a5a8a 0%, #2776AE 42%, #0D2B4A 100%);
    background-size: 120% 120%, 100% 100%, 100% 100%;
    animation: homeAtmosphere 18s ease-in-out infinite alternate;
}

.home-hero__atmosphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.5;
}

.home-hero__ring {
    position: absolute;
    width: min(72vw, 640px);
    height: min(72vw, 640px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: homeRingPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.home-hero__ring::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(91, 170, 212, 0.35);
    animation: homeRingSpin 48s linear infinite;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 72px 20px 88px;
    max-width: 760px;
}

.home-hero__logo-plate {
    width: clamp(168px, 32vw, 260px);
    height: clamp(168px, 32vw, 260px);
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f9fc 70%, #e8f1f8 100%);
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.18),
        0 18px 48px rgba(0, 0, 0, 0.28);
    animation: homeLogoFloat 5.5s ease-in-out infinite;
}

.home-hero__logo {
    width: 78%;
    height: auto;
    display: block;
    filter: none;
}

.home-hero__brand {
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
    animation: homeRise 0.9s ease-out both;
}

.home-hero__headline {
    margin: 0 0 16px;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    animation: homeRise 0.9s ease-out 0.12s both;
}

.home-hero__lead {
    margin: 0 auto 32px;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
    animation: homeRise 0.9s ease-out 0.22s both;
}

.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: homeRise 0.9s ease-out 0.34s both;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn--primary {
    background: #fff;
    color: #0D2B4A;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.home-btn--primary:hover {
    background: #E6F1F8;
    color: #0D2B4A;
}

.home-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.home-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.home-btn--light {
    background: #fff;
    color: #2776AE;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-btn--light:hover {
    background: #E6F1F8;
    color: #1E5F8C;
}

/* Features */
.home-features {
    padding: 88px 0;
    background:
        linear-gradient(180deg, #F3F8FC 0%, #fff 100%);
}

.home-section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.home-section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--dark-navy);
}

.home-section-head p {
    margin: 0;
    color: var(--light-text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-features__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-feature {
    text-align: center;
    padding: 8px 12px;
}

.home-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1.45rem;
}

.home-feature h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--dark-navy);
}

.home-feature p {
    margin: 0;
    color: var(--light-text-color);
    line-height: 1.75;
    font-size: 0.98rem;
}

/* Mid CTA */
.home-cta-band {
    background: linear-gradient(120deg, #2776AE 0%, #1E5F8C 55%, #0D2B4A 100%);
    color: #fff;
    padding: 56px 0;
}

.home-cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.home-cta-band h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.65rem;
}

.home-cta-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

/* Testimonials on homepage */
.home-testimonials {
    background: #fff;
    padding: 88px 0 96px;
}

.home-testimonials .home-section-head h2 {
    color: var(--dark-navy);
}

.home-testimonials .testimonial-card {
    background: var(--primary-soft);
    border: 1px solid rgba(39, 118, 174, 0.12);
}

.home-testimonials .testimonial-card h4 {
    color: var(--dark-navy);
}

.home-testimonials .testimonial-card .stars {
    color: var(--primary-color);
}

.testimonial-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonial-cards-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    width: 100%;
    direction: rtl;
}

.testimonial-cards-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-cards-slider .testimonial-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 300px;
    max-width: 450px;
    scroll-snap-align: start;
    direction: rtl;
}

.testimonial-nav-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.testimonial-nav-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.08);
}

.testimonial-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Layout tweaks while on homepage */
body:has(.home-hero) .header {
    border-bottom: 1px solid rgba(39, 118, 174, 0.08);
}

body:has(.home-hero) .header .logo .logo-text {
    color: var(--dark-navy);
}

body:has(.home-hero) .header .logo .logo-text span {
    color: var(--primary-color);
}

body:has(.home-hero) .footer-col h4 {
    color: var(--dark-navy);
}

body:has(.home-hero) .footer-bottom-bar {
    background-color: var(--dark-navy);
}

/* Dark mode */
body.dark-mode .home-features {
    background: linear-gradient(180deg, #12263a 0%, #0f1c2a 100%);
}

body.dark-mode .home-section-head h2,
body.dark-mode .home-feature h3 {
    color: #e8f1f8;
}

body.dark-mode .home-section-head p,
body.dark-mode .home-feature p {
    color: #9eb0c0;
}

body.dark-mode .home-feature__icon {
    background: rgba(39, 118, 174, 0.25);
    color: #5BAAD4;
}

body.dark-mode .home-testimonials {
    background: #0f1c2a;
}

body.dark-mode .home-testimonials .testimonial-card {
    background: #162a3d;
    border-color: rgba(91, 170, 212, 0.15);
}

body.dark-mode .home-testimonials .testimonial-card h4 {
    color: #e8f1f8;
}

body.dark-mode .home-testimonials .testimonial-card p {
    color: #9eb0c0;
}

@keyframes homeAtmosphere {
    0% {
        background-position: 0% 40%, 0% 100%, 0% 0%;
    }
    100% {
        background-position: 100% 60%, 100% 0%, 0% 0%;
    }
}

@keyframes homeLogoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes homeRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeRingPulse {
    0%, 100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

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

@media (max-width: 1024px) {
    .home-features__list {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 420px;
        margin: 0 auto;
    }

    .testimonial-cards-slider .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: calc(100vh - 80px);
    }

    .home-hero__content {
        padding: 56px 16px 72px;
    }

    .home-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .home-btn {
        width: 100%;
    }

    .home-cta-band__inner {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-cards-slider .testimonial-card {
        flex: 0 0 100%;
    }

    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__atmosphere,
    .home-hero__logo-plate,
    .home-hero__ring,
    .home-hero__ring::before,
    .home-hero__brand,
    .home-hero__headline,
    .home-hero__lead,
    .home-hero__cta {
        animation: none;
    }
}
