:root {
  --blue-1: #1c3e65;
  --bg-blue: #0c223a;
  --bg-white: #f8fbff;
  --col-error: #ff1e00;
  --shadow:
    0px 0px 4.2px rgba(0, 0, 0, 0.059),
    0px 0px 9.7px rgba(0, 0, 0, 0.086),
    0px 0px 17.4px rgba(0, 0, 0, 0.106),
    0px 0px 28.9px rgba(0, 0, 0, 0.124),
    0px 0px 47.6px rgba(0, 0, 0, 0.144),
    0px 0px 83.2px rgba(0, 0, 0, 0.171),
    0px 0px 180px rgba(0, 0, 0, 0.23);
}


html,
body {
  background-color: var(--bg-blue);
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}

body>header,
section,
footer {
  padding: 0;
  min-height: 95svh;
}


/* Disable browser styles */

a {
  all: unset;
}

a:link:not(.no-link-style, .btn) {
  font-weight: 600;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.1s ease-in;
}

a:link:not(.no-link-style, .btn):hover {
  text-decoration-color: transparent;

}

a:visited:not(.no-link-style, .btn) {
  color: #6388ff;
}

/* Navbar */

.navbar {
  background-color: color-mix(in srgb, var(--bg-blue), transparent 10%);
  color: var(--bg-white);
  padding: 1rem;
  display: grid;
  grid-template: "l m r";
  align-items: center;
  position: sticky;
  top: 0;
  height: 2rem;
  backdrop-filter: blur(20px);
}

.navbar>div {
  align-self: center;
}

.navbar>:nth-child(1) {
  grid-area: l;
  justify-items: start;
  text-align: start;
}

.navbar>*>h1 {
  margin-inline: 0;
}

.navbar>:nth-child(2) {
  grid-area: m;
  justify-items: center;
  text-align: center;
}

.navbar>:nth-child(3) {
  grid-area: r;
  justify-items: end;
  text-align: end;
}

.logo {
  vertical-align: middle;
  height: 2rem;
}

.navbar-title {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--bg-white);
  margin-left: 0.5em;
}

/* Navoverlay */

#navoverlay {
  scrollbar-gutter: stable;
  z-index: 100;


  height: 100vh;
  width: 100%;

  margin: 0;
  padding: 0;

  overflow: auto;


  display: grid;
  grid-template: "close" "items";
  grid-template-rows: auto 1fr;
  grid-template-columns: 100%;
  justify-items: center;
  align-items: center;


  position: fixed;
  top: 0;

  visibility: hidden;

  backdrop-filter: blur(5px) saturate(50%) blur(25px);
  background-color: color-mix(in srgb, var(--bg-blue), transparent 20%);
  ;

  color: var(--bg-white);
  font-weight: 400;
  font-size: 1.3rem;
  transition: opacity 0.2s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 100;
}

body:has(#navoverlay.navoverlay-open) {
  overflow: hidden;
}

#navoverlay.navoverlay-open {
  opacity: 100;
  visibility: visible;
}

#navoverlay>nav>ul {
  text-align: center;
  grid-area: items;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1em;
}

#navoverlay>nav>ul>li {
  padding: 0.6;
  margin: 0.6em;
}

#navoverlay>nav>ul>li>a {
  color: var(--bg-white);
  padding: 0;
  margin: 0;
  text-decoration: none;
}

#navoverlay>div:has(i#close) {


  height: 2rem;

  padding: 1rem;
  margin: 0;

  display: grid;
  align-items: center;
  grid-area: close;
  justify-items: end;
  text-align: end;
  align-items: center;
  justify-self: end;
  /* gap: 1em; */
}

#navoverlay>nav>ul>li>a#current {
  font-weight: 650;
}


/* body */
html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  background-color: var(--bg-blue);
}

body {
  margin-left: calc(-(100vw - 100%));
  overflow: auto;
  margin: 0;

}

