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

body {
    background-color: #000000;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

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

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

.hex {
    position: absolute;
    cursor: default;
    transform-style: preserve-3d;
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 400ms ease-out;
    transform-origin: center center;
    transform: scale(1);
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* SVG-based hex styling */
.hex svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hex svg path {
    fill: rgba(255, 255, 255, 0.1);
    stroke: none;
    stroke-width: 0;
    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%);
    color: white;
    font-size: 12px;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
    max-width: 100%;
}

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

.project-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 6px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.project-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
}

.project-tech {
    font-size: 11px;
    opacity: 0.9;
    text-align: center;
    line-height: 1.2;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.project-description {
    font-size: 10px;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
    color: #cccccc;
    font-weight: 400;
    max-width: 100%;
}

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

.cert-icon, .tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cert-title, .tech-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cert-tech, .tech-type {
    font-size: 11px;
    opacity: 0.9;
    text-align: center;
    line-height: 1.2;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.cert-description, .tech-description {
    font-size: 10px;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
    color: #cccccc;
    font-weight: 400;
    max-width: 100%;
}

.cert-hex svg path, .tech-hex svg path {
    fill: rgba(255, 255, 255, 0.1);
    stroke: none;
    stroke-width: 0;
    transition: fill 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cert-hex:hover svg path, .tech-hex:hover svg path {
    fill: #333333;
}

.project-hex svg path {
    fill: #2a2a2a;
    stroke: none;
    stroke-width: 0;
    transition: fill 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.project-hex:hover, .tech-hex:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 400ms ease-out;
}

/* Project Action Buttons */
.project-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-btn {
    padding: 4px 8px;
    font-size: 9px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.github-btn {
    background: linear-gradient(135deg, #333 0%, #000 100%);
    color: white;
}

.github-btn:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: scale(1.05);
}

.visit-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.visit-btn:hover {
    background: linear-gradient(135deg, #5CBF60 0%, #4CAF50 100%);
    transform: scale(1.05);
}

.request-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.request-btn:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    transform: scale(1.05);
}

/* Vignette overlays */
body::before,
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Top vignette */
body::before {
    top: 0;
    height: 30vh;
    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;
    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;
    }
}

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

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

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

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

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

/* Responsive design */
@media (max-width: 768px) {
    .hex-content {
        font-size: 10px;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    body::before { height: 26vh; }
    body::after { height: 28vh; }
}

@media (max-width: 480px) {
    .hex-content {
        font-size: 8px;
    }
    
    .project-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Project Navigator */
#project-navigator {
    position: fixed;
    bottom: 125px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
    .navigation-instruction {
        position: fixed;
        bottom: 103px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        font-weight: 400;
        text-align: center;
        letter-spacing: 0.5px;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 12px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .navigation-instruction {
        display: none;
    }
}

.nav-dots-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-project-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .nav-project-icon {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-item.active .nav-project-icon {
    transform: scale(1.15);
    border-color: white;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nav-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .nav-tooltip {
    opacity: 1;
}

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

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

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

/* Mobile responsive styles - only affects screens 768px and below */
@media screen and (max-width: 768px) {
    
    /* Header adjustments */
    #main-header {
        position: static;
        transform: none;
        padding: 20px;
        background: rgba(0, 0, 0, 0.9);
        margin-bottom: 0;
    }
    
    
    #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 and project navigator on mobile */
    #honeycomb-container,
    #project-navigator {
        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;
        margin-bottom: 8px;
    }
    
    .mobile-content-links {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-link {
        background: rgba(97, 218, 251, 0.2);
        border: 1px solid rgba(97, 218, 251, 0.4);
        color: #61dafb;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-link:hover {
        background: rgba(97, 218, 251, 0.3);
        border-color: rgba(97, 218, 251, 0.6);
        transform: translateY(-1px);
    }
    
    .mobile-link.disabled {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.5);
        cursor: default;
    }
    
    .mobile-link.disabled:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    /* 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;
    }
}
