/* ==========================================================
   TOBI PORTFOLIO — styles.css
   Structure:
   1. Variables & Reset
   2. Base & Scrollbar
   3. Utilities
   4. Navigation
   5. Hero
   6. About
   7. Expertise
   8. Projects
   9. Contact
   10. Footer
   11. Animations
   12. Responsive
========================================================== */

/* ----------------------------------------------------------
   1. VARIABLES & RESET
---------------------------------------------------------- */
:root {
  --bg:        #080c0f;
  --bg2:       #0d1117;
  --surface:   #111820;
  --border:    rgba(255, 255, 255, 0.07);
  --accent:    #00e5a0;
  --accent2:   #00aaff;
  --muted:     #4a6070;
  --text:      #c8d8e4;
  --text-hi:   #eef4f8;
  --danger:    #ff4f6d;

  --font-head: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Outfit', sans-serif;

  --radius:    10px;
  --max-width: 1200px;
  --nav-h:     72px;
}

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

html {
  scroll-behavior: smooth;
}

/* ----------------------------------------------------------
   2. BASE & SCROLLBAR
---------------------------------------------------------- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise texture 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='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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

a:hover {
  opacity: 0.75;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  color: var(--text-hi);
  font-weight: 600;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ----------------------------------------------------------
   3. UTILITIES
---------------------------------------------------------- */
.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text);
  max-width: 560px;
  line-height: 1.75;
}

/* Photo placeholder */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  padding: 2rem;
}

.photo-placeholder svg {
  opacity: 0.3;
}

.photo-placeholder code {
  color: var(--accent);
  font-size: 0.7rem;
}

/* ----------------------------------------------------------
   4. NAVIGATION
---------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 12, 15, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.03em;
}

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

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------
   5. HERO
---------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Grid background */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Glow blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(0, 229, 160, 0.06);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 170, 255, 0.05);
  bottom: 0;
  left: -100px;
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-hi);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Buttons */
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.3);
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-hi);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1;
}

.stat-num span {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Hero photo */
.hero-photo-wrap {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Corner accent */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--accent);
  border-radius: 20px;
  opacity: 0.3;
  z-index: -1;
}

/* Floating badge */
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  animation: float 4s ease-in-out infinite;
}

.badge-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.2), rgba(0, 170, 255, 0.2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-hi);
}

.badge-text span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  margin-top: 1px;
}

/* ----------------------------------------------------------
   6. ABOUT
---------------------------------------------------------- */
#about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 1.2;
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-wrap::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 50%;
  height: 50%;
  border: 2px solid rgba(0, 170, 255, 0.25);
  border-radius: 16px;
  z-index: -1;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.8;
}

/* Tech stack */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 229, 160, 0.07);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: 4px;
}

/* ----------------------------------------------------------
   7. EXPERTISE
---------------------------------------------------------- */
#expertise {
  background: var(--bg);
}

.expertise-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.expertise-header .section-sub {
  margin: 0 auto;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.expertise-card {
  background: var(--bg);
  padding: 2rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.expertise-card:hover {
  background: var(--surface);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   8. PROJECTS
---------------------------------------------------------- */
#projects {
  background: var(--bg2);
}

.projects-header {
  margin-bottom: 3rem;
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(0, 229, 160, 0.2);
  transform: translateY(-4px);
}

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

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.05), rgba(0, 170, 255, 0.05));
  border-color: rgba(0, 229, 160, 0.15);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(0, 229, 160, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.2);
}

.project-icon {
  font-size: 1.5rem;
}

.project-name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
}

/* Architecture diagram */
.arch-diagram {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.arch-label {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.arch-flow--second {
  margin-top: 0.75rem;
}

.arch-node {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 6px;
  color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
  white-space: nowrap;
}

.arch-arrow {
  color: var(--muted);
  font-size: 1rem;
}

/* ----------------------------------------------------------
   9. CONTACT
---------------------------------------------------------- */
#contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  color: var(--text);
}

.contact-link-item:hover {
  border-color: rgba(0, 229, 160, 0.3);
  transform: translateX(4px);
  opacity: 1;
  color: var(--text-hi);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 229, 160, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-link-value {
  font-size: 0.9rem;
  color: var(--text-hi);
}

/* Form */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg);
}

.form-submit {
  width: 100%;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 160, 0.3);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.2);
  color: var(--accent);
}

.form-status.error {
  display: block;
  background: rgba(255, 79, 109, 0.1);
  border: 1px solid rgba(255, 79, 109, 0.2);
  color: var(--danger);
}

/* ----------------------------------------------------------
   10. FOOTER
---------------------------------------------------------- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-hi);
  letter-spacing: -0.02em;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.2s;
}

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

/* ----------------------------------------------------------
   11. ANIMATIONS
---------------------------------------------------------- */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 229, 160, 0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ----------------------------------------------------------
   12. RESPONSIVE
---------------------------------------------------------- */
@media (max-width: 900px) {
  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-stats {
    gap: 1.5rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    max-width: 280px;
  }

  /* Expertise */
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Projects */
  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .arch-flow {
    gap: 0.4rem;
  }

  .arch-node {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
}
