/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(53, 167, 156, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-family: 'Inter', var(--hp-font-sans);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
    line-height: 1.2;
}

/* Hexagonal ASCII Art Styles */
.hex-ascii-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    line-height: 0.75;
    padding: 1rem 0;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
}

.hex-row {
    display: flex;
    gap: 0;
    white-space: nowrap;
    letter-spacing: -0.05em;
}

.hex-row-offset {
    margin-left: 0.5em;
}

.hex-cell {
    display: inline-block;
}

.hex-empty {
    opacity: 0;
    visibility: hidden;
}

.hex-filled {
    animation: goStoneFlip 4s ease-in-out infinite;
}

/* Go stone animation - alternates between black and white like placing stones */
@keyframes goStoneFlip {
    0% {
        color: #ffffff;
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    25% {
        color: #ffffff;
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        color: #1a1a1a;
        text-shadow:
            0 0 10px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(0, 0, 0, 0.3);
    }
    75% {
        color: #1a1a1a;
        text-shadow:
            0 0 10px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(0, 0, 0, 0.3);
    }
    100% {
        color: #ffffff;
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(53, 167, 156, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(53, 167, 156, 0.3);
}

/* Video Container */
.video-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.8s both;
}

.video-container iframe,
.video-container #playGlobeContainer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Globe Grid Container */
.globe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.8s both;
    align-items: stretch;
}

.globe-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.globe-canvas {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .globe-canvas {
        height: 400px;
    }
}
