:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0b0f14;
  --muted: #5a6470;
  --brand: #5b9dff;
  --brand-2: #8b5bff;
  --accent: #3ddc97;
  --border: #e9edf2;
  --shadow: 0 10px 30px rgba(10, 20, 30, 0.08);
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  background: #ffffff;
  color: var(--text);
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* Liquid background is now handled by WebGL */

/* Cursor Particles Canvas */
#cursor-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Fluid Canvas */
#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Header / Navbar - Hidden for clean look */
.site-header {
  display: none;
}

/* Layout */
.section { padding: 0; position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Hero - Full height centered */
.hero { 
  height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative;
  padding: 0;
  overflow: hidden;
}

/* Glass layer effect */
.glass-layer {
  display: none;
}
.hero-content { 
  text-align: center; 
  position: relative; 
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.greeting { 
  margin: 0; 
  color: #000000; 
  font-weight: 300; 
  font-size: clamp(24px, 6vw, 64px);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.headline {
  margin: 4px 0 48px;
  font-size: clamp(16px, 3vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--gray-700);
  text-transform: uppercase;
}
.avatar-wrap { 
  display: none;
}
.avatar { 
  width: 240px; 
  height: 240px; 
  object-fit: cover; 
  border-radius: 50%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 20px rgba(91, 157, 255, 0.3));
}
.avatar:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(91, 157, 255, 0.5));
}

/* Search */
.search { 
  position: relative; 
  display: flex; 
  align-items: center; 
  width: min(500px, 90vw); 
  height: 48px; 
  background: #ffffff; 
  border: 1px solid var(--gray-300); 
  border-radius: 12px; 
  padding: 0 48px 0 16px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 80px auto 24px;
}
.search-input { 
  flex: 1; 
  height: 100%; 
  border: 0; 
  outline: 0; 
  font-size: 15px; 
  color: var(--gray-700); 
  background: transparent;
  font-weight: 400;
}
.search-input::placeholder {
  color: var(--gray-400);
}
.search-btn { 
  position: absolute; 
  right: 6px; 
  top: 6px; 
  width: 36px; 
  height: 36px; 
  border-radius: 8px; 
  border: none; 
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); 
  color: white; 
  display: grid; 
  place-items: center; 
  cursor: pointer;
  transition: transform 0.2s ease;
}
.search-btn:hover {
  transform: scale(1.05);
}

/* Pills */
.pills { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 600px;
}
.pill { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 6px; 
  padding: 16px 20px; 
  background: #ffffff; 
  border: 1px solid var(--gray-300); 
  border-radius: 12px; 
  color: var(--gray-700); 
  text-decoration: none; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  min-width: 80px;
  font-weight: 500;
  font-size: 14px;
}
.pill .i { 
  font-size: 20px; 
  margin-bottom: 2px;
}
.pill:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: var(--brand);
}

/* Watermark */
.watermark { 
  position: fixed; 
  bottom: 20px; 
  left: 50%; 
  transform: translateX(-50%); 
  font-size: clamp(80px, 18vw, 200px); 
  line-height: 0.8; 
  font-weight: 800; 
  color: rgba(0, 0, 0, 0.04); 
  pointer-events: none; 
  -webkit-user-select: none;
  user-select: none; 
  z-index: 1;
  text-align: center;
}

/* CV button */
.cv-fab { 
  position: fixed; 
  right: 24px; 
  top: 24px; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  height: 40px; 
  padding: 0 16px; 
  border-radius: 10px; 
  background: #ffffff; 
  border: 1px solid var(--gray-300); 
  color: var(--gray-700); 
  text-decoration: none; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 500;
  font-size: 14px;
  z-index: 10;
  transition: all 0.2s ease;
}
.cv-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.cv-icon { font-size: 16px; }
.cv-text { font-weight: 500; }
.subhead { color: var(--muted); margin: 0 auto 24px; max-width: 720px; }
.cta-row { display: flex; gap: 12px; justify-content: center; }

/* Cards / Elements */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.list { margin: 0; padding-left: 18px; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.badges li { background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-size: 13px; }

.project { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); box-shadow: var(--shadow); }
.project h3 { margin-top: 6px; margin-bottom: 8px; }
.project p { margin-top: 0; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn.small { height: 36px; }
.btn.primary {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border: none;
}
.btn.ghost { background: rgba(10,20,30,0.04); }
.btn:hover { filter: brightness(1.05); }

/* Contact */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.form input, .form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 12px;
}
.form textarea { resize: vertical; }
.contact .btn { grid-column: 1 / -1; justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 24px; max-width: 1152px; margin: 0 auto; color: var(--muted); }

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 0 20px;
  }
  .hero-content {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
    min-height: 100vh;
  }
  .hero-content {
    padding: 0 16px;
    max-width: 100%;
  }
  .headline {
    font-size: clamp(20px, 4vw, 32px);
    margin-bottom: 24px;
  }
  .greeting {
    font-size: clamp(24px, 5vw, 48px);
    margin-bottom: 16px;
  }
  .avatar-wrap {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
  }
  .avatar {
    width: 160px;
    height: 160px;
  }
  .search {
    width: min(400px, 90vw);
    height: 44px;
    margin-bottom: 20px;
  }
  .search-input {
    font-size: 14px;
  }
  .search-btn {
    width: 32px;
    height: 32px;
    right: 4px;
    top: 4px;
  }
  .pills {
    gap: 8px;
    max-width: 100%;
    padding: 0 16px;
  }
  .pill {
    min-width: 60px;
    padding: 12px 14px;
    font-size: 12px;
  }
  .pill .i {
    font-size: 16px;
  }
  .watermark {
    bottom: 16px;
    font-size: clamp(40px, 10vw, 80px);
  }
  .cv-fab {
    right: 16px;
    top: 16px;
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 0;
  }
  .hero-content {
    padding: 0 12px;
  }
  .headline {
    font-size: clamp(18px, 4vw, 28px);
    margin-bottom: 20px;
  }
  .greeting {
    font-size: clamp(12px, 5vw, 20px);
    margin-bottom: 12px;
  }
  .avatar-wrap {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
  }
  .avatar {
    width: 120px;
    height: 120px;
  }
  .search {
    width: min(350px, 95vw);
    height: 40px;
    margin-bottom: 16px;
  }
  .pills {
    gap: 6px;
    padding: 0 8px;
  }
  .pill {
    min-width: 50px;
    padding: 10px 12px;
    font-size: 11px;
  }
  .pill .i {
    font-size: 14px;
  }
  .watermark {
    bottom: 12px;
    font-size: clamp(30px, 8vw, 60px);
  }
  .cv-fab {
    right: 12px;
    top: 12px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}
