body, html {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    color: #e0e0e0;
    background-color: #121212;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

a {
    color: #FFD369;
}

strong {
    color: #FFD369;
    font-weight: 700;
}

.scroll-container {
    position: relative;
    z-index: 0;
    background-color: #121212;
    font-family: 'Rubik', sans-serif;
}

.model-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: -1;
    margin-top: -100vh;
    overflow: hidden;
}

model-viewer {
    width: 100%;
    height: 100%;
    display: block;
    --poster-color: transparent;
    transition: all 0.5s ease-in-out;
}

.master-title {
    height: 100vh;
    font-family: "Bebas Neue", sans-serif;
    text-align: left;
    padding-left: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 600px) {
    .master-title {
        margin-top: -60vw;
    }
}

.master-title .surname {
    font-size: 15vw;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.master-title .name {
    font-size: 17vw;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.master-title .title {
    font-size: 6vw;
    color: #FFD369;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    line-height: 1;
    letter-spacing: -1px;
}

/* Scroll Icon Container */
#scroll-icon-container {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    opacity: 1;
    transition: opacity 1.5s ease-out;
}

/* Base style for the scroll icon */
.scroll-down-icon {
    width: 30px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-down-icon::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
    transform: translateX(-50%) rotate(45deg);
}

/* Keyframes for the bouncing animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(3px);
    }
}

/* Class to hide the icon */
.fade-out {
    opacity: 0;
    pointer-events: none;
}

#presentation-section {
    height: 150vh;
    padding: 10vh 5vw;
    position: relative;
    background: linear-gradient(0deg,rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0) 35%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#presentation-section p {
    padding: 5%;
    position: sticky;
    top: 80%;
    max-width: 800px;
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    text-align: justify;
}

#presentation-section p a{
    color: #FFD369;
    transition: color 0.3s ease;
}

#presentation-section p a:hover {
    color: #FF9A00;
}

#presentation-section img {
    padding: 5%;
    padding-bottom: 10%;
    top: 5%;
    position: sticky;
    display: block;
    margin-left: auto;
}

.scroll-text-content {
    background-color: rgba(18, 18, 18, 0.8);
    min-height: 100vh;
    padding: 5vh 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-text-content .content-wrapper {
    display: flex;
    height: auto;
    width: 90%;
    max-width: 1200px;
    padding: 5vh 0;
    gap: 5vw;
    align-items: flex-start;
}

.scroll-text-content .header-column {
    flex: 1;
    padding: 0;
    position: sticky;
    top: 5vh;
}

.scroll-text-content .text-column {
    flex: 2;
    padding: 0;
}

.scroll-text-content img {
    align-items: center;
    justify-content: center;
}

.scroll-text-content h1 {
    vertical-align: top;
    text-align: left;
    margin: 0;
    font-size: clamp(30px, 6vw, 60px);
    text-shadow: 0px 0px 7px #121212;
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 2px;
}

.scroll-text-content h1:first-letter {
    font-size: clamp(50px, 8vw, 80px);
    line-height: .75;
}

.scroll-text-content .text-column {
    width: 100%;
    padding: 0;
    padding-left: 20px;
    padding-top: auto;
    margin-top: 20px;
    font-family: 'Rubik', sans-serif;
    line-height: 1.6;
    opacity: 0.8;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    text-align: justify;
}

.scroll-text-content .text-column ul {
    list-style-type: '— ';
    margin-left: 10px;
}

.scroll-text-content .text-column li {
    padding-left: 5px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .master-title {
        padding-left: 5vw;
        text-align: center;
    }

    .master-title .surname,
    .master-title .name {
        font-size: 15vw;
        letter-spacing: 0px;
    }

    .scroll-text-content {
        padding: 5vh 0;
        padding-right: 20px;
    }

    .scroll-text-content .content-wrapper {
        flex-direction: column;
        width: 90%;
    }

    .scroll-text-content .header-column {
        position: relative;
        top: 0;
    }

    .scroll-text-content h1 {
        position: relative;
        margin-bottom: 20px;
        text-align: center;
    }
    .scroll-text-content .text-column {
        display: inline-block;
        overflow: hidden;
        text-justify: center;
    }
}

.contact-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 100;
}

.contact-section .header-column {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-section .header-column h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(30px, 6vw, 60px);
    text-shadow: 0px 0px 7px #121212;
    letter-spacing: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background-color: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
}

.form-group-container {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    font-family: 'Rubik', sans-serif;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background-color: #212121;
    border: 1px solid #444;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #FFD369;
    box-shadow: 0 0 0 3px rgba(163, 222, 131, 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    padding: 12px 30px;
    background-color: #FFD369;
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #FF9A00;
}

@media (max-width: 600px) {
    .contact-form {
        max-width: 80%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-submit {
        width: 100%;
    }
}

.my-footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0d0d0d;
    font-size: 0.8rem; /* Make the font smaller */
    padding: 20px;
    z-index: 100;
    color: #555; /* Change font color to a darker gray */
    line-height: 1.5; /* Add some line spacing */
    text-align: center; /* Center align the text */
}

.my-footer p {
    margin: 0; /* Remove default paragraph margins */
}

.my-footer a {
    color: #555; /* Make link color match the text */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease;
}

.my-footer a:hover {
    color: #e0e0e0; /* A subtle change on hover for better UX */
}