:root {
  --bg: #050711;
  --bg-alt: #0c1020;
  --accent: #c9a8ff; /* main lavender */
  --accent-soft: rgba(201, 168, 255, 0.16);
  --text: #f9f9ff;
  --muted: #b3b8d0;
  --card: #111628;
  --border: #232844;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --transition: 200ms ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #1a1630 0, #050711 55%, #020308 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* HEADER */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 17, 0.82);
  border: 1px solid rgba(68, 74, 120, 0.7);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0.75rem;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}


/* if you later replace the icon with an <img class="brand-logo"> */
.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 60%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(201, 168, 255, 0.5);
}


.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.brand-text span:first-child {
  font-weight: 600;
  color: #ffffff;
  letter-spacing: .16em;
}

nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
}

nav a {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--muted);
  transition: var(--transition);
  cursor: pointer;
}

nav a:hover {
  border-color: rgba(201, 168, 255, 0.7);
  background: rgba(201, 168, 255, 0.12);
  color: var(--text);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.18);
}

main {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 2.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 168, 255, 0.6);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4dffb3;
  box-shadow: 0 0 12px rgba(77, 255, 179, 0.7);
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  background: linear-gradient(120deg, #e7d9ff, #c9a8ff, #7a4fcf);
  background-clip: text;            /* ← standard property */
  -webkit-background-clip: text;    /* ← vendor prefix */
  color: transparent;
}


.hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-tags span {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(179, 184, 208, 0.4);
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #7a4fcf, #c9a8ff);
  color: #050711;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(121, 79, 207, 0.45);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(121, 79, 207, 0.7);
}

.link-muted {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: underline dotted rgba(179,184,208,0.6);
  text-underline-offset: 0.25rem;
  cursor: pointer;
}

.hero-right {
  position: relative;
}

.hero-card {
  padding: 1.3rem 1.4rem;
  border-radius: 22px;
  background: radial-gradient(circle at top left, #1d1638 0, #070a16 55%, #020308 100%);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-preview {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  background: #050713;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid #232844;
  position: relative;
  overflow: hidden;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(201, 168, 255, 0.22), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
}

.code-comment {
  color: #5b6289;
}

.code-tag {
  color: #c9a8ff;
}

.code-attr {
  color: #e7d9ff;
}

.code-value {
  color: #4dffb3;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(140, 150, 220, 0.6);
  color: var(--muted);
  background: rgba(8, 10, 22, 0.9);
}

/* SECTIONS */

section {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(5, 7, 17, 0.88);
  border: 1px solid rgba(35, 40, 68, 0.9);
  box-shadow: var(--shadow-soft);
}

section + section {
  margin-top: 0.75rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-heading span {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 2.2fr 2fr;
  gap: 1.75rem;
  align-items: flex-start;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.about-text p strong {
  color: var(--text);
}

.about-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.about-list li {
  margin-bottom: 0.3rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(147, 154, 210, 0.7);
  font-size: 0.75rem;
  color: var(--muted);
}

/* PROJECTS */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--card);
  border-radius: 16px;
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: default;
  transition: var(--transition);
}

/* preview image inside project cards */
.project-preview {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
  border-color: rgba(201, 168, 255, 0.8);
}

.project-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  opacity: 0.8;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.project-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.project-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(104, 111, 181, 0.7);
  color: var(--muted);
}

.project-link {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  align-self: flex-start;
}

/* TESTIMONIALS */

.testimonials {
  margin-top: 2.2rem;
  padding: 1.5rem 1rem 1.8rem;
  border-radius: var(--radius-lg);
  background: rgba(5, 7, 17, 0.9);
  border: 1px solid rgba(35, 40, 68, 0.9);
  box-shadow: var(--shadow-soft);
}

.testimonials-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.t-viewport {
  position: relative;
  overflow: hidden;
  min-height: 170px;
}

.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: radial-gradient(circle at top left, rgba(201,168,255,0.18), rgba(8,10,22,0.95));
  border: 1px solid rgba(147, 154, 210, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.t-slide.t-active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.t-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #baffef;
  margin-bottom: 0.9rem;
}

.t-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201, 168, 255, 0.75);
}

.t-name {
  font-size: 1rem;
  font-weight: 600;
  color: #c9a8ff;
}

.t-role {
  font-size: 0.85rem;
  color: var(--muted);
}

.t-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 255, 0.7);
  background: rgba(8, 10, 22, 0.9);
  color: #c9a8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  transition: background 150ms ease-out, transform 150ms ease-out;
}

.t-arrow:hover {
  background: rgba(201, 168, 255, 0.18);
  transform: translateY(-1px);
}

.t-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(147, 154, 210, 0.6);
  opacity: 0.45;
  transition: opacity 150ms ease-out, transform 150ms ease-out, width 150ms ease-out;
}

.t-dot-active {
  opacity: 1;
  width: 16px;
  transform: translateY(-1px);
  background: #c9a8ff;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-text strong {
  color: var(--text);
}

.contact-list {
  list-style: none;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.4rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  opacity: 0.8;
}

.contact-value a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field label {
  font-size: 0.8rem;
  color: var(--muted);
}

.field input,
.field textarea {
  background: #050713;
  border-radius: 10px;
  border: 1px solid #232844;
  padding: 0.55rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-main);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(201, 168, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(201, 168, 255, 0.5);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* FOOTER */

footer {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.75;
}

/* RESPONSIVE */

@media (max-width: 880px) {
  header {
    position: static;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    order: -1;
  }

  .about-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .t-arrow {
    order: -1;
    justify-self: flex-end;
  }

  .t-viewport {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 1rem;
  }

  nav {
    display: none;
  }

  section {
    padding-inline: 0.85rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
