/* Make canvas sit behind all content */
canvas {
    display: block;
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    min-height: 100vh;


}

#home {
    position: relative;

}

body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Courier New', monospace;
    color: white;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.pic {
    height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.pic-content {
    z-index: 10;
    text-align: center;
}

.pic-content h1 {
    margin-bottom: 5px;
    font-size: 3em;
}

.pic-content p {
    margin-top: 5px;
    font-size: 2em;
}

.pic-buttons {
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 10px;
    border: 2px solid white;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    /* transparent look */
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #000;
}

.fall-in {
    opacity: 0;
    transform: translateY(-200px);
    animation: dropIn 1.5s ease-out forwards;
}

@keyframes dropIn {
    0% {
        opacity: 0;
        transform: translateY(-200px);
    }

    60% {
        opacity: 1;
        transform: translateY(20px);
        /* overshoot */
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Nav bar (choose background color: gray, black, or white) */
.main-nav {
    background: #000;
    /* try #333 for dark gray, #000 for black, #fff for white */
    padding: 20px 25px;
    text-align: center;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: inline-block;
    margin: 0 30px;
}

.main-nav a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    color: white;
    /* works for dark nav */
}

.main-nav a:hover {
    color: #ffcc00;  
}

.main-nav a.active {
  color: #ffcc00;  
}


/* Content box with gradient */
.content-box {
    margin-top: 0px;

    max-width: 100%;

    /* Gradient through animation colors */
    background: linear-gradient(to bottom,
            rgb(252, 128, 3),
            /* sunrise orange */
            rgb(255, 182, 193),
            /* sunrise pink */
            rgb(135, 206, 235),
            /* sky blue */
            rgb(128, 0, 128),
            /* sunset purple */
            rgb(20, 24, 82)
            /* night navy */
        );
    color: white;
    min-height: 100vh;
    z-index: 0;
}

.content-box h2 {
    margin-top: 0;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

#about h1 {
    font-size: 4em;
    color: white;
    text-shadow: 0 0 15px rgba(255, 200, 50, 0.8);
    -webkit-text-stroke: 2px black;
    /* works in WebKit browsers */
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black;
    /* fallback for Firefox */
}

#about h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border-radius: 4px;
}

#skills {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

#skills h1 {
    font-size: 4em;
    color: white;
    text-shadow: 0 0 15px rgba(255, 200, 50, 0.8);
    -webkit-text-stroke: 2px black;
    /* works in WebKit browsers */
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black;
    /* fallback for Firefox */
}

#skills h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border-radius: 4px;
}

/* starting hidden state */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    /* off-screen to the left */
    transition: all 0.8s ease-out;
    /* smooth transition */
}

/* when active */
.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* start off hidden, shifted right */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    /* pushed right */
    transition: all 0.8s ease-out;
}

/* when active (scrolled into view) */
.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
    /* slide back into place */
}


.about {
    display: flex;
    gap: 20px;
    align-items: stretch;
    font-size: 1em;
    flex-direction: row;
}

.personal {
    display: flex;
    flex: 1;
    width: 85%;
    align-items: center;
    flex-direction: column;
}

.personal-container{
    display: flex;
    flex-direction: row;
}

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

.personal p {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
}

.personal img {
    width: 50%;
}

.skills {
    display: flex;
    flex: 1;
    width: 60%;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.skills h2 {
    font-size: 2em;
    margin-bottom: 30px;
    margin-top: 30px;
}

.scroll-row {
    overflow: hidden;
    width: 100%;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.scroll-content {
    position: absolute;
    display: flex;
    gap: 40px;
    height: 100%;
    align-items: center;
    left: 0;
    animation: scroll 30s linear infinite;
    margin-bottom: 10px;
}


.scroll-row img {
    height: 60px;
    /* make all logos same size */
    flex-shrink: 0;
    /* don’t shrink when overflowing */
    transition: transform 0.3s ease;
}

.scroll-content img {
    height: 80px;
    width: 80px;
    flex-shrink: 0;
    /* don’t shrink when overflowing */
    transition: transform 0.3s ease;
    object-fit: contain;

    border-radius: 5px;
    box-sizing: border-box
}

.scroll-content img:hover {
    transform: scale(1.1);
    /* slight zoom on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translate(-50%);
    }
}

#projects {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

#projects h2 {
    font-size: 4em;
    text-shadow: 0 0 15px rgba(255, 200, 50, 0.8);
    -webkit-text-stroke: 2px black;
    /* works in WebKit browsers */
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black;
    margin-top: 40px;
    /* fallback for Firefox */
}

#projects h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border-radius: 4px;
}

.project-container{
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.project-box {
    background-color: rgba(255, 242, 242, 0.3);
    width: 70%;
    height: 70vh;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 20px;
    padding: 0;
    margin: 0;
}

.project-box img {
    width: 85%;
    height: 85%;
}

.project-box img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.project-text {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

#contact{
    text-align: center;
    margin-top: 20px;
}

#contact h1 {
    font-size: 4em;
    color: white;
    text-shadow: 0 0 15px rgba(255, 200, 50, 0.8);
   -webkit-text-stroke: 2px black;
    /* works in WebKit browsers */
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black;
    /* fallback for Firefox */
}

#contact h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 8px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    border-radius: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
}

.contact-form button {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, color 0.3s;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background: #e52e71;
}

.footer{
    width: 100%;
    background-color: rgba(255, 242, 242, 0.3);
    height: auto;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer img{
    width: 60px;
    height: 60px;
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer img:hover {
    transform: scale(1.1);
    /* slight zoom on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px){
    .project-container{
        flex-direction: column;
        align-items: center;
    }

    /* Flip every even container */
  .project-container:nth-child(odd) {
    flex-direction: column-reverse; /* swap text & image */
  }

  .project-box{
    width: 100%;
  }

  .project-box img{
    width: 90%;
  }

  .personal-container{
    flex-direction: column;
    align-items: center;
  }

  .personal p{
    font-size: 1em;
  }
  #about h1{
    font-size: 3em;
  }

  #skills h1{
    font-size: 3em;
  }

  #projects h2{
    font-size: 3em;
  }

  #contact h1{
    font-size: 3em;
  }


  .skills{
    width: 100%;
  }

  .main-nav{
    padding: 10px 10px;
  }

  .main-nav a{
    font-size: .9em;
  }

  .main-nav li{
    display: inline-block;
    margin: 0 5px;
  }
  


}



