/* ==========================================================================
   GLOBAL CORE STYLESHEET
   --------------------------------------------------------------------------
   Applies to: ALL PAGES (Home, About, Projects)
   Contains: Universal resets, core fonts, dark theme background, site-wide 
             navigation bar mechanics, animations, and the global footer.
   ========================================================================== */

/* General Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    animation: fadeIn 0.8s ease-in;
}

.dark-theme {
    background-color: black;
}

/* Header & Navigation Structure */
.nav-container {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.431);
    padding: 0.10rem;
}

nav {
    display: inline-block;
    padding: 2% 6%;
}

.nav-links {
    display: inline-block;
    margin-left: 20px;
}

.nav-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.nav-links ul li {
    display: inline-block;
    padding: 2px 4px;
    position: relative;
    margin: 0 10px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: red;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Footer Component */
.footer {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    color: #ffffff;
}

/* Animation Blueprints */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Global Responsive Adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 10px;
    }
    .nav-links ul li {
        padding: 10px 5px;
    }
    .footer {
        font-size: 0.9rem;
        padding: 20px 0;
    }
}