/* Hero V2 - The Aurora Core Aesthetic */
:root {
    --hero-bg: #f8faff;
    --hero-accent-1: #e35176;
    --hero-accent-2: #8b5cf6;
    --hero-accent-3: #6366f1;
    --hero-text: #1a1a1c;
}

.hero-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--hero-bg);
    overflow: hidden;
    color: var(--hero-text);
    padding-top: 80px;
}

/* Animated Mesh Gradient Background */
.hero-v2-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.4;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: move 20s infinite alternate;
}

.bg-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--hero-accent-1) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--hero-accent-2) 0%, transparent 70%);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.bg-blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--hero-accent-3) 0%, transparent 70%);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

/* Particles / Grid Background */
.hero-v2-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.hero-v2-content {
    max-width: 700px;
}

.hero-v2-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(227, 81, 118, 0.05);
    border: 1px solid rgba(227, 81, 118, 0.1);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    color: var(--hero-accent-1);
}

.hero-v2-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--hero-accent-1);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--hero-accent-1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

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

.hero-v2 h1 {
    font-size: clamp(36px, 7vw, 64px);
    /* Slightly smaller for better fit */
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: var(--hero-text);
    max-width: 540px;
    /* Constrain width to avoid overlap */
}

.text-glow {
    color: var(--hero-accent-1);
}

.hero-v2 p {
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a4e;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-v2-btns {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-main {
    padding: 18px 36px;
    background: var(--hero-accent-1);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 10px 20px rgba(227, 81, 118, 0.3);
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(227, 81, 118, 0.5);
    background: #f06a8e;
}

.btn-sec {
    padding: 18px 36px;
    background: white;
    color: var(--hero-text);
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-sec:hover {
    background: #f8faff;
    border-color: var(--hero-accent-1);
    color: var(--hero-accent-1);
}

/* 3D Scene / Image Mockup */
.hero-v2-visual {
    position: relative;
    perspective: 1000px;
}

.tech-frame {
    position: relative;
    width: 100%;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.tech-frame img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tech Badges - Circular Edition */
.tech-badge {
    position: absolute;
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    /* Extra bold for clarity */
    font-size: 12px;
    color: #000;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.tech-badge-sm {
    width: 70px;
    height: 70px;
    font-size: 10.5px;
}

.tech-badge-sm i {
    font-size: 20px !important;
}

.tech-badge:hover {
    transform: scale(1.15) translateY(-8px);
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tech-badge i {
    font-size: 24px;
    margin-bottom: 3px;
    color: var(--hero-accent-1);
}

/* 12 Point Constellation - Refined to avoid text overlap */
.badge-1 {
    top: -8%;
    left: 5%;
    animation: floatBadge 5s infinite ease-in-out;
}

.badge-2 {
    top: 22%;
    left: -8%;
    animation: floatBadge 6s infinite ease-in-out 1s;
}

.badge-3 {
    bottom: 12%;
    left: 2%;
    animation: floatBadge 7s infinite ease-in-out 0.5s;
}

.badge-4 {
    top: -15%;
    right: 10%;
    animation: floatBadge 5.5s infinite ease-in-out 1.5s;
}

.badge-5 {
    bottom: 0%;
    right: 5%;
    animation: floatBadge 6.5s infinite ease-in-out 2s;
}

.badge-6 {
    top: 50%;
    right: -20%;
    animation: floatBadge 5.8s infinite ease-in-out 0.8s;
}

/* Small Badges - Pulled inward */
.badge-7 {
    top: 8%;
    left: -12%;
    animation: floatBadge 4.5s infinite ease-in-out 0.3s;
}

.badge-8 {
    bottom: 38%;
    left: -15%;
    animation: floatBadge 6.2s infinite ease-in-out 1.2s;
}

.badge-9 {
    top: 15%;
    right: -15%;
    animation: floatBadge 5.3s infinite ease-in-out 0.7s;
}

.badge-10 {
    bottom: 10%;
    right: -25%;
    animation: floatBadge 6.8s infinite ease-in-out 1.4s;
}

.badge-11 {
    top: -5%;
    left: 30%;
    animation: floatBadge 5.1s infinite ease-in-out 0.9s;
}

.badge-12 {
    bottom: -15%;
    left: 40%;
    animation: floatBadge 6.4s infinite ease-in-out 1.1s;
}

@keyframes floatBadge {

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

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Hide floating-box styles as we switch to badges */
.floating-box {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-v2 {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }

    .hero-v2-content {
        margin: 0 auto;
    }

    .hero-v2-btns {
        justify-content: center;
        flex-direction: column;
    }

    .hero-v2-visual {
        margin-top: 60px;
        transform: scale(0.85);
        /* Slightly smaller on mobile to avoid overflow */
        padding: 0 20px;
    }

    .tech-frame {
        width: 100%;
        margin-left: 0;
        transform: none !important;
        /* Flat on mobile for better visibility */
    }

    .tech-badge-sm,
    .badge-5,
    .badge-6,
    .badge-7,
    .badge-8,
    .badge-9,
    .badge-10,
    .badge-11,
    .badge-12 {
        display: none;
    }

    /* Bring remaining badges inward for mobile screens */
    .badge-1 {
        left: -2%;
        top: 5%;
    }

    .badge-2 {
        left: -5%;
        top: 45%;
    }

    .badge-3 {
        right: -2%;
        top: 10%;
        left: auto;
    }

    .badge-4 {
        right: -5%;
        bottom: 15%;
        top: auto;
    }

}

/* POS Button Visibility Control - Force Strict Behavior */
.pos-btn-desktop,
.pos-btn-mobile {
    display: none !important;
    background: #ff6b00 !important;
    /* Vibrant Orange */
    border-color: #ff6b00 !important;
    color: #fff !important;
}

.pos-btn-desktop:hover,
.pos-btn-mobile:hover {
    background: #e65100 !important;
    /* Darker Orange on hover */
    border-color: #e65100 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3) !important;
}

/* Custom Orange Pulse */
.button-pulse.pos-btn-mobile {
    animation: pulse-orange 2s infinite !important;
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

@media (min-width: 992px) {
    .pos-btn-desktop {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .pos-btn-mobile {
        display: flex !important;
    }
}