* {
    box-sizing: border-box;
}

:root {
    color-scheme: light dark;
    /* Define color variables for easy maintenance and consistency */
    
    /* 1. BACKGROUNDS (The Layers) */
    --bg-base: #151c25;         /* True Obsidian: The deep background */
    --bg-card: #1F2937;         /* Slate: Lifts the boxes forward */
    --bg-card-hover: #374151;   /* Lighter Slate: A smooth, subtle glow on hover (No white flashes!) */
    --bg-dark-box: #111827;     /* Midnight: Slightly darker than the cards for nested elements */

    /* 2. TEXT (The Hierarchy) */
    --text-primary: #F9FAFB;    /* Crisp White: For headers */
    --text-secondary: #9CA3AF;  /* Silver Grey: Extremely readable for body text */
    --text-muted: #6B7280;      /* Dim Grey: For dates and tiny details */
    --text-inverse: #111827;    /* Dark Ink: For text sitting inside your bright Amber buttons! */

    /* 3. INTERACTIVE & ACCENTS (The Actions) */
    /* Note: Keeping your variable names, but swapping the amber for the new Amber Gold */
    --brand-amber: #FBBF24;    /* Brilliant Amber Gold: Main accent */
    --brand-primary: #F59E0B;   /* Slightly deeper Amber */
    --light-primary: rgba(251, 191, 36, 0.15); /* A soft transparent Amber glow for backgrounds */
    --brand-hover: #D97706;     /* Darker Amber/Orange for button hovers */
    
    --border-subtle: #374151;   /* Slate border */
    --border-strong: #4B5563;   /* Lighter slate for active inputs */

    /* 4. SHADOWS (The Depth) */
    --shadow-soft: 0px 8px 24px rgba(0, 0, 0, 0.4); /* True black shadow to create real depth */

    /* 5. CONSTRUCTION BANNER */
    --construction-banner: #EAB308;
}

