:root {
    --text-color: #ffffff;
    --link-color: #94dbff;
    --background-color: #119dff;
}

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

html{
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-color); /* Apply white text globally */
}




h1, h2, .retro-text{
    font-family: "DynaPuff", system-ui;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

/* Background */

* {
  margin: 0;
  padding: 0;
}


.wrapper{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(180deg, #94dbff 5%, #119dff 50%, #030423);
}

.wrapper, .wrapper * {
    z-index: -1 !important;
    pointer-events: none !important;
}

.wrapper h1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  font-family: sans-serif;
  letter-spacing: 1px;
  word-spacing: 2px;
  color: #fff;
  font-size: 40px;
  font-weight: 888;
  text-transform: uppercase;
}
.wrapper div {
  height: 60px;
  width: 60px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  position: absolute;
  top: 10%;
  left: 10%;
  animation: 4s linear infinite;
}
div .dot {
  height: 10px;
  width: 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 20%;
  right: 20%;
}
.wrapper div:nth-child(1) {
  top: 20%;
  left: 20%;
  animation: animate 8s linear infinite;
}
.wrapper div:nth-child(2) {
  top: 60%;
  left: 80%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(3) {
  top: 40%;
  left: 40%;
  animation: animate 3s linear infinite;
}
.wrapper div:nth-child(4) {
  top: 66%;
  left: 30%;
  animation: animate 7s linear infinite;
}
.wrapper div:nth-child(5) {
  top: 90%;
  left: 10%;
  animation: animate 9s linear infinite;
}
.wrapper div:nth-child(6) {
  top: 30%;
  left: 60%;
  animation: animate 5s linear infinite;
}
.wrapper div:nth-child(7) {
  top: 70%;
  left: 20%;
  animation: animate 8s linear infinite;
}
.wrapper div:nth-child(8) {
  top: 75%;
  left: 60%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(9) {
  top: 50%;
  left: 50%;
  animation: animate 6s linear infinite;
}
.wrapper div:nth-child(10) {
  top: 45%;
  left: 20%;
  animation: animate 10s linear infinite;
}
.wrapper div:nth-child(11) {
  top: 10%;
  left: 90%;
  animation: animate 9s linear infinite;
}
.wrapper div:nth-child(12) {
  top: 20%;
  left: 70%;
  animation: animate 7s linear infinite;
}
.wrapper div:nth-child(13) {
  top: 20%;
  left: 20%;
  animation: animate 8s linear infinite;
}
.wrapper div:nth-child(14) {
  top: 60%;
  left: 5%;
  animation: animate 6s linear infinite;
}
.wrapper div:nth-child(15) {
  top: 90%;
  left: 80%;
  animation: animate 9s linear infinite;
}
@keyframes animate {
  0% {
    transform: scale(0) translateY(0) rotate(70deg);
  }
  100% {
    transform: scale(1.3) translateY(-100px) rotate(360deg);
  }
}



/* NAVBAR */
nav {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: space-between;
    align-items: center;

    padding: 0 50px;
    height:80px;

    position: relative;
    z-index: 1000; /* Higher than background */

}

nav .left a{
    color: var(--text-color);
    font-size: 22px;
    font-weight: bold;
}

nav .right a {
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    margin: 0 10px;
}

nav .right .email-link{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a:last-child{
    color: var(--background-color);
    background-color: var(--text-color);
    padding: 5px 15px;
    border-radius: 5px;
}

nav .right a span{
    margin-left: 5px;
}

.menu-icon {
    margin-left: auto;
    cursor: pointer;
    font-size: 24px;
    margin-left: 15px;
    color: var(--text-color);
}

.vertical-menu {
    display: none;
    position: absolute;
    top: 80px; /* matches your navbar height */
    right: 50px; /* aligns with your nav padding */
    background-color: var(--background-color);
    border: 2px solid var(--link-color);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    flex-direction: column;
    padding: 10px;
    width: fit-content;
}

.vertical-menu a {
    font-family: 'Press Start 2P', cursive;
    color: var(--text-color);
    padding: 10px;
    display: block;
    text-decoration: none;
}

.vertical-menu a:hover {
    background-color: var(--link-color);
    color: var(--background-color);
}

/*RESUME SECTION*/
.resume-section{
    width: 100%;
    max-width: 900px;
    margin: 120px auto 50px auto; /* pushes it below navbar and centers */
    text-align: center;
}

.resume-viewer{
    width: 100%;
    height: 900px;
    border: none;
}

.resume_section iframe{
    display: block;
    margin: 15px auto;
    border: none;
}

.resume-button{
    display: inline-block;
    padding: 10px 18px;
    background-color: white;
    color: var(--background-color);
    text-decoration: none;
    border-radius: 6px;
    margin-top: 10px;
}


@media (max-width: 940px){
    /*NAVBAR*/
    nav {
        padding: 0 20px;
    }

    nav .right a{
        font-size: 22px;
    }

    nav .right a:last-child{
        color: var(--text-color);
        background-color: transparent;
        padding: 0;
    }

    nav .right a span{
        display: none;
    }

    /*Section 1: Hero*/
    .hero-section .text h2{
        font-size: 35px;
    }

}




@media (max-width: 740px) {

    /*NAVBAR*/
    nav .right a{
        margin: 0px 0px;
    }


    /*Section 1: Hero*/
    .hero-section{
        flex-direction: column-reverse;
    }

    .hero-section .headshot img{
        width: 300px;
        height: 343px;
    }

    .hero-section{
        padding: 0px 20px;
    }

    .hero-section .text h2{
        font-size: 30px;
    }

    /*Section 2: Skills*/
    .skills-section{
        padding: 0 20px; 

    }
 
    .skills-section .cells .cell span{
        font-size: 16px ;
    }

    /*Section 3: Testimony*/
    .testimony-section{
        text-align: center;
        padding: 0 20px;
    }

    .testimony-section .group{
        flex-direction: column;
    }

    /*Section 4: Contact*/
    .contact-section .group{
        flex-direction: column;

    }

    .contact-section{
        padding: 0 20px;
    }
   
}




@media (max-width: 400px){
    /*NAVBAR*/
    nav .right {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }

    nav .right a:not(:last-child) {
        margin-right: 20px;
    }

    nav .right a {
        padding: 0 10px;
        flex-wrap: wrap;
    }
}
