:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #141420;
  --card: #13131e;
  --border: rgba(120, 80, 180, 0.15);
  --border-hover: rgba(160, 100, 220, 0.35);
  --purple: #9b72cf;
  --purple-light: #c4a0f0;
  --burgundy: #8b3a5a;
  --burgundy-light: #c45c7e;
  --text: #f0eaf8;
  --text-muted: #8a82a0;
  --text-dim: #4a4460;
  --accent: #7c5cbf;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", monospace;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise texture via SVG */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Grid background lines */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 80, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 80, 180, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 4rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--purple-light);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--purple-light);
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  padding-top: 6rem;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}

.hero-name span {
  color: var(--purple);
  font-style: italic;
}

.hero-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  letter-spacing: 0.1em;
  max-width: 4890px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  border: 1px solid var(--purple);
}

.btn-primary:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--purple);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-dim);
}

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  padding: 7rem 4rem;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.section-title em {
  color: var(--purple);
  font-style: italic;
}

/* ABOUT */
.about-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

.about-text p + p {
  margin-top: 1.2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

.stat-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--purple-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* SKILLS */
.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.skill-group:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.skill-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.skill-group-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--purple-light);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  background: rgba(120, 80, 180, 0.08);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* PROJECTS */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--purple), var(--burgundy));
  transition: height 0.4s ease;
}

.project-card:hover::before {
  height: 100%;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-type {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--burgundy-light);
  margin-bottom: 1rem;
}

.project-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-stack .tag {
  color: var(--purple-light);
  border-color: rgba(120, 80, 180, 0.2);
}

/* CONTACT */
.contact-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition:
    border-color 0.3s,
    transform 0.3s;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.contact-link:hover {
  border-color: var(--border-hover);
  transform: translateX(6px);
  color: var(--text);
}

.contact-link-icon {
  width: 20px;
  color: var(--purple);
  flex-shrink: 0;
}

.contact-link-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* DIVIDER */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-hover),
    transparent
  );
  margin: 0 4rem;
  width: calc(100% - 8rem);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  section {
    padding: 5rem 1.5rem;
  }
  .hero {
    padding: 0 1.5rem;
    padding-top: 6rem;
  }
  .hero-scroll {
    left: 1.5rem;
  }
  footer {
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .divider {
    margin: 0 1.5rem;
    width: calc(100% - 3rem);
  }
}

/* HERO PHOTO */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.6;
}
.hero-photo-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 8, 18, 0.97) 30%,
      rgba(10, 8, 18, 0.3) 70%,
      rgba(10, 8, 18, 0.5) 100%
    ),
    linear-gradient(to top, rgba(10, 8, 18, 1) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(10, 8, 18, 0.7) 0%, transparent 30%);
}