body {
    font-family: "Passion One", sans-serif;
    font-style: normal;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-size: 1.3rem;
    background-image: 
        linear-gradient(rgba(31, 41, 55, 0.4), rgba(31, 41, 55, 0.4)),
        url('assets/bg-3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
}

a {
    color: var(--brand-amber);
}

a:hover {
    color: var(--brand-hover);
}

.construction-banner-container {
    display: flex;
    justify-content: center;
    text-align: center;
    background: rgba(31, 41, 55, 0.7);
    color: var(--text-primary);
    padding: 20px;
    border: 8px dashed var(--construction-banner);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    max-width: 1200px; 
    margin: 20px auto 0 auto;
}

.construction-banner-container p {
    font-size: 18px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.construction-banner-container strong {
    font-size: 26px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.construction-emoji {
    font-size: 48px;
}

.logo {
    height: 30px;
    width: auto;
    color: var(--brand-primary);
    font-size: 36px;
    margin-top: 12px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.main-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    width: 90%;
    max-width: 1200px;
    margin: 0px auto 20px auto;
    height: 40px;
    border-radius: 50px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    position: sticky;
    top: 20px;
    z-index: 999;
    box-shadow: var(--shadow-soft);
}

.main-header a {
    color: var(--text-primary);
    text-decoration: none !important;
    font-size: 24px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.main-header a:hover {
    color: var(--brand-hover);
}

.header-center ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.header-center a {
    text-decoration: none;
}

.profile-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--brand-primary); 
    color: var(--text-primary);
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.profile-badge:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
}

.bento-wrapper {
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Three equal columns for the three panes */
    gap: 20px; /* Space between panes */
    grid-auto-rows: minmax(150px, auto); /* Allow rows to grow based on content */

    /* Define grid areas for better readability and maintenance */
    grid-template-areas: 
        "bio bio resume"
        "bio bio skills"
        "contact project-one project-two"
        "contact portfolio portfolio"
        "contact portfolio portfolio";
}

.bento-wrapper:has(.project-one-container:hover) {
    grid-template-areas: 
        "bio bio resume"
        "bio bio skills"
        "contact project-one project-two"
        "contact project-one portfolio"
        "contact project-one portfolio";
}

.bento-wrapper:has(.project-two-container:hover) {
    grid-template-areas: 
        "bio bio resume"
        "bio bio skills"
        "contact project-one project-two"
        "contact portfolio project-two"
        "contact portfolio project-two";
}

.first-letter-color {
    color: var(--brand-primary);
}

.about-me, .portfolio-section{
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
}

.skills-section, .resume-section {
    background: linear-gradient(#D9770610, #D97706c0);
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.about-me {
    grid-area: bio;
}

.name {
    font-size: 32px;
    font-weight: 700;
    text-indent: 0.7em;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.name::after {
    content: '';
    display: block;
    width: 65%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 2px;
    margin-left: 60px;
}

.welcome-color {
    color: var(--brand-primary);
    font-size: 40px;
}

#hi {
    font-size: 45px;
}

.bio {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    margin-top: 10px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.headshot {
    padding-top: 10px;
    padding-bottom: 20px;
}

.my-headshot {
    width: 100%;
    max-width: 300px;
    border-radius: 100%;
    border: var(--brand-primary) 2px solid; 
    box-shadow: var(--shadow-soft);
    display: block;
    margin: 0 auto;
}

.contact-info {
    grid-area: contact;
    background-color: var(--bg-card);
    background-image: linear-gradient(rgba(31, 41, 55, 0.2), rgba(31, 41, 55, 0.6)), url('assets/contact-img.jpg');
    background-size: 80vw;
    background-position: -15% 80%;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary); /* Ensure text is readable on the image background */
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    overflow: hidden; /* Ensure content doesn't spill out of the card */
    line-height: 1.5;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9),
                 0px 6px 20px rgb(0, 0, 0); /* Add text shadow for better readability */
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 20px;
}

.contact-info a {
    color: var(--brand-amber);
}

.contact-info a:hover {
    color: var(--brand-hover);
}

.contact-title::after {
    content: '';
    display: block;
    width: 65%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 5px;
    margin-left: 40px; 
}

.resume-section {
    grid-area: resume;
}

.resume-title::after {
    content: '';
    display: block;
    width: 75%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 5px;
    margin-left: 40px;
}

.skills-section {
    grid-area: skills;
}

.skills-title::after {
    content: '';
    display: block;
    width: 75%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 5px;
    margin-left: 40px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tech-icon {
    width: 100%;
    height: 100%;
    max-height: 60px;
    object-fit: contain;
    border-radius: 20px;
}

.skill-box {
    background-color: rgba(31, 41, 55, 0.65);
    color: var(--text-primary);
    padding: 20px 10px;
    border-radius: 12px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
}

.skill-box .tech-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.skill-box:hover {
    border-color: var(--brand-amber); 
    background-color: rgba(31, 41, 55, 0.8);
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px #fbbf2426; 
}

.skill-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.portfolio-section {
    grid-area: portfolio;
    background: linear-gradient(#D9770610, #D97706c0);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9); /* Add text shadow for better readability */
}

.portfolio-title::after {
    content: '';
    display: block;
    width: 20%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 5px;
    margin-left: 40px;
}

.project-one-container {
    grid-area: project-one;
    background-image: linear-gradient(rgba(31, 41, 55, 0.2), rgba(31, 41, 55, 0.6)), url('assets/devdash-screenshot.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    color: var(--text-inverse); /* Ensure text is readable on the dark background */
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease; /* Smooth scaling on hover */
}

.project-two-container {
    grid-area: project-two;
    background-image: linear-gradient(rgba(31, 41, 55, 0.2), rgba(31, 41, 55, 0.6)), url('assets/housing-price-predictor-screenshot.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    color: var(--text-inverse); /* Ensure text is readable on the dark background */
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease; /* Smooth scaling on hover */
}

.lang-tag {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 5px;
    margin-top: auto;
}

.project-one-content, .project-two-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(31, 41, 55, 0.2), rgba(31, 41, 55, 0.6)); 
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-one-container:hover{
    transform: scale(1.1) translateX(-15px) translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 50; /* Ensure the hovered card appears above others */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.45);
}

.project-two-container:hover{
    transform: scale(1.1) translateX(-20px) translateY(-20px);
    transition: transform 0.3s ease;
    z-index: 50; /* Ensure the hovered card appears above others */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.45);
}

.project-one-container:hover .project-one-content, .project-two-container:hover .project-two-content {
    transform: translateY(0);
    overflow-y: auto; 
}

.project-link {
    color: var(--light-primary);
}

.card-link {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9),
                 0px 8px 40px rgba(0, 0, 0, 1);
}

.card-link:hover {
    cursor: pointer;
}



/* ----------------------------------------------------------- */

/* SKILL MODAL */


/* The Dark Glass Overlay */
.skill-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    
    /* Centering the modal */
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    
    /* Hidden by default, smoothly fades in */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* When the JS adds the "active" class, it appears! */
.skill-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* The Modal Card itself */
.skill-modal-content {
    background-color: rgba(31, 41, 55, 0.45);
    border: 1px solid var(--brand-amber);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 85vh;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.skill-modal-overlay.active .skill-modal-content {
    transform: translateY(0);
}

/* The Close Button */
.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover {
    color: var(--brand-amber);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.modal-header img {
    height: 50px;
}

.modal-title {
    color: var(--text-primary);
    font-size: 28px;
    margin-left: 10px;
    margin-bottom: 10px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.proficiency-tag {
    background-color: var(--light-primary);
    color: var(--brand-amber);
    padding: 5px 10px;
    margin-bottom: 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

.modal-title-color::after {
    content: '';
    display: block;
    width: 35%;
    height: 1px;
    background-color: var(--brand-primary);
    margin-top: 5px;
    margin-left: 20px;
}

.modal-body {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 22px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.modal-title-color {
    color: var(--brand-primary);
}

.modal-body a {
    color: var(--text-primary);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-icon-container {
    background-color: rgba(31, 41, 55, 0.45);
    color: var(--text-primary);
    padding: 20px 10px;
    border-radius: 12px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    display: flex;
}


/* ----------------------------------------------------------- */

/* PHOTOGRAPHY SECTION */


.photography-body {
    background-image: url('assets/under-construction.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.photography-content {
    display: flex;
    justify-content: center;
    background: #D97706a0;
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}



/* ----------------------------------------------------------- */

/* BLOG SECTION */


.blog-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    color: var(--text-primary);
    padding: 20px;

    grid-template-areas: 
    "blog-feed blog-sidebar"
}

.welcome-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
}

.blog-welcome::after {
    content: '';
    display: block;
    width: 75%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 10px;
    margin-left: 40px;
}

.post-card, .sidebar-box {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
}

.blog-sidebar {
    background: var(--light-primary);
    color: var(--text-primary);
    position: sticky;
    top: 20px;
    height: fit-content;
    text-align: right;
    align-self: start;
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: var(--shadow-soft);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
    
    grid-area: "blog-sidebar";
}

.blog-sidebar ul {
    list-style-type: none;
    padding-bottom: 10px;;
}

.blog-sidebar li {
    margin-bottom: 4px;
}

.post-card {
    padding: 30px;
    margin-bottom: 20px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.post-meta {
    display: flex;
    justify-content: space-between;
}

.read-length {
    font-size: 0.85em;
    color: var(--border-strong);
    margin-left: 8px;
    font-weight: normal;
}

.post-tag {
    color: var(--brand-hover)
}

.blog-feed {
    grid-area: "blog-feed";
}

.post-content {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Change this number to show more or fewer lines! */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Optional: Adds a little breathing room before the Read More button */
    margin-bottom: 15px; 
    color: var(--text-muted);
}

/* Ensure margins on markdown paragraphs don't mess up the spacing */
.post-content p {
    margin: 0; 
}

.blog-title::after {
    content: '';
    display: block;
    width: 75%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 40px;
}


/* ----------------------------------------------------------- */

/* POST SECTION */


/* The Reading Wrapper: Centered and constrained */
.reading-wrapper {
    max-width: 1000px; /* Crucial: Traps the text so it's easy to read! */
    margin: 40px auto; 
    padding: 0 20px;
}

.back-button-wrapper {
    margin-bottom: 20px;
    padding-right: 10px;
}

.back-btn {
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    justify-content: right;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

/* The Article Card */
.full-post-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tag {
    margin-right: 10px;
    font-size: 20px;
    color: var(--brand-hover);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

/* Typography Enhancements */
.post-title {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9),
                 0px 8px 40px rgba(0, 0, 0, 1);
}

.post-meta-details {
    color: var(--text-secondary);
    font-size: 14px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.post-meta-details::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 25px;
    margin-left: 40px;
}

.post-body {
    color: var(--text-primary);
    text-indent: 2em;
    line-height: 1.8; /* Gives the text room to breathe */
    font-size: 22px;
    margin-bottom: 20px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 1);
}

/* Dev Blog Element: The Code Block */
.code-block-mockup {
    background-color: #1e1e1e; /* Dark IDE color */
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    font-family: monospace;
    margin: 20px 0;
}

.comments-section {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 40px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
}

.comment-section-title {
    font-size: 24px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.comment-compose textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.comment-user {
    font-size: 18px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.comment-compose button {
    background: var(--border-subtle);
    color: var(--text-primary);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    border: var(--bg-dark-box) 1px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.comment-compose button:hover {
    background: var(--brand-hover);
    cursor: pointer;
}

.comment-card {
    background: var(--light-primary);
    color: var(--text-primary);
    padding: 20px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 5px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
    
}

.comment-card:first-child {
    margin-top: 20px;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.comment-author::after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background-color: var(--brand-primary);
    margin-top: 10px;
    margin-left: 40px;
}

.comment-meta-data {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 5px;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}



/* ----------------------------------------------------------- */

/* LOGIN SECTION */


.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-card, .input-group input {
    box-sizing: border-box;
}

.login-card {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 40px;
    border-radius: 8px;
    border: var(--border-strong) 2px solid;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    width: 100%;
    max-width: 800px;
    min-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 40px;
    margin-bottom: 10px;
    margin-top: -5px;
}

.login-header p {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 24px;
    color: var(--text-primary);
}

.input-group input {
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    width: 60%;
    padding: 10px;
    border-radius: 8px;
    border: var(--border-subtle) 1px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 5px rgba(90, 87, 122, 0.5);
}

.submit-btn {
    background: var(--border-subtle);
    color: var(--text-primary);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    border: var(--bg-dark-box) 1px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    height: 30px;
    width: 20%;
    cursor: pointer;
}

.submit-btn:hover {
    background: var(--brand-hover);
    cursor: pointer;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.login-footer-text {
    font-size: 18px;
    color: var(--text-primary);
}

.login-footer span {
    display:inline-block;
    margin-bottom: 10px;
}

.login-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
}

.login-footer a:hover {
    text-decoration: underline;
    color: var(--brand-hover);
    cursor: pointer;
}

.login-footer-right {
    text-align: right;
}

@media (max-width: 768px) {
    
    .login-wrapper {
        /* Stop perfectly centering it in the massive vertical space! */
        align-items: flex-start; 
        
        /* Push it down just a normal amount from the header */
        padding-top: 40px; 
        
        min-height: auto; /* Turns off the 80vh rule */
    }

    .login-card {
        padding: 20px; /* 40px padding is way too chunky for a tiny phone screen */
        width: 95%; /* Gives it a tiny margin on the left and right */
    }

    .input-group input {
        width: 100%; /* Your 60% inputs are perfect on desktop, but too squished on mobile! */
    }

    .submit-btn {
        width: 100%; /* Make the button full-width on mobile for easy tapping */
        height: 40px; /* Taller button for phone fingers */
    }
}



/* ----------------------------------------------------------- */

/* SIGNUP SECTION */


.name-split {
    display: flex;
    width: 60%;
    gap: 10px;
}

.half-width {
    flex: 1;
}

.half-width input {
    width: 100%;
}


/* ==========================================
   PROFILE PAGE STYLES
   ========================================== */
.profile-card {
    background-color: var(--bg-card); /* Dark semi-transparent */
    border: 2px solid var(--light-primary); /* Subtle orange border */
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    margin: 0px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #e2e8f0;
}

/* Make disabled inputs look cleaner */
input:disabled.locked-input, 
input:disabled.toggle-input {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: default;
    padding-left: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* When editing is turned on, make them look like normal inputs */
input:not(:disabled).toggle-input {
    background-color: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--brand-hover); 
    color: var(--text-primary);
    padding-left: 10px;
    transition: all 0.3s ease;
}

.admin-btn {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.login-title, .login-subtitle {
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.login-subtitle::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--light-primary);
    margin-top: 15px;
}

.profile-email, 
.profile-first-name, 
.profile-last-name {
    color: var(--text-primary);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8), 
                 0px 4px 12px rgba(0, 0, 0, 0.9);
}

.profile-email::after {
    content: '';
    display: block;
    width: 30%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 15px;
    margin-left: 10px;
}

.profile-first-name::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 15px;
    margin-left: 10px;
}

.profile-last-name::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 15px;
    margin-left: 10px;
}

.edit-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--brand-primary);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.edit-btn:hover {
    background: var(--light-primary);
    color: var(--brand-primary);
}

.cancel-btn {
    background: var(--border-subtle);
    color: var(--text-primary);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    border: var(--bg-dark-box) 1px solid;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    height: 30px;
    width: 20%;
    cursor: pointer;
}

/* Danger Button for Delete Account */
.btn-danger {
    background: transparent;
    color: #fc8181;
    border: 1px solid #fc8181;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-danger:hover {
    background: rgba(252, 129, 129, 0.1);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: var(--light-primary);
    color: var(--text-primary);
}

.profile-footer {
    border-top: 2px solid var(--light-primary);
    padding-top: 20px;
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
}




/* -------------------------------- */
/* Admin Dashboard Styles           */
/* -------------------------------- */

.new-post-title {
    color: var(--brand-primary);
    margin-top: 20px;
}

.new-post-title::after {
    content: '';
    display: block;
    width: 30%;
    height: 2px;
    background-color: var(--brand-hover);
    margin-top: 15px;
    margin-left: 40px;
}