/* ========================================
   AppSyntax — Dark & Technical
   ======================================== */

:root {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-dimmer: rgba(255, 255, 255, 0.4);
  --accent: #00FFAA;
  --accent-dim: rgba(0, 255, 170, 0.15);
  --accent-glow: rgba(0, 255, 170, 0.4);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Noise overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' /%3E%3C/svg%3E");
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.status-text {
  font-weight: 500;
}

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-sub {
  font-size: 16px;
  color: var(--text-dim);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dimmer);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

/* ========================================
   PROJECTS
   ======================================== */
.projects {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 170, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.project-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  background: var(--bg);
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.project-status.live {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

.project-status.in-dev {
  color: #FFD60A;
  border-color: rgba(255, 214, 10, 0.2);
  background: rgba(255, 214, 10, 0.08);
}

.project-status.archived {
  color: var(--text-dim);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.project-status.archived .status-dot-tiny {
  animation: none;
  opacity: 0.5;
}

.status-dot-tiny {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.project-body {
  position: relative;
}

.project-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.project-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 600px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.project-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

.project-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text .accent {
  font-weight: 600;
}

.about-text .goal-line {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(0, 255, 170, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-size: 17px;
}

.about-text .goal-line .accent {
  font-family: var(--font-mono);
  font-weight: 700;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 100px;
}

.about-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specialties {
  list-style: none;
}

.specialties li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 20px;
}

.specialties li:last-child {
  border-bottom: none;
}

.specialties li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ========================================
   STACK
   ======================================== */
.stack {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.2s ease;
}

.stack-item:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
}

.stack-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.stack-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.stack-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
}

.contact-lead {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s ease;
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--text);
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover .contact-icon {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.footer-bracket {
  color: var(--accent);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dimmer);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-dimmer);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-stats {
    gap: 28px;
  }

  .stat-num {
    font-size: 26px;
  }

  .projects,
  .about,
  .stack,
  .contact {
    padding: 80px 0;
  }

  .project-card {
    padding: 28px 24px;
  }

  .project-name {
    font-size: 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-card {
    position: static;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
