/* General Styles */
body {
    font-family: 'Roboto', sans-serif; /* Keep Roboto font */
    margin: 0;
    padding: 0;
	padding-bottom: 50px; /* Adjust based on footer height */
    background-color: #0d1117; /* GitHub dark background */
    color: #c9d1d9; /* Light gray text */
}

/* Sidebar Styles */
#sidebar {
    width: 250px;
    background: #161b22; /* Dark sidebar */
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
}

.sidebar-logo img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

#sidebar a {
    color: #c9d1d9;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
    width: 100%;
}

#sidebar a:hover {
    background: #21262d; /* GitHub's hover color */
    color: white;
}

/* Main Content Styles */
#main-content {
    margin-left: 270px;
	min-height: 100vh; /* Ensure content stretches */
    padding: 20px;
    text-align: center;
    background-color: #0d1117;
    color: #c9d1d9;
    max-width: 100%;
}

/* Section-specific Text Color */
#home, #info, #about, #contact {
    color: #c9d1d9;
}

#info h1, #about h1, #contact h1 {
    color: #ffffff; /* White headings */
}

#info p, #about p, #contact p {
    color: #b1bac4; /* Slightly muted gray for better contrast */
}

#info a, #about a, #contact a {
    color: #58a6ff; /* GitHub blue for links */
    text-decoration: none;
}

#info a:hover, #about a:hover, #contact a:hover {
    text-decoration: underline;
    color: #79c0ff; /* Lighter blue on hover */
}

/* Blog Post Styling */
.blog-post {
    background-color: #161b22; /* Darker gray */
    border-radius: 15px; /* Kept rounded corners */
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post h3 {
    font-size: 20px;
    color: #c9d1d9;
}

.blog-post p {
    font-size: 14px;
    color: #b1bac4;
}

.blog-post a {
    color: #58a6ff;
    font-weight: bold;
}

.blog-post a:hover {
    text-decoration: underline;
}

/* Boxed Content with Rounded Borders */
.about-box {
    background: #161b22;
    border-radius: 15px; /* Kept rounded corners */
    padding: 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    #main-content {
        margin-left: 0; /* Adjust for tablets */
        padding: 20px;
    }
}

@media (max-width: 768px) {
    #main-content {
        margin-left: 0; /* Remove margin for small screens */
        padding: 15px;
    }

    .blog-post,
    .about-box {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #main-content {
        padding: 10px;
    }

    .blog-post h3 {
        font-size: 18px;
    }

    .blog-post p {
        font-size: 13px;
    }
}

/* Footer Styles */
#footer {
    background: #161b22;
    color: #c9d1d9;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px;
    }

    #main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* Contact Form Styling */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background-color: #222;
    color: #fff;
    border-radius: 0; /* Square edges */
    font-size: 16px;
}

#contact-form button {
    background-color: #1e88e5;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 0; /* Square edges */
    font-size: 16px;
}

#contact-form button:hover {
    background-color: #1565c0;
}

.container {
    width: 90%;
    max-width: 700px; /* Prevent it from being too wide */
    margin: 20px auto;
    background: #161b22;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 0; /* Square edges */
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allows elements to wrap on smaller screens */
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background-color: #222;
    color: white;
    border-radius: 0; /* Square edges */
    font-size: 16px;
}

.btn-dark {
    background-color: #1e88e5;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    border-radius: 0; /* Square edges */
    font-size: 16px;
}

.btn-dark:hover {
    background-color: #1565c0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .form-row {
        flex-direction: column; /* Stack inputs vertically on small screens */
    }

    #contact-form input,
    #contact-form textarea {
        padding: 10px;
        font-size: 14px;
    }

    #contact-form button {
        padding: 10px;
        font-size: 14px;
    }
}
