* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #070b12;
  color: white;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(to bottom, #0a1220 0%, #132235 35%, #22384b 68%, #1a2733 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(5, 15, 30, 0) 0%,
    rgba(3, 10, 20, 0.65) 45%,
    #020812 100%
  );
  pointer-events: none;
  z-index: 3;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 8, 16, 0.35), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.mountains {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: auto;
  z-index: 2;
}

.mountain-back {
  fill: rgba(120, 145, 165, 0.18);
}

.mountain-mid {
  fill: rgba(70, 92, 110, 0.65);
}

.mountain-front {
  fill: #16232e;
}

.snow {
  fill: rgba(245, 248, 252, 0.92);
}

/* Hero Text */

.hero-text {
  margin: 0;
  font-size: 10rem;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Caveat', cursive;
}

.hero-text-2 {
  color: rgba(0, 255, 42, 0.695);
  font-family: 'JetBrains Mono', monospace;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  margin-top: 1.5rem;
}

.hero-subtitle::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(
    to right,
    transparent,
    #4ade80,
    transparent
  );
  opacity: 0.7;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 1rem 0;
  background: rgba(8, 15, 28, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.04em;
  z-index: 1002;
}

.nav-logo span {
  color: #4ade80;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-menu a:not(.nav-button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #86efac;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-menu a:not(.nav-button):hover::after {
  width: 100%;
}

.nav-button {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80 !important;
}

.nav-button:hover {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac !important;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #022c22;
  background: linear-gradient(135deg, #86efac, #22c55e);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
  transition: all 0.3s ease;
  position: relative;
}

.hero-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #a7f3d0, #22c55e);
}

.hero-button:active {
  transform: scale(0.96);
}

.hero-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.4);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero-button:hover::after {
  opacity: 1;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 2px;
  opacity: 0.75;
  background: linear-gradient(
    to right,
    transparent,
    #4ade80,
    transparent
  );
  box-shadow:
    0 0 25px rgba(74, 222, 128, 0.5),
    0 0 60px rgba(74, 222, 128, 0.2);
  border-radius: 999px;
}

main {
  position: relative;
  margin-top: -60px;
  z-index: 5;
  background: #020812;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  height: auto;
}

.services {
  padding: 120px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.main-hero {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border: 1px solid rgba(74, 222, 128, 0.4);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 25px rgba(74, 222, 128, 0.15);
}

.service-card h3 {
  color: #4ade80;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.95rem;
}

.about {
  padding: 20px 20px 0;
}

.text-about {
  display: block;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 60px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  letter-spacing: 0.02em;
}

.name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #ffffff;
}

.name span {
  color: #4ade80;
}

.text-about br {
  display: block;
  margin: 12px 0;
  content: "";
}

.text-about:hover {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.about-title {
  position: relative;
  font-size: 3rem;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.about-title .nord {
  color: rgba(255, 255, 255, 0.95);
}

.about-title .firn {
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.about-title .firn:hover {
  text-shadow:
    0 0 20px rgba(74, 222, 128, 0.6),
    0 0 40px rgba(74, 222, 128, 0.3);
  transition: all 0.3s ease;
}

.contact {
  max-width: 700px;
  margin: 0 auto;
  padding: 150px 20px 140px;
  text-align: center;
}

.contact-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

.contact-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
}

.contact-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: #022c22;
  background: linear-gradient(135deg, #86efac, #22c55e);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
  transition: all 0.3s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

.contact-mail {
  margin-top: 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-mail span {
  color: #4ade80;
  font-weight: 500;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(
    to top,
    #020812,
    rgba(2, 8, 18, 0.6)
  );
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

.footer p {
  margin: 6px 0;
}

.footer span {
  color: #4ade80;
}

/* Tablet + Mobile */

@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    padding: 120px 20px 140px;
  }

  .hero-content {
    width: 100%;
    max-width: 680px;
    padding: 0 10px;
  }

  .hero-text {
    font-size: clamp(4.2rem, 16vw, 7rem);
    line-height: 0.95;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
    padding: 0 10px;
  }

  .hero-subtitle::after {
    width: 180px;
  }

  .mountains {
    bottom: -4px;
    width: 140%;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-container {
    width: min(1120px, calc(100% - 1.2rem));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 14px;
    border-radius: 20px;
    background: rgba(8, 15, 28, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.95rem 1rem;
    border-radius: 14px;
  }

  .nav-menu a:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-menu a:not(.nav-button)::after {
    display: none;
  }

  .nav-button {
    text-align: center;
    margin-top: 0.4rem;
  }

  main {
    margin-top: -32px;
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
  }

  main::before {
    width: 180px;
  }

  .services {
    padding: 90px 20px 50px;
  }

  .main-hero,
  .about-title,
  .contact-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
    line-height: 1.1;
  }

  .main-hero {
    margin-bottom: 40px;
  }

  .services-grid {
    gap: 18px;
  }

  .service-card {
    padding: 24px;
    border-radius: 18px;
  }

  .about-title {
    margin-top: 70px;
  }

  .text-about {
    margin-top: 32px;
    font-size: 0.98rem;
    line-height: 1.75;
    padding: 0 6px;
  }

  .contact {
    padding: 110px 20px 110px;
  }

  .contact-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .contact-button,
  .hero-button {
    width: 100%;
    max-width: 320px;
    padding: 15px 24px;
  }

  .footer {
    padding: 32px 18px;
  }
}

/* Small phones */

@media (max-width: 520px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 120px;
  }

  .hero-text {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p,
  .text-about,
  .contact-text {
    font-size: 0.95rem;
  }

  .contact-mail {
    font-size: 0.88rem;
    word-break: break-word;
  }

  main::before {
    width: 130px;
  }
}