/* ========================================
   Homepage Hero - Enhanced Design
   ======================================== */

/* Hero Section */

/* Hero Section */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    padding-top: 60px;

    /* Account for navbar */
    padding-bottom: 40px;

    /* Fixes from 2025 update */
    background-image: none;
    background-attachment: scroll;

    /* Performance */
    contain: layout;
}

html.dark .home-hero {
    background: #000;
}

html:not(.dark) .home-hero {
    background: var(--bg-primary);
}

/* Profile Image with Ring */
.profile-image-wrapper {
    position: relative;
    width: 220px;

    /* Slightly smaller for better balance */
    height: 220px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgb(0 113 227 / 30%);
    position: relative;
    z-index: 2;
}

.profile-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #0071e3, #2997ff) border-box;
    mask: linear-gradient(#fff, #fff) padding-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Hero Name */
.hero-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

/* Hero Title */
.hero-title {
    font-size: 3.5rem;

    /* Balanced size */
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 6px rgb(0 0 0 / 12%);
    display: block;
    text-align: center;
    line-height: 1.1;
}

html.dark .hero-title {
    color: #fff;
    text-shadow: 0 4px 16px rgb(0 0 0 / 50%);
}

.hero-name {
    color: var(--text-primary);
}

/* Hero Description */
.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

html.dark .hero-description {
    color: #d1d1d6;
}

html:not(.dark) .hero-description {
    color: #6e6e73;
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;

    /* Performance */
    will-change: transform;
    transform: translateZ(0);
}

.hero-social-link:hover {
    background: #0071e3;
    color: #fff;
    border-color: #0071e3;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgb(0 113 227 / 40%);
}

html.dark .hero-social-link {
    background: #1c1c1e;
    border-color: rgb(255 255 255 / 10%);
    color: #f5f5f7;
}

html.dark .hero-social-link:hover {
    background: #0a84ff;
    border-color: #0a84ff;
    color: #fff;
}

/* Hero CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
}

.hero-cta i {
    font-size: 1rem;
}

/* Skills Marquee */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee-slide 35s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;

    /* REMOVED: color: var(--text-secondary); */
    transition: transform 0.2s ease;
}

.marquee-item:hover {
    transform: translateY(-2px);
}

/* ========================================
   MARQUEE ICON COLORS (ORIGINAL COLORS)
   ======================================== */

.marquee-item .fa-java {
    color: #007396 !important;
}

.marquee-item .fa-python {
    color: #3776AB !important;
}

.marquee-item .fa-js {
    color: #F7DF1E !important;
}

.marquee-item .fa-react {
    color: #61DAFB !important;
}

.marquee-item .fa-angular {
    color: #DD0031 !important;
}

.marquee-item .fa-node {
    color: #393 !important;
}

.marquee-item .fa-aws {
    color: #F90 !important;
}

.marquee-item .fa-docker {
    color: #2496ED !important;
}

.marquee-item .fa-database {
    color: #0071e3 !important;
}

.marquee-item .fa-git-alt {
    color: #F05032 !important;
}

.marquee-item .fa-linux {
    color: #FCC624 !important;
}

.marquee-item .fa-html5 {
    color: #E34F26 !important;
}

.marquee-item .fa-css3-alt {
    color: #1572B6 !important;
}

/* Ensure they stay colorful in Dark Mode */
html.dark .marquee-item .fa-java {
    color: #007396 !important;
}

html.dark .marquee-item .fa-python {
    color: #3776AB !important;
}

html.dark .marquee-item .fa-js {
    color: #F7DF1E !important;
}

html.dark .marquee-item .fa-react {
    color: #61DAFB !important;
}

html.dark .marquee-item .fa-angular {
    color: #DD0031 !important;
}

html.dark .marquee-item .fa-node {
    color: #393 !important;
}

html.dark .marquee-item .fa-aws {
    color: #F90 !important;
}

html.dark .marquee-item .fa-docker {
    color: #2496ED !important;
}

html.dark .marquee-item .fa-database {
    color: #0071e3 !important;
}

html.dark .marquee-item .fa-git-alt {
    color: #F05032 !important;
}

html.dark .marquee-item .fa-linux {
    color: #FCC624 !important;
}

html.dark .marquee-item .fa-html5 {
    color: #E34F26 !important;
}

html.dark .marquee-item .fa-css3-alt {
    color: #1572B6 !important;
}

@keyframes marquee-slide {
    to {
        transform: translateX(-50%);
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

html.dark .hero-stats {
    border-top-color: rgb(255 255 255 / 10%);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0071e3, #2997ff);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

html.dark .hero-stat-value {
    background: linear-gradient(135deg, #2997ff, #0071e3);
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

html.dark .hero-stat-label {
    color: #86868b;
}

html:not(.dark) .hero-stat-label {
    color: #6e6e73;
}

/* Responsive Design */
@media (width <=768px) {
    .home-hero {
        padding-top: 140px;

        /* Increased further to clear navbar */
        padding-bottom: 140px;
        min-height: 100dvh;
        align-items: flex-start;
    }

    .profile-image-wrapper {
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        min-height: 160px !important;
        margin-bottom: 1.5rem;
        flex-shrink: 0;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        overflow: hidden;

        /* Ensure content stays inside */
    }

    .profile-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50%;
    }

    .hero-name {
        font-size: 1.75rem;
        margin-bottom: 0.25rem;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-social-links {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-stat-value {
        font-size: 2rem;
    }

    .hero-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Animation Enhancements */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

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

.profile-image-wrapper {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}