/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

header {
    text-align: center;
    padding: 2rem;
    background-color: #000080;
    color: #fff;
}

header h1 {
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    background-color: #444;
    padding: 1rem;
    list-style-type: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: #f0c14b;
}

html, body {
    height: 100%;
    line-height: 1.6;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Intro Section Styling */
#intro {
    max-width: 750px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.profile-img {
    max-width: 200px;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 2rem;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive styles for smaller screens */
@media (max-width: 767px) {
    #intro {
        flex-direction: column; /* Stack items vertically */
        text-align: center;
        gap: 1.5rem;
    }

    .profile-img {
        max-width: 150px;
        margin: 0 auto; /* Center image */
    }

    .intro-text {
        width: 100%;
    }
}

/* Responsive navigation bar */
nav ul {
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0.5rem 1rem;
}

/* Ensure header text adjusts for smaller screens */
header h1 {
    font-size: 2rem;
}

header p {
    font-size: 1rem; /* Adjust paragraph size */
}

/* Reduce footer font size for smaller screens */
footer {
    font-size: 0.8rem;
    padding: 1rem;
}

/* Lightbox Overlay */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensures it appears on top */
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#contact-info {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#contact-info a {
    color: #0066cc;
    text-decoration: none;
}

#contact-info a:hover {
    text-decoration: underline;
}

#about-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#about-content h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #f0c14b;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

#about-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

#about-content ul {
    margin: 1rem 0;
    padding: 0 1rem;
    list-style-type: square;
}

#about-content li {
    font-size: 1rem;
    margin: 0.5rem 0;
}

#projects-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project {
    margin-bottom: 2rem;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.project h2 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#resume-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#resume-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.resume-embed {
    margin-top: 1rem;
}

.download-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.download-link:hover {
    background-color: #005bb5;
}

#contact-form-section {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 1rem;
    font-weight: bold;
}

form input, form textarea {
    margin-top: 0.5rem;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

form button:hover {
    background-color: #005bb5;
}

#form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
}

/* Project Table Styles */

/* Responsive Table Container */
.projects-table-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile devices */
    margin: 2rem auto;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.projects-table th, .projects-table td {
    padding: 1.5rem;
    text-align: left;
    border: 1px solid #ddd;
}

.projects-table th {
    background-color: #000080;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.projects-table tr {
    height: 3rem;
}

.projects-table tr:nth-child(even) {
    background-color: #f4f4f4;
}

.projects-table a {
    color: #0066cc;
    text-decoration: none;
}

.projects-table a:hover {
    text-decoration: underline;
}

/* Adjust for small screens */
@media (max-width: 768px) {
    .projects-table th, .projects-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}
