/* =============================================
   HOME PAGE — index.html specific styles
   ============================================= */

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    flex: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-4);
    background: rgba(67, 233, 123, 0.08);
    border: 1px solid rgba(67, 233, 123, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 99px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .line-1 {
    display: block;
}

.hero-title .line-2 {
    display: block;
    margin-top: 0.15em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent-1), transparent);
    animation: scroll-line 1.8s ease infinite;
}

@keyframes scroll-line {
    0% {
        opacity: 1;
        height: 0;
    }

    50% {
        opacity: 1;
        height: 50px;
    }

    100% {
        opacity: 0;
        height: 50px;
    }
}

/* Hero visual side */
.hero-visual {
    position: relative;
    width: 460px;
    height: 460px;
    flex-shrink: 0;
    z-index: 1;
}

.hero-avatar-frame {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(108, 99, 255, 0.3);
    animation: rotate-ring 12s linear infinite;
}

.hero-avatar-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 12px var(--accent-1);
}

.hero-avatar-ring-2 {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.2);
    animation: rotate-ring 18s linear infinite reverse;
}

.hero-avatar-ring-2::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
}

@keyframes rotate-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-avatar-img {
    position: absolute;
    inset: 60px;
    border-radius: 50%;
    background: var(--grad-main);
    display: grid;
    place-items: center;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.hero-avatar-initials {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

.hero-float-cards {
    position: absolute;
    inset: 0;
}

.hero-float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(20px);
    font-size: 0.82rem;
    white-space: nowrap;
    animation: float-card 4s ease-in-out infinite;
}

.hero-float-card:nth-child(1) {
    top: 10%;
    left: -20%;
    animation-delay: 0s;
}

.hero-float-card:nth-child(2) {
    top: 55%;
    right: -10%;
    animation-delay: 1s;
}

.hero-float-card:nth-child(3) {
    bottom: 10%;
    left: -15%;
    animation-delay: 2s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-float-card-icon {
    margin-right: 0.4rem;
}

/* ---- Stats Strip ---- */
.stats-strip {
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 1rem 1.5rem;
    position: relative;
}

.stat-item+.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: var(--glass-border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
}

/* ---- Skills Preview ---- */
.skills-marquee-container {
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.skills-marquee-container::before,
.skills-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.skills-marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.skills-marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.skills-marquee {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.skills-marquee-2 {
    animation-direction: reverse;
    animation-duration: 25s;
    margin-top: 1rem;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---- Featured Projects Preview ---- */
.projects-preview {
    position: relative;
    z-index: 2;
}

.project-card-large {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.project-card-large-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    font-weight: 900;
    position: absolute;
    right: 2rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
}

.project-card-large-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.project-card-large h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card-large p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-card-large-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- CTA Section ---- */
.home-cta {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.home-cta-inner {
    max-width: 680px;
    margin: 0 auto;
}

.home-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 1.25rem 0 2.5rem;
    line-height: 1.7;
}

.home-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero-visual {
        width: 380px;
        height: 380px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(even)::before {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}