/* style.css - Modern Portfolio CSS - Gemini Inspired - Blue & Green - Monospace Font - Fixed Header/Footer - Inline Lists - Styled Headings */

:root {
    /* Gemini-inspired color palette with blues and greens */
    --primary-color: #2c3e50; /* Dark blue-grey background */
    --secondary-color: #34495e; /* Slightly lighter shade for hover */
    --accent-color: #28ca07; /* Bright green accent */
    --accent-hover: #e46e58; /* Darker green for hover */
    --text-color-light: #ffffff; /* White for primary text on dark backgrounds */
    --text-color-dark: #34495e; /* Dark blue-grey for headings */
    --bg-light: #f4f6f8; /* Very light grey background for sections */
    --bg-card: #ffffff; /* White background for project cards */
    --border-radius: 12px; /* Modern rounded corners */
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    --transition-duration: 0.3s;
    --font-family: 'Roboto Mono', monospace; /* Monospace font for main text */
    --font-family-heading: 'Fira Code', monospace; /* Monospace font for headings */
    --link-color: #15405e; /* Blue for links */
    --link-hover: #e46e58; /* Darker blue for link hover */
    --header-height: 70px; /* Define a height for the header */
    --footer-height: 60px; /* Define a height for the footer */
    --accent-color-rgb: 40, 202, 7; /* RGB for #28ca07 */
    --blog-max-width: 90%; /* Define the maximum width for blog content */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    transition: all var(--transition-duration) ease-in-out;
}

body {
    background-color: var(--bg-light);
    line-height: 1.6; /* Adjust line height for monospace */
    color: var(--text-color-dark); /* Dark text on light background */
    padding-top: var(--header-height); /* Prevent content from being hidden by fixed header */
    padding-bottom: var(--footer-height); /* Prevent content from being hidden by fixed footer */
    min-height: 100vh; /* Ensure body takes full viewport height */
    position: relative; /* Needed for absolute positioning of footer */
}

header {
    position: fixed; /* Make the header fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: var(--header-height); /* Use the defined header height */
}

nav .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px; /* Adjust padding to fit within header height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Make wrapper take full header height */
}

.wrapper .logo a {
    color: var(--text-color-light);
    font-size: 1.8rem; /* Adjust logo size for fixed header */
    font-weight: normal; /* Monospace fonts are often not bold */
    text-decoration: none;
    font-family: var(--font-family-heading);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 15px; /* Adjust spacing for fixed header */
}

.nav-links li a {
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 0.9rem; /* Adjust font size for fixed header */
    font-weight: normal;
    padding: 10px 15px; /* Adjust padding for fixed header */
    border-radius: var(--border-radius);
}

.nav-links li a:hover {
    background-color: var(--secondary-color);
}

.menu-btn {
    color: var(--text-color-light);
    font-size: 1.6rem; /* Adjust icon size for fixed header */
    cursor: pointer;
    background: transparent;
    border: none;
    display: none;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height); /* Position below the fixed header */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height)); /* Fill remaining viewport height */
        background: var(--primary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(-100%);
        transition: transform var(--transition-duration) ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 15px 0; /* Adjust spacing for mobile fixed header */
    }

    .menu-btn {
        display: block;
    }
}

/* If your blog content is within a specific container inside the section */
.blog-container {
    max-width: var(--blog-max-width);
    margin-left: auto;
    margin-right: auto;
}

main .section {
    max-width: 1100px; /* Default max-width for other sections */
    margin: 3% auto; /* Adjust margin for fixed header/footer */
    padding: 40px 30px; /* Adjust padding for fixed header/footer */
}

.section-content h2 {
    text-align: center;
    margin-bottom: 30px; /* Increased space below main heading */
    color: var(--text-color-dark);
    font-size: 2.2rem; /* Adjust heading size for fixed header/footer */
    font-weight: normal;
    font-family: var(--font-family-heading);
    border-bottom: 2px solid var(--accent-color); /* Add a subtle accent line */
    padding-bottom: 0.5em; /* Space between text and line */
    margin-bottom: 1em; /* More space below the line */
}

