/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

body {
  background-color: rgb(176, 255, 243);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
}

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  top: 0;
  left: 0;
  padding-top: 0;
  width: 100%;
}

button {
  text-align: center;
  border: none;
  background: none;
  cursor: pointer;
}

p {
  font-family: Arial, Helvetica, sans-serif;
}

.main-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.appStoreIcon {
  height: 15%;
  width: 15%;
}

.header-navbar {
  width: 100%;
  margin-bottom: -60px;
}

.navbar-container {
  background-image: url("../img/navbartest.png");
  width: 100%;
  height: 40vh;
  min-height: 200px;
  max-height: 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  container-type: inline-size;
  margin-bottom: -60px;
}

.navbar-button-container {
  display: flex;
  gap: clamp(10px, 2vw, 30px);
  transform: translateY(-80px);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.navbar-logo {
  height: clamp(40px, 8vh, 80px);
  width: auto;
  margin-right: clamp(10px, 2vw, 30px);
}

.navbar-button {
  padding: clamp(8px, 1.5vh, 16px) clamp(15px, 3vw, 40px);
  border: 0;
  border-radius: 100px;
  font-size: clamp(14px, 2.5vh, 24px);
  font-weight: 550;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-button:hover {
  color: #004840;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.animated-motto {
  font-size: 2.5em;
  font-family: sans-serif;
  font-weight: bold;
  white-space: nowrap;
  position: relative;
  line-height: 1;
}

.motto-word-wrapper {
  display: inline-block;
  position: relative;
  width: 9ch;
  height: 1em;
  vertical-align: bottom;
  overflow: hidden;
}

.motto-word {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateY(20%);
  background: linear-gradient(
    to right,
    #014841 20%,
    #16e5cf 30%,
    #17a797 70%,
    #28ee98 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 500% auto;
  animation: fadeInOut 8s ease-in-out forwards, textShine 5s ease-in-out infinite alternate;
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.motto-word:nth-child(1) { animation-delay: 0s;  }
.motto-word:nth-child(2) { animation-delay: 2s;  }
.motto-word:nth-child(3) { animation-delay: 4s;  }
.motto-word:nth-child(4) { animation-delay: 6s;  }

.motto-word.final {
  animation: fadeFinal 8s ease-in-out forwards, textShine 5s ease-in-out infinite alternate;
  animation-delay: 8s;
}

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(20%); }
  10%  { opacity: 1; transform: translateY(0); }
  20%  { opacity: 1; transform: translateY(0); }
  30%  { opacity: 0; transform: translateY(-20%); }
  100% { opacity: 0; }
}

@keyframes fadeFinal {
  0%   { opacity: 0; transform: translateY(20%); }
  10%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.coming-soon {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.coming-soon p {
  font-size: 2em;
  font-family: sans-serif;
  font-weight: bold;
  margin: 0;
  opacity: 0;
  transform: translateY(20%);
  background: linear-gradient(
    to right,
    #014841 20%,
    #16e5cf 30%,
    #17a797 70%,
    #28ee98 80%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 500% auto;
  animation: fadeFinal 8s ease-in-out forwards, textShine 5s ease-in-out infinite alternate;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
}

.footer-background {
  width: 100%;
  height: 250px;
  background-image: url("../img/footer.png");
  background-size: 100% 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.footer-text {
  border: 0;
  border-radius: 100px;
  color: rgba(19, 244, 216, 0.35);
  bottom: 0;
  margin: auto;
  display: flex;
  justify-content: center;
}

.footer-socials-icons {
  display: flex;
  justify-content: center;
  margin: auto;
}

/* From Uiverse.io by suda-code */
.link-tree-button {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 10px);
  font-size: clamp(14px, 2.5vh, 24px);
  font-weight: 550;
  color: white;
  padding: clamp(8px, 1.5vh, 16px) clamp(15px, 3vw, 40px);
  border: 0;
  border-radius: 100px;
  background-color: #004840;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-tree-button:hover {
  background-color: #004840;
  box-shadow: 0 0 20px #6fc5ff50;
  transform: scale(1.05);
}

.link-tree-button:active {
  background-color: #004840;
  transition: all 0.20s;
  -webkit-transition: all 0.20s;
  box-shadow: none;
  transform: scale(0.98);
}

.link-tree-icon {
  height: clamp(16px, 2.5vh, 24px);
  width: clamp(16px, 2.5vh, 24px);
}

/* From Uiverse.io by Yaya12085 */
.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 1);
  padding: 0.625rem 1.5rem;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, 1);
  outline: 0;
  transition: all  .2s ease;
  text-decoration: none;
}

.app-store-button:hover {
  background-color: transparent;
  color: rgba(0, 0, 0, 1);
}

.icon {
  height: 1.5rem;
  width: 1.5rem;
}

.icon-apple {
  height: 1.5rem;
  width: 1.5rem;
  transform: scale(1.3);
}

.texts {
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.text-1 {
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-2 {
  font-weight: 600;
}

@media (max-width: 768px) {
  .navbar-button-container {
    flex-direction: column;
    gap: 10px;
  }

  .navbar-logo {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .animated-motto {
    white-space: normal;
    text-align: center;
  }
}

@media (min-width: 1400px) {
  .navbar-container {
    height: 300px;
  }
}

/* Container query for navbar (when supported) */
@container (max-width: 600px) {
  .navbar-button-container {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------------------------------------------------------- */
/* About Page */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.paragraph-container {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vh, 80px);
}

.paragraph-wrapper {
  display: flex;
  width: 100%;
  align-items: center;
  min-height: 200px;
}

/* Right-aligned paragraph (first one) */
.paragraph-wrapper:nth-child(odd) {
  justify-content: flex-end;
}

.paragraph-wrapper:nth-child(odd) .paragraph-content {
  text-align: right;
  margin-left: auto;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

/* Left-aligned paragraph (second, fourth, etc.) */
.paragraph-wrapper:nth-child(even) {
  justify-content: flex-start;
}

.paragraph-wrapper:nth-child(even) .paragraph-content {
  text-align: left;
  margin-right: auto;
  background: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;
}

.paragraph-content {
  max-width: 65%;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.paragraph-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.paragraph-content p {
  font-weight: bold;
  font-size: clamp(16px, 2.5vw, 24px);
  margin: 0;
  color: #004840;
  line-height: 1.7;
}

.paragraph-content a {
  color: #00a492;
  transition: color 0.3s ease;
}

.paragraph-content a:hover {
  color: #16e5cf;
}

/* Add decorative elements */
.paragraph-wrapper:nth-child(odd)::before {

}

.paragraph-wrapper:nth-child(even)::after {

}

/* Responsive design */
@media (max-width: 768px) {
  .paragraph-content {
    max-width: 90%;
    text-align: left !important;
  }

  .paragraph-wrapper:nth-child(odd),
  .paragraph-wrapper:nth-child(even) {
    justify-content: center;
  }

  .paragraph-wrapper:nth-child(odd) .paragraph-content,
  .paragraph-wrapper:nth-child(even) .paragraph-content {
    margin: 0 auto;
    border-left: 5px solid #16e5cf;
    border-right: none;
  }

  .paragraph-wrapper::before,
  .paragraph-wrapper::after {
    display: none;
  }
}

/* Animation on scroll */
.paragraph-content {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease forwards;
}

.paragraph-wrapper:nth-child(1) .paragraph-content { animation-delay: 0.1s; }
.paragraph-wrapper:nth-child(2) .paragraph-content { animation-delay: 0.3s; }
.paragraph-wrapper:nth-child(3) .paragraph-content { animation-delay: 0.5s; }
.paragraph-wrapper:nth-child(4) .paragraph-content { animation-delay: 0.7s; }
.paragraph-wrapper:nth-child(5) .paragraph-content { animation-delay: 0.9s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header styling for context */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 8vh, 80px);
}

.section-header h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: bold;
  background: linear-gradient(135deg, #004840, #16e5cf, #28ee98);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.section-header p {
  font-size: clamp(18px, 3vw, 24px);
  color: #004840;
  font-weight: 500;
}

/* ------------------------------------------------------------------------------------------------------------- */

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

