/* static/css/home.css */

.hero {
    position: relative;
    min-height: calc(86vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-white);
    padding: 273px 20px 34px;
    overflow: hidden;
}

.hero-neon-orb {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: var(--radius-round);
    background: var(--gradient-primary);
    filter: blur(18px);
    opacity: 0.3;
    z-index: 1;
    animation: heroFloat 5.5s ease-in-out infinite;
}

.hero-neon-orb.orb-left {
    left: -70px;
    bottom: 15%;
}

.hero-neon-orb.orb-right {
    right: -70px;
    top: 18%;
    animation-delay: 1.4s;
}

.hero-typing {
    position: relative;
    z-index: 4;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: min(980px, 94vw);
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(6, 16, 26, 0.38), rgba(10, 28, 43, 0.28));
    border: 1px solid rgba(178, 220, 243, 0.22);
    box-shadow: 0 14px 30px rgba(5, 14, 24, 0.18);
    backdrop-filter: blur(2px);
}

.hero-typing-label {
    font-weight: 700;
    color: #f5fbff;
    opacity: 0.9;
    font-size: clamp(1.12rem, 2.7vw, 1.5rem);
    text-shadow: 0 2px 12px rgba(4, 10, 18, 0.45);
    white-space: nowrap;
}

.hero-typing-topic {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 112px;
    width: min(860px, 90vw);
}

.hero-typing-text {
    display: inline;
    font-size: clamp(1.08rem, 2.55vw, 1.42rem);
    line-height: 1.5;
    text-align: center;
    color: #d8efff;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(4, 10, 18, 0.45);
    max-width: 760px;
}

.hero-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.25em;
    margin-left: 6px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 12px rgba(167, 221, 255, 0.55);
    animation: heroCursorBlink 0.85s steps(1) infinite;
}

.hero-keyword {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 0 14px rgba(167, 221, 255, 0.62);
    border-bottom: 1px solid rgba(176, 231, 255, 0.72);
}

@keyframes heroCursorBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

.about,
.cta {
    padding: 40px 20px;
    text-align: center;
}

.about p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta {
    background-color: var(--color-primary-dark);
    color: var(--color-text-white);
}

.cta h2,
.cta h4 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text-white);
    text-shadow: var(--shadow-primary);
    font-weight: 700;
}

.cta a {
    padding: 12px 20px;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all var(--transition-normal);
    display: inline-block;
    margin: 5px 10px;
}

.cta a.btn-secondary {
    background-color: var(--color-bg-white);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
}

.cta a:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon-primary);
}

.cta a.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary-dark);
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-16px) scale(1.04);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(67vh - 80px);
        padding: 198px 14px 31px;
    }

    .hero-typing {
        padding: 10px 12px;
        gap: 6px;
    }

    .hero-typing-label {
        white-space: normal;
    }

    .hero-typing-topic {
        width: 100%;
        min-height: 96px;
    }

    .hero-typing-text {
        font-size: clamp(1rem, 3.45vw, 1.18rem);
    }

    .hero-typing-text {
        max-width: 88vw;
    }

    .cta h2,
    .cta h4 {
        font-size: 1.6rem;
    }

    .cta a {
        font-size: 1rem;
        padding: 10px 18px;
    }
}
