:root {
  --background: #0b0f19;
  --background-alt: #101827;
  --surface: #111827;
  --surface-soft: #0f172a;
  --card: #121b2c;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --border: #1f2937;
  --success: #10b981;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
  --radius: 16px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 5.5rem 0;
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.left {
  margin-bottom: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(11, 15, 25, 0.82);
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
  border-radius: 0.8rem;
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  max-width: 760px;
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(99, 102, 241, 0.25);
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button.small {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.window {
  width: min(100%, 490px);
  background: rgba(17, 24, 39, 0.94);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.window-bar span {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.window-bar span:nth-child(1) {
  background: #f87171;
}

.window-bar span:nth-child(2) {
  background: #fbbf24;
}

.window-bar span:nth-child(3) {
  background: #4ade80;
}

.window-content {
  position: relative;
  min-height: 330px;
  padding: 1.3rem 1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.95), rgba(9, 12, 20, 1));
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.code-lines {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.4rem;
}

.line {
  display: block;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.95), rgba(148, 163, 184, 0.28));
}

.line-1 {
  width: 80%;
}

.line-2 {
  width: 68%;
}

.line-3 {
  width: 85%;
}

.line-4 {
  width: 58%;
}

.card-mini {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.65rem 0.9rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: var(--text);
  border-radius: 0.8rem;
  font-weight: 600;
}

.card-mini-one {
  right: 1.5rem;
  top: 1.2rem;
}

.card-mini-two {
  left: 1.4rem;
  bottom: 1.5rem;
}

.ad-wrap {
  padding-top: 0.2rem;
}

.ad-banner {
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.72);
  border-radius: 0.9rem;
  padding: 1rem 1.2rem;
  color: var(--muted);
  text-align: center;
  margin: 0 auto 1rem;
}

.ad-banner p {
  margin: 0.3rem 0;
}

.ad-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p,
.service-card p,
.skill-card p,
.project-card p,
.contact-text,
.form-note,
.service-note {
  color: var(--muted);
}

.info-card,
.skill-card,
.project-card,
.service-card,
.form-card {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
}

.info-card h3,
.skill-card h3,
.project-card h3,
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--text);
}

.info-card li {
  position: relative;
  padding-left: 1rem;
}

.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

.skills-grid,
.services-grid,
.projects-grid,
.benefits-grid {
  display: grid;
  gap: 1.3rem;
}

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

.skill-card {
  min-height: 190px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover,
.project-card:hover,
.service-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.project-top {
  margin-bottom: 0.9rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.3rem;
}

.project-meta span {
  display: inline-flex;
  padding: 0.40rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  font-size: 0.8rem;
}

.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

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

.service-card {
  min-height: 200px;
}

.service-note {
  margin: 1.8rem auto 0;
  text-align: center;
  max-width: 700px;
}

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

.benefit-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.72);
  color: var(--text);
  font-weight: 600;
}

.contact-section {
  background: rgba(11, 15, 25, 0.78);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-text {
  margin-top: 0;
  font-size: 1.08rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.contact-list a {
  color: var(--text);
  font-weight: 600;
}

.form-card {
  background: rgba(17, 24, 39, 0.9);
}

form {
  display: grid;
  gap: 1.1rem;
}

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

label {
  color: var(--text);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(10, 15, 25, 0.7);
  color: var(--text);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(156, 163, 175, 0.75);
}

input:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.form-button {
  width: fit-content;
  border: none;
}

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

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

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

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

.site-footer a {
  color: var(--muted);
}

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

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

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

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

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0 1rem;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .skills-grid,
  .projects-grid,
  .services-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: center;
  }

  .footer-wrap {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    gap: 0.7rem 1rem;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
