body,
html {
    min-height: 100vh;
    font-family: "Noto Sans", sans-serif;
    font-optical-sizing: auto;
    overflow-x: hidden;
}

body.no-scroll,
html.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Merriweather", serif;
    font-optical-sizing: auto;
    font-weight: 600;
}

.cover-container {
    max-width: 1320px;
    min-height: 100vh;
    height: auto;
}

.nav-masthead .nav-link+.nav-link {
    margin-left: 1rem;
}

.project-container {
    text-align: left;
}

.navbar-toggler {
    z-index: 1050 !important;
}

.worked-logo {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.worked-logo:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .worked-logo {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .worked-logo {
        height: 40px;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        color: black;
        padding-top: 4rem;
        z-index: 1049;
        overflow-y: auto;
    }

    #navbarNav.show {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-collapse .navbar-nav {
        text-align: left;
        padding: 0 2rem;
    }

    .navbar-collapse .nav-item {
        border-bottom: 1px solid #ccc;
    }

    .navbar-collapse .nav-link {
        color: black !important;
        font-size: 1.5rem;
        text-align: left !important;
        padding: 1rem 0 !important;
        position: relative;
        display: block;
    }

    /* "-" per elementi normali */
    .navbar-collapse .nav-item:not(.dropdown) .nav-link::before {
        font-weight: 100;
        font-size: 2rem;
        content: "- ";
        margin-right: 0.2rem;
    }

    /* "+" per dropdown chiusi, "-" per dropdown aperti */
    .navbar-collapse .nav-item.dropdown .nav-link::before {
        font-weight: 100;
        font-size: 2rem;
        content: "+ ";
        margin-right: 0.2rem;
        transition: all 0.3s ease;
    }

    .navbar-collapse .nav-item.dropdown .nav-link::after {
        content: none;
    }

    .navbar-collapse .nav-item.dropdown.show .nav-link::before {
        content: "- ";
    }

    /* Stili per i dropdown menu */
    .navbar-collapse .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        padding-left: 2rem;
    }

    .navbar-collapse .dropdown-item {
        color: black;
        font-size: 1.3rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid #ccc;
        background: transparent;
    }

    .navbar-collapse .dropdown-item::before {
        margin-right: 0.5rem;
    }

    .navbar-collapse .dropdown-item:hover {
        background-color: #f8f9fa;
    }
}

.profile-img {
    width: 75%;
    max-width: 300px;
    height: 450px;
    object-fit: cover;
    object-position: bottom center;

    margin: 0 auto;
}

.profile-img-mobile {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.project-img-box-wrapper {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.project-img-box-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==== MOUSE SCROLL INIDCATOR ====*/
.mouse {
    margin: 0px auto;
    width: 100px;
}

.mouse-icon {
    width: 18px;
    height: 28px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
    text-align: center;

    animation: mouse-bounce 1.6s ease-in-out infinite;
}

.mouse-wheel {
    height: 3px;
    margin: 2px auto 0;
    display: block;
    width: 2px;
    background-color: black;
    border-radius: 50%;
    -webkit-animation: 1.6s ease infinite wheel-up-down;
    -moz-animation: 1.6s ease infinite wheel-up-down;
    animation: 1.6s ease infinite wheel-up-down;
}

@-webkit-keyframes wheel-up-down {
    0% {
        margin-top: 2px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        margin-top: 10px;
        opacity: 0;
    }
}

@-moz-keyframes wheel-up-down {
    0% {
        margin-top: 2px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        margin-top: 10px;
        opacity: 0;
    }
}

@keyframes wheel-up-down {
    0% {
        margin-top: 2px;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        margin-top: 10px;
        opacity: 0;
    }
}

@keyframes mouse-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}


/* ================ POST 
/* Hero Section Styles */
.hero-section {
    min-height: 35vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 30vh;
    }
}

@media (min-width: 1200px) {
    .hero-section {
        min-height: 40vh;
    }
}

.hero-bg img {
    object-fit: cover;
}

.hero-content {
    min-height: inherit;
    z-index: 2;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-content .content {
    text-align: left;
}

/* Post Content Styles */
.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .post-content {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

.post-content .content h2,
.post-content .content h3,
.post-content .content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content .content p {
    margin-bottom: 1.5rem;
}

.post-content .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .post-content .display-4 {
        font-size: 2rem !important;
    }

    .post-content .lead {
        font-size: 1rem !important;
    }

    .hero-section {
        min-height: 50vh;
    }
}