/* Hero Section */
body .hero {
    position: relative;
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

body .hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 23, 0.95),
        rgba(10, 14, 23, 0.8)
    );
    z-index: 1;
}

body .hero .hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reverted exactly to hero.css.old, but enhancing the right-side glow */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(11, 87, 208, 0.15) 0%, transparent 30%),
        /* Increased intensity and size of the right-side cyan glow */
        radial-gradient(circle at 80% 60%, rgba(0, 212, 176, 0.3) 0%, transparent 50%), 
        radial-gradient(circle at 40% 80%, rgba(120, 57, 232, 0.15) 0%, transparent 30%);
    z-index: -1;
    filter: blur(20px); 
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    color: var(--accent);
    font-size: 1.5rem;
    opacity: 0.6;
    filter: drop-shadow(0 0 5px var(--accent));
    animation: smoothFloat 4s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 15%;
    left: 85%;
    animation-delay: 0.5s;
}

.floating-element:nth-child(3) {
    top: 75%;
    left: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(4) {
    top: 65%;
    left: 80%;
    animation-delay: 1.5s;
}

.floating-element:nth-child(5) {
    top: 45%;
    left: 10%;
    animation-delay: 2s;
}

/* Smooth up and down animation */
@keyframes smoothFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-decor {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--accent);
    border-radius: var(--border-radius-lg);
    top: -30px;
    left: -30px;
    z-index: -1;
    opacity: 0.2;
    transform: rotate(-10deg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-legacy {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin: 1.5rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-legacy::before,
.hero-legacy::after {
    content: '';
    height: 2px;
    background: var(--gradient-cyan);
    flex: 1;
    opacity: 0.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: floatSlow 6s infinite ease-in-out;
}

.hero-image-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 212, 176, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

/* Add to hero.css */
.server-animation {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}
.server-rack {
    position: absolute;
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1));
    border-radius: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(0, 212, 176, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    animation: floatSlow 6s infinite ease-in-out;
}
.server-blade {
    height: 18%;
    background: rgba(0, 212, 176, 0.1);
    border: 1px solid rgba(0, 212, 176, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.server-blade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 176, 0.3) 50%, 
        transparent 100%);
    animation: serverLight 2s infinite linear;
}
@keyframes serverLight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes floatSlow {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -55%) rotate(2deg); }
}
.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.ai-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(1px);
    animation: aiFloat 10s infinite ease-in-out;
}
.ai-particles .particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}
.ai-particles .particle:nth-child(2) {
    top: 40%;
    left: 60%;
    animation-delay: 2s;
}
.ai-particles .particle:nth-child(3) {
    top: 70%;
    left: 40%;
    animation-delay: 4s;
}
.ai-particles .particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
}
.ai-particles .particle:nth-child(5) {
    top: 60%;
    left: 30%;
    animation-delay: 8s;
}
@keyframes aiFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-10px, 20px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(15px, 10px) scale(1.1);
        opacity: 0.9;
    }
}

/* Data stream animation */
.data-stream {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}
.data-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    width: 100%;
    animation: dataFlow 3s linear infinite;
    opacity: 0.3;
}
.data-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}
.data-line:nth-child(2) {
    top: 50%;
    animation-delay: 1s;
}
.data-line:nth-child(3) {
    top: 80%;
    animation-delay: 2s;
}
@keyframes dataFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Global Network Connectivity Map - Restored from hero.css.old */
.network-globe {
    position: relative;
    width: 400px; /* Reverted to old size */
    height: 400px; /* Reverted to old size */
    margin: 0 auto;
}
.globe {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Combine base color/opacity with original gradient */
    background-color: rgba(0, 212, 176, 0.05); /* Added from intermediate version */
    background-image: radial-gradient(circle at 30% 30%,
        rgba(11, 87, 208, 0.15) 0%,
        rgba(11, 87, 208, 0.1) 40%,
        rgba(11, 87, 208, 0.05) 60%,
        transparent 80%);
    box-shadow: inset 0 0 50px rgba(0, 212, 176, 0.2),
                0 0 50px rgba(0, 212, 176, 0.3);
    border: 1px solid rgba(0, 212, 176, 0.3);
    overflow: hidden;
    opacity: 0.9; /* Added from intermediate version */
}

