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

/* 1. HTML Root for Sticky Footer */
html {
    height: 100%;
    margin: 0; /* Add this specific margin property */
}

/* 2. CORRECTED BODY RULE: Enables sticky footer layout */
body {
    background-color: #3a3153;
    color: #e0e0e0;
    font-family: 'Roboto Mono', 'Fira Code', monospace, sans-serif;
    line-height: 1.6;
    
    /* CRITICAL: Flexbox layout to stack content vertically */
    display: flex;
    flex-direction: column; 
    
    min-height: 100vh; /* Ensures body is full viewport height */
    font-size: 16px;
}

/* --- Header & Navigation Modifications --- */
header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #4a3f65;
    padding: 20px 40px; 
}

.header-content {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #92e666;
    letter-spacing: 2px;
    flex-shrink: 0; 
}

.linkedin-link-container {
    flex-grow: 1; 
    text-align: center; 
    padding: 0 20px; 
}

.linkedin-link {
    transition: color 0.3s;
}

.linkedin-link:hover {
    color: #92e666;
}

nav {
    flex-shrink: 0;
}
nav a {
    color: #b0a8c2;
    margin-left: 25px;
    font-size: 1em;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffffff;
}

/* 3. CORRECTED MAIN HERO RULE: Forces content to fill remaining space */
.hero {
    /* CRITICAL: This pushes the footer to the bottom */
    flex-grow: 1; 
    
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    
    /* Removed conflicting height/margin restrictions */
}

.main-title {
    font-size: 4em;
    margin-bottom: 0.2em;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
}
.subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #d0c8e0;
}
.cta-button {
    background-color: transparent;
    color: #92e666;
    border: 1px solid #92e666;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
}
.cta-button:hover {
    background-color: #92e666;
    color: #3a3153;
    box-shadow: 0 0 10px #92e666;
}


/* ------------------------------------------------------------------ */
/* --- SITE UPDATES SECTION STYLES (THEMED AND CENTERED) --- */
/* ------------------------------------------------------------------ */

.updates-container {
    max-width: 800px; 
    margin: 40px auto; 
    padding: 20px;
    
    background-color: #2b243d; 
    border: 1px solid #4a3f65; 
    color: #e0e0e0; 
    
    border-radius: 8px;
    text-align: left; 
}

#site-updates h2 {
    text-align: center; 
    color: #92e666; 
    border-bottom: 2px solid #4a3f65; 
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#updates-list {
    list-style: none; 
    padding: 0;
    margin: 0;
}

#updates-list li {
    padding: 10px 0;
    border-bottom: 1px dotted #4a3f65; 
}

#updates-list a {
    color: #b0a8c2; 
    text-decoration: none;
    font-weight: bold;
}

#updates-list a:hover {
    color: #92e666; 
    text-decoration: underline;
}

.update-date {
    color: #888; 
    font-size: 0.9em;
    margin-left: 10px;
}

/* ------------------------------------------------------------------ */
/* --- GENERIC CONTENT PAGE STYLES --- */
/* ------------------------------------------------------------------ */

.content-page {
    max-width: 800px;
    margin: 40px auto; 
    padding: 0 20px;
}

.content-page h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #92e666; 
    border-bottom: 2px solid #4a3f65; 
    padding-bottom: 10px;
}

.content-page h2 {
    font-size: 1.8em;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #ffffff;
}

.content-page h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #d0c8e0;
}

.content-page dt {
    font-weight: bold;
    margin-top: 15px;
    color: #92e666; 
}

.content-page dd {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 1px solid #4a3f65; 
}

.content-page ul, .content-page ol {
    margin-left: 25px;
    padding-left: 0;
}

.content-page a {
    color: #b0a8c2;
    text-decoration: underline; 
}

.content-page a:hover {
    color: #92e666;
}

/* --- LinkedIn Favicon Button Styles --- */
.linkedin-icon-button {
    display: inline-block;
    width: 35px; 
    height: 35px; 

    background-image: url('/images/favicons/InBug-Black.png'); 
    background-size: 70%; 
    background-repeat: no-repeat;
    background-position: center;

    border: 1px solid #b0a8c2; 
    border-radius: 4px; 
    
    text-decoration: none !important;
    line-height: 0;
    font-size: 0; 
    
    transition: all 0.3s ease;
}

.linkedin-icon-button:hover {
    background-color: #92e666; 
    border-color: #92e666;
    box-shadow: 0 0 10px rgba(146, 230, 102, 0.6); 
}
