/* Modern Premium Hero Section */
#new-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Ensure full viewport height */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: hsl(var(--background));
    z-index: 10;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    background: url('../assets/hero.png') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    /* Subtle background visibility */
    transform: scale(1.05);
    /* Slight zoom for animation */
    z-index: 0;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, hsl(var(--background)) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Floating Visual Elements */
.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation: floatOrb 15s ease-in-out infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(31, 98%, 82%) 0%, transparent 70%);
    bottom: -10%;
    left: -10%;
    animation: floatOrb 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Glass Cards - Decorative */
.floating-glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    z-index: 5;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-glass-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.6);
}

.glass-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.glass-icon-box {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    /* Ensure icon is white */
}

.glass-icon-box i {
    width: 1.2rem;
    height: 1.2rem;
}

.glass-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2px;
}

.glass-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: hsl(var(--foreground));
    font-family: 'Georgia', serif;
    line-height: 1;
}

/* Scroll Indication Animation */
.new-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.new-hero-scroll:hover {
    opacity: 1;
}

@media (max-width: 900px) {
    .floating-glass-card {
        display: none !important;
        /* Hide visual noise on smaller screens */
    }

    .new-hero-content {
        padding-top: 5rem;
        /* Ensure content is visible above fold on mobile */
    }

    .new-hero-title {
        font-size: 2.5rem;
        /* Readable size on mobile */
    }
}

/* Slider Navigation */
.hero-pagination {
    position: absolute;
    bottom: 4rem;
    /* Positioned above the scroll indicator */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid hsl(var(--primary));
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background-color: hsl(var(--primary));
    transform: scale(1.2);
}

.hero-dot:hover {
    background-color: hsl(var(--primary) / 0.5);
}

@media (max-width: 640px) {
    .hero-pagination {
        bottom: 5rem;
    }
}

/* 3D Tilt & Network Interaction */
#new-hero {
    perspective: 1000px;
    /* Enable 3D space */
}

/* Ensure canvas is behind everything but above BG wrapper */
#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Between background (0) and cards (5) */
    pointer-events: none;
    /* Let clicks pass through */
    opacity: 0.6;
}

.floating-glass-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Will be controlled by JS for tilt */
}