/* SVG texture */
.globe::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    /* Make sure this SVG data is correct and displays as intended */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cGF0aCBmaWxsPSJyZ2JhKDAsIDIxMiwgMTc2LCAwLjEpIiBkPSJNNTAsNTAgTDcwLDQ1IEw4MCw1NSBMOTAsNjAgTDEwMCw1MCBMMTIwLDU1IEwxMzAsNjUgTDEyMCw3NSBMMTEwLDkwIEw5MCw4NSBMODAsNzUgTDgwLDg1IEw3MCw5MCBMNTV2NzUgTDQ1LDgwIEwzNSw3NUwzMCw2MCBMNDAsMzAgTDUwLDUweiIvPjxwYXRoIGZpbGw9InJnYmEoMCwgMjEyLCAxNzYsIDAuMSkiIGQ9Ik0xMzAsMTIwIEwxNDAsMTEwIEwxNTAsMTEwIEwxNTUsMTIwIEwxNjUsMTI1IEwxNTUsMTM1IEwxNDAsMTMwIEwxMzAsMTIweiIvPjxwYXRoIGZpbGw9InJnYmEoMCwgMjEyLCAxNzYsIDAuMSkiIGQ9Ik0xNjAsMzAgTDE3MCw0MCBMMTY1LDUwIEwxNTUsNTUgTDE0NSw1MCBMMTM1LDQ1IEwxNTAsMzUgTDE2MCwzMHoiLz48L3N2Zz4=');
    opacity: 0.5;
    background-size: contain;
    /* Add rotation animation */
    animation: rotateGlobe 120s linear infinite;
}

/* Latitude/longitude grid */
.globe::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: linear-gradient(0deg, transparent 49.5%, rgba(0, 212, 176, 0.05) 50%, transparent 50.5%),
                      linear-gradient(90deg, transparent 49.5%, rgba(0, 212, 176, 0.05) 50%, transparent 50.5%),
                      radial-gradient(circle at center, transparent 30%, rgba(0, 212, 176, 0.03) 60%, transparent 65%);
    background-size: 20% 20%, 20% 20%, 100% 100%;
}

/* Hong Kong highlight */
.hong-kong-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    /* Position will be set by JS */
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 212, 176, 0.9);
    z-index: 10;
    animation: hongKongPulse 2s infinite ease-in-out;
}

@keyframes hongKongPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.7; }
}

/* Connection Nodes (dynamic and static) */
.connection-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 212, 176, 0.8);
    z-index: 2;
    /* Position will be set by JS */
    /* Re-add pulsing animation */
    animation: nodePulse 3s infinite ease-in-out; 
}

/* Connection Lines (drawn by JS) */
.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 176, 0.5), transparent); /* Adjusted opacity */
    transform-origin: left center;
    overflow: hidden;
    z-index: 1;
    /* Width and rotation set by JS */
}

/* Data burst animation (triggered by JS) */
.data-burst {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent);
    z-index: 3;
    /* Position updated by JS animation */
}

/* Connection pulse effect (added by JS) - REMOVED */
/*
.connection-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.7;
    animation: pulse 4s ease-out infinite; 
    z-index: 0;
}
*/

/* Keep enhanced animations */
/* Add rotateGlobe keyframes back */
@keyframes rotateGlobe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes nodePulse { 
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

@keyframes pulse { /* Keep definition in case it's used elsewhere, though the selector was removed */
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Make sure we're responsive */
@media (max-width: 768px) {
    .network-globe {
        width: 300px; /* Adjusted responsive size */
        height: 300px; /* Adjusted responsive size */
    }
}

@media (max-width: 576px) {
    .network-globe {
        width: 250px; /* Adjusted responsive size */
        height: 250px; /* Adjusted responsive size */
    }
}