.primary-gradient { background: linear-gradient(60deg, #49dfc8, #1bbda4); }
.secondary-gradient { background: linear-gradient(60deg, #ffd9b4, #ffcc99); }

.hero-with-photo {
    position: relative;
}

.hero-with-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('photo/edi-hero.webp') center 12%/cover;
    z-index: 1;
}

.hero-with-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(73, 223, 200, 1) 0%, rgba(73, 223, 200, 0) 60%, transparent 40%);
    z-index: 1;
}

.hero-with-photo > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 1096px) {
    .hero-with-photo::before {
        background: url('photo/edi-hero.webp') 82% 0%/cover;
    }

    .hero-with-photo::after {
        background: linear-gradient(to top, rgba(73, 223, 200, 1) 0%, rgba(73, 223, 200, 0) 40%, transparent 60%);
    }
}

@media (min-width: 1097px) {
    .desktop-menu {
        display: flex !important;
    }

    .mobile-menu-button {
        display: none !important;
    }
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #49dfc8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

/* Smooth underline transition for hover:underline */
.hover\:underline {
    position: relative;
    text-decoration: none !important;
    display: inline-block;
}

.hover\:underline:hover {
    text-decoration: none !important;
}

.hover\:underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.hover\:underline:hover::after {
    transform: scaleX(1);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #49dfc8;
    color: #050505;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #3cc7b2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.scroll-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.scroll-to-top:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile menu sliding animation */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-menu.show {
    opacity: 1;
    visibility: visible;
}

#mobile-menu .menu-content {
    width: 280px;
    height: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

#mobile-menu.show .menu-content {
    transform: translateX(0);
}

#mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #050505;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#mobile-menu .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}