﻿/* Reset and base styles */

:root {
    --static-border-color: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-blue: #4da6ff;
    --flow-color: rgba(255, 255, 255, 0.95);
    --flow-glow: rgba(120, 180, 255, 0.5);
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    /*min-height: 100vh;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
    z-index: 25;
}

/* ============ Background Effects ============ */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(25, 70, 160, 0.6), transparent 70%);
    top: -15%;
    left: -8%;
    animation: glowDrift 10s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 50, 130, 0.5), transparent 70%);
    bottom: -10%;
    right: -8%;
    animation: glowDrift 12s ease-in-out infinite 3s;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(50, 100, 190, 0.35), transparent 70%);
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation: glowDrift 8s ease-in-out infinite 5s;
}

@keyframes glowDrift {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1) translate(0, 0);
    }

    33% {
        opacity: 0.35;
        transform: scale(1.05) translate(10px, -10px);
    }

    66% {
        opacity: 0.25;
        transform: scale(0.98) translate(-10px, 5px);
    }
}

.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( 135deg, transparent 38%, rgba(50, 110, 200, 0.04) 44%, rgba(50, 110, 200, 0.07) 50%, rgba(50, 110, 200, 0.04) 56%, transparent 62% );
}

/* ============ Showcase Layout ============ */
.animation-showcase {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.label {
    /*font-size: 12px;*/
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============ SVG Border Shared ============ */
.border-svg,
.card-border-svg,
.tag-border-svg,
.dual-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.static-border {
    stroke: var(--static-border-color);
    stroke-width: 1;
    transition: stroke 0.4s ease;
}

/* ============ Flowing Lines ============ */
.flowing-line {
    stroke: var(--flow-color);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px var(--flow-glow)) drop-shadow(0 0 12px rgba(80, 140, 255, 0.2));
}

.flowing-line-card {
    stroke: var(--flow-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px var(--flow-glow)) drop-shadow(0 0 16px rgba(80, 140, 255, 0.15));
}

.flowing-line-tag {
    stroke: var(--flow-color);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px var(--flow-glow));
}

.flowing-line-dual-1 {
    stroke: var(--flow-color);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px var(--flow-glow));
}

.flowing-line-dual-2 {
    stroke: rgba(100, 180, 255, 0.9);
    stroke-width: 1.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px rgba(80, 150, 255, 0.4));
}

.flowing-divider {
    stroke: var(--flow-color);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px var(--flow-glow));
}

/* ============ NEXT Button Box ============ */
.next-box {
    position: relative;
    width: 240px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .next-box:hover .static-border {
        stroke: rgba(255, 255, 255, 0.35);
    }

    .next-box:hover .next-text {
        letter-spacing: 0.18em;
    }

    .next-box:hover .arrow {
        transform: translateX(5px);
    }

.next-text {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    transition: letter-spacing 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* ============ Card Box ============ */
.card-box {
    position: relative;
    width: 400px;
    height: 260px;
    cursor: pointer;
}

    .card-box:hover .static-border {
        stroke: rgba(255, 255, 255, 0.35);
    }

    .card-box:hover .card-next .arrow {
        transform: translateX(4px);
    }

    .card-box:hover .card-next {
        gap: 12px;
    }

.card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-icon {
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.card-next {
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

/* ============ Tag Box ============ */
.tag-box {
    position: relative;
    width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .tag-box:hover .static-border {
        stroke: rgba(255, 255, 255, 0.35);
    }

    .tag-box:hover .tag-text .arrow {
        transform: translateX(3px);
    }

    .tag-box:hover .tag-text {
        gap: 10px;
    }

.tag-text {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

/* ============ Dual Box ============ */
.dual-box {
    position: relative;
    width: 240px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .dual-box:hover .static-border {
        stroke: rgba(255, 255, 255, 0.35);
    }

    .dual-box:hover .next-text {
        /*.arrow transform: translateY(3px);*/
        letter-spacing: 0.18em;
    }

/* ============ Section Divider ============ */
.section-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-top: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.divider-svg {
    flex: 1;
    height: 4px;
}

.divider-arrow {
    flex-shrink: 0;
}

.divider-arrow-path {
    transition: transform 0.3s ease;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .animation-showcase {
        gap: 50px;
    }

    .card-box {
        width: 320px;
        height: 220px;
    }

    .card-content {
        padding: 24px;
    }

        .card-content h3 {
            font-size: 17px;
        }

        .card-content p {
            font-size: 13px;
        }
}

@media (max-width: 567px) {
    .hero {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-box {
        width: 280px;
        height: 200px;
    }

    .next-box,
    .dual-box {
        width: 200px;
        height: 80px;
    }

    .next-text {
        font-size: 18px;
    }
}