/* Reset, Root, HTML, Body extracted to global.css */
/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  opacity: 0.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-brand span {
  color: var(--accent);
}

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

.nav-home-cube {
  display: block;
  width: 88px;
  height: 38px;
  perspective: 600px;
  text-decoration: none;
}

.nav-home-cube .cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.nav-home-cube:hover .cube {
  transform: rotateX(90deg);
}

.nav-home-cube .face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-sizing: border-box;
  border-radius: 40px;
}

.nav-home-cube .front {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--border);
  transform: translateZ(19px);
  gap: 0.4rem;
  backface-visibility: hidden;
}

.nav-home-cube:hover .front {
  border-color: var(--ink);
}

.nav-home-cube .bottom {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  transform: rotateX(-90deg) translateZ(19px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-home-cube:hover .bottom {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.nav-hire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s;
}

.nav-hire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e84c2b;
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.nav-hire:hover::before {
  opacity: 1;
  animation: gradientMove 2s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.nav-hire span {
  position: relative;
  z-index: 2;
  transition: transform 0.3s;
}

.nav-hire .sparkle {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-hire:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(232, 76, 43, 0.25);
  color: #fff;
}

.nav-hire:hover .sparkle {
  transform: rotate(180deg) scale(1.2);
}

/* ── HERO ── */
#home {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  gap: 4rem;
}

.hero-left {
  max-width: 560px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-tag::before {
  content: "●";
  animation: blink 1.2s step-end infinite;
}

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

h1 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: fadeUp 0.7s 0.1s ease both;
}

h1 em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 440px;
  font-weight: 300;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--ink);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── HERO RIGHT: floating card ── */
.hero-right {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

.id-card {
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.id-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.id-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.2rem;
}

.card-name {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}

.card-role {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

.card-detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-family: "DM Mono", monospace;
}

.card-detail svg {
  flex-shrink: 0;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  margin-top: 0.8rem;
}

.card-status::before {
  content: "●";
  animation: blink 1.5s step-end infinite;
}

/* ── SECTION: HIRE ME ── */
#hire {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
}

.section-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #9e9890;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 3rem;
}

/* ── CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: var(--paper);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 60%,
    rgba(255, 255, 255, 0.03)
  );
  pointer-events: none;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-platform {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a7165;
  margin-bottom: 0.2rem;
}

.contact-handle {
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  color: #4a4540;
  font-size: 1rem;
  transition:
    transform 0.2s,
    color 0.2s;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
  color: var(--paper);
}

[data-theme="dark"] .contact-card {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .contact-card::after {
  background: linear-gradient(135deg, transparent 60%, rgba(0, 0, 0, 0.03));
}

[data-theme="dark"] .contact-card:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
}

/* FOOTER, RESUME BUTTON, ANIMATIONS, AND BOTTOM NAV extracted to global.css */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  nav .nav-links {
    display: none !important;
  }
  footer {
    display: none !important;
  }
  body {
    padding-bottom: 70px;
  }
  #home {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-right {
    display: none;
  }
}