body>:not(.navoverlay, .navbar) {
  scroll-margin-top: 2rem;
  background-color: var(--section-bg);
  color: var(--section-text);
}

body>:not(.navoverlay, .navbar):nth-child(odd) {
  --section-bg: var(--bg-blue);
  --section-text: var(--bg-white);
}

body>:not(.navoverlay, .navbar):nth-child(even) {
  --section-bg: var(--bg-white);
  --section-text: var(--bg-blue);
}

/* section related stuff */

.container {
  margin: 0 auto;
  padding: 2rem;
}

@media (min-width: 768px) {
  .container {
    width: 85%;
  }
}


@media (min-width: 1281px) {
  .container {
    width: 70%;
  }
}


@media (min-width: 1921px) {
  .container {
    width: min(60%, 1800px);
  }
}

.grid-1-2 {
  gap: 1em;
  display: grid;
  grid-template: "l" "r";
}

@media (min-width: 768px) {
  .grid-1-2 {
    grid-template: "l r";
  }
}

.grid-vertical-center {
  align-items: center;
  justify-content: space-between;
  min-height: 95svh;
}


.grid-vertical-end {
  place-items: end;
  min-height: 95svh;
}

.grid-1-2> :nth-child(1) {
  grid-area: l;
  overflow-wrap: anywhere;
}

.grid-1-2> :nth-child(2) {
  grid-area: r;
  overflow-wrap: anywhere;
}

.grid-heading-1-2 {
  gap: 1em;
  display: grid;
  grid-template:
    "h"
    "l"
    "r";
  /* grid-template-rows: min-content min-content; */
}

@media (min-width: 768px) {

  .grid-heading-1-2 {
    grid-template:
      "h h"
      "l r";
    /* grid-template-rows: min-content min-content; */

  }

}

.grid-heading-1-2> :nth-child(1) {
  align-self: end;
  grid-area: h;
  overflow-wrap: anywhere;
}

.grid-heading-1-2> :nth-child(2) {
  align-self: self-start;
  grid-area: l;
  overflow-wrap: anywhere;
}

.grid-heading-1-2> :nth-child(3) {
  align-self: self-start;
  grid-area: r;
  overflow-wrap: anywhere;
}

.section-img {
  text-align: center;
  max-height: 30em;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
}

/* text styles */

h1 {
  font-size: 2.7em;
  line-height: 1.2;
  font-weight: 800;
  max-width: 30ch;
}

h1[role="doc-subtitle"] {
  font-size: 1.5em;
}

h2 {
  font-size: 2.25em;
  line-height: 1.15;
  font-weight: 700;
  max-width: 30ch;
}

h3 {
  font-size: 1.5em;
  line-height: 1;
  font-weight: 700;
  max-width: 30ch;
}

p {
  line-height: 1.8;
  font-size: 1em;
  font-weight: 400;
  max-width: 45ch;
}


/* timeline */


/* .timeline-container::-webkit-scrollbar {
  display: none;
} */


.timeline-section {

  scroll-snap-align: center;
  /* width: 80%; */
  flex-shrink: 0;
  display: grid;
  grid-template:
    "beam title"
    "beam content";
  grid-template-columns: auto 1fr;
  text-align: left;
}

.timeline-section>h3.timeline-section-title {
  grid-area: title;
  margin: 0;
  padding: 0;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  max-width: 30ch;
}

.timeline-section>.timeline-section-content>* {
  margin: 0;
}

.timeline-section>.timeline-section-content {
  grid-area: content;
  margin: 0;
  padding: 0;
  margin-top: 0rem;
  margin-bottom: 1rem;
  max-width: 50ch;
}

.timeline-section>.timeline-section-beam {
  position: relative;
  grid-area: beam;
  width: 5rem;
  justify-self: start;
}

.timeline-section>.timeline-section-beam>img:nth-child(1) {
  width: 0.1rem;
  height: 100%;
  object-fit: cover;
  position: absolute;
  transform: translateX(0.45rem);
}

