/* style.css */
:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #111827;
  --accent: #00adb5;
  --accent-soft: rgba(0, 173, 181, 0.12);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.3);
  --error: #ef4444;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  padding: 5.5rem 0;
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%, #020617 100%);
}

.section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.section__subtitle {
  margin: 0;
  color: var(--text-soft);
  max-width: 36rem;
  margin-inline: auto;
  font-size: 0.98rem;
}

/* Header / Nav */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.75), transparent);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
}

.nav__logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.nav__menu {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-soft);
  padding-block: 0.2rem;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  transition: width var(--transition-med);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link.active {
  color: var(--text);
}

.nav__link.active::after {
  width: 60%;
}

.nav__toggle {
  display: none;
  border: none;
  background: none;
  padding: 0.3rem;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav__toggle span + span {
  margin-top: 4px;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero__inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero__content {
  max-width: 32rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero__tags span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.hero__visual {
  position: relative;
}

.hero__card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  background: radial-gradient(circle at top left, #111827 0, #020617 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
  max-width: 23rem;
  margin-left: auto;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 0.78rem;
  color: #bbf7d0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot--online {
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.hero__stack {
  margin-top: 1.3rem;
}

.hero__stack h3 {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.hero__stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero__stack-grid span {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
}

.hero__metric {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.metric__number {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.metric__number span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 0.4rem;
}

.metric__label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.hero__blob {
  position: absolute;
  inset: auto -20% -20% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  filter: blur(10px);
  opacity: 0.9;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #020617;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
}

/* About */

.about__inner {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}

.about__image {
  justify-self: center;
}

.about__photo-placeholder {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 0, rgba(56, 189, 248, 0.18), #020617 65%);
  overflow: hidden;
}

.about__photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.about__photo-placeholder span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.about__content {
  max-width: 34rem;
}

.about__text {
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.about__skills {
  margin-top: 1.2rem;
}

.about__skills h3 {
  font-size: 0.95rem;
  margin: 0 0 0.7rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

/* Services */

.services__grid {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.5rem;
}

.service-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.8);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Projects */

.projects__grid {
  display: grid;
  gap: 1.7rem;
  margin-top: 1.8rem;
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.9);
}

.project-card__thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 70%);
  opacity: 0.4;
}

/* Placeholder gradients for thumbnails */
.project-card__thumb--1 {
  background-image: url(woody-int.png);
}
.project-card__thumb--2 {
  background-image: url(port.png);
}
.project-card__thumb--3 {
  background-image:url(library.png);
}
.project-card__thumb--4 {
  background-image: url(E-com.png);
}
.project-card__thumb--5 {
  background-image: url(watch.png);
}
.project-card__thumb--6 {
  background-image: url(pers-blog.png);
}
.project-card__thumb--7 {
  background-image: url(cineflix.png);
}

.project-card__body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.project-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.project-card__body p {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
}

.project-card__meta span {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}


/* Contact */

.contact__inner {
  display: grid;
  gap: 2.7rem;
  align-items: flex-start;
}

.contact__details p {
  margin: 0.1rem 0;
  font-size: 0.92rem;
}

.contact__details a {
  color: var(--accent);
  text-decoration: none;
}

.contact__details a:hover {
  text-decoration: underline;
}

.contact__form {
  background: rgba(15, 23, 42, 0.97);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.6rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.9);
}

.form__field {
  margin-bottom: 1.05rem;
}

.form__field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--text-soft);
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form__field input:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

.form__error {
  display: block;
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.25rem;
  min-height: 0.8rem;
}

.form__note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: #020617;
  padding: 1.3rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer__links {
  display: flex;
  gap: 1rem;
}

.footer__links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    inset: calc(100% + 0.5rem) 0 auto;
    padding: 0.7rem 1.25rem 1rem;
    margin-inline: auto;
    width: min(100% - 2.5rem, 420px);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.9);
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav__menu.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .hero__inner,
  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero__card {
    margin-inline: auto;
  }

  .hero__visual {
    order: -1;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .about__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1040px) {
  .hero {
    padding-top: 5rem;
  }
}
