html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
}

body {
  font-family:"Poppins",sans-serif;
  background-color:#000000;
  font-size:16px;
  padding:0 20px;
  line-height:1.6;
  color:#ffffff;
  max-width:900px;
  margin:0 auto
}

h1, h2, h3, h4, h5, h6 {
    font-weight:600;
    color:#ff0f0f;
    height: auto;
    text-align: left;
}

#nav {
    display: none;
    position: sticky;
    top: 0;
    overflow: hidden;
    background-image: linear-gradient(to bottom, #000000, #000000a4);
}
#nav h1 {
    padding-top: 5px;
    text-align: left;
} 

#nav nav {
    float: left;
    display: block;
    color: #ff0f0f;
    text-align: center;
    text-decoration: none;

}

section {
    flex: 3;
    align-items: center;
    flex-flow: column wrap;
    scroll-snap-align: center;
    scroll-behavior: smooth;
    height: 100vh;
}

.section-title {
    align-content: start;
    justify-content: start;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 5px;
}

.section-title h2 {
    font-size: 75px;
    margin-top: 20vh;
    margin-bottom: 25px;
    padding-bottom: 5px;
}

.hero-slide {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    align-content: center;
    justify-content: center;
    padding-top: 0;
    height: 100vh;

    animation-name: auto-show;
    animation-timeline: view(50% 20%);
}

.card-slide {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: start;
    height: 100vh;

    animation-name: auto-show;
    animation-timeline: view(50% 20%);

}

.slide-container {
    overflow: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth; 
    gap: 50px;
}


.image-container {
    flex: 1;
    height: auto;
    overflow: visible;
    align-content: center;
}

.portrait {
    width: 100%;
    background-image: linear-gradient(to top, #ff0f0f, #000000);
    max-width: 275px;
    height: auto;
    border-radius: 10px;
    border-width: 10px;
    border-bottom:#ff0f0f;
    object-fit: cover;
    margin-top: 40px;
    flex-wrap: wrap;
    filter: contrast(80%);
    filter: saturate(120%);
}

.intro-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    scale: 110%;
}

.hire-button {
    background-color: #ff0f0f;
    color: #ffffff;
    border: 2px solid #ff0f0f;
}

.sc-button {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ff0f0f;
}

.scroll-down {
    z-index: 10;
    position: absolute;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 90vh;
    margin-bottom: 50px;
    bottom: 50px;
    right: 25px;
    filter: invert(100%);
}

.bobbing-anim {
    position: absolute;
    height: 50px;
    width: 50px;
    bottom: 50px;
    display: flex;  
    align-items: center;
    justify-content: center;
    animation-name: bobbing;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.back-to-top {
    z-index: 2;
    position: sticky;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: right;
    margin-right: 25px;
    top: 5vh;
    text-decoration: none;
    background-color: #ff0f0f;
    border-radius: 5px;
    transition: 0.3s;
}
.back-to-top img {
    width: 50px;
    height: 50px;
    display: block;
}

.back-to-top:hover {
    scale: 110%;
    cursor: pointer;
}

.text-container {
    flex: 2;
    align-content: center;
    justify-content: center;
}

#skills.card-slide {
    gap: 10px
}

#skills .section-title{
    margin-bottom: 0;
    padding-bottom: 5px;
}

#skills .section-title h2 {
    margin-bottom: 0;
}

#skills .skill-title h3 {
    padding-top: 0;
    margin-bottom: 0;
    margin-top: 0;
    text-align: left;
}

.skill-container {
    display: flex;
    justify-content: left;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 25px;
    padding-right: 10px;
}

.skill-group {
    text-align: left;
    min-width: 160px;
}

.skill-title {
    text-align: left;
}

.skillset {
    list-style: none;
    padding: 0;
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 16px;
}

.skill-item {
    height: 30px;
    padding: 5px 10px;
    border: 1px solid #ff4a4a;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
}

.skill-image {
    width: 25px;
    height: 25px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.skill-name {
    margin: 0;
    text-align: center !important; 
    display: flex;
    flex-direction: row !important;
}


#projects h2 {
    text-align: center;
}

.proj-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    transition: 0.2;
}

.proj-list a {
    text-decoration: none;
    text-align: center;
}

.proj-list a:hover {
    scale: 110%;
}

.proj-image {
    width: 200px;
    height: 150px;
    object-fit: fill;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 1px solid #333;
}

.centered {
    position: relative;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* transform: translate(-50%, -50%); */
}

.proj-popup {
    opacity: 0;
    pointer-events: none;
    transition: 0.5s;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: #00000067;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.proj-popup-block {
    background-color: #000000;
    color: #fff;
    padding: 16px 16px;
    max-width: 768px;
    border-radius: 16px;
    box-shadow: 0 6px 12px #ffffff67;
    justify-content: center;
}

.proj-popup-block h1 {
    font-weight: 600;
    margin-bottom: 16px;
    margin-left: 32px;
}

.proj-popup-block p {
    text-align: justify;
    margin-bottom: 32px;
    margin-left: 64px;
    margin-right: 64px;
}

.proj-btn {
    display: inline-block;
    padding: 12px 16px;
    background-color: #ff0f0f;
    color: #ffffff;
    text-decoration: none;
    margin: 0px 8px;
    text-transform: uppercase;
    border-radius: 8px;
    font-weight: 600; 
}

.proj-popup:target {
    opacity: 1;
    pointer-events: all;
}

.card-slide .text-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#about .about-bio {
    padding-top: 0;
    margin-top: 0;
}

#about .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-box {
    text-align: center;
    align-content: left;
    justify-content: center;
}
.contact-title {
    text-align: center;
}

.contact-image {
    width: 25px;
    height: 25px;
    padding: 0;
    align-items: center;
    justify-content: center;
    filter: invert(100%);
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    margin-bottom: 10px;
    padding: 0 10px 0;
    gap: 20px;
}

.contact-item {
    height: 30px;
    padding: 10px 10px 10px;
    border: 1px solid #ff4a4a;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background-color: transparent;
    display: flex;
    flex-direction: row;
}

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

.contact-name p {
    color: #ffffff;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-section {
    margin-top: 75px;
    color: #676767;
    border-top: 1px solid #222;
}

.footer-section p {
    text-align: end;
    top: 90vh;
}
.footer-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: end;
    color: #676767;
}

@keyframes bobbing  {
    0% {
        transform: translateY(0);
    } 50% {
        transform: translateY(-10px);
    } 100% {
        transform: translateY(0);
    }
}

@keyframes auto-show {
    from {
        opacity: 0;
        transform: translateY(-200px);
    } to {
        opacity: 1;
        transform: translateY(0);
    }
}