.hero-diagonal {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.diagonal-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.diagonal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.content-side {
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.image-side {
    position: relative;
    z-index: 1;
    margin-left: -15%;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .diagonal-content {
        grid-template-columns: 1fr;
    }
    
    .content-side {
        clip-path: none;
        padding: 3rem 1.5rem;
    }
    
    .image-side {
        margin-left: 0;
        min-height: 400px;
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #9b59b6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-scrolled {
    position: relative;
}

.nav-link-scrolled::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #9b59b6;
    transition: width 0.3s ease;
}

.nav-link-scrolled:hover::after {
    width: 100%;
}

#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .nav-link {
    color: #34495e;
}

#navbar.scrolled .nav-link:hover {
    color: #9b59b6;
}

.animate__animated {
    animation-duration: 1s;
}

@media (max-width: 768px) {
    .animate__animated {
        animation-duration: 0.6s;
    }
}