/* Hero Component Styles */
.hero {
    height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__content {
    background: url('../../assets/img/herobg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    margin-top: 102px;
    overflow: hidden;
}

.hero__text-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 20px;
}

.hero__tag {
    width: auto;
    max-width: 255px;
    margin-top: 30px;
    background-color: var(--dark-gray);
    color: var(--primary-green);
    padding: 19px 30px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: -0.2px;
    font-weight: 900;
    font-style: italic;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--light-gray);
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
    line-height: 1.2;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-weight: 900;
    font-style: italic;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: none;
    box-sizing: border-box;
    display: block;
}

.hero__title br {
    display: block;
    line-height: 1.2;
}

/* Hands Animation Container */
.hero__animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 15;
}

.hero__left-hand {
    position: absolute;
    left: -25%;
    bottom: -450px;
    width: 60vw;
    height: auto;
    animation: slideInLeft 2s ease-out forwards;
    /* filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)); */
    pointer-events: auto;
    z-index: 16;
    transition: transform 0.3s ease;
}


.hero__left-hand img {
    width: 100%;
    height: auto;
    display: block;
    z-index: 16;
    position: relative;
}

.hero__left-hand.hand-clicking {
    animation: leftHandClick 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 17;
    /* filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)); */
}

.hero__right-hand {
    position: absolute;
    right: -30%;
    bottom: 0;
    width: 50vw;
    height: auto;
    animation: slideInRight 2s ease-out forwards;
    /* filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)); */
    pointer-events: auto;
    transition: transform 0.3s ease;
    z-index: 16;
}

.hero__right-hand img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 16;
}

.hero__right-hand img.active-hand {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.hero__right-hand img.default-hand {
    transition: opacity 0.4s ease-in-out;
}

/* Desktop images - show on desktop, hide on mobile */
.hero__right-hand img.desktop-hand {
    display: block;
}

.hero__right-hand img.mobile-hand {
    display: none;
}

.hero__right-hand.hand-activated img.active-hand {
    opacity: 1;
    transition-delay: 0s;
}

.hero__right-hand.hand-activated img.default-hand {
    opacity: 0;
    transition-delay: 0.3s;
}

.hero__right-hand.hand-activated img.mobile-hand.active-hand {
    opacity: 1;
    transition-delay: 0s;
}

.hero__right-hand.hand-activated img.mobile-hand.default-hand {
    opacity: 0;
    transition-delay: 0.3s;
}



/* Phone Screen Animation Container */
.hero__phone-screen-animation {
    position: absolute;
    top: 9%;
    left: 7%;
    width: 21%;
    height: 71%;
    overflow: hidden;
    clip-path: inset(0 0 0 0 round 8px);
    pointer-events: none;
    transform: rotate3d(21, -4, 25, 4deg);
    z-index: 17;
    border-radius: 20px;
    transform-style: preserve-3d;
    transform: perspective(1015px) rotateX(2deg) rotateY(-9deg) rotateZ(3deg) translateZ(-14px);
}

/* Screen Overlay - Dark screen before turning on */
.hero__phone-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 8% 36%, transparent 0%, rgba(0, 0, 0, 0.95) 0%);
    opacity: 0; /* Start invisible - will fade in before click */
    z-index: 3;
    /* CSS animation removed - now handled by JavaScript for smooth 60fps */
}

/* Click Point Animation */
.hero__phone-click-point {
    position: absolute;
    top: 36%;
    left: 8%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(96, 255, 160, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: clickPoint 3s ease-out 2.5s forwards;
    box-shadow: 0 0 20px rgba(96, 255, 160, 0.6);
}

/* Expanding Circle Animation */
.hero__phone-expanding-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    opacity: 0;
    animation: expandCircle 1.2s ease-out 2.5s forwards;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        left: -35%;
        opacity: 0;
    }
    100% {
        left: -10%;
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        right: -30%;
        opacity: 0;
    }
    100% {
        right: 0;
        opacity: 1;
    }
}




