/* --- Fonts --- */
@font-face {
  font-family: Roboto;
  font-weight: 100;
  font-style: normal;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: Roboto;
  font-weight: 300;
  font-style: normal;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: Roboto;
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: Roboto;
  font-weight: 400;
  font-style: italic;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: Roboto;
  font-weight: 600;
  font-style: normal;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

@font-face {
  font-family: Roboto;
  font-weight: 900;
  font-style: normal;
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  src: url('../fonts/roboto-v48-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* --- Variables --- */

[data-theme="light"] {
  /* Light Colours */
  --main-bg-color: #f0f4f8;
  --card-color: #fff;
  --bar-bg-color: #e1e9f5;
  --font-color: #1a283a;
  --headline-color: #2368c9;
  --faded-font-color: #485d80;
  --hover-font-color: #2368c9;
  --cta-btn-bg: #154288;
  --cta-btn-hover: #2163c0;
  --cta-btn-text: #fff;
  --border-color: #b3c9e6;
  --shadow-color: rgb(100 140 200 / 15%);
  --success-bg: rgb(35 104 201 / 8%);
  --error-color: #d43e3e;
  --error-bg: rgb(255 56 56 / 6%);
  --required-color: #d43e3e;

  /* Light Sizing */
  --button-size: 28px;
  --menu-button-margin: 4px;
  --menu-button-padding-right: 34px;
  --menu-button-padding-left: 21px;
  --menu-margin: 16px;
  --nav-button-margin: 1px;
  --nav-button-padding: 15px;
  --nav-button-padding-right: 26px;

  /* Light Background Images */
  --background-image: radial-gradient(ellipse at 60% 48%, rgb(212 230 255 / 44%) 0%, rgb(205 226 255 / 14%) 80%, transparent 100%), url("../images/main.webp") center/cover no-repeat;
  --background-image-600: radial-gradient(ellipse at 60% 48%, rgb(212 230 255 / 44%) 0%, rgb(205 226 255 / 14%) 80%, transparent 100%), url("../images/main-600.webp") center/cover no-repeat;
  --background-image-1024: radial-gradient(ellipse at 60% 48%, rgb(212 230 255 / 44%) 0%, rgb(205 226 255 / 14%) 80%, transparent 100%), url("../images/main-1024.webp") center/cover no-repeat;
  --background-image-1440: radial-gradient(ellipse at 60% 48%, rgb(212 230 255 / 44%) 0%, rgb(205 226 255 / 14%) 80%, transparent 100%), url("../images/main-1440.webp") center/cover no-repeat;
  --background-image-1920: radial-gradient(ellipse at 60% 48%, rgb(212 230 255 / 44%) 0%, rgb(205 226 255 / 14%) 80%, transparent 100%), url("../images/main-1920.webp") center/cover no-repeat;
  --services-image: radial-gradient(ellipse at 60% 48%, rgb(196 197 200 / 44%) 0%, rgb(28 28 30 / 14%) 80%, transparent 100%), url("../images/services.webp") center/cover no-repeat;
  --services-image-600: radial-gradient(ellipse at 60% 48%, rgb(196 197 200 / 44%) 0%, rgb(28 28 30 / 14%) 80%, transparent 100%), url("../images/services-600.webp") center/cover no-repeat;
  --services-image-1024: radial-gradient(ellipse at 60% 48%, rgb(196 197 200 / 44%) 0%, rgb(28 28 30 / 14%) 80%, transparent 100%), url("../images/services-1024.webp") center/cover no-repeat;
  --services-image-1440: radial-gradient(ellipse at 60% 48%, rgb(196 197 200 / 44%) 0%, rgb(28 28 30 / 14%) 80%, transparent 100%), url("../images/services-1440.webp") center/cover no-repeat;
  --services-image-1920: radial-gradient(ellipse at 60% 48%, rgb(196 197 200 / 44%) 0%, rgb(28 28 30 / 14%) 80%, transparent 100%), url("../images/services-1920.webp") center/cover no-repeat;
  --contact-image: radial-gradient(ellipse at 60% 48%, rgb(236 244 255 / 44%) 0%, rgb(236 244 255 / 14%) 80%, transparent 100%), url("../images/contact.webp") center/cover no-repeat;
  --contact-image-600: radial-gradient(ellipse at 60% 48%, rgb(236 244 255 / 44%) 0%, rgb(236 244 255 / 14%) 80%, transparent 100%), url("../images/contact-600.webp") center/cover no-repeat;
  --contact-image-1024: radial-gradient(ellipse at 60% 48%, rgb(236 244 255 / 44%) 0%, rgb(236 244 255 / 14%) 80%, transparent 100%), url("../images/contact-1024.webp") center/cover no-repeat;
  --contact-image-1440: radial-gradient(ellipse at 60% 48%, rgb(236 244 255 / 44%) 0%, rgb(236 244 255 / 14%) 80%, transparent 100%), url("../images/contact-1440.webp") center/cover no-repeat;
  --contact-image-1920: radial-gradient(ellipse at 60% 48%, rgb(236 244 255 / 44%) 0%, rgb(236 244 255 / 14%) 80%, transparent 100%), url("../images/contact-1920.webp") center/cover no-repeat;
}

[data-theme="dark"] {
  /* Dark Core Colours */
  --main-bg-color: #161e27;
  --card-color: #1c2737;
  --bar-bg-color: #202838;
  --font-color: #dde6f3;
  --headline-color: #8ebeff;
  --faded-font-color: #a4b1c8;
  --hover-font-color: #b1cdfa;
  --cta-btn-bg: #143d6d;
  --cta-btn-hover: #2163c0;
  --cta-btn-text: #eaf3ff;
  --border-color: #26344a;
  --shadow-color: rgb(70 141 255 / 10%);
  --success-bg: rgb(70 141 255 / 11%);
  --error-color: #ff6969;
  --error-bg: rgb(255 105 105 / 10%);
  --required-color: #ff6969;

  /* Dark Sizing */
  --button-size: 38px;
  --menu-button-margin: -6px;
  --menu-button-padding-right: 20px;
  --menu-button-padding-left: 16px;
  --menu-margin: 16px;
  --nav-button-margin: -5px;
  --nav-button-padding: 15px;
  --nav-button-padding-right: 20px;

  /* Dark Background Images */
  --background-image: radial-gradient(ellipse at 58% 48%, rgb(32 44 59 / 64%) 0%, rgb(35 50 77 / 38%) 80%, transparent 100%), url("../images/main.webp") center/cover no-repeat;
  --background-image-600: radial-gradient(ellipse at 58% 48%, rgb(32 44 59 / 64%) 0%, rgb(35 50 77 / 38%) 80%, transparent 100%), url("../images/main-600.webp") center/cover no-repeat;
  --background-image-1024: radial-gradient(ellipse at 58% 48%, rgb(32 44 59 / 64%) 0%, rgb(35 50 77 / 38%) 80%, transparent 100%), url("../images/main-1024.webp") center/cover no-repeat;
  --background-image-1440: radial-gradient(ellipse at 58% 48%, rgb(32 44 59 / 64%) 0%, rgb(35 50 77 / 38%) 80%, transparent 100%), url("../images/main-1440.webp") center/cover no-repeat;
  --background-image-1920: radial-gradient(ellipse at 58% 48%, rgb(32 44 59 / 64%) 0%, rgb(35 50 77 / 38%) 80%, transparent 100%), url("../images/main-1920.webp") center/cover no-repeat;
  --services-image: radial-gradient(ellipse at 58% 48%, rgb(22 30 39 / 64%) 0%, rgb(28 39 58 / 38%) 80%, transparent 100%), url("../images/services.webp") center/cover no-repeat;
  --services-image-600: radial-gradient(ellipse at 58% 48%, rgb(22 30 39 / 64%) 0%, rgb(28 39 58 / 38%) 80%, transparent 100%), url("../images/services-600.webp") center/cover no-repeat;
  --services-image-1024: radial-gradient(ellipse at 58% 48%, rgb(22 30 39 / 64%) 0%, rgb(28 39 58 / 38%) 80%, transparent 100%), url("../images/services-1024.webp") center/cover no-repeat;
  --services-image-1440: radial-gradient(ellipse at 58% 48%, rgb(22 30 39 / 64%) 0%, rgb(28 39 58 / 38%) 80%, transparent 100%), url("../images/services-1440.webp") center/cover no-repeat;
  --services-image-1920: radial-gradient(ellipse at 58% 48%, rgb(22 30 39 / 64%) 0%, rgb(28 39 58 / 38%) 80%, transparent 100%), url("../images/services-1920.webp") center/cover no-repeat;
  --contact-image: radial-gradient(ellipse at 58% 48%, rgb(33 45 58 / 64%) 0%, rgb(38 52 77 / 38%) 80%, transparent 100%), url("../images/contact.webp") center/cover no-repeat;
  --contact-image-600: radial-gradient(ellipse at 58% 48%, rgb(33 45 58 / 64%) 0%, rgb(38 52 77 / 38%) 80%, transparent 100%), url("../images/contact-600.webp") center/cover no-repeat;
  --contact-image-1024: radial-gradient(ellipse at 58% 48%, rgb(33 45 58 / 64%) 0%, rgb(38 52 77 / 38%) 80%, transparent 100%), url("../images/contact-1024.webp") center/cover no-repeat;
  --contact-image-1440: radial-gradient(ellipse at 58% 48%, rgb(33 45 58 / 64%) 0%, rgb(38 52 77 / 38%) 80%, transparent 100%), url("../images/contact-1440.webp") center/cover no-repeat;
  --contact-image-1920: radial-gradient(ellipse at 58% 48%, rgb(33 45 58 / 64%) 0%, rgb(38 52 77 / 38%) 80%, transparent 100%), url("../images/contact-1920.webp") center/cover no-repeat;
}



/* --- Base --- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

* {
  margin: 0;
  padding: 0;
}

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

:root {
  font-family: Roboto, sans-serif;
  font-size: 18px;
}

html {
  height: -webkit-fill-available;
  transition: background-color 0.4s, color 0.4s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  height: 100dvh;
  height: -webkit-fill-available;
  color: var(--font-color);
  background-color: var(--main-bg-color);
}

#header-bar {
  display: flex;
  justify-content: center;
  width: 100dvw;
  background-color: var(--bar-bg-color);
}

#content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100dvw;
}

#footer {
  bottom: 0;
  width: 100dvw;
  margin-top: 50px;
  padding: 5px;
  text-align: center;
  background-color: var(--bar-bg-color);
}

small {
  margin: 5px 0;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  font-weight: 100;
}

button:focus-visible, a:focus-visible {
  outline: 1px dotted var(--hover-font-color);
  outline-offset: 2px;
}



/* --- Header --- */

/* Mobile Phones and Tablets */
.header {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  align-items: center;
  min-width: 320px;
}

.icon {
  margin: 10px 40px 2px 20px;
}

.menu-container {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  margin-right: 10px;
  padding: 10px;
  background: 0;
  border: 0;
  cursor: pointer;
}

.line1, .line2, .line3 {
  width: 30px;
  height: 2px;
  margin: 3px 0;
  background-color: var(--font-color);
  transition: 0.4s;
}

.change .line1 {
  transform: translate(0, 8px) rotate(-45deg);
}

.change .line2 {
  opacity: 0;
}

.change .line3 {
  transform: translate(0, -8px) rotate(45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: 75px;
  right: 8px;
  width: 200px;
  padding-bottom: 20px;
  text-align: center;
  background-color: var(--bar-bg-color);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s, display 0.6s, transform 0.6s;
}

.expand {
  display: block;
  opacity: 1;
  transform: scaleY(1);
}

@starting-style {
  .expand {
      opacity: 0;
      transform: scaleY(0);
  }
}

.nav-links ul {
  padding: 25px 25px 5px;
  line-height: 30px;
  list-style-type: none;
}

.nav-links a {
  font-size: 22px;
  color: var(--font-color);
  text-decoration: none;
}

.nav-links button {
  margin-top: var(--nav-button-margin);
  padding: 10px 20px;
  padding-right: var(--nav-button-padding-right);
  font-size: var(--button-size);
  color: var(--font-color);
  background-color: var(--bar-bg-color);
  border: 0;
  cursor: pointer;
}

/* Computers */
@media screen and (width >= 769px) {
.header {
  max-width: 1280px;
}

.menu-container {
  display: flex;
}

.menu {
  display: flex;
  align-items: center;
  margin-right: 20px;
  gap: 40px;
}

.menu-container button {
  margin-top: var(--menu-button-margin);
  padding-right: var(--menu-button-padding-right);
  padding-left: var(--menu-button-padding-left);
  font-size: var(--button-size);
  color: var(--font-color);
  background-color: var(--bar-bg-color);
  border: 0;
  cursor: pointer;
}

.menu-container button:hover {
  color: var(--hover-font-color);
}

.menu-links {
  color: var(--font-color);
  text-decoration: none;
}

.menu-links:hover {
  color: var(--hover-font-color);
  text-decoration: none;
}

.hamburger {
  display: none;
}

.nav-links {
  display: none;
}}



/* --- Hero --- */

.intro-container,
.services-intro-container,
.contact-intro-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  width: 100dvw;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.intro-container {
  background: var(--background-image);
}

.services-intro-container {
  background: var(--services-image);
}

.contact-intro-container {
  background: var(--contact-image);
}

.intro,
.services-intro,
.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  height: 500px;
  padding: 0 15px;
  gap: 20px;
  text-align: center;
}

section h1 {
  margin-bottom: 32px;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.02em;
  color: var(--headline-color);
  text-shadow: 0 2px 18px rgb(35 104 201 / 16%), 0 1px 1px rgb(0 0 0 / 10%);
}

[data-theme="dark"] .intro h1,
[data-theme="dark"] .services-intro h1,
[data-theme="dark"] .contact-intro h1 {
  color: var(--headline-color);
  text-shadow: 0 2px 18px rgb(35 104 201 / 16%), 0 1px 1px rgb(0 0 0 / 10%);
}

.intro h2,
.services-intro h2,
.contact-intro h2 {
  font-size: clamp(1rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--font-color);
  text-shadow: 0 2px 18px rgb(35 104 201 / 16%), 0 1px 1px rgb(0 0 0 / 10%);
}

@media (width <= 600px) {
  .intro-container {
    background: var(--background-image-600);
  }

  .services-intro-container {
    background: var(--services-image-600);
  }

  .contact-intro-container {
    background: var(--contact-image-600);
  }
}

@media (width >= 601px) and (width <= 1024px) {
  .intro-container {
    background: var(--background-image-1024);
  }

  .services-intro-container {
    background: var(--services-image-1024);
  }

  .contact-intro-container {
    background: var(--contact-image-1024);
  }
}

@media (width >= 1025px) and (width <= 1440px) {
  .intro-container {
    background: var(--background-image-1440);
  }

  .services-intro-container {
    background: var(--services-image-1440);
  }

  .contact-intro-container {
    background: var(--contact-image-1440);
  }
}

@media (width >= 1441px) and (width <= 1920px) {
  .intro-container {
    background: var(--background-image-1920);
  }

  .services-intro-container {
    background: var(--services-image-1920);
  }

  .contact-intro-container {
    background: var(--contact-image-1920);
  }
}

@media (width >= 1921px) {
  .intro-container {
    background: var(--background-image);
  }

  .services-intro-container {
    background: var(--services-image);
  }

  .contact-intro-container {
    background: var(--contact-image);
  }
}
