/* Black Hole Hero Section */
.blackhole-hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0a1a 0%, #000002 70%);
    color: #e0e0ff;
    font-family: 'Inter', sans-serif;
}

.blackhole-hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    pointer-events: none;
}

.blackhole-hero-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero content overlay - ensure it's above the dark overlay */
.blackhole-hero-container .about-v2-hero-heading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

/* Rotating text animation */
.rotating-text {
    display: block;
    position: relative;
    height: 4em;
    overflow: hidden;
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    min-width: 400px;
    text-align: center;
    margin: 0 auto 20px auto;
}

.rotating-text .top-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: rotateTopText 15s infinite;
    white-space: normal;
    text-align: center;
}

.rotating-text .bottom-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation: rotateBottomText 15s infinite;
    white-space: normal;
    text-align: center;
}

.rotating-text .top-text:nth-child(1) {
    animation-delay: 0s;
}

.rotating-text .top-text:nth-child(2) {
    animation-delay: 5s;
}

.rotating-text .top-text:nth-child(3) {
    animation-delay: 10s;
}

.rotating-text .bottom-text:nth-child(4) {
    animation-delay: 0s;
}

.rotating-text .bottom-text:nth-child(5) {
    animation-delay: 5s;
}

.rotating-text .bottom-text:nth-child(6) {
    animation-delay: 10s;
}

/* Rotating button */
.rotating-button {
    display: block;
    position: relative;
    height: 40px;
    overflow: hidden;
    text-align: center;
    margin: 0 auto;
}

.rotating-button a {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    animation: rotateButton 15s infinite;
    background: linear-gradient(90deg, #f85858, #ef5ef1, #5b1eb1);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.rotating-button a:nth-child(1) {
    animation-delay: 0s;
}

.rotating-button a:nth-child(2) {
    animation-delay: 5s;
}

.rotating-button a:nth-child(3) {
    animation-delay: 10s;
}

.rotating-button a:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 25px rgba(248, 88, 88, 0.3);
}

@keyframes rotateTopText {
    0%, 33.33% {
        opacity: 0;
        transform: translateY(-20px);
    }
    5%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    33.33%, 100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes rotateBottomText {
    0%, 33.33% {
        opacity: 0;
        transform: translateY(20px);
    }
    5%, 30% {
        opacity: 1;
        transform: translateY(0);
    }
    33.33%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes rotateButton {
    0%, 33.33% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    5%, 30% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    33.33%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.blackhole-hero-info {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    color: rgba(220, 220, 255, 0.9);
    font-size: 18px;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 100;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    transition: opacity 2s ease-in-out 1s;
    opacity: 0;
}

.blackhole-hero-ui-panel {
    position: absolute;
    background-image: linear-gradient(145deg, rgba(20, 25, 45, 0.85), rgba(10, 15, 30, 0.9));
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(180, 180, 220, 0.15);
    color: rgba(225, 225, 255, 0.9);
    font-size: 14px;
    user-select: none;
    z-index: 50;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(180,180,220,0.07) inset;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(15px);
    animation: blackhole-panelFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

@keyframes blackhole-panelFadeIn { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.blackhole-hero-ui-panel:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(180,180,220,0.09) inset;
}

.blackhole-hero-controls { 
    bottom: 20px; 
    right: 20px; 
}

.blackhole-hero-autoRotateToggle {
    cursor: pointer; 
    padding: 8px 5px; 
    display: flex; 
    align-items: center;
    gap: 8px; 
    color: inherit; 
    font-size: inherit; 
    transition: color 0.2s ease;
}

.blackhole-hero-autoRotateToggle:hover { 
    color: #fff; 
}

.blackhole-hero-autoRotateToggle span { 
    vertical-align: middle; 
}

.blackhole-hero-rotate-icon {
    width: 1.1em; 
    height: 1.1em; 
    stroke: currentColor; 
    stroke-width: 1.8;
    fill: none; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    vertical-align: middle;
}

@media (max-width: 640px) {
    .blackhole-hero-ui-panel { 
        padding: 10px 12px; 
        border-radius: 8px; 
    }
    .blackhole-hero-controls { 
        max-width: 150px; 
    }
    .blackhole-hero-info { 
        font-size: 16px; 
        top: 15px; 
    }
    
    /* Disable black hole rotation on mobile but keep text rotation */
    .rotating-text .top-text,
    .rotating-text .bottom-text {
        animation-play-state: running !important;
    }
    
    .rotating-button a {
        animation-play-state: running !important;
        left: 50% !important;
    }
    
    .blackhole-hero-info span { 
        font-size: 12px; 
    }
}
