﻿/**
 * Hero Section - Dark Racing Theme v3.0
 * Style: Moto Racing / Anime / Coding
 */

/* Hero Container */
.hero-v2 {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-primary);
    overflow: visible;
    contain: layout style;
    padding: 6rem 2rem 4rem;
}

/* Racing stripes background */
.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent 0px,
            transparent 50px,
            rgba(255, 10, 10, 0.02) 50px,
            rgba(255, 10, 10, 0.02) 52px),
        radial-gradient(ellipse at 20% 50%, rgba(255, 10, 10, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 68, 68, 0.08) 0%, transparent 40%);
    z-index: 0;
    will-change: opacity;
}

/* Racing grid */
.hero-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 10, 10, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 10, 10, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Left side - Main content */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 8%;
    z-index: 10;
    position: relative;
    min-height: 600px;
    overflow: visible;
}

/* Right side - Visual/Stats */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 4rem;
}

.hero-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.hero-avatar {
    display: none;
}

.decorative-dots {
    display: none;
}

/* Status badge - Racing style */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--racing-red);
    margin-bottom: 2rem;
    animation: float-gentle 3s ease-in-out infinite, pulse-border 2s ease-in-out infinite;
    will-change: transform;
    min-height: 44px;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 10, 10, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 10, 10, 0.6);
    }
}

.status-indicator {
    position: relative;
    width: 10px;
    height: 10px;
    will-change: transform, opacity;
}

.status-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00FF88;
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00FF88;
}

.status-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00FF88;
    border-radius: 50%;
    opacity: 0.4;
    animation: ripple-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes ripple-status {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--racing-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* Greeting */
.hero-greeting {
    font-size: 1.2rem;
    color: var(--racing-red);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.hero-greeting::before {
    content: '>';
    color: var(--code-green);
    font-family: var(--font-mono);
}

/* Main name */
.hero-name {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: visible;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.hero-name .highlight {
    background: linear-gradient(135deg, var(--racing-red) 0%, var(--racing-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline;
    text-shadow: none;
    white-space: normal;
}

.hero-name .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, rgba(255, 10, 10, 0.5), rgba(255, 68, 68, 0.3));
    z-index: -1;
}

/* Professional title */
.hero-role {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.role-tag {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-left: 3px solid var(--racing-red);
}

.role-tag::before {
    content: '// ';
    color: var(--racing-red);
}

/* Description */
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 550px;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn--primary {
    background: linear-gradient(135deg, var(--racing-red) 0%, var(--racing-red-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 10, 10, 0.4);
}

.cta-btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 10, 10, 0.6);
}

.cta-btn--secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--steel-gray);
}

.cta-btn--secondary:hover {
    border-color: var(--racing-red);
    color: var(--racing-red);
    box-shadow: 0 0 20px rgba(255, 10, 10, 0.3);
}

/* Social links */
.hero-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--steel-gray);
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.social-icon:hover {
    background: var(--racing-red);
    border-color: var(--racing-red);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 10, 10, 0.4);
}

/* Stats Panel */
.hero-stats-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 100%;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--steel-gray);
    border-left: 3px solid var(--racing-red);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    flex: 0 1 auto;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 10, 10, 0.1), transparent);
    transition: width 0.4s ease;
}

.stat-card:hover {
    border-color: var(--racing-red);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(255, 10, 10, 0.2);
}

.stat-card:hover::before {
    width: 100%;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--racing-red), var(--racing-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Floating animation */
@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Speed lines decoration */
.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--racing-red), transparent);
    animation: speed-dash 2s linear infinite;
    box-shadow: 0 0 10px var(--racing-red);
}

.speed-line:nth-child(1) {
    top: 20%;
    width: 200px;
    left: -200px;
    animation-delay: 0s;
}

.speed-line:nth-child(2) {
    top: 40%;
    width: 300px;
    left: -300px;
    animation-delay: 0.5s;
}

.speed-line:nth-child(3) {
    top: 60%;
    width: 250px;
    left: -250px;
    animation-delay: 1s;
}

.speed-line:nth-child(4) {
    top: 80%;
    width: 180px;
    left: -180px;
    animation-delay: 1.5s;
}

@keyframes speed-dash {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(calc(100vw + 300px));
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-v2 {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 8rem 3rem 4rem;
        min-height: auto;
        text-align: center;
        align-items: center;
    }

    .hero-right {
        padding: 3rem 2rem;
        order: 2;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social,
    .hero-socials {
        justify-content: center;
    }

    .hero-stats-panel {
        margin: 0 auto;
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 130px;
        flex: 0 1 calc(50% - 0.5rem);
        max-width: 200px;
    }

    .hero-description-v2 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-left {
        padding: 6rem 1rem 3rem;
    }

    .hero-name {
        font-size: clamp(2rem, 7vw, 3.5rem);
        letter-spacing: 1.2px;
        margin-bottom: 1rem;
    }

    .hero-status {
        padding: 8px 16px;
        margin-bottom: 1.5rem;
    }

    .status-text {
        font-size: 0.75rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats-panel {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 0.75rem;
        max-width: 100%;
    }

    .stat-card {
        padding: 1rem;
        min-width: 120px;
        flex: 0 1 calc(50% - 0.375rem);
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .cta-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-v2 {
        min-height: auto;
    }

    .hero-left {
        padding: 5rem 1rem 2.5rem;
    }

    .hero-name {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }

    .hero-greeting {
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .cta-btn {
        justify-content: center;
        padding: 14px 24px;
    }

    .hero-socials {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-stats-panel {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-card {
        min-width: 100%;
    }
}