/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, main {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-size: 1rem;
    color: white;
    font-family: "Cutive", sans-serif;
}

/* Navigation CSS */
nav, .navbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 3rem;
    z-index: 2;
}

p {
    font-size: 1.2rem;
}

h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
}

h3 {
    padding-top: 1rem;
}

.navbar {
    gap: 3rem;
}

.navbar a {
    color: inherit; /* Use inherited color (white) */
    text-decoration: none;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* Background CSS */
.background1 {
    width: 100%;
    height: 100%;
    background: url(../images/BackgroundImage.jpg) center/cover no-repeat;
    position: fixed;
    z-index: -1;
}

/* Information Section CSS */
#welcome, #about, #portfolio-link, #contact {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#welcome {
    background-color: transparent;
}

#welcome h1 {
    font-size: 6rem;
    margin: 1rem;
}

#about, #contact {
    background-color: #181818;
    padding: 100px 20vw;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
}

section {
    z-index: 0;
    position: relative;
    min-height: 100vh;
    background-color: #121212;
}

/* Image Grid */
#portfolio-link {
    min-height: 100vh;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
}

#blur-div {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
}

.blur {
    background-color: rgba(48, 47, 47, 0.253);

    backdrop-filter: blur(6px);
}

#image-grid-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 3rem;
}

.slider {
    overflow: hidden;
    padding: 5px 0;
    white-space: nowrap;
    position: relative;
}

.slider-track{
    display: inline-block;
    animation: 60s scroll infinite linear;
}

.slider-inverse {
    display: inline-block;
    animation: 60s scroll-inverse infinite linear;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes scroll-inverse {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.hidden {
    opacity: 0;
    transition: opacity 3s;
}

.hidden-portfolio {
    opacity: 0;
    transition: opacity 3s;
}

.show {
    opacity: 1;
}

.button {
    background-color: transparent;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 2px;
    cursor: pointer;
    border: 2px solid white;
    border-radius: 8px;
    transition-duration: 0.4s;
}

.button:hover {
    background-color: white;
    color: black;
}

img {
    max-height: 33vh;
    object-fit: contain;
}

/* Logo */
#logo {
    width: 5%;
    height: 5%;
    min-width: 50px;
    min-height: 50px;
    max-width: 75px;
    max-height: 75px;
}

/* Media Queries */
@media only screen and (max-width: 600px) {
    #welcome h1 {
        font-size: 4rem;
        text-align: center;
    }
    h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    h3 {
        text-align: center;
    }
    p {
        font-size: 1rem;
    }

    #about, #contact {
        padding: 100px 5vw;
    }
}

@media only screen and (max-width: 400px) {
    h2 {
        font-size: 1.3rem;
        text-align: center;
    }
    h3 {
        font-size: 1rem;
        text-align: center;
    }
}