body {
    background-color: #000000; 
    color: #cccccc;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    font-size: 1.2rem;
    /* Reduced global text glow */
    text-shadow: 0 0 3px rgba(204, 204, 204, 0.3);
    overflow-x: hidden;
}

/* Positions the interactive canvas firmly in the background */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

h1, h2 {
    color: #ff66b2;
    /* Reduced header glow */
    text-shadow: 0 0 5px #ff66b2;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Hover effects for headers */
h1:hover, h2:hover {
    color: #ff99cc;
    text-shadow: 0 0 10px #ff99cc;
}

a {
    color: #ff66b2;
    text-decoration: none;
    /* Reduced link glow */
    text-shadow: 0 0 2px #ff66b2;
    transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
}

/* Hover effects for links */
a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ff66b2;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
    padding: 30px;
}

.sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Unified styling for boxes */
.nav-box, .badge, .content, .profile-box  {
    border: 2px solid #555;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    padding: 25px;
    border-radius: 8px;
    /* Reduced box glow */
    box-shadow: 0 0 5px rgba(255, 102, 178, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-box:hover, .badge:hover, .content:hover, .profile-box:hover, .gif-slot:hover {
    border-color: #ff66b2;
    box-shadow: 0 0 10px rgba(255, 102, 178, 0.4);
}

.sidebar nav a {
    display: block;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.sidebar nav a:last-child {
    margin-bottom: 0;
}

/* Profile Picture Specifics */
.profile-box {
    padding: 5px;
}

.profile-pic {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* GIF Section Styling */
.gif-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gif-slot {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hover-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff66b2;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}




.badge {
    text-align: center;
    font-weight: bold;
    color: #737373;
}
.badge:hover {
    
    color: #ffffff;
}
.content {
    flex: 1;
}

hr {
    border: 0;
    border-top: 2px dashed #555;
    margin: 30px 0;
}

.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, color 0.2s, text-shadow 0.2s;
}

.skills-list li:hover {
    transform: translateX(10px);
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

i {
    font-size: 1.8rem;
}
/* =========================================
   SOCIALS PAGE SPECIFIC STYLES 
   ========================================= */

/* Profile Message Box (Typewriter) */
.profile-message-box {
    border: 2px solid #555;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    /* Fixed minimum height prevents the box from resizing while it types */
    min-height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-message-box:hover {
    border-color: #ff66b2;
    box-shadow: 0 0 10px rgba(255, 102, 178, 0.4);
}

#typewriter-text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
    color: #ffffff; /* White text */
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6); /* Soft white glow */
}

/* Social Links 2x2 Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Individual Social Box */
.social-box {
    border: 2px solid #555;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s, color 0.3s;
}

.social-box i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.social-box:hover {
    border-color: #ff66b2;
    box-shadow: 0 0 15px rgba(255, 102, 178, 0.5);
    transform: translateY(-5px);
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ff66b2;
}
/* =========================================
   BLOG PAGE SPECIFIC STYLES 
   ========================================= */

.blog-nav-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-nav-title {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.2rem;
    color: #ff66b2;
    text-shadow: 0 0 5px #ff66b2;
}

/* Styling the dropdown container */
.blog-nav-box details {
    border: 1px dashed #555;
    border-radius: 5px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-nav-box details:hover {
    border-color: #ff66b2;
    box-shadow: 0 0 5px rgba(255, 102, 178, 0.2);
}

/* Styling the clickable title */
.blog-nav-box summary {
    cursor: pointer;
    font-weight: bold;
    color: #ff66b2;
    outline: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.blog-nav-box summary:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #ffffff, 0 0 10px #ff66b2;
}

/* Styling the list of articles inside the dropdown */
.article-list {
    list-style-type: none;
    padding-left: 5px;
    margin: 10px 0 5px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-list li a {
    font-size: 0.95rem;
    color: #cccccc; /* Slightly dimmer text for sub-links */
}

.article-list li a:hover {
    color: #ffffff;
    transform: translateX(5px); /* Cute little slide effect when hovered */
    display: inline-block;
}
/* =========================================
   SCROLL AND LAYOUT LOCKING
   ========================================= */

/* Lock the container to the height of the screen (minus the 30px top/bottom padding) */
.container {
    max-height: calc(100vh - 60px);
}

/* Constrain the sidebar so it doesn't outgrow the screen */
.sidebar {
    max-height: 100%;
}

/* Make the archives box fill the remaining sidebar space and scroll when full */
.blog-nav-box {
    flex: 1; /* Stretches the box down to match the height of the sidebar */
    overflow-y: auto; /* Adds the slider if the dropdowns get too long */
}

/* Constrain the main content area and allow it to scroll */
.content {
    max-height: 100%;
    overflow-y: auto; /* Adds the slider for long blog posts */
}


/* =========================================
   CUSTOM GLOWING SCROLLBARS (Sliders)
   ========================================= */

/* The entire scrollbar width */
::-webkit-scrollbar {
    width: 8px;
}

/* The track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    border: 1px solid #555;
}

/* The draggable slider itself */
::-webkit-scrollbar-thumb {
    background: #ff66b2;
    border-radius: 4px;
    box-shadow: 0 0 5px #ff66b2;
}

/* Slider hover effect */
::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 5px #ff66b2;
}
/* =========================================
   HIT SHAKE ANIMATION
   ========================================= */

.profile-pic {
    cursor: crosshair; /* Changes the mouse to a target when hovering over her */
    transition: transform 0.1s;
}

.profile-pic:active {
    transform: scale(0.95); /* Makes the picture squish slightly when clicked */
}

/* The screen shake keyframes */
@keyframes shakeScreen {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* We will apply this class to the body using JavaScript */
.is-shaking {
    animation: shakeScreen 0.3s cubic-bezier(.36,.07,.19,.97) both;
}
/* =========================================
   BLACKOUT EFFECT (10 CLICKS)
   ========================================= */

#blackout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999; /* Ensures it covers absolutely everything */
    pointer-events: none; /* Allows you to click things when it's invisible */
    opacity: 0;
}

/* The animation: eyes snap shut, stay closed for a second, then open slowly */
@keyframes eyesClosing {
    0% { opacity: 0; }
    15% { opacity: 1; }  /* Snap shut */
    70% { opacity: 1; }  /* Stay closed */
    100% { opacity: 0; } /* Slowly open */
}

.is-blacked-out {
    animation: eyesClosing 3.5s ease-in-out forwards;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

/* This rule applies to any screen that is 768px wide or smaller (typical phones/tablets) */
@media (max-width: 768px) {
    
    /* Stack the sidebar and main content vertically */
    .container {
        flex-direction: column;
        padding: 15px; /* Slightly smaller padding for small screens */
        max-height: none; /* Removes the screen-lock so phones can scroll naturally */
    }

    /* Make the sidebar take up the full width of the screen */
    .sidebar {
        width: 100%;
        max-height: none;
    }

    /* Allow the main content to grow and scroll naturally */
    .content {
        max-height: none;
        overflow-y: visible;
    }

    /* Adjust the Socials grid to a single column so the boxes aren't too tiny */
    .social-links-grid {
        grid-template-columns: 1fr; /* Changes it from 2 columns to 1 */
    }
    
    /* Make the typewriter box text a bit smaller so it fits nicely */
    #typewriter-text {
        font-size: 1rem;
    }
}