/* General Styles */
body {
    font-family: 'Orbitron', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Control image size in blog posts */
main img {
    max-width: 100%;
    height: auto;
}

header {
    text-align: center;
    padding: 2rem 0;
    color: #00ffcc; /* Neon greenish blue */
    background-color: #101010; /* Dark background for header */
}

/* Blog post list */
ul li a {
    font-weight: bold;
    color: #00ffcc;
}

ul li a:hover {
    color: #ff00cc;
}

/* Banner styling */
.banner {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-bottom: 4px solid #00ffcc;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 0;
}

/* Navigation styling */
nav {
    position: sticky;
    top: 0;
    background-color: #101010;
    z-index: 100;
    padding: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    color: #00ffcc;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

nav ul li a:hover {
    color: #ff00cc; /* Pinkish neon on hover */
}

/* Section Styling */
section {
    padding: 3rem;
    text-align: center;
}

/* Center the content on the 404 page only */
.error-page-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    flex-direction: column;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc;
    text-align: center;   /* Center the title */
    margin-top: 40px;     /* Add space above the title */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.project-card h3 {
    color: #ff00cc;
}

/* Ensure link styling inside the project cards */
.project-card a {
    color: #00ffcc; /* Neon greenish blue to match the theme */
    text-decoration: none;
    font-weight: bold;
}

.project-card a:hover {
    color: #ff00cc; /* Pink on hover */
    text-decoration: underline;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #101010;
    color: #e0e0e0;
}

/* Social Links Styling */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #00ffcc; /* Neon greenish blue */
    font-size: 2rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff00cc; /* Pinkish neon hover */
}

.social-links i {
    margin-right: 0.5rem;
}

/* Ensure full responsiveness across all screen sizes */
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Hide the menu by default for mobile */
/* Normal desktop navbar styling */
nav ul {
    display: flex; /* Keep the menu visible as a horizontal flexbox on desktop */
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.project-card:hover {
    background-color: #333;
    transform: scale(1.05); /* Slight zoom effect */
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px #00ffcc; /* Glowing effect */
}

/* Center text and images in blog posts */
.post-content {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}
.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content img {
    max-width: 80%; /* Shrink the image to 80% of the available width */
    height: auto;   /* Maintain aspect ratio */
    margin: 20px auto; /* Center the image and add some spacing */
    display: block;
}

/* Post list styling */
.post-list {
    list-style: none;
    padding: 0;
    margin: 40px auto; /* Increase the margin around the updates section */
    max-width: 80%; /* Optional: Constrain the maximum width of the section */
}

/* Fix bullet point alignment while keeping text centered */
.post-content ul {
    text-align: left; /* Keep bullets and list items left-aligned */
    display: inline-block; /* Allow the list to be centered as a block element */
    margin-left: 0; /* Remove any default left margin */
    padding-left: 20px; /* Add custom padding to the left for the bullet points */
}

.post-item {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #1a1a1a; /* Adjust to match your site's theme */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.post-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.post-date {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-item p {
    margin: 0 0 1rem;
    color: #ccc;
}

.read-more {
    color: #00ffcc;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* Style for the hamburger icon */
.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 2rem;
    cursor: pointer;
    color: #00ffcc;
    position: fixed;
    left: 20px; /* Adjust the value to control how far from the left edge */
    top: 15px; /* Adjust the value to position vertically */
    z-index: 1000; /* Make sure it's above other elements */
}

/* Mobile-first approach for all sections */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide menu for mobile by default */
        position: fixed; /* Make the menu fixed to follow scrolling */
        left: 0; /* Align it with the left side of the screen */
        top: 50px; /* Position below the hamburger icon */
        background-color: #101010; /* Ensure the background matches */
        width: 100%; /* Full width for a dropdown menu look */
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        z-index: 999; /* Keep above the content */
    }

    .hamburger {
        display: block; /* Show hamburger icon only on mobile */
        font-size: 2rem;
        cursor: pointer;
        color: #00ffcc;
        text-align: center;
    }

    nav ul.active {
        display: flex; /* Show menu when hamburger is clicked on mobile */
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .banner {
        max-height: 200px; /* Reduce banner height for mobile */
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
        gap: 1rem;
    }

    section {
        padding: 1.5rem; /* Reduce padding for smaller screens */
    }

    h2 {
        font-size: 1.5rem;

    }

    .project-grid {
        grid-template-columns: 1fr; /* Single column for projects on small screens */
    }

    .social-links a {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    nav {
        position: relative; /* Ensure the hamburger icon is positioned relative to the nav */
    }

    .hamburger {
        display: block; /* Show the hamburger icon on mobile */
    }
}