/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Navbar Styles */
.navbar {
    background-color: #0A66C2;
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 998;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Navbar Styles */
.navbar {
    background-color: #0A66C2;
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 998;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Hamburger Menu (Span-based style) */
.ham-menu {
    display: none;
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
    cursor: pointer;
    z-index: 999;
}

.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #6F86FF;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(2) {
    top: 50%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

/* Responsive Nav Menu */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0A66C2;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
    }

    .ham-menu {
        display: block;
    }
}

/* Other Sections (remains unchanged) */
.section {
    padding: 2rem 0;
    background-color: white;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Cover, Profile, Portfolio, Form, Footer, etc. */
/* [All your previously listed CSS remains unchanged here...] */

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    transition: max-height 0.3s ease;
    overflow: hidden;
    max-height: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
}

/* Responsive Nav Menu */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #0A66C2;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }
}

/* Section Styles */
.section {
    padding: 2rem 0;
    background-color: white;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Home Section */
.home-section .profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cover-container {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.responsive-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 300px; /* Adjustable height like LinkedIn */
}

.profile-img {
    width: 150px;
    border-radius: 50%;
    border: 5px solid white;
    margin-top: -75px; /* Half of image height for overlay effect */
    position: relative;
    z-index: 1;
}

.cover-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}



.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-top: -35px;
    border: 5px solid white;
    object-fit: cover;
}

.profile-details {
    text-align: center;
    margin-top: 1rem;
}

.location {
    color: #666;
}

/* Experience & Certificate Lists */
.experience-list,
.certificate-list {
    list-style: none;
    padding: 0;
}

.experience-list li,
.certificate-list li {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.experience-list li:last-child,
.certificate-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-list ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 0.5rem;
}

/* Portfolio */
.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-card {
    background-color: #e4d6ff;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card h3 {
    margin-top: 0;
    color: #333;
}

.portfolio-card p {
    margin-bottom: 0;
}

.portfolio-card a {
    display: inline-block;
    background-color: #0A66C2;
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
}

.portfolio-card a:hover {
    background-color: #004182;
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button {
    padding: 0.8rem;
    background-color: #0A66C2;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background-color: #004182;
}

/* Education */
.education-details {
    margin-top: 1rem;
}

.education-details h3 {
    margin-bottom: 0.5rem;
}

.education-details p {
    margin: 0.3rem 0;
    color: #555;
}

/* Footer */
.footer {
    background-color: #0A66C2;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    margin: 0.3rem 0;
}

.footer-location {
    color: #d0e4ff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.social-icons a:hover {
    color: #cce0ff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    color: #d0e4ff;
}

/* Footer & Navbar Responsive Adjustments */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons a {
        display: block;
        margin: 0.5rem 0;
    }
}
