/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --deep-space:  #0F172A;
  --space-mid:   #1E293B;
  --space-light: #334155;
  --teal:        #2DD4BF;
  --teal-dim:    #14B8A6;
  --violet:      #8B5CF6;
  --violet-dim:  #7C3AED;
  --slate:       #F8FAFC;
  --slate-mid:   #E2E8F0;
  --slate-dark:  #94A3B8;
  --white:       #FFFFFF;
  --code-bg:     #1a1b2e;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: var(--deep-space);
  color: var(--slate);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-space); }
::-webkit-scrollbar-thumb { background: var(--space-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── Noise overlay ── */
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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Layout helpers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.12);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(1.05);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--slate-dark);
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: var(--deep-space) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: var(--white) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

/* Grid lines background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,212,191,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
}
.blob-teal   { width: 500px; height: 500px; background: var(--teal);   top: -80px;  right: -100px; }
.blob-violet { width: 400px; height: 400px; background: var(--violet); bottom: -60px; left: -80px; }

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,191,0.1);
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-badge::before { content: '●'; font-size: 0.6rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title .accent-teal   { color: var(--teal); }
.hero-title .accent-violet { color: var(--violet); }

.hero-sub {
  font-size: 0.95rem;
  color: var(--slate-dark);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--deep-space);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 0 24px rgba(45,212,191,0.25);
}
.btn-primary:hover {
  background: var(--white);
  color: var(--deep-space);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,212,191,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--slate);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--space-light);
  transition: all var(--transition);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

/* ── Windows Console ── */
.win-console {
  background: #0C0C0C;
  border: 1px solid #3A3A3A;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 2px 8px rgba(0,0,0,0.4);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.55;
}

/* Title bar */
.win-titlebar {
  background: #1F1F1F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding-left: 12px;
  border-bottom: 1px solid #2D2D2D;
  user-select: none;
  flex-shrink: 0;
}

.win-title-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  font-size: 0.73rem;
  color: #C8C8C8;
  letter-spacing: 0;
}

.win-title-icon {
  width: 14px;
  height: 14px;
  background: #000;
  border: 1px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Consolas', monospace;
  font-weight: bold;
}

.win-controls {
  display: flex;
  height: 32px;
  margin-left: auto;
}

.win-ctrl {
  width: 46px;
  height: 32px;
  background: transparent;
  border: none;
  color: #C8C8C8;
  font-size: 0.75rem;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: 'Segoe UI', sans-serif;
}
.win-ctrl:hover           { background: rgba(255,255,255,0.08); }
.win-ctrl.win-close:hover { background: #C42B1C; color: #fff; }

/* Tab bar */
.win-tabbar {
  background: #171717;
  display: flex;
  align-items: stretch;
  height: 34px;
  border-bottom: 1px solid #2D2D2D;
  padding: 0 4px;
}

.win-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-family: 'Segoe UI', 'Inter', sans-serif;
  font-size: 0.72rem;
  color: #C8C8C8;
  border-bottom: 2px solid var(--teal);
  background: #0C0C0C;
  margin-top: 4px;
  border-radius: 4px 4px 0 0;
}

.win-tab-x {
  font-size: 0.65rem;
  color: #666;
  margin-left: 4px;
}

.win-tab-new {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #555;
  font-size: 1rem;
  cursor: default;
  align-self: center;
  margin-top: 4px;
}

/* Console body */
.win-body {
  padding: 10px 14px 16px;
  min-height: 300px;
  overflow-y: auto;
  max-height: 340px;
  scroll-behavior: smooth;
}

.win-line {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
}