.section-content h3 {
    color: var(--accent-color); /* Make subheadings the accent color */
    font-size: 1.4rem; /* Slightly larger subheading */
    font-weight: normal;
    margin-top: 1.5em; /* Add space above subheadings */
    margin-bottom: 0.75em; /* Add space below subheadings */
    font-family: var(--font-family-heading); /* Use heading font */
}

.section-content p {
    color: var(--text-color-dark);
    font-size: 0.9rem; /* Adjust font size for fixed header/footer */
    line-height: 1.6; /* Adjust line height for fixed header/footer */
    margin-bottom: 1em; /* Add space between paragraphs */
}

.section-content p {
    color: var(--text-color-dark);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1em;
}

.section-content ul {
    list-style: disc; /* Changed to bulleted list */
    padding-left: 20px; /* Add left padding for the bullets */
    margin-bottom: 15px; /* Add some bottom margin */
    display: block; /* Revert to block display for bullet points */
}

.section-content ul li {
    display: list-item; /* Ensure they behave as list items */
    font-size: 0.9rem;
    color: var(--text-color-dark);
    margin-bottom: 8px; /* Add spacing between list items */
}

/* Style for paragraphs containing links within blog sections */
.blog-links-paragraph {
    color: var(--text-color-dark); /* Inherit default text color */
    font-size: 1.1rem; /* Increased font size */
    line-height: 1.8; /* Increased line height for more space */
    margin-bottom: 1.5em; /* Increased bottom margin for more space below */
    padding: 5%/* Add emphasis to the link paragraph */
}

.blog-links-paragraph a {
    color: var(--link-color); /* Use the theme's link color */
    text-decoration: underline; /* Underline links for clarity */
    font-weight: normal; /* Maintain normal font weight */
    font-size: 1.1rem; /* Match the paragraph font size */
}

.blog-links-paragraph a:hover {
    color: var(--link-hover); /* Use the theme's link hover color */
}

.social-links {
    margin-top: 30px; /* Adjust margin for fixed header/footer */
    text-align: center;
}

.social-icon {
    color: var(--accent-color); /* Green social icons */
    font-size: 2.5rem; /* Adjust icon size for fixed header/footer */
    margin: 0 12px; /* Adjust spacing for fixed header/footer */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--accent-hover); /* Darker green on hover */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax for fixed header/footer */
    gap: 25px; /* Adjust gap for fixed header/footer */
    margin-top: 30px; /* Adjust margin for fixed header/footer */
}

.project-item {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px; /* Adjust padding for fixed header/footer */
    transition: transform 0.2s ease-in-out;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-size: 1.2rem; /* Adjust title size for fixed header/footer */
    font-weight: normal;
    color: var(--text-color-dark);
    text-decoration: none;
    display: block;
    margin-bottom: 12px; /* Adjust margin for fixed header/footer */
    font-family: var(--font-family-heading);
}

.project-description {
    color: var(--text-color-dark);
    font-size: 0.8rem; /* Adjust font size for fixed header/footer */
    line-height: 1.6; /* Adjust line height for fixed header/footer */
}

.project-description a {
    color: var(--link-color); /* Blue links */
    font-weight: normal;
}

.project-description a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}


.blog-links-paragraph {
    color: var(--text-color-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
    padding: 5%;
}

.blog-links-paragraph a {
    color: var(--link-color);
    text-decoration: underline;
    font-weight: normal;
    font-size: 1.1rem;
}

.blog-links-paragraph a:hover {
    color: var(--link-hover);
}

.social-links {
    margin-top: 30px;
    text-align: center;
}

.blog-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-card a {
    text-decoration: none;
    color: #007bff;
    display: block;
    margin-bottom: 8px;
}

.blog-card a:hover {
    color: #0056b3;
}

.blog-card .tags {
    font-size: 0.9em;
    color: #121111;
    background-color: #9cfa89;
    padding: 2px 5px;
    border-radius: 5px;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}

.blog-card .description {
    font-size: 0.95em;
    color: #555;
}

button {
    padding: 10px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 20px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-size: 0.8rem;
    font-family: var(--font-family);
    text-align: center;
    padding: 15px 0;
    height: var(--footer-height);
    z-index: 100;
}