:root {
  --bg: #0b1020;
  --bg-soft: #111827;
  --surface: #171d2e;
  --surface-strong: #1c2437;
  --panel: rgba(255, 255, 255, 0.04);
  --text: #e5ebff;
  --muted: #b6bfd7;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --accent: #f59e0b;
  --accent-soft: #fb923c;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(8, 12, 26, 0.38);
  --radius: 24px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 38%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.muted-section {
  background: rgba(17, 24, 39, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 700;
}

h1,
h2,
h3,
.brand {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 1.2rem;
}

h1 span {
  color: #d7bbff;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.15;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 620px;
  font-size: 1.06rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.35);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(124, 58, 237, 0.42);
}

.button-small {
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 32, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  box-shadow: 0 12px 25px rgba(139, 92, 246, 0.32);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.96rem;
  color: var(--muted);
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding: 70px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1rem 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.hero-metrics strong {
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.image-shell {
  position: relative;
  width: min(100%, 540px);
  padding: 1rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.image-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  pointer-events: none;
}

.image-shell img {
  border-radius: 22px;
  min-height: 620px;
  object-fit: cover;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.42);
}

.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 180px;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(10, 14, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(11, 16, 32, 0.35);
}

.card-one {
  left: -10px;
  bottom: 10%;
}

.card-two {
  right: 10px;
  top: 12%;
}

.card-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4d7ec;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.about-image img,
.contact-copy {
  border-radius: var(--radius);
}

.about-image img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-copy p {
  margin-bottom: 1rem;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.about-points div {
  padding: 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.about-points strong,
.about-points span {
  display: block;
}

.about-points strong {
  margin-bottom: 0.25rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.skills-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skill-card,
.service-card {
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.service-card:hover,
.portfolio-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 50px rgba(17, 23, 38, 0.25);
}

.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(245, 158, 11, 0.2));
  color: #fff;
  font-size: 1.35rem;
}

.skill-card p,
.service-card p {
  margin-top: 0.6rem;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(245, 158, 11, 0.18));
  border-color: rgba(139, 92, 246, 0.5);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  min-height: 420px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card img {
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.3rem 1.2rem 1.5rem;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.1), rgba(11, 16, 32, 0.9));
}

.pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  color: #f5d48d;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-overlay h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.card-overlay p {
  color: rgba(229, 235, 255, 0.82);
}

.service-number {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

.contact-section {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.7));
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-list a:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.4);
}

.contact-list i {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.14);
  color: #d9c5ff;
}

.contact-card {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(10, 14, 25, 0.45);
  color: var(--text);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.9);
  padding: 1.5rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .skills-grid,
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    border-radius: 18px;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .button-small {
    display: none;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 90px 0;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-metrics,
  .skills-grid,
  .portfolio-grid,
  .services-grid,
  .about-points {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card img {
    min-height: 340px;
  }

  .image-shell img {
    min-height: 420px;
  }

  .floating-card {
    min-width: 150px;
    padding: 0.75rem 0.8rem;
  }

  .card-one {
    left: 8px;
    bottom: 5%;
  }

  .card-two {
    right: 8px;
    top: 8%;
  }

  .contact-card {
    padding: 1.3rem;
  }
}
