:root {
  --color-golden-glow: #dde61f;
  --color-digital-slate: #0f1822;
  --color-nordic-pine: #1a5632;
  --color-nordic-mist: #d6d7d5;
  --color-nordic-mist-s50: #80837c;

  font-family:
    "Archivo",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    "Open Sans",
    Arial,
    sans-serif;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  color: var(--color-golden-glow);
}

body,
html {
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.005em;

  @media screen and (min-width: 480px) {
    font-size: 18px;
  }

  @media screen and (min-width: 768px) {
    font-size: 20px;
  }

  @media screen and (min-width: 1024px) {
    font-size: 20px;
  }

  @media screen and (min-width: 1280px) {
    font-size: 22px;
  }
}

/* ---- Fixed background layers ---- */

#canvas {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #0f1822;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, #0f1822 0%, rgba(15, 24, 34, 0) 100%),
    radial-gradient(
      ellipse farthest-corner at 70% 40%,
      rgba(15, 24, 34, 0) 10%,
      #0f1822 76%
    );
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

/* ---- Snap-scroll container ---- */

.base {
  position: relative;
  z-index: 1;

  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;

  font-family: "Archivo";
}

/* Hide scrollbar but keep functionality */
.base::-webkit-scrollbar {
  display: none;
}
.base {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---- Section base ---- */

.section {
  height: 100vh;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5em;
  box-sizing: border-box;
  position: relative;
}

/* ---- Hero Section ---- */

.section--hero {
  justify-content: space-between;
  padding-top: 2em;
  padding-bottom: 2em;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-description {
  font-size: 16px;
  line-height: 24px;
  max-width: 660px;
  color: var(--color-golden-glow);
  margin: 0;
  padding-top: 2em;
}

.hero-logo {
  /*padding-top: 4em;*/
}

.hero-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
  flex-grow: 1;
  padding: 2em 0;
}

.hero-bottom {
  display: flex;
  justify-content: center;
  padding-bottom: 1em;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  color: var(--color-golden-glow);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator__arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--color-golden-glow);
  border-bottom: 2px solid var(--color-golden-glow);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(6px) rotate(45deg);
  }
  60% {
    transform: translateY(3px) rotate(45deg);
  }
}

/* ---- Mission Section ---- */

.section--mission {
  justify-content: flex-end;
  padding-bottom: 5em;
}

.mission-content {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 3em;
}

.mission-headline {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-golden-glow);
  margin: 0;
  max-width: 500px;
}

.mission-body {
  max-width: 520px;
}

.mission-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-nordic-mist);
  margin: 0;
}

.mission-body strong {
  color: var(--color-golden-glow);
  font-weight: 700;
}

/* ---- Services Section ---- */

.section--services {
  justify-content: center;
  gap: 2em;
  scroll-snap-align: start;
}

/* On mobile, services cards overflow 100vh — allow natural height. */
@media screen and (max-width: 768px) {
  .section--services {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: start;
    padding-top: 3em;
    padding-bottom: 3em;
  }
}

.services-heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-golden-glow);
  margin: 0 0 0.5em 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.service-card {
  background: rgba(15, 24, 34, 0.7);
  border: 1px solid rgba(221, 230, 31, 0.12);
  border-radius: 16px;
  padding: 2em;
  backdrop-filter: blur(4px);
  transition:
    border-color 0.3s ease,
    transform 0.2s ease;
}

.service-card:hover {
  border-color: rgba(221, 230, 31, 0.35);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-golden-glow);
  margin: 0 0 0.6em 0;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-nordic-mist);
  margin: 0;
}

/* ---- Contact Section ---- */

.section--contact {
  justify-content: space-between;
  padding-top: 4em;
  padding-bottom: 2em;
}

.contact-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3em;
  flex-grow: 1;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.contact-text h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-golden-glow);
  margin: 0;
  line-height: 1.1;
}

.contact-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-nordic-mist);
  max-width: 500px;
  margin: 0;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 400;
  color: var(--color-nordic-mist-s50);
}

.contact-footer #email {
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
}

.contact-footer div {
  display: flex;
  gap: 30px;
}

/* ---- Flip Card (reused in Hero and Contact) ---- */

.flip-card {
  height: 313px;
  width: 313px;
  min-width: 313px;
  max-width: 313px;
  max-height: 313px;
  perspective: 1000px;
  overflow: hidden;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.065);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.flip-card-front {
  background-color: var(--color-golden-glow);
}

.flip-card-back {
  background-color: var(--color-golden-glow);
  color: var(--color-digital-slate);
  transform: rotateY(180deg);
  padding: 2rem;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  box-sizing: border-box;
}

/* ---- Shared components ---- */

.main-text {
  display: flex;
  flex-direction: column;
  gap: 0.6em;

  #main-title {
    margin: 0px;
    font-size: 54px;
    font-weight: 700;
    line-height: 65px;
  }
}

.main-git {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;

  .contact-link {
    background: none;
    color: var(--color-golden-glow);
    height: 60px;
    width: 175px;

    border: 2px solid var(--color-golden-glow);
    border-radius: 30px;

    font-size: 20px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .contact-link:hover {
    background-color: rgba(221, 230, 31, 0.1);
    transform: scale(1.02);
  }
}

/* ---- Mobile Responsive ---- */

@media screen and (max-width: 768px) {
  .section {
    padding: 0 2em;
  }

  .hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0;
  }

  .hero-description {
    width: 100%;
  }

  .hero-logo {
    padding-top: 2em;
  }

  .hero-center {
    flex-direction: column;
    align-items: flex-start;
  }

  .flip-card {
    height: 200px;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    max-height: 200px;
  }

  .main-text #main-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .mission-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5em;
  }

  .mission-headline {
    font-size: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .services-heading {
    font-size: 28px;
  }

  .contact-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-text h2 {
    font-size: 32px;
  }

  .contact-content {
    padding-top: 2em;
  }

  .contact-footer {
    flex-direction: column-reverse;
    gap: 1em;
    text-align: center;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 0 1.5em;
  }

  .mission-headline {
    font-size: 28px;
  }

  .main-text #main-title {
    font-size: 26px;
  }

  .flip-card {
    height: 160px;
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    max-height: 160px;
  }
}
