/* reset */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Inter:900italic,900,400,600,500,700");

/* setup fonts */
@font-face {
  font-family: "Times-Regular";
  font-style: normal;
  font-weight: 400;
  src: local("Times New Roman"), local("TimesNewRoman");
}

@font-face {
  font-family: "Times-Bold";
  font-style: normal;
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
}

/* variables */
:root {
  --black: #000000;
  --white: #ffffff;

  --font-size-sm: clamp(10px, 0.8vw, 12px);
  --font-size-m: clamp(14px, 1vw, 16px);
  --font-size-l: clamp(24px, 2vw, 32px);
  --font-size-xl: clamp(30px, 2.5vw, 40px);
  --font-size-xxl: clamp(34px, 3vw, 48px);
  --font-size-xxxl: clamp(48px, 5vw, 80px);

  --font-family-inter: "Inter", Helvetica;
  --font-family-times-regular: "Times-Regular", Helvetica;
  --font-family-times-bold: "Times-Bold", Helvetica;

  --max-width-content: 1200px;
  --container-padding: clamp(1rem, 5vw, 3rem);
}

/* global style */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  background: var(--black);
}

/* layout components */

.container-center-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.main {
  width: 100%;
  min-height: 100vh;
  background-color: var(--black);
  color: var(--white);
}

/* section common */
.section {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.section-content {
  max-width: var(--max-width-content);
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--container-padding) 0;
}

.section-title {
  font-family: var(--font-family-inter);
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
}

/* navigation */
.view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black);
  z-index: 100;
  transition: transform 0.3s ease-in-out;
}

.view.nav-hidden {
  transform: translateY(-100%);
}

.view.nav-scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease-in-out;
}

.nav-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 1rem var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-family-inter);
  font-size: var(--font-size-l);
  font-style: italic;
  font-weight: 900;
  color: var(--white);
}

.navbar {
  display: flex;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.navbar-link {
  font-family: var(--font-family-inter);
  font-size: var(--font-size-m);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease-in-out;
}

.navbar-link:hover {
  color: rgb(184, 134, 11);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(184, 134, 11);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-in-out;
}

/* progressbar */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(184, 134, 11, 0.2);
}

.progress-bar {
  height: 100%;
  width: 0;
  background: rgb(184, 134, 11);
  transition: width 0.3s ease;
}

/* footer */
.footer {
  height: auto;
  min-height: 30vh;
  padding: 4rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-family-inter);
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: 1.6;
  color: var(--white);
}

.footer-content a {
  color: var(--white);
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

/* mobile-menu */
.mobile-menu-button {
  display: none;
  cursor: pointer;
  padding: 15px;
  z-index: 1000;
}

.menu-icon {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.menu-active .menu-icon {
  background-color: transparent;
}

.menu-active .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-active .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
}

.mobile-menu-link {
  font-family: var(--font-family-inter);
  font-size: var(--font-size-xxl);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  padding: 20px;
  margin: 10px 0;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* responsive styles */
/* (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .section-content {
    padding: 60px var(--container-padding) 0;
  }

  .section-title {
    font-size: var(--font-size-xxxl);
  }

  .nav-container {
    padding: 0.8rem var(--container-padding);
  }

  .navbar {
    gap: clamp(2rem, 4vw, 4.5rem);
  }

  .logo {
    font-size: var(--font-size-l);
  }

  .navbar-link {
    font-size: var(--font-size-m);
  }

  .footer {
    min-height: 25vh;
    padding: 3rem var(--container-padding);
  }

  .footer-content {
    font-size: var(--font-size-m);
  }
}

@media (max-width: 767px) {
  .section {
    min-height: 0;
    min-height: unset;
    height: auto;
    padding: 60px 0;
  }

  .section-title {
    font-size: var(--font-size-xxxl);
    margin-bottom: 60px;
    text-align: left;
  }

  .nav-container {
    justify-content: center;
    position: relative;
    padding: 1rem;
    z-index: 1000;
  }

  .mobile-menu-button {
    display: block;
    position: absolute;
    left: 15px;
  }

  .navbar {
    display: none;
  }

  .menu-active .mobile-menu-overlay {
    display: block;
  }
}