:root {
  --bg: #07111f;
  --bg-2: #0d1d2f;
  --panel: rgba(15, 25, 41, 0.78);
  --panel-strong: rgba(13, 20, 31, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #edf2ff;
  --muted: #a7b7d6;
  --primary: #65d6ff;
  --secondary: #8b5cf6;
  --green: #6ee7b7;
  --amber: #fbbf24;
  --shadow: 0 30px 80px rgba(5, 11, 19, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--primary) var(--bg);
  scroll-padding-top: 5rem;
}

body {
  scroll-behavior: smooth;
}

/* Webkit scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #85f0e3;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(101, 214, 255, 0.14), transparent 25%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.background-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.glow-one {
  background: rgba(101, 214, 255, 0.35);
  left: -8rem;
  top: 6rem;
}

.glow-two {
  background: rgba(139, 92, 246, 0.28);
  right: -10rem;
  bottom: 4rem;
}

.topbar,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04111b;
  font-weight: 900;
  box-shadow: 0 15px 30px rgba(101, 214, 255, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.nav-cta,
.button.primary {
  background: linear-gradient(135deg, var(--primary), #85f0e3);
  color: #05151d;
  box-shadow: 0 20px 45px rgba(101, 214, 255, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  margin: 0.32rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  min-height: calc(100vh - 78px);
  padding-top: 4rem;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--primary);
  margin: 0 0 1rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  margin-bottom: 1rem;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.25rem;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stats li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 15, 22, 0.5);
  box-shadow: var(--shadow);
}

.stats strong {
  display: block;
  font-size: clamp(1.6rem, 2vw, 2.3rem);
  margin-bottom: 0.25rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1.08;
  border-radius: 1.8rem;
  background: linear-gradient(180deg, rgba(11, 18, 27, 0.9), rgba(9, 14, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(6, 11, 18, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(5, 12, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.fallback-avatar {
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(101, 214, 255, 0.18), rgba(139, 92, 246, 0.18));
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 44rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.about-grid,
.service-grid,
.project-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

.about-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.panel {
  background: linear-gradient(180deg, rgba(18, 29, 45, 0.94), rgba(12, 19, 32, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(3, 8, 15, 0.26);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.panel:hover,
.panel:focus-within {
  transform: translateY(-2px);
  border-color: rgba(101, 214, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(101, 214, 255, 0.18), 0 18px 40px rgba(3, 8, 15, 0.26), 0 0 22px rgba(101, 214, 255, 0.18);
}

.panel p,
.panel li {
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.tag-cloud span {
  border: 1px solid rgba(101, 214, 255, 0.22);
  background: rgba(101, 214, 255, 0.06);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.87rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.3rem;
}

.timeline.compact {
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(101, 214, 255, 0), rgba(101, 214, 255, 0.6), rgba(101, 214, 255, 0));
}

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: 0.15rem;
  top: 1.2rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(101, 214, 255, 0.8);
  background: var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(101, 214, 255, 0.08);
}

.timeline-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.role {
  font-weight: 700;
  color: var(--text);
}

.time {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.active {
  color: var(--green);
  background: rgba(110, 231, 183, 0.1);
  border-color: rgba(110, 231, 183, 0.34);
}

.status-badge.retired {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.28);
}

.status-badge.free {
  color: var(--green);
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.26);
}

.status-badge.paid {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.28);
}

.timeline-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 230px;
}

.icon {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-tag {
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.review-carousel blockquote {
  flex: 0 0 calc(33.333% - 0.85rem);
  min-width: 300px;
  scroll-snap-align: start;
}

.review-carousel::-webkit-scrollbar {
  height: 10px;
}

blockquote {
  margin: 0;
  position: relative;
}

blockquote footer {
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-wrap {
  padding-bottom: 5rem;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 35, 0.97), rgba(12, 18, 28, 0.92));
  border: 1px solid rgba(101, 214, 255, 0.18);
}

.contact-copy {
  max-width: 28rem;
}

.contact-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  min-width: 170px;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(101, 214, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(101, 214, 255, 0.18), 0 18px 35px rgba(10, 15, 20, 0.28), 0 0 24px rgba(101, 214, 255, 0.18);
}

.contact-links span {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-links small {
  color: var(--muted);
  font-size: 0.77rem;
  letter-spacing: 0.02em;
}

.owner-vouch {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid rgba(101, 214, 255, 0.4);
  padding-left: 0.9rem;
}

.service-card,
.project-card,
.review-grid blockquote {
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.service-card:hover,
.project-card:hover,
.review-grid blockquote:hover {
  transform: translateY(-3px);
  border-color: rgba(101, 214, 255, 0.4);
  box-shadow: 0 0 0 1px rgba(101, 214, 255, 0.14), 0 0 24px rgba(101, 214, 255, 0.18);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 10, 16, 0.5);
  padding: 1.25rem 0 2.3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .about-grid,
  .service-grid,
  .project-grid,
  .review-grid,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 3rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    display: grid;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .timeline-item {
    padding-left: 2.2rem;
  }
}
