/* Lunar Eclipse — Landing Page */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: rgba(255, 255, 255, 0.85);
  --gray-200: rgba(255, 255, 255, 0.55);
  --gray-300: rgba(255, 255, 255, 0.25);
  --gray-400: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 255, 255, 0.06);
  --font: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.thin { font-weight: 200; }
.bold { font-weight: 700; }

/* Background effects */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 8%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 50%, rgba(255,255,255,0.15) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.glow--hero {
  width: 600px;
  height: 600px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glow);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-400);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__brand {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-100);
  transition: color 0.25s var(--ease);
}

.nav__links a:hover {
  color: var(--white);
}

.nav__cta {
  padding: 10px 22px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease) !important;
}

.nav__cta:hover {
  background: var(--white);
  color: var(--black) !important;
  border-color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
}

.hero__inner {
  text-align: center;
  padding: 80px 0 120px;
}

.hero__logo {
  width: min(280px, 60vw);
  margin: 0 auto 40px;
  animation: fadeUp 1s var(--ease) both;
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-200);
  margin-bottom: 20px;
  animation: fadeUp 1s 0.1s var(--ease) both;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 1s 0.2s var(--ease) both;
}

.hero__accent {
  font-weight: 700;
}

.hero__text {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gray-100);
  animation: fadeUp 1s 0.3s var(--ease) both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.4s var(--ease) both;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--gray-300);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-200);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section__title--center {
  text-align: center;
}

.section__text {
  font-size: 1.05rem;
  color: var(--gray-100);
  margin-bottom: 16px;
  max-width: 540px;
}

.section__subtitle {
  text-align: center;
  color: var(--gray-200);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat {
  padding: 32px;
  border: 1px solid var(--gray-400);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease);
}

.stat:hover {
  border-color: var(--gray-300);
}

.stat__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--gray-200);
}

/* Services / Cards */
.services {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02), transparent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  padding: 36px 28px;
  border: 1px solid var(--gray-400);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.92rem;
  color: var(--gray-200);
  line-height: 1.65;
}

/* Projects */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--gray-400);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #111 0%, #000 100%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
}

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}

.project__status {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-200);
  margin-bottom: 8px;
}

.project__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project__desc {
  font-size: 0.9rem;
  color: var(--gray-200);
}

/* Contact */
.contact {
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__logo {
  width: min(260px, 70vw);
  margin-bottom: 48px;
  opacity: 0.9;
}

.contact__social {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.social-link {
  font-size: 0.9rem;
  color: var(--gray-200);
  transition: color 0.25s var(--ease);
}

.social-link:hover {
  color: var(--white);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0;
  border-top: 1px solid var(--gray-400);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-200);
}

.footer__note {
  font-size: 0.85rem;
  color: var(--gray-300);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
    z-index: 110;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    font-size: 1.25rem;
  }

  .nav__toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding: 60px 0 100px;
  }

  .section {
    padding: 80px 0;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
