/* Main Page Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    /* Fallback darker bg */
    overflow: hidden;
    margin-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Remove static image, rely on video */
    background: #111;
    z-index: 1;
}

.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Adjust opacity for text readability */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-btns .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero-btns .btn-outline:hover {
    background-color: #fff;
    color: var(--text-color);
}

/* Sections General */
.section {
    padding: 100px 0;
}

/* Features Section */
.features-section {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card .icon-box svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box svg {
    transform: scale(1.1);
    stroke: #c5303c;
    /* Slightly darker shade on hover */
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

/* Stats/Trust */
.stats-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 40px;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item .label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Partners */
/* Partners Marquee */
.partners-section {
    overflow: hidden;
    /* Hide overflow from marquee */
    background: #fff;
}

.partners-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 40px;
    /* Space between logos */
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    background: #fff;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    font-size: 1.2rem;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

    100% {
        transform: translateX(calc(-50% - 20px));
        /* -50% minus half the gap roughly, to be precise: total width is (180+40)*12. We move by that amount. */
        /* Actually simpler: just duplicate set is same width. -50% of the *track* width works if track contains exactly 2 sets and gap logic holds. */
        /* To be perfectly seamless, gap should be included.
           If track width is 2 * W + gap_compensation.
           Let's rely on standard -50% if the gap is uniform.
           Actually, with flex gap, -50% might be slightly off if not careful.
           Better trick: 
           transform: translateX(calc(-1 * (180px + 40px) * 12));
        */
        transform: translateX(calc(-1 * (180px + 40px) * 12));
    }
}

/* CTA Section */
.cta-section {
    background: #111;
    padding: 100px 0;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Responsive */
/* 3D Technology Section */
.tech-3d-section {
    background: #111;
    /* Very dark background */
    color: #fff;
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.tech-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    perspective: 1200px;
}

.tech-descriptions {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 0;
    transition: all 0.4s ease;
}



.tech-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.tech-item p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.7;
    word-break: keep-all;
}

/* 3D Animation: Stylized Icosahedron/Network */
.scene {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 20s linear infinite;
}

.polyhedron {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* We will simulate the look with 3 rotating interlocking rings/cages to create a sphere-like lattice 
   since creating a perfect responsive icosahedron with pure CSS is verbose */
.scene::before,
.scene::after,
.polyhedron::before,
.polyhedron::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255, 100, 100, 0.5);
    /* Reddish tint */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 50, 50, 0.2), inset 0 0 15px rgba(255, 50, 50, 0.2);
}

/* Ring 1 */
.scene::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotateX(0deg) rotateY(0deg);
}

/* Ring 2 */
.scene::after {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: rotateX(60deg) rotateY(45deg);
}

/* Ring 3 */
.polyhedron::before {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: rotateX(-45deg) rotateY(30deg);
}

/* Central glowing core */
.core {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffaaaa 0%, #ff0000 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px #ff0000;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* Dots on intersections (simulated) */
.tech-visual::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

@keyframes spin {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Responsive for Tech Section */
@media (max-width: 900px) {
    .tech-content-wrapper {
        flex-direction: column;
        text-align: center;
    }



    .tech-descriptions {
        text-align: left;
    }
}

@media (max-width: 768px) {

    /* Hero */
    .hero-content h1 {
        font-size: 2.4rem;
        /* Slightly smaller for better fit */
        word-break: keep-all;
        /* Prevent mid-word breaks */
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
        word-break: keep-all;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    /* Section Typography */
    .section-title {
        font-size: 2rem;
        word-break: keep-all;
    }

    .section-desc {
        font-size: 1rem;
        padding: 0 20px;
        word-break: keep-all;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px;
        text-align: center;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .feature-card .icon-box {
        display: flex;
        justify-content: center;
    }

    .link-arrow {
        justify-content: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 10px;
    }

    .stat-item .number {
        font-size: 2.5rem;
    }

    /* CTA Section Typography */
    .cta-section {
        padding: 80px 0;
    }

    .cta-section h2 {
        font-size: 2rem;
        line-height: 1.3;
        word-break: keep-all;
        padding: 0 20px;
    }

    .cta-section p {
        font-size: 1rem;
        word-break: keep-all;
        padding: 0 20px;
        margin-bottom: 30px;
    }
}