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

:root {
  --bg: #040404;
  --bg-alt: #0a0a0a;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #555555;
  --border: #1a1a1a;
  --border-light: #222222;
  --accent: #68d2df;
  --red: #c8102e;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #040404;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Animated Background Canvas ─── */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav, .hero, .section, .footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

strong {
  font-weight: 500;
}

/* ─── Nav ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(4, 4, 4, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.nav-x {
  display: flex;
  align-items: center;
}

/* ─── Hero ─── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-image-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--bg-alt);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--red);
  margin: 0 auto 2rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ─── Sections ─── */

.section {
  padding: 8rem 2rem;
}

.section-dark {
  background: rgba(10, 10, 10, 0.88);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ─── About ─── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.about-left h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.about-right p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-right p:last-child {
  margin-bottom: 0;
}

/* ─── Expertise ─── */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.expertise-item {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.expertise-item:hover {
  border-color: var(--accent);
  background: rgba(104, 210, 223, 0.03);
}

.expertise-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--red);
  display: block;
  margin-bottom: 1.25rem;
}

.expertise-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.expertise-item p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Work ─── */

.work-group {
  margin-bottom: 4rem;
}

.work-group:last-child {
  margin-bottom: 0;
}

.work-group-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.work-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.work-item:first-of-type {
  border-top: 1px solid var(--border);
}

.work-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-item-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-role {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-item p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 700px;
}

.work-item a {
  color: var(--accent);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 1px;
}

.work-item a:hover {
  opacity: 1;
  border-color: var(--accent);
}

.work-sub-items {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-sub-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.work-sub-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 60px;
}

.work-sub-item a {
  color: var(--accent);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 1px;
}

.work-sub-item a:hover {
  opacity: 1;
  border-color: var(--accent);
}

.work-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.work-tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-color 0.3s ease;
}

.work-tag:hover {
  border-color: var(--accent);
}

/* ─── Featured ─── */

.featured-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.featured-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.featured-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.featured-item:hover span {
  color: var(--accent);
}

/* ─── Contact Form ─── */

.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-alt);
  color: var(--text);
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 2.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-submit:hover {
  border-color: var(--accent);
  background: rgba(104, 210, 223, 0.05);
}

/* ─── Footer ─── */

.footer {
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: rgba(4, 4, 4, 0.92);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-size: 0.85rem;
  color: var(--text);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.footer-right a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ─── Animations ─── */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-image-wrapper {
    width: 110px;
    height: 110px;
  }

  .section {
    padding: 5rem 1.5rem;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .work-item-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .featured-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links a:not(.nav-x) {
    display: none;
  }
}