@keyframes touchBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3);
    }
}

@keyframes leftHandClick {
    0% {
        left: -10%;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
    15% {
        left: -11%;
        transform: translateX(0) translateY(-2px) rotate(-2deg) scale(1.02);
    }
    35% {
        left: -9%;
        transform: translateX(0) translateY(-5px) rotate(-3deg) scale(1.05);
    }
    50% {
        left: -7%;
        transform: translateX(0) translateY(-3px) rotate(-2deg) scale(1.03);
    }
    70% {
        left: -9%;
        transform: translateX(0) translateY(-1px) rotate(-1deg) scale(1.01);
    }
    85% {
        left: -10%;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1.005);
    }
    100% {
        left: -12%;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes clickPoint {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    60% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes expandCircle {
    0% {
        opacity: 0;
        width: 0;
        height: 0;
        border-width: 3px;
    }
    10% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        width: 300%;
        height: 300%;
        border-width: 2px;
    }
}

@keyframes screenTurnOn {
    0% {
        background: radial-gradient(circle at 8% 36%, transparent 0%, rgba(0, 0, 0, 0.95) 0%);
        opacity: 1;
    }
    10% {
        background: radial-gradient(circle at 8% 36%, transparent 5%, rgba(0, 0, 0, 0.95) 10%);
        opacity: 1;
    }
    30% {
        background: radial-gradient(circle at 8% 36%, transparent 15%, rgba(0, 0, 0, 0.9) 25%);
        opacity: 1;
    }
    50% {
        background: radial-gradient(circle at 8% 36%, transparent 30%, rgba(0, 0, 0, 0.7) 45%);
        opacity: 1;
    }
    70% {
        background: radial-gradient(circle at 8% 36%, transparent 50%, rgba(0, 0, 0, 0.4) 70%);
        opacity: 1;
    }
    90% {
        background: radial-gradient(circle at 8% 36%, transparent 80%, rgba(0, 0, 0, 0.1) 100%);
        opacity: 1;
    }
    100% {
        background: radial-gradient(circle at 8% 36%, transparent 100%, rgba(0, 0, 0, 0) 100%);
        opacity: 0;
    }
}


.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--dark-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--light-gray);
    animation: bounce 2s infinite;
    z-index: 20;
    pointer-events: auto;
}

.hero__scroll-indicator i {
    font-size: 24px;
    color: var(--light-gray);
    pointer-events: none;
}

