/* hero.css — Home page hero section */


.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 90px 40px 60px;
    max-width: var(--max);
    margin: 0 auto;
    min-height: 80vh;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 36px;
    box-shadow: 0 35px 120px rgba(0,0,0,0.32);
}

.portrait-wrap {
    --w: clamp(240px, 26vw, 340px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--w) * 1.7);
    height: calc(var(--w) * 1.7);
    margin: 0 auto;
    background: radial-gradient(circle at 28% 28%, rgba(37,213,234,0.14), transparent 22%), radial-gradient(circle at 70% 78%, rgba(139,92,246,0.12), transparent 28%);
    border-radius: 42px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    animation: spin linear infinite;
}

    .ring.r1 {
        width: 68%;
        height: 68%;
        border-color: rgba(37,213,234,0.18);
        animation-duration: 14s;
    }

    .ring.r2 {
        width: 84%;
        height: 84%;
        border-color: rgba(108,123,255,0.14);
        animation-duration: 22s;
        animation-direction: reverse;
    }

    .ring.r3 {
        width: 100%;
        height: 100%;
        border-color: rgba(139,92,246,0.10);
        animation-duration: 32s;
    }

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

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

.ring-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

    .ring-dot.blue {
        top: 24%;
        left: 8%;
        background: #6c7bff;
        color: #6c7bff;
    }

    .ring-dot.blue2 {
        top: 46%;
        right: 2%;
        background: #6c7bff;
        color: #6c7bff;
    }

    .ring-dot.green {
        top: 16%;
        right: 18%;
        background: #34d399;
        color: #34d399;
    }

    .ring-dot.orange {
        bottom: 22%;
        right: 6%;
        width: 14px;
        height: 14px;
        background: #f5a524;
        color: #f5a524;
    }

@media (prefers-reduced-motion: reduce) {
    .ring {
        animation: none;
    }
}

.avatar-card {
    position: relative;
    z-index: 2;
    width: 66%;
    height: 66%;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 25px 50px rgba(0,0,0,0.55);
}

    .avatar-card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }

.avatar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    padding: 10px 22px 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6c7bff, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 22px rgba(108,123,255,0.4);
    white-space: nowrap;
}

    .avatar-badge::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #4ade80;
        flex-shrink: 0;
        animation: pulse-dot 1.8s ease-out infinite;
    }

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .avatar-badge::before {
        animation: none;
    }
}

.hero-copy .eyebrow {
    color: var(--cyan);
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.hero-copy h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 14px;
}

.hero-copy h2 {
    font-size: 1.9rem;
    margin-bottom: 22px;
    line-height: 1.15;
}

.hero-copy h2 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(135deg, #25d5ea, #ff2d78);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-copy p.lead {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.78);
}

