/* ==========================================================
   ADI REZA — PORTFOLIO / LANDING PAGE
   Design tokens
   ========================================================== */
:root {
  /* Color */
  --bg: #0A0B0E;
  --surface: #131519;
  --surface-2: #1A1D22;
  --border: #22262C;
  --text: #EDEEF0;
  --muted: #8A8F98;
  --accent: #E8A33D;
  --accent-soft: rgba(232, 163, 61, 0.12);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 1120px;
  --radius: 10px;
  --gap: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ==========================================================
   Reset
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #0A0B0E;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #100C02;
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ==========================================================
   Navbar
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.navbar__logo .dot { color: var(--accent); }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.navbar__nav a { color: var(--muted); transition: color .15s var(--ease); }
.navbar__nav a:hover { color: var(--text); }
.navbar__cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text) !important;
}
.navbar__cta:hover { border-color: var(--accent); color: var(--accent) !important; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar__toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  max-width: 760px;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}
.hero__name {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--accent);
  margin: 10px 0 24px;
  min-height: 1.4em;
}
.typewriter { white-space: nowrap; overflow: hidden; }
.cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__gutter {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: linear-gradient(var(--border), transparent);
  display: none;
}
@media (min-width: 1024px) { .hero__gutter { display: block; } }

/* ==========================================================
   Section shell
   ========================================================== */
.section { padding: 110px 0; }
.section--alt { background: var(--surface); }
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}
.section__subtitle {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ==========================================================
   Projects
   ========================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.project-card:hover { border-color: #3a3f47; transform: translateY(-4px); }

.project-card__preview {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 1px, transparent 1px 14px),
    var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.project-card__preview-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.project-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.project-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card__head h3 { font-size: 19px; }

.project-card p { color: var(--muted); font-size: 14.5px; }

.status {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status--live { color: #6FCF97; background: rgba(111, 207, 151, 0.12); }
.status--soon { color: var(--accent); background: var(--accent-soft); }

.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 6px;
}

.project-card__links { display: flex; gap: 18px; margin-top: auto; padding-top: 6px; }
.project-card__links a { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.project-card__links a:hover { text-decoration: underline; }

.project-card--soon {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.project-card__body--center { align-items: center; text-align: center; }
.project-card--soon h3 { margin-top: 6px; }

/* ==========================================================
   Services
   ========================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 48px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color .2s var(--ease);
}
.service-card:hover { border-color: var(--accent); }
.service-card__tag {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

.services__cta { margin-top: 48px; text-align: center; }

/* ==========================================================
   Process
   ========================================================== */
.process-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}
.process-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item__num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  min-width: 32px;
}
.process-item h3 { font-size: 19px; margin-bottom: 6px; }
.process-item p { color: var(--muted); font-size: 14.5px; }

/* ==========================================================
   About
   ========================================================== */
.about { max-width: 720px; }
.about__text { font-size: 18px; margin-bottom: 20px; }
.about__text--muted { color: var(--muted); font-size: 16px; }
.about__text em { color: var(--accent); font-style: normal; }

/* ==========================================================
   Contact
   ========================================================== */
.contact__sub {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 48px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.contact-card__value { font-size: 15.5px; font-weight: 600; }
.contact-card__value em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 12.5px; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__top { color: var(--muted); }
.footer__top:hover { color: var(--accent); }

/* ==========================================================
   Scroll reveal
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 760px) {
  .navbar__nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s var(--ease);
  }
  .navbar__nav.is-open { max-height: 320px; }
  .navbar__nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--border); }
  .navbar__toggle { display: flex; }

  .hero__inner { padding-left: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
