* {
    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;
}

#copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 12px;
    z-index: 1000;
    text-align: center;
}

#main-header h1 {
    color: white;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    letter-spacing: 0.02em;
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: blink-cursor 0.75s step-end infinite;
}

/* (global glow removed) */

#honeycomb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    perspective: 800px; /* enable subtle 3D feel */
}

.hex {
    position: absolute;
    cursor: default;
    transform-style: preserve-3d;
}

/* SVG-based hex styling */
.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 0.3s ease;
}

/* Removed unused hex styles */

.hex-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Navigation hexagon styling */
.nav-hex .hex-content {
    font-family: 'Poppins', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    line-height: 1.2;
    max-width: 85%;
    word-wrap: break-word;
    letter-spacing: 0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hex-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hex-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.hex-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 3px;
}

.hex-description {
    font-size: 10px;
    text-align: center;
    line-height: 1.1;
    opacity: 0.8;
    color: #e0e0e0;
}

.nav-hex svg path {
    fill: #2a2a2a;
    transition: fill 0.3s ease;
}

.nav-hex:hover svg path {
    fill: #333333;
}

/* Hover effects removed per request */

/* 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%);
}

/* Zoom overlay styles */
#zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#zoom-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#zoom-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

#close-zoom {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ff6600;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

#close-zoom:hover {
    color: #ff8533;
}

#zoom-honeycomb-container {
    position: relative;
    width: 450px;
    height: 300px;
}

.zoom-hex {
    position: absolute;
    width: 60px;
    height: 69px;
}

.zoom-hex svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.zoom-hex svg path {
    fill: #222222;
    stroke: none;
}

.zoom-hex .hex-content {
    font-size: 8px;
}

/* Hover enlarge effect (glow handled by global layer) */
.hex {
    /* Slower, smoother hover effects */
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 400ms ease-out;
    transform-origin: center center;
    cursor: default;
    transform: scale(1);
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Typewriter and backspace animations for splash screen */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes backspace {
    from { width: 100%; }
    to { width: 0; }
}

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

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

/* Copyright footer */
#copyright {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    z-index: 50;
    text-align: center;
}

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

/* 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;
    }
    
    .back-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Hide hexagon container on mobile */
    #honeycomb-container {
        display: none !important;
    }
    
    /* Mobile splash text wrapping */
    #splash-text {
        word-wrap: break-word !important;
        word-break: break-word !important;
        white-space: pre-wrap !important;
        max-width: calc(100vw - 40px) !important;
        line-height: 1.3;
    }
    
    /* Mobile navigation list */
    #mobile-nav {
        display: block !important;
        padding: 60px 20px 40px 20px;
    }
    
    .mobile-nav-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;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .mobile-nav-item:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
    }
    
    .mobile-nav-item svg {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .mobile-nav-content {
        flex: 1;
    }
    
    .mobile-nav-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 4px;
    }
    
    .mobile-nav-desc {
        font-size: 12px;
        opacity: 0.8;
        line-height: 1.3;
    }
    
    /* Copyright positioning */
    #copyright {
        bottom: 5px !important;
        font-size: 10px !important;
    }
    
    /* Splash system text size */
    .splash-system h1 {
        font-size: 20px !important;
    }
}

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

@media screen and (max-width: 480px) {
    /* Extra small screens */
    #main-header h1 {
        font-size: 24px;
        border-right: none;
        animation: none !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;
    }
}

/* Fade-in animation for entrance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hex {
        transition: none;
    }
    .hex:hover {
        transform: none;
    }
    .fade-in {
        animation: none;
        opacity: 1;
    }
}


/* Make project hexagon clickable */
.hex[data-hex-id="1-3"] {
    cursor: pointer;
}

.hex[data-hex-id="1-3"]:hover {
    transform: scale(1.05) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .hex-content {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hex-content {
        font-size: 8px;
    }
}

