/* Layout */
body {
    font-family: Arial, sans-serif;
    /* A more common font for Bootstrap demos */
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
    min-height: 100vh;
    display: flex;
    /* Make body a flex container */
    flex-direction: column;
    /* Stack children vertically */
}

html {
    overflow-y: auto;   /* or scroll and remove gutter */
    scrollbar-gutter: stable;
    background-color: #222529;
}

.main-content-wrapper {
    flex-grow: 1;
    background: linear-gradient(
        to bottom,          /* Explicitly state the direction for clarity */
        #222529 0%,       /* Start exactly with your header color */
        #222529 2px,      /* Hold that solid color for the first 2 pixels */
        #83a5c6,          /* Your middle color, starts transition after the 2px band */
        #222529           /* Your end color */
    );
}

/* Navbar */
.navbar .nav-link {
    font-size: 1.2rem;
}

.navbar {
    padding-top: 20px;
    padding-bottom: 20px;
}

#navbarNav {
    max-width: 800px;
}

.navbar-div {
    max-width: 800px;
    padding-left: 0;
    padding-right: 0;
}

.navbar-logo {
    height: 2.2rem;
}

/* Footer */
footer {
    background-color: none;
    color: rgb(154, 155, 156) !important;
    text-align: center;
}

/* Common */
.text-icon {
    margin-right: 8px;
}

/* Intro */
.intro-div {
    background-color: #e9ecef;
    /* Light grey background for intro */
    /* border-radius: 1rem; */
    padding: 3rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 1rem;
    /* Adjust the value for desired roundness */
    border-bottom-right-radius: 1rem;
    max-width: 800px;
}

.intro-div h1 {
    text-align: center;
}

.intro-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers children horizontally */
    width: 100%;
    /* Ensure the wrapper takes full available width */
}

.intro-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    /* Constrain width for better readability */
    margin-left: auto;
    /* Center the block itself */
    margin-right: auto;
    /* Center the block itself */
    text-align: left;
    /* Align text inside this block to the left */
}

.intro-skills {
    display: flex;
    flex-direction: row;
    align-items: top;
}

.intro-skills-section-margin {
    margin-right: 4rem;
}

.intro-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #343a40;
    text-align: left;
    /* Ensure heading within column is left-aligned */
}

.intro-skills ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0.8rem;
    text-align: left;
    /* Ensure list items are left-aligned */
}

.intro-skills ul li {
    margin-bottom: .5rem;
    color: #666;
}

.intro-skills-links a {
    margin-right: 0.5rem;
    color: unset;
    text-decoration: none;
}

.intro-contact {
    font-size: 1.1rem;
    font-weight: 500;
    color: #343a40;
    margin-top: 2rem;
    max-width: fit-content;
    /* Make the paragraph only as wide as its content */
    margin-left: auto;
    /* Center the block itself */
    margin-right: auto;
    /* Center the block itself */
}

.email-contact-me {
    cursor: pointer;
    color: inherit;
}

.email-contact-me:hover {
    text-decoration: none;
    color: inherit;
}

.email-clicked {
    text-decoration: none;
    cursor: default;
    color: inherit;
}

/* Page */
.page-div {
    background-color: white;
    padding: 3rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    max-width: 800px;
}

.page-quote {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    background-color: #e9ecef;
    padding: 0.5rem;
    border-radius: 1rem;
    width: fit-content;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .05);
    white-space: pre-line;
    margin-bottom: 1rem;
}

.page-div h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #343a40;
    /* Darker text */
    border-bottom: 1px solid rgba(82, 85, 91, 0.3);
    box-shadow: 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.page-div h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    /* Slightly lighter text */
}

.page-div h3 {
    font-size: 1.5rem;
    /* H3 equivalent */
    font-weight: 550;
    margin-bottom: 0.5rem;
    color: #495057;
    /* Slightly lighter text */
}

/* --- Styles for the navigation list --- */
.anchor-nav {
    margin-bottom: 1rem;
    display: flex;
}

.anchor-nav ul {
    list-style: none;
    /* Removes default bullet points */
    padding: 0;
    /* Removes default padding */
    margin: 0;
    /* Removes default margin */
    display: flex;
    /* Uses Flexbox to lay items out horizontally */
    justify-content: left;
    /* Centers the links horizontally */
    flex-wrap: wrap;
    /* Allows links to wrap to the next line on smaller screens */
    gap: 0.5rem;
    /* This creates a 20px gap between flex items (li) */
}

.anchor-nav li:first-child {
    margin-left: 0.5rem;
    /* Adds some space between list items */
}

.anchor-nav a {
    text-decoration: none;
    /* Removes underline from links */
    color: #007bff;
    /* Sets link color */
    font-weight: bold;
    white-space: nowrap;
    /* Prevents links from breaking onto multiple lines */
    padding: 5px 0;
    /* Adds vertical padding for clickable area */
}

.anchor-nav a:hover {
    color: #0056b3;
    /* Darker color on hover */
    text-decoration: underline;
}

/* --- CSS for the pipe separators --- */
.anchor-nav li:not(:last-child)::after {
    content: "|";
    /* The pipe character */
    margin-left: 0.5rem;
    /* Space after the pipe */
    color: #ccc;
    /* Color of the separator */
}

/* About me */
.skills-area {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

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

.skills-box ul>li>i {
    margin-right: 5px;
}

.skills-icon {
    display: inline-block;
    /* Treat the SVG like text */
    width: 1.2em;
    /* Make icon size relative to font size */
    height: 1.2em;
    /* Make icon size relative to font size */
    vertical-align: middle;
    /* Key for inline alignment */
    margin-right: 0;
    /* Space between icon and text */
    /* fill: #333;
    Default icon color */
}

.skills-icon.larger {
    width: 1.2em;
    height: 1.2em;
}

.skills-icon.margin {
    margin-right: 5px;
}

.svg-sprite-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    /* Move it off-screen, a very common technique */
    left: -9999px;
    top: -9999px;
}

.linkedin-link {
    display: inline-block;
    vertical-align: middle;
    height: 1.2em;
    border-bottom: 1px solid rgb(0, 91, 182);
}

.linkedin-link:hover {
    border-bottom: none;
}

.github-link {
    display: inline-block;
    vertical-align: middle;
    height: 1.2em;
    border-bottom: 1px solid rgb(31, 31, 31);
}

.github-link:hover {
    border-bottom: none;
}
