/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
:root {
  --clr-1: #111111;
  --clr-2: #ffffff;

  --clr-3: #ffaacb;
  --clr-4: #ff80b0;
  --clr-5: #ff5b9a;
  --gradient: #ffaacb, #ff5294;

  --clr-p: #3a3a3a;
  --clr-shadow: rgba(0, 0, 0, 0.5);
  --clr-border: rgba(0, 0, 0, 0.1);
  --clr-bg: #ffe7f0;
  --clr-overlay: rgba(0, 0, 0, 0.8);
}

@font-face {
  font-family: InstrumentSans;
  src: url(./font/InstrumentSans-Variable.ttf) format("truetype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gluten;
  src: url(./font/Gluten-Variable.ttf) format("opentype");
  font-weight: 100 200 300 400 500 600 700 800 900;
  font-style: normal;
  font-display: swap;
}

body {
  position: relative;
  overflow-x: hidden;

  font-size: 15px;
  font-weight: 400;
  font-family: "InstrumentSans", sans-serif;
  line-height: normal;
  letter-spacing: normal;
  color: var(--clr-4);
  background-color: var(--clr-2);
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
p,
a,
li,
button {
  font-family: "InstrumentSans", sans-serif;
}

h1 {
  font-size: clamp(1rem, 12vw, 15rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(1rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
h3 {
  font-size: clamp(1rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
h4 {
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p,
li,
a,
button {
  font-size: 15px;
  color: var(--clr-4);
}

a {
  color: var(--clr-4);
  transition: 0.3s;
}
a:hover {
  cursor: pointer;
}

.btn01 {
  background-color: var(--clr-5);
  color: var(--clr-2);
  border: solid 1px var(--clr-5);
  padding: 10px 20px;
  border-radius: 5px;
}
.btn02 {
  background-color: var(--clr-2);
  color: var(--clr-5);
  border: solid 1px var(--clr-5);
  padding: 10px 20px;
  border-radius: 5px;
}

.main {
  position: relative;
  z-index: 1;

  max-width: 1920px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
main::before {
  content: "";
  position: fixed;
  z-index: -2;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;

  background-image: url(./img/bg01.jpg);

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0.2;
}

.section {
  width: 100%;
  padding: 120px 60px;

  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: start;
  align-items: start;
}

.subsection {
  width: 100%;
  margin-bottom: 2rem;

  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: start;
  align-items: start;
}

.intro {
  width: 100%;
  margin-bottom: 3rem;

  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  text-align: center;

  grid-column-start: 1;
  grid-column-end: 3;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-2);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-container {
  width: 200px;
  height: 4px;
  background-color: var(--clr-bg);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-3), var(--clr-4));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.loader-text {
  font-family: "InstrumentSans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--clr-3);
  letter-spacing: 0.1em;
}

/* Prevent scrolling while preloader is visible */
body.preloader-active {
  overflow: hidden;
}

/* Background video */
.background-video {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;

  opacity: 0.3;
}

/* Header */
header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 1920px;
  padding: 20px;

  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

/* Footer */
footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 100%;
  max-width: 1920px;
  padding: 20px;

  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  text-align: center;

  background-color: var(--clr-2);
}
footer > a {
  width: 100%;
  padding: 10px 20px;
  border-radius: 10px;

  box-shadow: 0 0 5px var(--clr-3);
}
footer > a:hover {
  box-shadow: 0 0 10px var(--clr-3);
}
footer > p {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(1rem, 15vw, 15rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
  }
  h2 {
    font-size: clamp(1rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.05em;
  }
  h3 {
    font-size: clamp(1rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }
  h4 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  p,
  li,
  a,
  button {
    font-size: 12px;
  }

  .intro {
    margin-bottom: 2rem;

    grid-column-start: 1;
    grid-column-end: 2;
  }

  .section {
    padding: 80px 20px;
  }

  footer {
    gap: 5px;
  }
  footer > a {
    padding: 8px 16px;
  }
  footer > p {
    display: none;
  }
}
