@font-face {
  font-family: "Estedad";
  src: url("./fonts/400-Estedad-FD-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ——— Themes ——— */
:root,
[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-muted: #e8eef3;
  --ink: #0f1b24;
  --ink-soft: #3d4f5c;
  --muted: #6a7c89;
  --accent: #0f6e7a;
  --accent-strong: #0a5560;
  --accent-soft: rgba(15, 110, 122, 0.12);
  --line: rgba(15, 27, 36, 0.1);
  --line-strong: rgba(15, 27, 36, 0.18);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow: 0 20px 50px rgba(15, 27, 36, 0.08);
  --shadow-sm: 0 8px 24px rgba(15, 27, 36, 0.06);
  --hero-overlay: linear-gradient(90deg, rgba(244, 246, 248, 0.55), transparent 40%);
  --grid-line: rgba(15, 27, 36, 0.04);
  --success: #0f766e;
  --chip-bg: rgba(15, 110, 122, 0.08);
  --timeline-dot: var(--accent);
  --scrollbar: #c5d0d8;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1218;
  --bg-elevated: #121b24;
  --bg-muted: #17222c;
  --ink: #e8eef3;
  --ink-soft: #b7c5d0;
  --muted: #8494a1;
  --accent: #3db8c5;
  --accent-strong: #62cdd8;
  --accent-soft: rgba(61, 184, 197, 0.14);
  --line: rgba(232, 238, 243, 0.1);
  --line-strong: rgba(232, 238, 243, 0.18);
  --glass: rgba(18, 27, 36, 0.78);
  --glass-border: rgba(232, 238, 243, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.28);
  --hero-overlay: linear-gradient(90deg, rgba(11, 18, 24, 0.65), transparent 45%);
  --grid-line: rgba(232, 238, 243, 0.04);
  --chip-bg: rgba(61, 184, 197, 0.12);
  --timeline-dot: var(--accent);
  --scrollbar: #2a3844;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Estedad", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.is-loading .nav,
body.is-loading .hero,
body.is-loading main,
body.is-loading .footer {
  visibility: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
}

.page-loader.is-error {
  color: #b91c1c;
  padding: 2rem;
  text-align: center;
  line-height: 1.8;
}

body:not(.is-loading) .page-loader {
  display: none;
}

body.nav-locked {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 90% -5%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
  transition: opacity 0.35s ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 70%);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.wrap {
  width: min(100% - 2rem, 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -120px;
  right: 1rem;
  z-index: 300;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 4.25rem;
  backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.nav__brand span {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__links {
  display: none;
  gap: 0.25rem 1.35rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav__cta {
  padding: 0.4rem 0.85rem !important;
  border-radius: 0.55rem;
  background: var(--accent);
  color: #fff !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .nav__cta {
  color: #071015 !important;
}

.nav__cta:hover {
  background: var(--accent-strong) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .nav__cta:hover {
  color: #071015 !important;
}

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

.nav-toggle__bar {
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  display: block;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

@media (min-width: 980px) {
  .nav__links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 4.25rem 0 0;
  background: var(--bg);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.35rem;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.nav.is-open .nav__mobile {
  display: flex;
}

.nav__mobile a {
  padding: 0.95rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 1rem;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  min-height: calc(100svh - 4.25rem);
  position: relative;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1rem 3.5rem;
  width: min(100%, 560px);
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hero__content {
    width: min(100%, 580px);
    margin-inline: 0 auto 0 0;
    padding-inline: clamp(1.5rem, 5vw, 4.5rem);
    justify-self: end;
  }
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.92rem;
}

.hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero__title span {
  color: var(--accent);
}

.hero__role {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero__lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1.02rem;
}

.hero__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: var(--chip-bg);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  direction: ltr;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  min-height: 52vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    linear-gradient(160deg, var(--bg-muted), var(--bg-elevated));
  border-inline-start: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  width: min(420px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: pulse-glow 5.5s ease-in-out infinite;
}

.hero__portrait {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: min(100%, 360px);
}

.hero__frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--bg) 70%, transparent),
    0 28px 60px rgba(15, 27, 36, 0.18);
  transform: rotate(-1.5deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__frame:hover img {
  transform: scale(1.04);
}

.hero__status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.hero__status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: status-blink 2.2s ease-in-out infinite;
}

@media (max-width: 959px) {
  .hero {
    min-height: auto;
  }

  .hero__stage {
    order: -1;
    min-height: auto;
    padding: 2rem 1.25rem 1.25rem;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__portrait {
    width: min(100%, 280px);
  }

  .hero__frame {
    transform: none;
    border-radius: 1.25rem;
  }

  .hero__content {
    text-align: center;
    align-items: center;
    padding-top: 1.75rem;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__stack,
  .hero__actions {
    justify-content: center;
  }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.3rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .btn--primary {
  color: #071015;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--soft {
  background: var(--bg-elevated);
  border-color: var(--line);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--muted {
  background: color-mix(in srgb, var(--bg-elevated) 55%, transparent);
  border-block: 1px solid var(--line);
}

.section__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 42rem;
}

.section__index {
  direction: ltr;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 0.55rem;
}

.section__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.025em;
  font-weight: 400;
  line-height: 1.25;
}

.section__desc {
  margin: 0;
  color: var(--muted);
}

/* ——— About ——— */
.about {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__panel {
  padding: 1.35rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about__panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.stat {
  padding: 0.9rem;
  border-radius: 0.75rem;
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.stat__value {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
  direction: ltr;
  unicode-bidi: plaintext;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Skills ——— */
.skills {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .skills {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-card {
  padding: 1.35rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
}

.skill-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  font-weight: 400;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  direction: ltr;
}

/* ——— Experience timeline ——— */
.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  right: 0.2rem;
  width: 1px;
  background: var(--line-strong);
}

.timeline__item {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  right: -1.18rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--timeline-dot);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.timeline__title {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 400;
}

.timeline__role {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.timeline__text {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.timeline__list {
  margin: 0 0 0.9rem;
  padding-right: 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
}

.timeline__list li {
  margin-bottom: 0.35rem;
}

.timeline__list li::marker {
  color: var(--accent);
}

/* ——— Projects ——— */
.projects {
  display: grid;
  gap: 1.5rem;
}

.project {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

@media (min-width: 860px) {
  .project {
    grid-template-columns: 1.05fr 1fr;
  }

  .project:nth-child(even) .project__showcase {
    order: 2;
  }
}

.project__showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(155deg, #1a2430, #0f1720);
}

.project__showcase--edison {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 80, 80, 0.28), transparent 50%),
    linear-gradient(155deg, #3a1014, #1a0a0c 55%, #12080a);
}

.project__showcase--adab {
  background:
    radial-gradient(circle at 30% 25%, rgba(236, 72, 153, 0.28), transparent 50%),
    linear-gradient(155deg, #3a1230, #1a0c18 55%, #120810);
}

.project__browser {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem 0.65rem 0 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.project__dots {
  display: inline-flex;
  gap: 0.3rem;
}

.project__dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: block;
}

.project__dots i:nth-child(1) { background: #ff5f57; }
.project__dots i:nth-child(2) { background: #febc2e; }
.project__dots i:nth-child(3) { background: #28c840; }

.project__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0.4rem;
  padding: 0.28rem 0.6rem;
  letter-spacing: 0.02em;
}

.project__logo-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-radius: 0 0 0.65rem 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    rgba(0, 0, 0, 0.15);
}

.project__logo {
  width: min(68%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .project__logo {
  transform: translateY(-6px) scale(1.03);
}

.project__body {
  padding: 1.4rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.project__meta {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.project__title {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.project__domain {
  margin: 0 0 0.75rem;
  color: var(--accent);
  direction: ltr;
  unicode-bidi: plaintext;
  font-size: 0.92rem;
}

.project__text {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.project__features {
  margin: 0 0 1rem;
  padding-right: 1.1rem;
  list-style: disc;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.project__features li::marker {
  color: var(--accent);
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.link-btn--solid {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

[data-theme="dark"] .link-btn--solid {
  color: #071015;
}

.link-btn--solid:hover {
  background: var(--accent-strong);
  color: #fff;
}

[data-theme="dark"] .link-btn--solid:hover {
  color: #071015;
}

/* ——— Packages compact ——— */
.pkg-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pkg-card {
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pkg-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.pkg-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  direction: ltr;
  text-align: right;
}

.pkg-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.pkg-card__links {
  display: flex;
  gap: 0.45rem;
}

/* ——— Blog ——— */
.blog-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 36rem;
  }
}

.blog-card {
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
}

.blog-card--soon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
}

.blog-card__label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--accent);
}

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

/* ——— Contact ——— */
.contact {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-sm);
}

.contact__label {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact__value {
  font-size: 1.02rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ——— Footer ——— */
.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.footer__brand {
  margin: 0;
  letter-spacing: -0.02em;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ——— Motion ——— */
.anim-rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade {
  opacity: 0;
  animation: fade 1.1s ease 0.1s forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim-rise,
  .anim-fade,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__frame {
    transform: none;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
}