.socials {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
}

    .socials a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: rgba(37,213,234,0.1);
        border: 1px solid rgba(37,213,234,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--cyan);
        transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
    }

        .socials a:hover {
            background: var(--cyan);
            color: var(--bg);
            transform: translateY(-3px);
        }

        .socials a:focus-visible {
            outline: 3px solid var(--cyan);
            outline-offset: 3px;
        }

    .socials svg {
        width: 18px;
        height: 18px;
        transition: transform .25s ease;
    }

    /* -----------------------------------------------------------
       AUTHENTIC BRAND-COLOR HOVER
       Overrides the generic cyan hover above with each platform's
       official color, plus a bit of lift + rotate + glow. Falls
       back to the cyan style automatically for any icon that
       doesn't carry one of these classes.
    ------------------------------------------------------------ */

    /* GitHub — dark / monochrome, silver halo for contrast on dark bg */
    .socials a.github:hover {
        background: linear-gradient(135deg, #2d333b, #0d1117);
        border-color: rgba(230, 237, 243, .55);
        color: #fff;
        box-shadow: 0 0 0 5px rgba(230, 237, 243, .12), 0 14px 26px rgba(0, 0, 0, .5);
        transform: translateY(-4px) rotate(-6deg);
    }

    /* LinkedIn — official blue */
    .socials a.linkedin:hover {
        background: linear-gradient(135deg, #1a86e5, #0a66c2);
        border-color: rgba(10, 102, 194, .75);
        color: #fff;
        box-shadow: 0 0 0 5px rgba(10, 102, 194, .18), 0 14px 26px rgba(10, 102, 194, .45);
        transform: translateY(-4px) rotate(-6deg);
    }

    /* Facebook — official blue */
    .socials a.facebook:hover {
        background: linear-gradient(135deg, #3d94ff, #1877f2);
        border-color: rgba(24, 119, 242, .75);
        color: #fff;
        box-shadow: 0 0 0 5px rgba(24, 119, 242, .18), 0 14px 26px rgba(24, 119, 242, .45);
        transform: translateY(-4px) rotate(-6deg);
    }

    /* Instagram — official gradient */
    .socials a.instagram:hover {
        background: linear-gradient(135deg, #feda75 0%, #fa7e1e 22%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
        border-color: rgba(221, 42, 123, .6);
        color: #fff;
        box-shadow: 0 0 0 5px rgba(221, 42, 123, .16), 0 14px 26px rgba(221, 42, 123, .45);
        transform: translateY(-4px) rotate(-6deg);
    }

    /* WhatsApp — official green */
    .socials a.whatsapp:hover {
        background: linear-gradient(135deg, #37e670, #25d366);
        border-color: rgba(37, 211, 102, .75);
        color: #fff;
        box-shadow: 0 0 0 5px rgba(37, 211, 102, .16), 0 14px 26px rgba(37, 211, 102, .45);
        transform: translateY(-4px) rotate(-6deg);
    }

    .socials a:hover svg {
        transform: scale(1.1);
    }

@media (prefers-reduced-motion: reduce) {
    .socials a,
    .socials svg {
        transition-duration: .01ms !important;
    }
}

.cta-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

    .cta-row a,
    .cta-row button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 16px 32px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 1rem;
        text-decoration: none;
        cursor: pointer;
        transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
    }

    /* Hire Me — primary, filled */
    .cta-row .btn-primary {
        background: linear-gradient(135deg, #25d5ea, #6c7bff);
        color: #0a0a0f;
        border: 1px solid transparent;
        box-shadow: 0 14px 30px rgba(37,213,234,0.28);
    }

        .cta-row .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 38px rgba(37,213,234,0.4);
        }

        .cta-row .btn-primary:focus-visible {
            outline: 3px solid var(--cyan);
            outline-offset: 3px;
        }

    /* Download CV — secondary, outline but crisp and legible */
    .cta-row .btn-outline {
        background: rgba(255,255,255,0.04);
        color: #fff;
        border: 1.5px solid rgba(255,255,255,0.35);
    }

        .cta-row .btn-outline:hover {
            background: rgba(255,255,255,0.1);
            border-color: rgba(255,255,255,0.6);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 14px 28px rgba(0,0,0,0.35);
        }

        .cta-row .btn-outline:focus-visible {
            outline: 3px solid var(--cyan);
            outline-offset: 3px;
        }

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    max-width: var(--max);
    margin: 20px auto 80px;
    padding: 24px 40px;
    gap: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}

.stat {
    text-align: center;
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}

    .stat:last-child {
        border-right: none;
    }

    .stat {
        background: rgba(255,255,255,0.02);
        border-radius: 22px;
    }

    .stat .num {
        font-size: 2.6rem;
        font-weight: 700;
        color: var(--white);
    }

    .stat .label {
        color: var(--muted);
        font-size: 0.9rem;
        margin-top: 4px;
    }

/* =====================================================
   TABLET (≤980px)
   ===================================================== */
@media (max-width:980px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 50px 20px;
        text-align: center;
    }

    .portrait-wrap {
        --w: clamp(220px, 60vw, 320px);
        order: -1;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .hero-copy p.lead {
        margin-left: auto;
        margin-right: auto;
    }

    .socials {
        justify-content: center;
    }

    .cta-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stats {
        grid-template-columns: repeat(2,1fr);
        gap: 24px 0;
        padding: 0 20px;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
    }
}

/* =====================================================
   MOBILE (≤600px)
   ===================================================== */
@media (max-width:600px) {
    .hero {
        padding: 40px 16px 30px;
        gap: 28px;
        min-height: auto;
    }

    .portrait-wrap {
        --w: clamp(180px, 55vw, 260px);
    }

    .avatar-card {
        border-radius: 22px;
    }

    .avatar-badge {
        font-size: 0.8rem;
        padding: 8px 16px 8px 12px;
        bottom: 4%;
    }

    .hero-copy .eyebrow {
        font-size: 0.9rem;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
        line-height: 1.15;
    }

    .hero-copy h2 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .hero-copy p.lead {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 4px;
        margin-bottom: 22px;
    }

    .socials {
        gap: 10px;
        margin-bottom: 26px;
    }

        .socials a {
            width: 36px;
            height: 36px;
            border-radius: 9px;
        }

        .socials svg {
            width: 16px;
            height: 16px;
        }

    .cta-row {
        gap: 12px;
        width: 100%;
    }

        .cta-row a,
        .cta-row button {
            flex: 1 1 auto;
            min-width: 140px;
        }

    .stats {
        padding: 0 16px;
        margin: 10px auto 50px;
    }

    .stat .num {
        font-size: 2rem;
    }

    .stat .label {
        font-size: 0.8rem;
    }
}

/* =====================================================
   SMALL PHONES (≤400px) e.g. iPhone SE
   ===================================================== */
@media (max-width:400px) {
    .hero-copy h1 {
        font-size: 1.55rem;
    }

    .hero-copy h2 {
        font-size: 1.1rem;
    }

    .portrait-wrap {
        --w: clamp(160px, 55vw, 220px);
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }
}