/* Home Page Specific Styles */

/* Common Section Styles */
.section {
    padding: 6rem 0;
}

.section-title {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.bg-alt {
    background-color: var(--bg-surface);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.text-center {
    text-align: center;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    padding: 2rem;
}

.tech-box {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tech-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(transparent, transparent 2px, rgba(14, 165, 233, 0.05) 3px, rgba(14, 165, 233, 0.05) 5px);
    z-index: 1;
}

.fingerprint-icon {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.8;
    z-index: 2;
    animation: scan 4s ease-in-out infinite alternate;
}

@keyframes scan {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.2));
    }

    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.8));
    }
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Services Section Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.08), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(var(--primary-rgb), 0.3);
}

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

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

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more i {
    transition: transform 0.2s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to right, var(--bg-surface), rgba(14, 165, 233, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-box {
    min-width: 200px;
}

.stat-number {
    font-size: 4rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-box p {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-surface);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-list li {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Supports / Partners Infinite Marquee
════════════════════════════════════════════════════════════ */

/* Section wrapper — dark gradient background */
.supports-section {
    background: linear-gradient(160deg, #05090f 0%, #0d1826 50%, #0a1020 100%);
    border-top: 1px solid rgba(56, 189, 248, 0.08);
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    padding-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

/* Subtle ambient glow behind the track */
.supports-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.supports-section .section-header p {
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 3rem;
}

/* ── Marquee wrapper ── */
.supports-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    z-index: 1;
}

/* ── Left / Right gradient edge fades ── */
.supports-fade {
    position: absolute;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.supports-fade--left {
    left: 0;
    background: linear-gradient(90deg, #05090f 0%, rgba(5, 9, 15, 0.85) 40%, transparent 100%);
}

.supports-fade--right {
    right: 0;
    background: linear-gradient(270deg, #05090f 0%, rgba(5, 9, 15, 0.85) 40%, transparent 100%);
}

/* ── Scrolling track ── */
.supports-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.supports-marquee-wrapper:hover .supports-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Inner group (one set of logos) ── */
.supports-marquee-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 0 1.25rem;
    flex-shrink: 0;
}

/* ── Individual partner logo card ── */
.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: default;
    flex-shrink: 0;
}

/* White circular background */
.partner-logo__circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 16px rgba(56, 189, 248, 0.08);
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease;
}

.partner-logo__circle i {
    font-size: 2rem;
    color: #0f172a;
    transition: color 0.25s ease;
}

/* Hover scale + glow */
.partner-logo:hover .partner-logo__circle {
    transform: scale(1.12);
    box-shadow:
        0 8px 32px rgba(56, 189, 248, 0.35),
        0 0 0 2px rgba(56, 189, 248, 0.5) inset;
}

.partner-logo:hover .partner-logo__circle i {
    color: #0284c7;
}

/* Label */
.partner-logo span {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.partner-logo:hover span {
    color: rgba(56, 189, 248, 0.85);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .supports-section {
        padding-bottom: 3rem;
    }

    .partner-logo__circle {
        width: 68px;
        height: 68px;
    }

    .partner-logo__circle i {
        font-size: 1.6rem;
    }

    .supports-marquee-inner {
        gap: 1.75rem;
    }

    .supports-fade {
        width: 80px;
    }

    .supports-marquee-track {
        animation-duration: 24s;
    }
}

@media (max-width: 480px) {
    .partner-logo__circle {
        width: 58px;
        height: 58px;
    }

    .partner-logo__circle i {
        font-size: 1.35rem;
    }

    .supports-marquee-inner {
        gap: 1.25rem;
    }

    .partner-logo span {
        font-size: 0.7rem;
    }

    .supports-fade {
        width: 50px;
    }

    .supports-marquee-track {
        animation-duration: 20s;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .supports-marquee-track {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   Video Sound Toggle Button
════════════════════════════════════════════════════════════ */
.video-sound-wrapper {
    position: absolute;
    bottom: calc(1% + 20px);
    /* Positioned slightly above the video's bottom edge */
    right: 20px;
    z-index: 10;
}

.sound-toggle-btn {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;
}

.sound-toggle-btn:hover {
    background: rgba(14, 165, 233, 0.8);
    border-color: rgba(14, 165, 233, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.sound-toggle-btn--on {
    background: rgba(14, 165, 233, 0.6);
    border-color: rgba(14, 165, 233, 0.8);
}

.sound-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 1.1rem;
}

/* Ripple Animation */
.sound-toggle-btn.ripple {
    animation: sound-ripple 0.4s ease-out;
}

@keyframes sound-ripple {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .video-sound-wrapper {
        bottom: calc(10% + 15px);
        right: 15px;
    }

    .sound-toggle-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}