/* Premium single-page portfolio styles for a dark, glassmorphism-driven layout. */
:root {
  --bg: #121212;
  --bg-elevated: rgba(24, 24, 29, 0.78);
  --bg-panel: rgba(32, 35, 42, 0.72);
  --bg-panel-strong: #1b1f27;
  --surface-border: rgba(255, 255, 255, 0.09);
  --text-primary: #f5f7fb;
  --text-secondary: #b8c0d4;
  --text-muted: #8891a8;
  --accent: #007bff;
  --accent-soft: rgba(0, 123, 255, 0.14);
  --accent-strong: #3e9cff;
  --success: #39d98a;
  --danger: #ff5d73;
  --shadow-lg: 0 26px 80px rgba(0, 0, 0, 0.42);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100vw - 2rem));
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(0, 123, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(62, 156, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #0e1014 0%, #121212 34%, #12161d 100%);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.24;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(0, 123, 255, 0.24);
  color: var(--text-primary);
}

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

::-webkit-scrollbar-track {
  background: #0f1218;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e2530 0%, #007bff 100%);
  border-radius: 999px;
  border: 2px solid #0f1218;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #253243 0%, #3e9cff 100%);
}

.site-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3e9cff 0%, #007bff 100%);
  box-shadow: 0 0 18px rgba(0, 123, 255, 0.8);
}

.section h2,
.hero-content h1 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.section p,
.hero-content p {
  margin: 0;
  color: var(--text-secondary);
}

.glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
  padding: 1rem 1.25rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 156, 255, 0.28), rgba(0, 123, 255, 0.12));
  border: 1px solid rgba(62, 156, 255, 0.25);
  color: var(--text-primary);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
  color: var(--text-secondary);
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0.4);
  transform-origin: center;
  opacity: 0;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #007bff 0%, #3e9cff 100%);
  box-shadow: 0 18px 34px rgba(0, 123, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 40px rgba(0, 123, 255, 0.34);
}

.btn-secondary {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  padding: 2rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.75rem);
  max-width: 11ch;
}

.hero-lead {
  max-width: 62ch;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
}

.hero-actions,
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.8;
}

.hero-card::before {
  width: 140px;
  height: 140px;
  right: -20px;
  top: -28px;
  background: radial-gradient(circle, rgba(62, 156, 255, 0.4), transparent 70%);
}

.hero-card::after {
  width: 180px;
  height: 180px;
  left: -45px;
  bottom: -55px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.22), transparent 70%);
}

.showcase {
  position: relative;
  display: grid;
  gap: 1rem;
}

.showcase-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.showcase-meta {
  display: grid;
  gap: 0.35rem;
}

.showcase-meta strong {
  font-size: 1.15rem;
}

.showcase-badge {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.1);
  color: #79f1b3;
  border: 1px solid rgba(57, 217, 138, 0.16);
}

.showcase-metrics {
  display: grid;
  gap: 0.85rem;
}

.metric-card,
.service-card,
.stack-card,
.about-card,
.contact-card,
.stat-card {
  border-radius: var(--radius-lg);
}

.metric-card {
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.metric-card strong {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.metrics-grid,
.services-grid,
.stack-grid,
.about-grid,
.stats-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 1.3rem;
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.stat-card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.stack-card,
.about-card,
.contact-card {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.service-card:hover,
.stack-card:hover,
.about-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 156, 255, 0.28);
  box-shadow: var(--shadow-lg);
}

.service-card::after,
.stack-card::after,
.about-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(62, 156, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(62, 156, 255, 0.22), rgba(0, 123, 255, 0.1));
  border: 1px solid rgba(62, 156, 255, 0.2);
  color: var(--accent-strong);
  font-size: 1.25rem;
}

.service-card h3,
.about-card h3,
.contact-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.service-card p,
.about-card p,
.contact-card p,
.stack-card p {
  margin: 0;
  color: var(--text-secondary);
}

.service-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--text-secondary);
}

.service-list span::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.55rem;
}

.stack-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.tech-tags span {
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.about-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.about-copy {
  display: grid;
  gap: 1.15rem;
}

.about-points {
  display: grid;
  gap: 0.85rem;
}

.about-points span {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.contact-grid {
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-points {
  display: grid;
  gap: 0.9rem;
}

.contact-points a,
.contact-points span {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(62, 156, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.form-note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-status {
  display: none;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-weight: 500;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(57, 217, 138, 0.12);
  color: #a6f7cc;
  border: 1px solid rgba(57, 217, 138, 0.24);
}

.form-status.is-error {
  background: rgba(255, 93, 115, 0.12);
  color: #ffc3cd;
  border: 1px solid rgba(255, 93, 115, 0.24);
}

.site-footer {
  padding: 1.5rem 0 2.2rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 24px;
}

.footer-wrap p,
.footer-wrap a {
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 180ms;
}

.delay-3 {
  transition-delay: 270ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .services-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links,
  .nav-cta {
    justify-content: center;
  }

  .stats-grid,
  .services-grid,
  .stack-grid,
  .metrics-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }
}

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

  .hero-content h1 {
    max-width: 100%;
  }

  .hero-actions,
  .hero-trust,
  .footer-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