.hero__scroll-indicator:hover i {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Desktop breakpoints - using min-width for proper cascade */
/* Base: above 1440px uses default -450px */
/* These rules apply at their breakpoint and above */
@media (min-width: 901px) and (max-width: 1024px) {
    .hero__left-hand {
        bottom: -320px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .hero__left-hand {
        bottom: -350px;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .hero__left-hand {
        bottom: -380px;
    }
}

/* For screens 900px and below, handled by mobile breakpoint at 768px */
@media (min-width: 769px) and (max-width: 900px) {
    .hero__left-hand {
        bottom: -290px;
    }
}


/* Mobile Hero Styles */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }

    .hero__text-content {
        padding: 0 15px;
    }

    .hero__title {
        font-size: 1.8rem;
        padding: 0;
        line-height: 1.2;
        max-width: 100%;
        width: 100%;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
        hyphens: none;
        letter-spacing: -1px;
        box-sizing: border-box;
    }

    .hero__tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero__scroll-indicator {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
    }

    .hero__left-hand,
    .hero__right-hand {
        width: 95vw;
    }

    /* Mobile-specific hand positioning */
    .hero__left-hand {
        display: none !important;
    }
    .hero__right-hand {
        right: -18% !important;
        bottom: 0 !important;
        width: 74vw !important;
    }

    @keyframes slideInLeft {
        0% {
            left: -35%;
            opacity: 0;
        }
        100% {
            left: -8%;
            opacity: 1;
        }
    }

    @keyframes slideInRight {
        0% {
            right: -50%;
            opacity: 0;
            transform: translateX(50px) rotate(10deg);
        }
        50% {
            right: -25%;
            opacity: 0.7;
            transform: translateX(20px) rotate(5deg);
        }
        100% {
            right: -8%;
            opacity: 1;
            transform: translateX(0px) rotate(0deg);
        }
    }

    .hero__phone-screen-animation {
        top: 7%;
        left: 6%;
        width: 22%;
        height: 45%;
        transform: perspective(1019px) rotateX(-4deg) rotateY(13deg) rotateZ(1deg) translateZ(27px);
    }

    .hero__phone-click-point {
        width: 12px;
        height: 12px;
    }

    .hero__phone-screen-overlay {
        /* CSS animation removed - handled by JavaScript for mobile performance */
        opacity: 0;
    }

    /* Mobile images - show on mobile, hide desktop */
    .hero__right-hand img.desktop-hand {
        display: none !important;
    }

    .hero__right-hand img.mobile-hand {
        display: block !important;
    }

    .hero__right-hand img.mobile-hand.active-hand {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }
}

@keyframes screenTurnOnMobile {
    0% {
        background: radial-gradient(circle at 8% 36%, transparent 0%, rgba(0, 0, 0, 0.95) 0%);
        opacity: 1;
    }
    10% {
        background: radial-gradient(circle at 8% 36%, transparent 8%, rgba(0, 0, 0, 0.95) 15%);
        opacity: 1;
    }
    30% {
        background: radial-gradient(circle at 8% 36%, transparent 20%, rgba(0, 0, 0, 0.9) 35%);
        opacity: 1;
    }
    50% {
        background: radial-gradient(circle at 8% 36%, transparent 40%, rgba(0, 0, 0, 0.7) 55%);
        opacity: 1;
    }
    70% {
        background: radial-gradient(circle at 8% 36%, transparent 60%, rgba(0, 0, 0, 0.4) 80%);
        opacity: 1;
    }
    90% {
        background: radial-gradient(circle at 8% 36%, transparent 85%, rgba(0, 0, 0, 0.1) 100%);
        opacity: 1;
    }
    100% {
        background: radial-gradient(circle at 8% 36%, transparent 100%, rgba(0, 0, 0, 0) 100%);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .hero__text-content {
        padding: 0 10px;
    }

    .hero__title {
        font-size: 1.5rem;
        max-width: 100%;
        width: 100%;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
        hyphens: none;
        letter-spacing: -0.5px;
        padding: 0;
        box-sizing: border-box;
    }

    .hero__left-hand,
    .hero__right-hand {
        width: 60vw;
    }

    /* Small mobile-specific hand positioning */
    .hero__left-hand {
        display: none !important; /* Hide left hand on small mobile too */
    }

    .hero__right-hand {
        right: -20% !important;
        bottom: 0 !important;
        width: 85vw !important; /* Make right hand even larger on small mobile */
    }

    @keyframes slideInLeft {
        0% {
            left: -40%;
            opacity: 0;
        }
        100% {
            left: -12%;
            opacity: 1;
        }
    }

    @keyframes slideInRight {
        0% {
            right: -60%;
            opacity: 0;
            transform: translateX(60px) rotate(15deg);
        }
        40% {
            right: -35%;
            opacity: 0.6;
            transform: translateX(30px) rotate(8deg);
        }
        100% {
            right: -12%;
            opacity: 1;
            transform: translateX(0px) rotate(0deg);
        }
    }


    .hero__phone-click-point {
        width: 10px;
        height: 10px;
    }

    .hero__phone-screen-overlay {
        /* CSS animation removed - handled by JavaScript for mobile performance */
        opacity: 0;
    }

    /* Mobile images - show on small mobile, hide desktop */
    .hero__right-hand img.desktop-hand {
        display: none !important;
    }

    .hero__right-hand img.mobile-hand {
        display: block !important;
    }

    .hero__right-hand img.mobile-hand.active-hand {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }
}
