html {
    scroll-behavior: smooth;
}

:root {
    --header-height: 80px;
}

body {
    background-color: #212121;
    /*ackground-image: linear-gradient(to bottom, #212121, #2e0e00);*/
    min-height: 100vh;
}

header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #212121;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;

}

.intro {
    height: calc(100vh - var(--header-height)) ;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact h2,
.project-content h3,
.projects h2,
.about h2,
.about h3,
.header h1,
.intro h1 {
    font-family: "Zen Dots";
    color: orangered;
    letter-spacing: 2px;
}

.intro h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}

.intro h3 {
    font-family: 'Courier New';
    color: white;
    letter-spacing: 2px;
    font-size: 1.5rem;
    margin-top: 10px
}

.contact,
.projects,
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Courier New';
    gap: 1.2rem 1.2rem;
    padding-bottom: 200px;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.contact h2,
.projects h2,
.about h2 {
    font-size: 2.5rem;
    margin-top: 10px;
}

.about h3 {
    font-size: 1.5rem;
    margin-top: 10px;

}

.about-tech,
.about-main {
    display:flex;
    flex-direction: column;
    max-width: 800px;
    min-width: 800px;
    padding: 20px 60px;
    border: 1px solid orangered;
    box-shadow: inset 0px 0px 25px orangered;
    border-radius: 12px;
}

.tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tech li {
    padding: 10px 10px;
    border: 1px solid orangered;
    border-radius: 12px;
    box-shadow: inset 0px 0px 10px orangered;

}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-family: "Courier New";
}

nav a:hover {
    color: orangered;
}


.visual {
    display: inline-block;
    position: relative;
}

.visual img{
    border-top-left-radius:12px;
    border-top-right-radius: 12px;
    min-width: 400px;
    max-width: 400px;
    max-height: 300px;
    min-height: 300px;
    display:block;
}

.visual::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0px 0px 25px orangered, 
                0 20px 25px -10px orangered;
    border-top-left-radius:12px;
    border-top-right-radius: 12px;

}

.project-links {
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.project-links a {
    text-decoration: none;
    color: white;
    border: 1px solid orangered;
    padding: 10px 10px;
    border-radius: 12px;
    box-shadow: inset 0px 0px 10px orangered;
    transition: box-shadow 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.contact-btn:hover,
.project-links a:hover {
    color: orangered;
    border: 1px solid white;
    box-shadow: inset 0px 0px 10px white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.project-content {
    padding: 1.5rem;
}
.project-card {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    border: 1px solid orangered;
    border-radius: 12px;
    box-shadow: inset 0px 0px 25px orangered; 
}

.contact-list {
    align-items: center;
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
}

.contact-list a {
    color:white;
    text-decoration: none;
}

.contact-btn {
    padding: 15px 40px;
    border: 1px solid orangered;
    border-radius: 12px;
    box-shadow: inset 0px 0px 15px orangered;
    transition: box-shadow 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.email-btn {
    padding: 15px 40px;
    border: 1px solid orangered;
    border-radius: 12px;
    box-shadow: inset 0px 0px 60px orangered;
    transition: box-shadow 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.email-btn:hover {
    border: 1px solid white;
    box-shadow: inset 0px 0px 60px white;
    color: orangered;
}

.email-btn:hover a,
.contact-btn:hover a {
    color: orangered;
}