/* Make the whole navbar slightly taller and clean */
.navbar {
    background-color: rgb(250, 248, 249);
    padding: 12px 40px;
    box-shadow: 0 2px 5px rgba(230, 152, 152, 0.1);
}

.navbar-brand span {
    font-size: 1.9rem;
}

/* Base link style */
.nav-link {
    font-size: 20px;
    padding: 14px 24px;
    font-weight: 500;
    color: rgb(0, 0, 0) !important;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 5px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
}

/* Hover effect for normal links: black border, white background, black text */
.nav-link:not(.active-link):hover {
    border-color: black !important;
    background-color: white !important;
    color: black !important;
}

/* Active link styling */
.active-link {
    background-color: black !important;
    color: white !important;
    border: 2px solid black;
    border-radius: 5px;
    padding: 14px 24px;
    box-sizing: border-box;
}

/* Hover on active link: black border, white background, black text */
.navbar .active-link:hover {
    border-color: black !important;
    background-color: white !important;
    color: black !important;
}

/* Global page styles (unchanged) */
html,
body {
    background-color: #f4aa4b !important;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

body::after {
    content: "";
    display: block;
    height: 50px;
}

.container {
    min-height: 100vh;
}

/* Profile section */
#profile-wrapper {
    text-align: center;
}

#profile-wrapper img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

ul {
    padding: 0;
    list-style-type: none;
}

.social-links li {
    display: inline-block;
    list-style: none;
    margin-right: 10px;
}

.social {
    width: 50px !important;
    height: 50px !important;
    margin: 5px;
}

.center-brand {
    position: absolute;
    font-weight: bold;
    left: 50%;
    transform: translateX(-50%);
}

/* Contact links hover effect */
.contact-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-link:hover {
    color: #0056b3;
    border-bottom: 2px solid #007bff;
}

/* Hero and project images */
.hero-image img,
.card img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.card .hero-image img+img {
    margin-top: 10px;
}

/* Mobile / tablet */
@media (max-width: 768px) {
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
        padding: 40px 20px;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center;
    }

    .card img {
        width: 90%;
        max-width: none;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 3.1rem;
    }

    .hero-text h1 span {
        color: #007bff;
    }

    .hero-text p {
        font-size: 1.3rem;
    }
}

/* Desktop / larger screens */
@media (min-width: 769px) {
    .hero {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding-top: 0;
        min-height: 100vh;
    }

    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text p {
        font-size: 1.5rem;
    }

    .hero-text h1 span {
        color: #007bff;
    }

    .hero-image img {
        max-width: 550px;
        object-fit: cover;
    }
}

/* Desktop-specific PROJECT HTML images */
@media (min-width: 769px) {
    .project .hero-image img {
        max-width: 700px;
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .project .hero-image img+img {
        margin-top: 15px;
    }
}