html {
    scroll-behavior: smooth;
}

body {
    padding-top: 56px;
}

/* Fixed navbar alignment */
.navbar {
    align-items: center !important;
}

.navbar > .container-fluid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 56px; /* Set explicit height */
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

.navbar-collapse {
    flex-grow: 0 !important;
}

.navbar-nav {
    align-items: center !important;
    margin: 0 !important;
}

.navbar-nav .nav-item {
    margin: 0 !important;
}

.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1 !important;
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #343a40;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 0;
    }

    .navbar-nav .nav-item {
        margin: 0 !important;
        border-bottom: 1px solid #495057;
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        color: #fff !important;
        text-align: left;
        border-radius: 0;
        transition: background-color 0.3s;
    }

    .navbar-nav .nav-link:hover {
        background-color: #495057;
    }
}

.hero-section {
    /* background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed; */
    background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-section .content-wrapper {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
}

.profile-pic {
    border-radius: 15px;
    border: 3px solid white;
    max-width: 200px;
}

h1, h3 {
    font-weight: bold;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0d6efd;
}

.btn-cv {
    background-color: #343a40;
    border-color: #343a40;
    padding: 10px 20px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.btn-cv:hover {
    background-color: #495057;
    border-color: #495057;
}

.bio, .education-item {
    margin-bottom: 20px;
}

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

ul li {
    margin-bottom: 10px;
}

.education-item p {
    margin-bottom: 0;
}

.content-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Image Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Changed from flex to fixed */
    z-index: 1050; /* Sit on top (higher than Bootstrap modals) */
    padding-top: 150px; /* Location of the box */
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90vw; /* Use viewport width instead of fixed width */
    max-height: 80vh; /* Limit height to viewport height */
    width: auto; /* Let width be automatic */
    height: auto; /* Let height be automatic */
    object-fit: contain; /* Ensure the image fits within the bounds */
    transition: transform 0.3s ease-out; /* Smooth transition for zoom */
    cursor: zoom-in;
}


.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.popup-image {
    cursor: pointer;
}

.image-link {
    display: block;
    cursor: pointer;
}