html {
    scroll-behavior: smooth;
}
body {
    background-color: #fedee5;
    color: #443333;
    font-family: Arial, Helvetica;
    margin: 0.5px;
}

/* shared: start */
.background {
    position: relative;
    overflow: hidden;
}
/* shared: end */

/* navigationbar: start */
.navbar {
    background: #fff5f6;
    top: 16px;
    margin: auto;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: fit-content;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-evenly;
    padding: 10px 35px 10px 30px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10;
}
.navbar a {
    color: #443333;
    font-family: "Courier New", Courier, monospace;
    font-size: 28px;
    font-weight: bolder;
    text-decoration: none;
    padding-left: 62px;
}
.navbar a:hover {
    color: #e12950;
}
.navbar .logo {
    height: 100%;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}
ul.navlink {
    list-style-type: none;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    padding-right: 10%;
}
/* navigationbar: end */

/* home: start */
.cover1 {
    display: block;
    width: 100%;
    z-index: 1;
}
.hometext {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #443333;
    animation: fadeUp 1s ease-out forwards;
    z-index: 2;
    gap: clamp(45px, 8vw, 90px);
}
h1 {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(28px, 6vw, 70px);
    margin: 0;
}
em {
    color: #e12950;
}
.cursor {
    animation: blink 1s step-end infinite;
}
.arrow1 {
    display: block;
    margin: 0;
    max-width: 125px;
    width: 23%;
    height: auto;
    transform: rotate(110deg);
    opacity: 60%;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 30%));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}
@keyframes blink {
    from,
    to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
/* home: end */

/* about: start */
.cover2 {
    display: block;
    width: 100%;
    z-index: 1;
}
.aboutbox {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    max-width: 95%;
    height: fit-content;
    max-height: 95%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 4px solid #443333;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
}
.aboutbox-header {
    width: 100%;
    height: clamp(35px, 6vw, 55px);
    flex-shrink: 0;
    background: #443333;
    color: white;
    font-family: "Courier New", Courier, monospace;
    font-weight: bolder;
    font-size: clamp(16px, 3vw, 26px);
    display: flex;
    align-items: center;
    padding-left: 7%;
}
.aboutbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 50px) clamp(20px, 5vw, 50px) clamp(20px, 5vw, 50px);
}
.icon2 {
    width: clamp(80px, 26vw, 280px);
    height: clamp(80px, 26vw, 280px);
    object-fit: cover;
    border-radius: 50%;
    margin-top: clamp(15px, 5vw, 40px);
    margin-bottom: clamp(10px, 4vw, 25px);
}
.aboutbox h3 {
    font-family: "Courier New", Courier;
    font-size: clamp(24px, 8vw, 65px);
    margin-top: 0;
    margin-bottom: -5px;
    white-space: nowrap;
}
.aboutbox em {
    margin-bottom: 15px;
}
.aboutbox p {
    margin: 0;
    font-size: clamp(16px, 3vw, 24px);
    white-space: nowrap;
}
/* about: end */

/* portfolio: start */
#portfolio .background {
    background-color: #e76875;
    aspect-ratio: 2048 / 1134;
    z-index: 1;
}
.portfoliobox {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: fit-content;
    max-width: 95%;
    height: fit-content;
    max-height: 95%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background: white;
    border: 4px solid #443333;
    border-radius: 10px;
    overflow: hidden;
}
.portfoliobox-header {
    width: 100%;
    height: 40px;
    flex-shrink: 0;
    background: #443333;
    color: white;
    font-family: "Courier New", Courier, monospace;
    font-weight: bolder;
    font-size: 20px;
    display: flex;
    align-items: center;
    padding-left: 2%;
    text-transform: lowercase;
}
.portfoliobox-scroll {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    padding: clamp(15px, 3vw, 40px);
}
.portfolio-item {
    display: block;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}
.portfolio-item img {
    display: block;
    width: clamp(180px, 26vw, 420px);
    height: clamp(180px, 26vw, 420px);
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.portfolio-item:hover img {
    transform: scale(1.03);
}

/* lightbox popup */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.lightbox:target {
    display: flex;
}
.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}
.lightbox-content {
    position: relative;
    z-index: 1001;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}
.lightbox-caption {
    color: white;
    text-align: center;
    font-size: 16px;
    margin: 16px 0 0 0;
    max-width: 500px;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    text-decoration: none;
    line-height: 1;
}
/* portfolio: end */

/* contact: start */
#contact {
    background: #19120f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nanoschschlik {
    width: clamp(80px, 40vw, 400px);
    height: auto;
    margin-bottom: 20px;
}
#contact h4 {
    font-family: "Courier New", Courier, monospace;
    font-size: clamp(18px, 7vw, 35px);
    font-weight: bolder;
    letter-spacing: 2px;
    color: #e12950;
    margin: 20px 0 8px 0;
}
#contact h5 {
    font-size: clamp(12px, 2vw, 14px);
    color: white;
    margin-bottom: 20px;
}
#contact p {
    font-size: clamp(12px, 2vw, 14px);
    color: white;
    margin: 0;
}
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}
.social-icons img {
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.social-icons a:hover img {
    transform: scale(1.1);
}
/* contact: end */

/* responsive overrides: start */
@media (max-width: 1200px) {
    .aboutbox {
        max-width: 90%;
        max-height: 90%;
    }
    .aboutbox-header {
        height: clamp(30px, 5vw, 40px);
        font-size: clamp(14px, 2.5vw, 20px);
        padding-left: 10%;
    }
    .aboutbox-body {
        padding: 0 clamp(15px, 4vw, 30px) clamp(15px, 4vw, 30px) clamp(15px, 4vw, 30px);
    }
    .icon2 {
        width: clamp(60px, 20vw, 200px);
        height: clamp(60px, 20vw, 200px);
        margin-top: clamp(10px, 4vw, 30px);
        margin-bottom: clamp(8px, 3vw, 20px);
    }
    .aboutbox h3 {
        font-size: clamp(18px, 6vw, 40px);
    }
    .aboutbox p {
        font-size: clamp(14px, 2.5vw, 15px);
    }
}
/* responsive overrides: end */
