/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Light gray background */
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    text-align: justify; /* Justify all text in the body */
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a; /* Dark gray background */
    padding: 1em 2em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar-brand {
    font-size: 1.5em;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.3s;
}

.navbar-brand:hover {
    color: #de814d; /* Orange hover color */
}

.navbar-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin-left: 1.5em;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background 0.3s, color 0.3s;
}

.navbar-links a:hover {
    background-color: #de814d; /* Orange background on hover */
    color: #1a1a1a; /* Dark text color on hover */
}

/* Mobile Menu */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle .bar {
    height: 4px;
    width: 25px;
    background-color: #fff;
    margin: 3px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sections */
.section {
    padding: 3em 2em;
    margin: 1em auto;
    margin-top: 30px; /* Adjusted to accommodate navbar */
    max-width: 1000px;
    background: #fff; /* White background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: justify; /* Justify text within sections */
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.content {
    text-align: center;
}

.section h2 {
    font-weight: 700;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 0.5em;
    transition: color 0.3s;
}

.section:hover h2 {
    color: #de814d; /* Orange color on hover */
}

.section p, .section ul {
    font-weight: 300;
    font-size: 1.1em;
    text-align: justify;
    margin: 1em 0;
    padding: 0 1em;
    transition: color 0.3s;
    font-family: 'Poppins', sans-serif; /* Ensuring font consistency */
}

.section:hover p, .section:hover ul {
    color: #555; /* Darker text color on hover */
}

/* Experience Section - Ensuring Nested List Consistency */
.section ul ul {
    font-family: 'Poppins', sans-serif; /* Ensuring font consistency for nested lists */
    font-size: 1em; /* Slightly smaller font size for nested lists */
    line-height: 1.4; /* Adjusted line height for readability */
    margin-left: 1.5em; /* Indentation for nested lists */
    list-style-type: circle; /* Different bullet style for nested lists */
}

/* Profile Section */
.profile-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.profile-pic {
    border-radius: 50%;
    border: 4px solid #1a1a1a;
    width: 150px;
    height: 150px;
    margin-bottom: 1em;
    transition: transform 0.3s, border-color 0.3s;
}

.profile-pic:hover {
    transform: scale(1.05);
    border-color: #de814d; /* Orange border on hover */
}

/* Resume Button */
#resume .btn {
    display: inline-block;
    background-color: #1a1a1a;
    color: #fff;
    padding: 0.75em 1.5em;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#resume .btn:hover {
    background-color: #333;
    transform: translateY(-5px);
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2em;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 1em;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5em;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-link:hover {
    color: #de814d; /* Orange color on hover */
}

.social-link i {
    font-size: 1.5em;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    background: #1a1a1a;
    color: #fff;
    position: relative;
    bottom: 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

footer:hover {
    background-color: #333; /* Dark background on hover */
}

.section li i {
    font-weight: bold;
    color: #a97622;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        text-align: center;
        background: #1a1a1a;
        position: absolute;
        width: 100%;
        top: 60px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar-links.show {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .section {
        padding: 2em 1em;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5em;
        justify-content: center;
    }
}

.project-desc {
    margin-left: 5px;
    margin-bottom: 8px;
}
