html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  /*background: linear-gradient(to bottom, #0000FF, #3399FF);
  background: linear-gradient(to bottom, #0000FF, #3399FF);*/
  color: #00CCFF;
  box-sizing: border-box;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
  background: linear-gradient(to bottom, #0000FF, #3399FF);
}

header {
  background: #001F4D;
  color: #00CCFF;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

header nav a {
  color: #00CCFF;
  background: transparent;
  border: 2px solid #00CCFF;
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s, color 0.3s;
}

header nav a:hover {
  background: #00CCFF;
  color: #001F4D;
}

.home-main {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-wrapper {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-left {
  width: 300px;
  flex-shrink: 0;
}

.intro-logo-container {
  width: 300px;
  height: 300px;
  background: rgba(0, 204, 255, 0.05);
  border: 1px solid #00CCFF;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.intro-logo-container:hover {
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.6);
}

.intro-logo {
  width: 70%;
  height: auto;
  transition: transform 0.5s ease;
}

.intro-logo-container:hover .intro-logo {
  transform: scale(1.3);
}

.intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-description {
  height: 300px;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(0, 31, 77, 0.1);
  padding: 15px;
  border-radius: 10px;
  color: #00CCFF;
  border: 1px solid #00CCFF;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.intro-description:hover {
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.6);
}

.intro-description h2 {
  margin-top: 0;
}

.intro-description::-webkit-scrollbar {
  width: 10px;
}
.intro-description::-webkit-scrollbar-track {
  background: rgba(0, 31, 77, 0.3);
  border-radius: 10px;
}
.intro-description::-webkit-scrollbar-thumb {
  background: rgba(0, 204, 255, 0.7);
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 204, 255, 0.8);
}

.gallery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
  justify-content: flex-start;
}

.gallery-link {
  width: 310px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  background: rgba(0, 204, 255, 0.05);
  border: 1px solid #00CCFF;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
  overflow: hidden;
}

.gallery-link:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 204, 255, 0.8);
}

.gallery-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-link:hover img {
  transform: scale(1.1);
}

.gallery-item {
  position: relative;
  width: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gallery-title {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(0, 204, 255, 0.6);
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.2em;
  font-weight: bold;
  transition: transform 0.3s ease;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.gallery-link:hover + .gallery-title {
  transform: translate(-50%, -50%) scale(2.2);
  color: rgba(0, 204, 255, 0.9);
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 8px 10px;
  text-align: center;
  background-color: #001F4D;
  color: #00CCFF;
  font-size: 13px;
  z-index: 999;
}

.footer a {
  color: #00CCFF;
  text-decoration: none;
  pointer-events: auto;
  cursor: default;
}

.footer a:hover {
  color: #ffffff;
}

.contact-form-container {
  max-width: 600px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0, 31, 77, 0.15);
  border-radius: 10px;
  border: 1px solid #00CCFF;
  box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
  color: #00CCFF;
}

.contact-form-container h2 {
  margin-top: 0;
  color: #00FFEF;
}

.contact-form-container input,
.contact-form-container textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 15px auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  color: #00CCFF;
  border: 1px solid #00CCFF;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1em;
  box-sizing: border-box;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: rgba(0, 204, 255, 0.5);
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 204, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
}

.contact-form-container button {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 15px auto;
  padding: 10px;
  background-color: #00CCFF;
  color: #001F4D;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
  box-sizing: border-box;
}

.contact-form-container button:hover {
  background-color: #00FFFF;
}

.contact-form-container a {
  color: #00CCFF;
  text-decoration: none;
  font-weight: bold;
}

.contact-form-container a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  box-shadow: 0 0 0px 1000px rgba(0, 31, 77, 0.3) inset !important;
  -webkit-text-fill-color: #00CCFF !important;
  caret-color: #00CCFF !important;
  transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #001f4d, #003399);
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    background: #001F4D;
    color: #00CCFF;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  header nav a {
    font-size: 0.9em;
    padding: 6px 12px;
    margin: 0 4px;
  }

  .home-main {
    padding-top: 80px;
    padding-left: 5vw;
    padding-right: 5vw;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .intro-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin: 0 auto 20px auto;
    padding: 0;
    box-sizing: border-box;
  }

  .intro-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .intro-logo-container {
    max-width: 280px;
    width: 80%;
    height: auto;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .intro-logo {
    width: 100%;
    height: auto;
    display: block;
    transform: none !important;
    transition: none !important;
  }

  .intro-description {
    width: 100%;
    padding: 12px;
    border: 1px solid #00CCFF;
    background: rgba(0, 31, 77, 0.1);
    border-radius: 10px;
    color: #00CCFF;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    line-height: 1.3em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: 300px;
    overflow-y: auto;
  }

  .gallery-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .gallery-item {
    width: 100%;
    max-width: 360px;
    margin-bottom: 10px;
  }

  .gallery-link {
    width: 100%;
    border: 1px solid #00CCFF;
    border-radius: 10px;
    background: rgba(0, 204, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.3);
    overflow: hidden;
  }

  .gallery-link img {
    width: 100%;
    height: auto;
    display: block;
  }

  .gallery-title {
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    padding: 6px 10px;
    margin: 0;
    text-align: center;
  }

  .footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 8px 10px;
    text-align: center;
    background-color: #001F4D;
    color: #00CCFF;
    font-size: 13px;
    z-index: 999;
    box-sizing: border-box;
  }

  .footer a {
    color: #00CCFF;
    text-decoration: none;
  }

  .footer a:hover {
    color: #ffffff;
  }
  
  .contact-form-container {
  width: 100%;
  max-width: 90vw;
  margin: 20px auto;
  padding: 16px;
  border: 1px solid #A0A080;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
  box-sizing: border-box;
}

}
