/* -------------------------------------------------------------------------- */
/* 6) HERO SECTION & BACKGROUND IMAGE */
/* -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: -1;
}

/* The .bg-image within .hero */
/* For static background images, always visible */
.bg-static {
    opacity: 1;
    transition: none;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Your existing styles for the hero section remain unchanged */
.relative-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}


.bg-static.show {
    opacity: 1;
}

/* Gradient overlay on hero */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.388),
            rgba(0, 0, 0, 0.432),
            rgba(0, 0, 0, 0.356),
            rgba(0, 0, 0, 0.298),
            rgba(0, 0, 0, 0.256));
    z-index: -1;
    pointer-events: none;
}

body.dark-mode .gradient-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7),
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.3));
}

/* Page title in hero */
.page-title {
    width: 100%;
    position: fixed;
    top: 3.5em;
    text-align: center;
    color: #d3ff96;
    font-size: 3.5em;
    border: none;
    padding: 0.3em;
    z-index: -1;
}

.relative-background {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}



/* -------------------------------------------------------------------------- */
/* PORTFOLIO SECTION */
/* -------------------------------------------------------------------------- */
#portfolio {
    max-width: auto;
    margin: 0 auto;
    text-align: center;
    background-color: #aebbb0;
    padding: 10em 1em;
}

body.dark-mode #portfolio {
    background-color: #111;
}

@media (max-width: 1030px) {
    #portfolio {
        padding: 4em 1em;
    }
}

#portfolio h2 {
    margin-bottom: 2em;
    font-size: 5em;
    color: #ca2929;
}

/* Gradient text & hover gradient */
.gradient-text {
    background: linear-gradient(to right, #2f32ff, #dd2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text:hover {
    background: linear-gradient(to right, #ef2121, #02a93a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Portfolio flex container */
.portfolio-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6em;
    justify-content: center;
}

/* Each portfolio item */
.portfolio-item {
    flex: 1 1 400px;
    max-width: 400px;
    box-sizing: border-box;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item img:hover {
    transform: scale(1.07);
}

.portfolio-item p {
    margin-top: 0.5em;
    font-weight: 600;
    font-size: 1.1em;
}

.portfolio-item p a {
    color: #000000;
    text-decoration: none;
}

.portfolio-item p a:hover {
    text-decoration: underline;
}

/* Dark mode for portfolio links */
body.dark-mode .portfolio-item p a {
    color: #ebc60e;
    text-decoration: none;
}

/* Portfolio responsiveness */
@media (max-width: 600px) {
    .portfolio-flex {
        gap: 1em;
    }

    .portfolio-item {
        max-width: 100%;
    }
}