/* ==========================================
   GLOBAL RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ==========================================
   CONTENT-SPECIFIC CONTAINER SIZING
   ========================================== */

/* Resume content - full width */
#content-container:has(article#resumeContent) {
    width: 1000px;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Articles content - narrow width */
#content-container:has(.articles-content) {
    width: 800px;
    max-width: 90vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

/* Blog content - medium width */
#content-container:has(.books-content) {
    width: 900px;
    max-width: 90vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

/* Projects content - wide width */
#content-container:has(.projects-content) {
    width: 900px;
    max-width: 95vw;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    padding: 20px;
}

/* ==========================================
   BUTTON CONTAINER & NAVIGATION
   ========================================== */

.button-container {
    position: fixed;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s ease;
}

.button-container.mini-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    transform: scale(0.80);
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.diamond-border {
    position: absolute;
    width: 175px;
    height: 175px;
    border: 2px dashed rgb(11, 191, 236);
    border-radius: 8px;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.diamond-border.show {
    opacity: 1;
}

/* ==========================================
   GO BUTTON STYLING
   ========================================== */

#gobutton {
    background-color: rgb(111, 233, 192);
    height: 100px;
    width: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color: aliceblue;
    font-size: 16px;
    font-weight: bold;
    outline: none;
    position: relative;
    z-index: 10;
    animation: pulseCombo 2s ease-in-out infinite;
}

@keyframes pulseCombo {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgb(0, 255, 55);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgb(77, 218, 147);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgb(1, 255, 149);
    }
}

#gobutton:hover {
    background-color: aquamarine;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 255, 128, 0.932);
}

#gobutton.clicked:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 162, 255, 0.932);
}

#gobutton:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: rgb(13, 182, 117);
    transition: all 0.1s ease;
}

#gobutton.no-pulse {
    animation: none;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

#gobutton.shaking {
    animation: shake 0.1s infinite;
    z-index: 10;
}

/* ==========================================
   NAVIGATION BUTTONS
   ========================================== */

.nav-button {
    position: absolute;
    height: 80px;
    width: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    outline: none;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.nav-button.show {
    opacity: 1;
    transform: scale(1);
}

.nav-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-button:active {
    transform: scale(0.95);
}

/* Individual button positioning and styling */
#resume {
    background-color: #ff6b6b;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}

#resume.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

#resume:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 16px rgb(255, 72, 0);
}

#resume.glow {
    box-shadow: 0 0 16px rgb(255, 72, 0);
    transform: translateX(-50%) scale(1.2);
}

#resume:active {
    transform: translateX(-50%) scale(0.95);
}

#books {
    background-color: #4ecdc4;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
}

#books.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#books:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgb(0, 255, 115);
}

#books.glow {
    box-shadow: 0 0 16px rgb(0, 255, 157);
    transform: translateY(-50%) scale(1.2);
}

#books:active {
    transform: translateY(-50%) scale(0.95);
}

#articles {
    background-color: #45b7d1;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

#articles.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

#articles:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 0 16px rgb(0, 225, 255);
}

#articles.glow {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 16px rgb(0, 225, 255);
}

#articles:active {
    transform: translateX(-50%) scale(0.95);
}

#projects {
    background-color: #f7b731;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
}

#projects.show {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

#projects.glow {
    box-shadow: 0 0 16px rgb(255, 187, 0);
    transform: translateY(-50%) scale(1.2);
}

#projects:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgb(255, 188, 2);
}

#projects:active {
    transform: translateY(-50%) scale(0.95);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   SINGLE CONTENT CONTAINER SYSTEM
   ========================================== */

#content-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 100vh;
    
    /* Start hidden */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 999;
    overflow-y: auto;
    box-sizing: border-box;
}

#content-container.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .articles-content {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .articles-content__title {
        font-size: 1.8rem !important;
    }
    
    .articles-content__list {
        gap: 1rem;
    }
    
    .articles-content__card {
        padding: 0.7rem 0.9rem;
    }
    
    .button-container.mini-nav {
        transform: scale(0.6);
        top: 10px;
        left: 10px;
    }
}

