/* --- Global Reset and Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

/* Style to prevent scrolling when the modal is active (Added by JavaScript) */
.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* --- Header and Navigation --- */
header {
    background: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensures vertical centering */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    /* Ensures vertical centering */
}

nav ul li {
    margin-left: 20px;
    display: flex;
    /* Helps align content within the LI */
    align-items: center;
    gap: 8px;
    /* Spacing between buttons/links */
}

/* Style for all navigation buttons */
.nav-button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#logout-button {
    background-color: #dc3545;
    /* Red for logout */
}

#logout-button:hover {
    background-color: #c82333;
}

/* --- Hero Section (Keep all existing styles here) --- */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5%;
    min-height: 70vh;
    background-color: #e9ecef;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #5a6270;
}

.cta-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* --- Skills Summary (Keep all existing styles here) --- */
#skills-summary {
    padding: 60px 5%;
    text-align: center;
}

#skills-summary h2 {
    margin-bottom: 40px;
    font-size: 2em;
    color: #2c3e50;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.skill-item h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* --- Footer (Keep all existing styles here) --- */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 5%;
    border-top: 5px solid #007bff;
}

.social-links a {
    color: white;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #a0c4ff;
}

/* --- Login Modal Overlay Styling (Crucial for display) --- */
#login-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    /* Used to center the content */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#login-form-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

#login-form-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#login-button,
#close-login-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: background-color 0.3s;
}

#close-login-button {
    background-color: #6c757d;
}

/* --- Edit Mode Visuals --- */
.editing {
    border: 1px dashed #ffc107;
    padding: 5px;
    cursor: text;
    background-color: #fffacd;
    transition: background-color 0.2s;
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        padding-top: 10px;
    }

    #hero h1 {
        font-size: 2em;
    }
}

/* Add this section to your existing styles.css */

.main-content-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 5%;
}

#skills-detail h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

#skills-detail p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: #5a6270;
}

.skill-category {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-category h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #007bff;
    font-size: 1.8em;
}

.skill-category ul {
    list-style-type: none;
    /* Remove default bullets */
    padding-left: 0;
    column-count: 2;
    /* Display items in two columns for better reading */
    column-gap: 40px;
}

.skill-category li {
    padding: 5px 0;
    margin-bottom: 5px;
    font-size: 1.05em;
    border-bottom: 1px dotted #ccc;
}

/* --- Styles for Portfolio/Projects Page --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #007bff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-item h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #007bff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 15px;
}

.project-item p {
    color: #5a6270;
}