:root {
  --bg: #000;
  --fg: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #00bcd4;
  --accent-strong: rgba(0, 188, 212, 0.65);
  --card: #0b0b0b;
  --border: #1a1a1a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --max-width: 1100px;
  --honey-size: clamp(320px, 38vw, 540px);
  --honey-cell-width: clamp(58px, 7vw, 96px);
}

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

html {
  font-size: 16px;
  color-scheme: dark;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", "IRANSans",
    "Noto Naskh Arabic", sans-serif;
  background: radial-gradient(circle at top, rgba(0, 188, 212, 0.08), transparent 36%),
    var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(9px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
}

.nav.nav--scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--fg);
  white-space: nowrap;
}

.links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: rgba(0, 188, 212, 0.08);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.links a:hover,
.links a:focus-visible {
  color: var(--fg);
  transform: translateY(-1px);
}

.links a[aria-current="page"] {
  color: var(--fg);
  background: rgba(0, 188, 212, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 188, 212, 0.35);
}

.links a:hover::after,
.links a:focus-visible::after {
  opacity: 1;
}

main {
  flex: 1;
}

.hero {
  min-height: calc(100dvh - 100px);
  padding: 5rem 1.5rem 3rem;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    repeating-linear-gradient(60deg, rgba(0, 188, 212, 0.06) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(-60deg, rgba(0, 188, 212, 0.035) 0 2px, transparent 2px 46px);
  opacity: 0.45;
  mask-image: radial-gradient(closest-side, #000 65%, transparent);
  animation: bg-pan 26s linear infinite;
  pointer-events: none;
}

@keyframes bg-pan {
  to {
    transform: translate3d(85px, 50px, 0);
  }
}

.hero-content {
  display: grid;
  place-items: center;
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-hex {
  width: var(--honey-size);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0, 188, 212, 0.22), rgba(0, 0, 0, 0.65));
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.75);
}

.hero-hex::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 2vw, 22px);
  border-radius: 22px;
  border: 1.5px solid rgba(0, 188, 212, 0.45);
  opacity: 0;
  transform: scale(1.1);
  animation: frame-pop 1.1s ease forwards 0.35s;
  pointer-events: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05) brightness(0.9);
  transition: transform 0.45s ease, filter 0.45s ease;
  opacity: 0;
  transform: scale(0.94);
  animation: image-reveal 1.25s ease-out forwards 0.45s;
}

.hero-hex:hover .hero-portrait {
  transform: scale(1.04);
  filter: saturate(1.08) brightness(1.08);
}

@keyframes frame-pop {
  from {
    opacity: 0;
    transform: scale(1.15);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes image-reveal {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }
  70% {
    opacity: 0.92;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slogan {
  margin: 0;
  font-size: clamp(1.05rem, 2.35vw, 1.6rem);
  color: var(--muted);
  min-height: 2.4em;
}

.slogan .caret {
  display: inline-block;
  width: 0.75ch;
  text-align: center;
}

[data-type-caret].is-off {
  opacity: 0;
}

.section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section h1,
.section h2,
.section h3 {
  color: var(--fg);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 0;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 188, 212, 0.6);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.gallery-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  background: #0d1c20;
}

#contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-panel {
  display: grid;
  gap: 1.6rem;
}

#contact-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

#contact-form input,
#contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--fg);
  font: inherit;
  width: 100%;
  transition: border-color 0.25s ease, background 0.25s ease;
}

#contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 188, 212, 0.75);
  background: rgba(0, 188, 212, 0.08);
}

#contact-form button {
  justify-self: start;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.85), rgba(0, 188, 212, 0.55));
  color: #02171b;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact-form button:hover,
#contact-form button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 188, 212, 0.35);
}

.contact-response {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--fg);
  display: grid;
  gap: 1.2rem;
}

.contact-response[hidden] {
  display: none !important;
}

.contact-response p {
  margin: 0;
  line-height: 1.8;
  color: var(--fg);
}

.contact-response button {
  justify-self: start;
  background: none;
  border: 1px solid rgba(0, 188, 212, 0.45);
  color: var(--accent);
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-response button:hover,
.contact-response button:focus-visible {
  border-color: rgba(0, 188, 212, 0.75);
  color: var(--fg);
  transform: translateY(-2px);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}

@media (max-width: 800px) {
  .nav-inner {
    gap: 1rem;
  }

  .links {
    gap: 0.65rem;
  }

  .links a {
    padding: 0.35rem 0.65rem;
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero-hex {
    width: 78vw;
  }

  .section {
    padding: 3rem 1rem;
  }

  .card {
    padding: 1.4rem;
  }
}