.timeline-section>.timeline-section-beam>img:nth-child(2) {
  width: 1rem;
  height: auto;
  position: absolute;
  top: 1.25rem;
  margin: 0;
  padding: 0;
}

/* Buttons */

.btn {
  margin: 0.5rem;
  margin-inline: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1.2em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  max-width: fit-content;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--section-text);
  color: var(--section-bg);
}

.btn-primary:hover {
  background-color: var(--section-bg);
  color: var(--section-text);
}

.btn-secondary {
  background-color: #1d4354;
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: var(--bg-white);
  color: #1d4354;
}


.form {
  gap: 1em;
  align-items: center;
  justify-items: left;
  text-align: left;
  display: grid;
  
}

/* contact-form */
.form#contact-form {
  grid-template:
    "name"
    "email email"
    "subject subject"
    "message message"
    "privacy privacy"
    "submit submit";
}


/* contact-form */
.form#test-form {
  grid-template:
    "name"
    "email email"
    "subdomain subdomain"
    "privacy privacy"
    "submit submit";
}

#contact-form>.form-name {
  width: 100%;
}

#contact-form>.form-email {
  width: 100%;
}

#contact-form>.form-subject {
  width: 100%;
}

#contact-form>.form-message {
  width: 100%;
}

#contact-form>.form-privacy {
  width: 100%;
}


#test-form>.form-name {
  width: 100%;
}

#test-form>.form-email {
  width: 100%;
}

#test-form>.form-subdomain {
  width: 100%;
}

#test-form>.form-privacy {
  width:  100%;
}


div[role="textbox"] {
  width: max(20ch, 100%);
}

input,
textarea {
  box-sizing: border-box;
  background-color: var(--section-text);
  color: var(--section-bg);
  outline: none;
  box-shadow: none;
  border-width: 0.1rem;
  border-style: none;
  border-image: none;
  border-radius: 0.5rem;
  padding: 1rem;
  padding: 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  width: 100%;
}


input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  outline-color: var(--col-error);
  outline-style: solid;
  outline-width: 0.15rem;

}


.form-inverse {
  background-color: var(--section-bg);
  color: var(--section-text);
  border: solid 0.05rem var(--section-text);
}

.form-inverse::placeholder {
  color: var(--section-text);
}

input::placeholder,
textarea::placeholder {
  color: var(--section-bg);
  font-weight: 600;
  opacity: 70%;
}

.form-group {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0.5em;
}

.input-group {
  display: grid;
  grid-template:
    "label"
    "input";
  grid-template-columns: 1fr;
  gap: 0.5em;
}

/* Alert */

.alert {
  font-size: 0.9em;
  display: grid;
  grid-template:
    "title"
    "message";
  grid-template-columns: 1fr;
  padding: 1em;
  gap: 0.3em;
  margin: 1rem 0;
  border-radius: 0.5rem;
  border-width: 0.1rem;
  border-style: solid;

}

.alert>* {
  margin: 0;
  padding: 0;
}


.alert-success {
  border-color: #3eb692;
  background-color: #21dba333;
  color: #ffffff;
}


.alert-warning {
  border-color: #faa931;
  background-color: #e0791883;
  color: #ffffff;
}


.alert-danger {
  border-color: var(--col-error);
  background-color: #ff3d0c5e;
  color: #ffffff;
}

/* card */

.card {
  padding: 2rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.card-white {
  --section-bg: var(--bg-white);
  --section-text: var(--bg-blue);
  color: var(--bg-blue);
  background-color: var(--bg-white);
}

.card-blue {
  --section-bg: var(--bg-blue);
  --section-text: var(--bg-white);
  color: var(--bg-white);
  background-color: var(--bg-blue);
}

/* list */

ul {
  padding-inline-start: 20px;
  /* margin: 0; */
}

ul>li {
  margin: 0.5rem 0;
  padding: 0;
  line-height: 1.8;
}