/* D-DIN Font Face Declarations */
@font-face {
  font-family: "D-DIN";
  src: url("./d-din/D-DIN.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN";
  src: url("./d-din/D-DIN-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN";
  src: url("./d-din/D-DIN-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "D-DIN Condensed";
  src: url("./d-din/D-DINCondensed.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN Condensed";
  src: url("./d-din/D-DINCondensed-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN Expanded";
  src: url("./d-din/D-DINExp.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN Expanded";
  src: url("./d-din/D-DINExp-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "D-DIN Expanded";
  src: url("./d-din/D-DINExp-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body,
button span {
  font-family: "D-DIN", sans-serif;
  font-size: 17px;
}

a {
  text-decoration: none;
  transition-duration: 200ms;
}

a:hover {
  color: #495A9B;
  transition: color 0.3s ease;
}

h1 {
  font-family: "D-DIN", sans-serif;
  font-weight: bold;
  font-size: 44px;
  text-transform: capitalize;
}

h2 {
  font-weight: 600; /* Regular */
  font-size: 28px;
  margin: 0 0 8px;
}

h3 {
  font-weight: 400; /* Regular */
  font-size: 28px;
}

p {
  color: #2d3441;
  margin: 0 0 24px;
  text-align: justify;
}

p,
a {
  color: #2d3441;
}

h2 {
  color: #495A9B;
}

h3 {
  color: #5A6BA8;
}

/* NAVIGUATION BAR */

header {
  width: 100%;
  background-color: white;
  border-bottom: 1.5px solid rgba(73, 90, 155, 0.15);
  box-shadow: 0 2px 10px rgba(73, 90, 155, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 34px;
  max-width: 1000px;
}

nav #logo {
  display: flex;
  align-items: center;
}

nav #logo img {
  display: block;
}

nav ul {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-weight: 600; /* Semi-bold */
  font-size: 18px;
}

nav ul li {
  display: inline-block;
}

nav ul a {
  color: #2d3441;
  position: relative;
  transition: color 0.3s ease;
}

nav ul a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #495A9B;
  transition: width 0.3s ease;
}

nav ul a:hover {
  color: #495A9B;
}

nav ul a:hover::after {
  width: 100%;
}

/* Legacy support for menu element */
nav menu {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  font-weight: 600; /* Semi-bold */
  font-size: 18px;
}

nav menu a {
  color: #2d3441;
}

nav button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 12px 25px;
  background: #495A9B;
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(73, 90, 155, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

nav button span {
  font-weight: 600; /* Semi-bold */
  font-size: 16px;
  color: white;
  position: relative;
  z-index: 1;
}

nav button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

nav button:hover {
  background: #5A6BA8;
  box-shadow: 0 6px 20px rgba(73, 90, 155, 0.4);
  transform: translateY(-2px);
}

nav button:hover::before {
  width: 300px;
  height: 300px;
}

nav button:active {
  transform: translateY(0);
}

nav button:active::before {
  width: 300px;
  height: 300px;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* SECTIONS */

section {
  display: flex;
  padding: 80px 68px;
}

section .container {
  margin: auto;
  border-radius: 20px;
  max-width: 1000px;
}

section#about,
section#faq {
  background: #f8f9fc;
}

section#about .container,
section#faq .container {
  background: white;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(73, 90, 155, 0.08);
  max-width: 1000px;
}

/* SECTION HOME */

section#home {
  background: #495A9B;
  color: white;
  position: relative;
  overflow: hidden;
}

section#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./assets/grid.png") space;
  opacity: 0.1;
  z-index: 0;
}

section#home .container {
  padding: 28px 68px 0;
  background: #6B7FB3;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(73, 90, 155, 0.2);
  max-width: 1000px;
  width: 100%;
}

section#home .container .right {
  height: 415px;
}

section#home .container .right img {
  min-width: 300px;
  max-width: 350px;
  width: 280px;
  transform: translate(10%, 0px);
}

section#home .container .left {
  max-width: 496px;
}

section#home h2 {
  color: white;
  max-width: 1000px;

}

/* SECTION DOWNLOADS */

section#download {
  background: #f0f3f8;
}

section#download .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 648px;
  text-align: center;
  padding: 50px 40px;
  background: white;
  box-shadow: 0 8px 30px rgba(73, 90, 155, 0.1);
  border-radius: 24px;
}

section#download h2 {
  margin-bottom: 30px;
}

#cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

#cta img {
  transition: all 0.3s ease;
  border-radius: 12px;
  filter: drop-shadow(0 4px 8px rgba(73, 90, 155, 0.2));
}

#cta a:hover > img {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(73, 90, 155, 0.4);
  filter: drop-shadow(0 8px 15px rgba(73, 90, 155, 0.3));
}

/* FOOTER */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 34px;
  font-weight: 500; /* Medium */
  font-size: 16px;
  background: #374466;
  box-shadow: 0 -4px 15px rgba(73, 90, 155, 0.1);
}

footer span {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

footer a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

footer span:hover,
footer a:hover {
  color: #A8B8D9;
}

/* MEDIA QUERIES */

@media (width <= 1080px) {
  h1 {
    font-size: 36px;
  }
  h3 {
    font-size: 24px;
  }
  #home .right img {
    width: 100%;
  }
}

@media (width <= 950px) {
  section .container {
    width: 100%;
  }
  section {
    padding: 25px;
  }
  #home .container {
    padding: 28px 28px 0;
  }
}

@media (width <= 800px) {
  nav ul,
  nav menu {
    display: none;
  }
  #home .container {
    flex-direction: column;
  }
  #home .container .left {
    text-align: center;
  }
  #home .right img {
    transform: unset !important;
  }
}

@media (width <= 400px) {
  #home .right img {
    max-width: 100%;
  }
  #home .container {
    padding: 24px !important;
  }
  section#home .container .right {
    height: 215px;
  }
}

.screenshot-home {
  width: 250px;
  max-width: 100%;
  height: auto;
}
