/* Smooth scroll effect */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    overflow-y: auto;
    position: relative;
    background-color: #ffffff;
}

/***** VIDEO STYLING *****/
#Fish_tank {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2;
}


#videoWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

/***** NAV BAR *****/

nav {
    width: 150px;
    height: auto;
    background-color: rgba(0, 30, 10, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: fixed;
    top: 38%; 
    left: calc(30px + .5in); /*asks the computer to calculate bc i'm bad at spacing*/
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav a {
    text-decoration: none;
    color: rgb(219, 255, 253);
    font-size: 30px;
    text-shadow: 2px 2px 4px rgba(6, 48, 0, 0.91);
    padding: 5px 0;
    transition: all 0.3s ease;
}

nav a:hover {
    color: rgb(33, 245, 0);
    transform: scale(1.1);
}
#hamburgerBtn {
    display: none;
  }

/***** HERO SECTION *****/
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;

}

.Video_Text {
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    text-align: center;
    text-shadow: 2px 2px 4px rgb(0, 42, 2);
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.tagline {
    color: #f9fcfd;
    font-size: 16px;
    margin-top: -20px;
    text-align: center;
    font-style: italic;
    opacity: 1;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(8, 8, 8, 0.937);
    width: 100%;
}

/***** fish animation placeholder*****/
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.animation {
    width: 100px;
    height: 100px;
    background-color: #00bbd400; /* transparent placeholder */
    border-radius: 50%;
    animation: bounce 2s infinite;
    position: relative;
}


/***** "scroll down" *****/
.scroll-down {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 18px;
    color: white;
    opacity: 0.8;
    animation: fadeIn 2s infinite alternate;
    pointer-events: none;
    z-index: 2;
}

/***** TAP PROMPT & OVERLAY *****/
#tapPrompt {
    position: fixed;
    top: 40px;
    right: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    text-shadow: #001f2f 2px 2px 4px;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
}

#tapPrompt:hover {
    background: rgba(255, 255, 255, 0.4);
}

#popupMessage {
    display: none;
    position: fixed;
    top: 300px;
    left: 45%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 3;
}

#tapOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    background: transparent;
}

.tap-cursor {
    cursor: url('hand-cursor.png'), pointer;
}

/***** SECTION STYLES *****/
.section-dark {
    background-color: #001f2fdd; /* Deep water theme */
    color: white;
    padding: 100px 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.section-light {
    background-color: rgba(0, 30, 10, 0.2);
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 100px 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.sectionContainer {
    max-width: 900px;
    width: 100%;
    padding: 40px;
    margin: 0 auto;
}

/***** COLUMNS / FLEXIBLE LAYOUT *****/
.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.column {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    text-align: left;
}

/***** ABOUT ME IMAGE + TEXT *****/
.aboutContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    gap: 10px;
}

#about-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    display: block;
    flex-shrink: 0;
}

/***SKILLS SECTION***/
.skillsContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    padding-right: 7%;
    margin: auto;
}
.glassContainer {
    background-color: rgba(0, 30, 10, 0.2);
    backdrop-filter: blur(6px);
    border-radius: 10px;
}

.linkColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    text-align: center;
    margin-bottom: 20px;
    margin-left: 40px; 
    background-color: rgba(225, 239, 251, 0.412); 
    padding: 20px;
    padding-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.3);
    max-width: 100%;
    width: 90%;
    height: 50%;
    box-sizing: border-box;

}

.linkColumn h2 {
    margin-bottom: 10px;
}
.linkColumn p {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
  }

.linkColumn .btn {
    width: fit-content;
    padding: 10px 15px;   
    font-size: 18px;      
    border-radius: 5px;    
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    font-size: 18px;
    
}
/***** PROJECTS SECTION *****/
.projectCard {
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  margin: 20px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.projectCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.projectCard h3 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #9cf9ff;
}

.projectCard p {
  margin: 20px 30px 20px;
  line-height: 1.4;
}

.projectCard .btn {
  background-color: rgb(58, 192, 0);
  font-size: 18px;
  padding: 10px 18px;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
  margin-top: 10px;
}


/***** CONTACT BOX *****/
.contactBox {
    background: rgba(184, 207, 214, 0.6);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    min-height: 200px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 150px;
    backdrop-filter: blur(6px);

}

.btn {
    display: inline-block;
    background-color: rgb(58, 192, 0);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 18px;
    padding: 10px 18px;
    text-align: center;
    margin: 0 auto;
    margin-top: 20px;
}

.btn:hover {
    background-color: rgb(28, 240, 35);
}

/* GLOBAL BOX-SIZING to prevent overflow issues */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  /* Fix padding: no negative padding */
  .section-dark,
  .section-light {
    padding: 40px 20px;
    margin: auto;
  }

  .glassContainer {
    padding: 20px;
    width: 100%;
  }

  .aboutContainer {
    flex-direction: column;
    align-items: center;
    margin: auto;
  }

  .contactBox {
    margin: auto;
    width: 90%;
    padding: 20px;       /* reduce padding on mobile */
    min-height: auto;    /* allow height to adjust */
    margin-bottom: 100px;
  }

  #about-image {
    max-width: 150px;
    margin-top: 100px;
    margin-bottom: -100px;
   
  }

  .columns {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .Video_Text {
    font-size: 2rem;
    padding: 0 20px;
  }

  .linkColumn {
    margin-left: 0;
    padding: 20px;
    width: 100%;
  }

  .sectionContainer {
    padding: 20px;
  }
  .Video_Text {
    margin-top: 150px;
  }
  .tagline {
    margin-bottom: 75px;
  }
    #tapPrompt {
      display: none; /* Hide tap prompt on mobile */
    }
  }

    #menuPrompt {
      position: fixed;
      top: 40px;
      left: 50%;
      transform: translateX(-50%);
      color: white;
      font-size: 16px;
      font-style: italic;
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(6px);
      padding: 8px 16px;
      border-radius: 10px;
      z-index: 1000;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
      animation: fadeIn 2s infinite alternate;
      cursor: pointer;
    }
    
    @media screen and (max-width: 768px) {
      nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 30, 10, 0.5);
        padding: 20px 40px;
        border-radius: 12px;
        z-index: 999;
        width: auto;
        max-width: 80vw;
        box-sizing: border-box;
      }
      nav a {
        font-size: 22px;
        margin-top: 5px
      }
    
      nav.open {
        display: flex;
      }
    
      #menuPrompt {
        display: block;
      }
    }
    
    @media screen and (min-width: 769px) {
      #menuPrompt {
        display: none;
      }
    
      nav {
        display: flex !important; /* restore original nav layout on desktop */
        position: fixed;
        left: calc(30px + .5in);
        transform: translateY(-50%);
        flex-direction: column;
      }
    }
    @media screen and (min-width: 769px) {
      .slide-down-prompt {
        display: none;
        text-align: center;
      }
    }
    #closeMenu {
      background: transparent;
      position: fixed;
      top: 10px;
      right: 20px;
      z-index: 1001;
      border: none;
      font-size: 22px;
      color:rgb(219, 255, 253);
      cursor: pointer;
      position: absolute;
      top: 5px;
      right: 5px;
    }
    @media screen and (min-width: 769px) {
      #closeMenu {
        display: none;
      }
    }
    
    