.win-prompt { color: #CCCCCC; }
.win-typed  { color: #FFFFFF; }
.win-out    { color: #CCCCCC; }
.win-ok     { color: #16C60C; }
.win-warn   { color: #F9F1A5; }
.win-info   { color: #3B78FF; }
.win-dim    { color: #616161; }
.win-blank  { display: block; height: 6px; }

.win-cursor {
  display: inline-block;
  width: 7px;
  height: 0.85em;
  background: #CCCCCC;
  vertical-align: text-bottom;
  animation: wblink 1.1s step-end infinite;
}
@keyframes wblink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ── Section commons ── */
.section-label {
  font-size: 0.72rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--slate-dark);
  max-width: 560px;
  line-height: 1.8;
}

/* ── About ── */
#about {
  padding: 100px 0;
}

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

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.value-card {
  background: var(--space-mid);
  border: 1px solid var(--space-light);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  border-color: rgba(45,212,191,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.value-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.value-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 6px;
}

.value-desc {
  font-size: 0.76rem;
  color: var(--slate-dark);
  line-height: 1.7;
}

/* ── Stats strip ── */
.stats-strip {
  border-top: 1px solid var(--space-light);
  border-bottom: 1px solid var(--space-light);
  padding: 40px 0;
  margin: 0;
  background: var(--space-mid);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-right: 1px solid var(--space-light);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--slate-dark);
  font-weight: 500;
}

/* ── Services ── */
#services {
  padding: 100px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--space-mid);
  border: 1px solid var(--space-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--violet));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.icon-teal   { background: rgba(45,212,191,0.12); }
.icon-violet { background: rgba(139,92,246,0.12); }
.icon-blue   { background: rgba(59,130,246,0.12); }

.service-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--slate-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.18);
  color: var(--teal);
}
.tag.violet {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.18);
  color: var(--violet);
}

/* ── Tech Stack ── */
#stack {
  padding: 100px 0;
  background: var(--space-mid);
  border-top: 1px solid var(--space-light);
  border-bottom: 1px solid var(--space-light);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tech-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  background: var(--deep-space);
  border: 1px solid var(--space-light);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.tech-pill:hover {
  border-color: rgba(45,212,191,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.tech-emoji { font-size: 1.8rem; }

.tech-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--slate-dark);
}

.stack-primary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--violet);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
}

/* ── ASCII section ── */
#ascii {
  padding: 80px 0;
  text-align: center;
}

.ascii-block {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.55rem, 1.2vw, 0.9rem);
  line-height: 1.35;
  color: var(--teal);
  background: rgba(45,212,191,0.04);
  border: 1px solid rgba(45,212,191,0.15);
  border-radius: var(--radius);
  padding: 32px 40px;
  white-space: pre;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(45,212,191,0.4);
}

.ascii-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--slate-dark);
  margin-top: 24px;
  font-weight: 400;
}
.ascii-tagline strong {
  color: var(--white);
  font-weight: 700;
}

/* ── Contact / CTA ── */
#contact {
  padding: 100px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--space-mid) 0%, rgba(30,41,59,0.8) 100%);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(45,212,191,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-box .section-title { margin-bottom: 12px; }
.cta-box .section-sub   { margin: 0 auto 36px; }

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.coffee-note {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--slate-dark);
  font-family: 'Inter', sans-serif;
}
.coffee-note span { color: var(--teal); font-weight: 600; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--space-light);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.footer-brand img { height: 24px; }

.footer-location {
  font-size: 0.78rem;
  color: var(--slate-dark);
  font-family: 'Inter', sans-serif;
}
.footer-location span { color: var(--teal); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--space-light);
  font-family: 'Inter', sans-serif;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .hero-content      { grid-template-columns: 1fr; gap: 40px; }
  .about-grid        { grid-template-columns: 1fr; gap: 40px; }
  .services-grid     { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .nav-links         { display: none; }
  .hamburger         { display: flex; }
  .about-values      { grid-template-columns: 1fr; }
  .cta-box           { padding: 40px 24px; }
  .footer-inner      { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .stack-grid    { grid-template-columns: repeat(3, 1fr); }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--space-light);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--space-light);
}
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav a:last-child { border-bottom: none; }

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
