/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --background: #141414;
  --foreground: #e8e8e8;
  --secondary: #2a2a2a;
  --muted-foreground: #808080;
  --border: #2e2e2e;
  --accent: #1a6e6e;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-heading: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(232, 232, 232, 0.15);
}

/* ===== SHARED NAV ===== */
.top-nav-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.95) 0%, rgba(20, 20, 20, 0) 100%);
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.nav-group {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 28px;
  z-index: 150;
  transition: opacity 0.5s ease;
}

.nav-group.top-left {
  top: 40px;
  left: 28px;
}

.nav-group.top-right {
  top: 36px;
  right: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: rgba(232, 232, 232, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link.social-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link.social-linkedin svg {
  width: 14px;
  height: 14px;
}

.nav-link.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.76, 0, 0.24, 1),
    transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
    color 0.3s ease;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ===== SHARED BACKGROUND ===== */
.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1a1a1a 0%, #141414 60%);
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

/* ===== SHARED ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SHARED SECTION STYLES ===== */
.section-header {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.role-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--muted-foreground);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.section-description {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 600px;
  margin-top: 16px;
}

/* ===== RESPONSIVE NAV (Mobile) ===== */
@media (max-width: 768px) {
  .nav-group.top-left {
    top: 28px;
    left: 25px;
    gap: 20px;
  }

  .nav-group.top-right {
    top: 20px;
    right: 20px;
    gap: 10px;
  }

  .nav-link {
    font-size: 10px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .video-timeline-wrapper {
    display: none !important;
  }
}

/* ===== TECHNICAL/BLUEPRINT AESTHETIC ===== */

/* Subtle grid overlay for sections */
.index-section::before,
.page-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.index-section {
  position: relative;
}

.page-content {
  position: relative;
}

/* Technical corner marks on cards/images */
.project-image::before,
.project-image::after,
.project-overview-img::before,
.project-overview-img::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover .project-image::before,
.project-card:hover .project-image::after,
.project-overview-card:hover .project-overview-img::before,
.project-overview-card:hover .project-overview-img::after {
  opacity: 1;
}

.project-image::before,
.project-overview-img::before {
  top: 6px;
  left: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.project-image::after,
.project-overview-img::after {
  bottom: 6px;
  right: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

/* Monospace coordinate tags on section headers */
.index-section-label::before {
  content: '//';
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.15);
}

/* Subtle scanline on hero */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px);
  pointer-events: none;
  z-index: 35;
}