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

:root {
  --bg: #0a0a0a;
  --bg-light: #111111;
  --bg-card: #141414;
  --border: #1e1e1e;
  --text: #e0e0e0;
  --text-dim: #888888;
  --accent: #00ff88;
  --cyan: #00d4ff;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.8;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ===== Nav ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

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

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

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 56px;
}

.hero-prefix {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-mono);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-dim);
  margin-bottom: 36px;
  min-height: 30px;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== Hero Split Layout ===== */
.hero-split {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex-shrink: 0;
}

.hero-photo-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.15), 0 0 80px rgba(0, 255, 136, 0.05);
  transition: box-shadow 0.4s, transform 0.4s;
}

.hero-photo-wrapper:hover {
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.25), 0 0 120px rgba(0, 255, 136, 0.1);
  transform: scale(1.03);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-intro {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-links {
  display: flex;
  gap: 20px;
}

.hero-links a {
  color: var(--text-dim);
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.hero-links a:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== Section Title ===== */
.section-title {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 48px;
}

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

.highlight {
  color: var(--cyan);
}

.code-inline {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--cyan);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.stat-card:hover {
  border-color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
}

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

/* ===== Strata.OS ===== */
.strata-hero {
  text-align: center;
  margin-bottom: 48px;
}

.strata-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.strata-headline {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 16px;
}

.strata-desc {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 15px;
}

.strata-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.strata-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.strata-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.card-header {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  color: var(--accent);
}

.strata-card p {
  font-size: 14px;
  color: var(--text-dim);
}

.tech-stack {
  margin-bottom: 32px;
}

.tech-stack h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--cyan);
  transition: border-color 0.2s;
}

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

.cofounder {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

.cofounder strong {
  color: var(--text);
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.2s;
}

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

.project-type {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-content {
  text-align: center;
}

.footer-name {
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

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

.footer-copy {
  font-size: 12px;
  color: #444;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hamburger Toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 20px;
    color: var(--text);
  }

  /* Hero */
  .hero-split {
    flex-direction: column-reverse;
    gap: 32px;
    text-align: center;
  }

  .hero-photo-wrapper {
    width: 180px;
    height: 180px;
  }

  .hero-intro {
    max-width: 100%;
    font-size: 14px;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-name {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-tagline {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Sections */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .strata-headline {
    font-size: 22px;
  }

  .strata-desc {
    font-size: 14px;
  }

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

  .section-title {
    font-size: 24px;
    margin-bottom: 36px;
  }

  /* Timeline */
  .timeline {
    padding-left: 24px;
  }

  .timeline-item::before {
    left: -28px;
    width: 7px;
    height: 7px;
  }

  .timeline-content h3 {
    font-size: 16px;
  }

  .timeline-desc {
    font-size: 13px;
  }

  /* Cards */
  .strata-card {
    padding: 20px;
  }

  .stat-card {
    padding: 16px;
  }

  .project-card {
    padding: 20px;
  }

  .cofounder {
    padding: 16px;
    font-size: 13px;
  }

  .tech-tags {
    gap: 8px;
  }

  .tag {
    font-size: 12px;
    padding: 5px 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-name {
    font-size: 30px;
  }

  .hero-photo-wrapper {
    width: 150px;
    height: 150px;
  }

  .hero-intro {
    font-size: 13px;
    line-height: 1.7;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .strata-badge {
    font-size: 11px;
    padding: 4px 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
