* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000; /* pure black background */
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative; /* create stacking context for overlays */
}

/* Header styling */
#main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
}

#main-header h1 {
    color: white;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.back-button:hover .hex svg path {
    fill: rgba(255, 255, 255, 0.1);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    transition: fill 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Typewriter animation for header */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Mobile notice */
/* Copyright footer */
#copyright {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 12px;
    z-index: 1000;
    text-align: center;
}

/* Mobile responsive styles - only affects screens 768px and below */
@media screen and (max-width: 768px) {
    
    /* Header adjustments */
    #main-header {
        top: 20px !important;
    }
    
    
    #main-header h1 {
        font-size: 20px !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        animation: none !important;
        border-right: none !important;
    }
    
    .back-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Hide hexagon container on mobile */
    #honeycomb-container {
        display: none !important;
    }
    
    /* Mobile content list */
    #mobile-content {
        display: block !important;
        padding: 60px 20px 20px 20px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-content-item {
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        margin: 12px 0;
        padding: 16px;
        color: white;
        backdrop-filter: blur(10px);
    }
    
    .mobile-content-item:last-child {
        margin-bottom: 80px;
    }
    
    .mobile-content-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 8px;
        color: #61dafb;
    }
    
    .mobile-content-desc {
        font-size: 12px;
        opacity: 0.9;
        line-height: 1.4;
        margin-bottom: 8px;
    }
    
    .mobile-content-tech {
        font-size: 10px;
        opacity: 0.7;
        font-style: italic;
    }
    
    /* Copyright positioning */
    #copyright {
        bottom: 5px !important;
        font-size: 10px !important;
    }
}

/* Hide mobile content on desktop */
#mobile-content {
    display: none;
}

@media screen and (max-width: 480px) {
    /* Extra small screens */
    #main-header h1 {
        font-size: 20px !important;
    }
    
    .hex {
        width: 50px !important;
        height: 43px !important;
        margin: 6px 1px !important;
    }
    
    .hex-content {
        font-size: 7px !important;
        padding: 3px !important;
    }
    
    .hex-content svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .progress-bar {
        height: 2px !important;
    }
}

#honeycomb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 800px;
}

.hex {
    position: absolute;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.hex svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible; /* allow rounded stroke to render outside bounds */
}

.hex svg path {
    fill: #222222; /* slightly lighter hexes for contrast */
    stroke: none; /* remove outline */
    transition: fill 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hex-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

/* DSA Stats specific styling */
.dsa-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dsa-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-bottom: 2px;
    line-height: 1.2;
}

.dsa-value {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #4ecdc4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-bottom: 2px;
}

.dsa-description {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.progress-bar {
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 4px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

/* Hover effects */
.hex:hover svg path {
    fill: #333333;
}

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

/* Vignette overlays (top and bottom) */
body::before,
body::after {
    content: "";
    position: fixed;
    left: 0;
    width: 100vw;
    pointer-events: none;
    z-index: 3; /* above hexes (default), below any future UI with higher z-index */
}

/* Top vignette */
body::before {
    top: 0;
    height: 30vh; /* heavier header vignette */
    background: linear-gradient(to bottom, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.0) 100%);
}

/* Bottom vignette */
body::after {
    bottom: 0;
    height: 32vh; /* heavier footer vignette */
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.0) 100%);
}

/* Disable vignette on mobile */
@media (max-width: 768px) {
    body::before,
    body::after {
        display: none;
    }
}

/* Simplified vignette effects */
#honeycomb-container::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}
