:root {
  color-scheme: light;
}

html {
  overflow-x: clip;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: clip;
  width: 100%;
  margin: 0;
  padding: 0;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

body.menu-open {
  touch-action: none;
}

.header-surface {
  background-color: #e8eef3;
}

.cta-wave {
  background: linear-gradient(-45deg, #2563eb, #1d4ed8, #1e40af, #3b82f6);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.cta-wave::before,
.cta-wave::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 180%;
  max-width: 180%;
  height: 360px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.cta-wave::before {
  top: -220px;
  opacity: 0.85;
  animation: floatUp 3s ease-in-out infinite;
}

.cta-wave::after {
  bottom: -260px;
  opacity: 0.55;
  animation: floatDown 4s ease-in-out infinite;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-20px);
  }
}

@keyframes floatDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(20px);
  }
}

header img {
  background-color: #e8eef3;
  border-radius: 0.5rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #1e40af;
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
  background: linear-gradient(90deg, #1e40af, #2563eb);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  animation: fadeInUp 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-60px);
  animation: fadeInLeft 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(60px);
  animation: fadeInRight 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeInScale 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.3s;
}

.delay-300 {
  animation-delay: 0.5s;
}

.delay-400 {
  animation-delay: 0.7s;
}

.delay-500 {
  animation-delay: 0.9s;
}

.delay-600 {
  animation-delay: 1.1s;
}

.delay-700 {
  animation-delay: 1.3s;
}

.delay-800 {
  animation-delay: 1.5s;
}

.delay-900 {
  animation-delay: 1.7s;
}

.scroll-animate,
.scroll-animate-left,
.scroll-animate-right,
.scroll-animate-scale {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate {
  transform: translateY(60px);
}

.scroll-animate-left {
  transform: translateX(-60px);
}

.scroll-animate-right {
  transform: translateX(60px);
}

.scroll-animate-scale {
  transform: scale(0.9);
}

.scroll-animate.active,
.scroll-animate-left.active,
.scroll-animate-right.active,
.scroll-animate-scale.active {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

.tech-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  background-color: #eff6ff;
  color: #2563eb;
  box-shadow: inset 0 12px 22px rgba(37, 99, 235, 0.15);
  font-size: 2.5rem;
}

.tech-icon i {
  line-height: 1;
}

.tech-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  line-height: 1;
}

.tech-icon .kotlin-icon {
  border-radius: 0.75rem;
  overflow: hidden;
}

.contact-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background-color: #eff6ff;
  color: #2563eb;
  box-shadow: inset 0 8px 18px rgba(37, 99, 235, 0.12);
  font-size: 1.25rem;
}

.contact-icon i {
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100dvh;
  width: min(85vw, 340px);
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.22);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 1.75rem 1.5rem 1.5rem;
  height: 100%;
  overflow: hidden;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.mobile-menu__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  background: rgba(241, 245, 249, 0.55);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-link::after {
  display: none;
}

.mobile-nav-link:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  color: #1d4ed8;
}

.mobile-menu__cta {
  position: sticky;
  bottom: 0;
  padding-top: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 65%);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-menu__cta-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 25px 40px -22px rgba(37, 99, 235, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.mobile-menu__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -25px rgba(29, 78, 216, 0.55);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: #334155;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero-subheadline {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 2.4s ease, transform 2.4s ease;
  pointer-events: none;
}

.hero-followup {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-subheadline.is-visible,
.hero-followup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 1.25rem !important;
    padding-bottom: 1.5rem !important;
    align-items: flex-start !important;
  }

  .hero-content [data-hero-block] {
    margin-top: 1rem;
    width: 100%;
  }

  .hero-heading {
    margin-top: 1.5rem !important;
  }

  .hero-cta-container {
    margin-top: 0.375rem !important;
    transition: margin-top 0.35s ease, transform 0.35s ease;
    transform: translateY(var(--hero-cta-translate, 0));
  }

  .hero-cta-container.hero-cta-container--spaced {
    margin-top: 0.875rem !important;
  }
}

