/* ===== HERO SECTION - ENHANCED ANIMATIONS ===== */

/* Hero Avatar with Floating Animation */
.hero-avatar-wrap {
    position: relative;
    width: 300px !important;
    height: 300px !important;
    margin: 0 auto 40px !important;
    animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {

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

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

.hero-avatar {
    width: 230px !important;
    height: 230px !important;
    border: 5px solid rgba(47, 129, 217, 0.7) !important;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(47, 129, 217, 0.5),
        inset 0 0 40px rgba(47, 129, 217, 0.15) !important;
    transition: all 0.5s ease;
    animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% {
        box-shadow:
            0 30px 100px rgba(0, 0, 0, 0.8),
            0 0 80px rgba(47, 129, 217, 0.5),
            inset 0 0 40px rgba(47, 129, 217, 0.15);
    }

    100% {
        box-shadow:
            0 35px 110px rgba(0, 0, 0, 0.9),
            0 0 100px rgba(59, 130, 246, 0.7),
            inset 0 0 50px rgba(59, 130, 246, 0.25);
    }
}

.hero-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(59, 130, 246, 0.9) !important;
}

/* Animated Rings Around Avatar */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(47, 129, 217, 0.3);
    animation: ringPulse 5s ease-in-out infinite;
}

.hero-ring-1 {
    inset: -15px;
    border-color: rgba(47, 129, 217, 0.4);
    animation-delay: 0s;
    animation-duration: 4s;
}

.hero-ring-2 {
    inset: -5px;
    border-color: rgba(59, 130, 246, 0.35);
    animation-delay: 0.5s;
    animation-duration: 4.5s;
}

.hero-ring-3 {
    inset: 15px;
    border-color: rgba(110, 168, 255, 0.4);
    animation-delay: 1s;
    animation-duration: 5s;
}

.hero-ring-4 {
    inset: 35px;
    border-color: rgba(47, 129, 217, 0.45);
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

.hero-ring-5 {
    inset: 55px;
    border-color: rgba(59, 130, 246, 0.5);
    animation-delay: 2s;
    animation-duration: 6s;
}

.hero-ring-6 {
    inset: 75px;
    border-color: rgba(110, 168, 255, 0.55);
    animation-delay: 2.5s;
    animation-duration: 6.5s;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.4;
        border-width: 2px;
    }

    50% {
        transform: scale(1.15) rotate(180deg);
        opacity: 0.8;
        border-width: 3px;
    }
}

/* Rotating Ring Particles */
.hero-ring::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-color);
    animation: rotateParticle 8s linear infinite;
}

@keyframes rotateParticle {
    0% {
        transform: translateX(-50%) rotate(0deg) translateY(-50%);
    }

    100% {
        transform: translateX(-50%) rotate(360deg) translateY(-50%);
    }
}

/* Status Dot with Pulse */
.hero-status-dot {
    position: absolute;
    right: 45px;
    bottom: 55px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #23d18b;
    border: 4px solid #060a10;
    box-shadow: 0 0 20px rgba(35, 209, 139, 0.8);
    z-index: 4;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(35, 209, 139, 0.8);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(35, 209, 139, 1);
        transform: scale(1.1);
    }
}

/* ===== STAGGERED LETTER ENTRANCE ===== */
.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-90deg);
    animation: letterEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* ===== CTA BUTTONS ANIMATION ===== */
.cta-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-buttons .btn:hover::before {
    width: 400px;
    height: 400px;
}

.cta-buttons .btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 50px rgba(47, 129, 217, 0.5);
}

/* ===== HERO SOCIAL ICONS ===== */
.hero-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.hero-social a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(47, 129, 217, 0.3);
    color: var(--light-color);
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.hero-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hero-social a:hover {
    transform: translateY(-10px) scale(1.15);
    border-color: transparent;
    color: white;
    box-shadow: 0 15px 40px rgba(47, 129, 217, 0.5);
}

.hero-social a:hover::before {
    opacity: 1;
}

/* Individual Social Colors */
.hero-social a.instagram:hover {
    box-shadow: 0 15px 40px rgba(225, 48, 108, 0.5);
}

.hero-social a.instagram:hover::before {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.hero-social a.facebook:hover {
    box-shadow: 0 15px 40px rgba(24, 119, 242, 0.5);
}

.hero-social a.facebook:hover::before {
    background: #1877f2;
}

.hero-social a.github:hover {
    box-shadow: 0 15px 40px rgba(51, 51, 51, 0.5);
}

.hero-social a.github:hover::before {
    background: linear-gradient(135deg, #6e5494, #333);
}

.hero-social a.linkedin:hover {
    box-shadow: 0 15px 40px rgba(0, 119, 181, 0.5);
}

.hero-social a.linkedin:hover::before {
    background: #0077b5;
}

.hero-social a.twitter:hover {
    box-shadow: 0 15px 40px rgba(29, 161, 242, 0.5);
}

.hero-social a.twitter:hover::before {
    background: #1DA1F2;
}

.hero-social a.whatsapp:hover {
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.hero-social a.whatsapp:hover::before {
    background: #25D366;
}

.hero-social a.email:hover {
    box-shadow: 0 15px 40px rgba(234, 67, 53, 0.5);
}

.hero-social a.email:hover::before {
    background: linear-gradient(135deg, #EA4335, #FBBC05);
}

/* Scroll Down Button Enhanced */
.scroll-down-btn {
    animation: bounce 2s infinite, fadeIn 1s ease-out 2.1s both;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

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

/* Background Gradient Animation */
.hero-section::before {
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

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

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

/* Floating Light Orbs */
.hero-section::after {
    animation: floatOrb 8s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-avatar-wrap {
        width: 220px !important;
        height: 220px !important;
        margin-bottom: 30px !important;
    }

    .hero-avatar {
        width: 170px !important;
        height: 170px !important;
        border-width: 3px !important;
    }

    .hero-status-dot {
        right: 35px;
        bottom: 40px;
        width: 18px;
        height: 18px;
    }

    .hero-ring-1 {
        inset: -10px;
    }

    .hero-ring-2 {
        inset: -2px;
    }

    .hero-ring-3 {
        inset: 12px;
    }

    .hero-ring-4 {
        inset: 26px;
    }

    .hero-ring-5 {
        inset: 42px;
    }

    .hero-ring-6 {
        inset: 58px;
    }

    .hero-social {
        gap: 12px;
    }

    .hero-social a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-avatar-wrap {
        width: 190px !important;
        height: 190px !important;
    }

    .hero-avatar {
        width: 150px !important;
        height: 150px !important;
    }

    .hero-status-dot {
        right: 28px;
        bottom: 35px;
        width: 16px;
        height: 16px;
    }

    .hero-ring-1 {
        inset: -8px;
    }

    .hero-ring-2 {
        inset: 0px;
    }

    .hero-ring-3 {
        inset: 10px;
    }

    .hero-ring-4 {
        inset: 22px;
    }

    .hero-ring-5 {
        inset: 36px;
    }

    .hero-ring-6 {
        inset: 50px;
    }

    .hero-social a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}