*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #2C3C55;
}


#network {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  background-image: url('images/network.png');
  background-position: center;
  background-size: cover;
  object-fit: cover;
  z-index: -1;
}

@media screen and (max-width: 768px) {
  #network {
    object-position: center center;
  }
}

.progress-bar-container {
  background-color: rgb(121, 121, 121);
  height: 30px;
  position: relative;
  margin: 20px auto;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  z-index: 1;
}

.progress-bar {
  background-color: rgb(229, 145, 46);
  height: 100%;
  width: 0%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  transition: width 0.5s ease;
}

.progress-text {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: #002C55;
  font-weight: bold;
  white-space: nowrap;
}

@media screen and (max-width: 480px) {
  .progress-text {
    font-size: 16px;
  }
  
  body {
    font-size: 14px;
  }
  
  .top-section {
    margin: 20px 0;
    padding: 20px;
    width: 90%;
    max-width: none;
  }
  
  .apps-section {
    padding: 25px;
    width: 90%;
    max-width: none;
    margin: 20px 0;
  }
}

/* button styling below */

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.button-container a {
  position: relative;
  padding: 30px 60px;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  font: 700 30px consolas;
  overflow: hidden;
  transform: scale(0.5);
  z-index: 1;
}

.button-container a span:nth-child(1) {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, rgb(121, 121, 121), rgb(229, 145, 46));
  animation: animate1 2s linear infinite;
}

@keyframes animate1 {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.button-container a span:nth-child(2) {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, rgb(121, 121, 121), rgb(229, 145, 46));
  animation: animate2 2s linear infinite;
  animation-delay: 1s;
}
@keyframes animate2 {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.button-container a span:nth-child(3) {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, rgb(121, 121, 121), rgb(229, 145, 46));
  animation: animate3 2s linear infinite;
}

@keyframes animate3 {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.button-container a span:nth-child(4) {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(to top, rgb(121, 121, 121), rgb(229, 145, 46));
  animation: animate4 2s linear infinite;
  animation-delay: 1s;
}

@keyframes animate4 {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

.apps-section {
  background: rgba(44, 60, 85, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin: 20px 0;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-section {
  background: rgba(44, 60, 85, 0.5);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0 20px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top-section .progress-text {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.top-section .button-container a {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.headshot {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.profile-link {
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.profile-link:hover {
  background: rgba(229, 145, 46, 0.3);
  border-color: rgba(229, 145, 46, 0.5);
  transform: translateY(-2px);
}

.progress-bar-container.small {
  max-width: 250px;
  height: 20px;
  margin: 15px auto;
}

.progress-bar-container.small .progress-text {
  font-size: 14px;
  top: calc(100% + 5px);
}

.button-container.small a {
  padding: 15px 30px;
  font-size: 14px;
  transform: scale(0.7);
}

@media screen and (max-width: 480px) {
  .profile-links {
    align-items: center;
    gap: 8px;
  }
  
  .profile-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .headshot {
    width: 100px;
    height: 100px;
  }
}

.app-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 30px;
  min-width: 200px;
  min-height: 120px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(229, 145, 46, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: rgba(229, 145, 46, 0.1);
  border-color: rgb(229, 145, 46);
}

.app-box h3 {
  margin: 0 0 10px 0;
  color: #002C55;
  font-size: 20px;
  font-weight: bold;
}

.app-box p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .app-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .app-box {
    width: 100%;
    max-width: 350px;
    padding: 25px;
  }
  
  .button-container.small a {
    padding: 12px 24px;
    font-size: 12px;
    transform: scale(0.8);
  }
}

@media screen and (max-width: 360px) {
  .profile-links {
    gap: 10px;
  }
  
  .profile-link {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .headshot {
    width: 80px;
    height: 80px;
  }
  
  .app-box {
    padding: 20px;
    min-height: 100px;
  }
}