/* ==========================================================================
   MINIMALIST SKETCHY DARK PORTFOLIO STYLES
   Pure Dark Black Background (#050505) with Hand-Drawn Sketch Borders
   ========================================================================== */

:root {
  --bg-color: #050505;
  --bg-card: #0c0c0e;
  --bg-card-hover: #121216;
  --border-sketch: #27272a;
  --border-sketch-hover: #38bdf8;
  --border-accent: #22d3ee;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --green-online: #10b981;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, Monaco, Consolas, monospace;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
}

/* ==========================================================================
   Hand-Drawn "Sketchy" CSS Borders & Cards
   ========================================================================== */
.sketch-box {
  background: var(--bg-card);
  border: 2px solid var(--border-sketch);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 2px 3px 0px #18181b;
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sketch-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-sketch-hover);
  box-shadow: 4px 5px 0px var(--accent-glow);
}

/* Header & Navigation */
.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1.5px dashed #27272a;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 200px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green-online);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green-online);
  animation: pulseDot 2s infinite ease-in-out;
}

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

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 30px 10px;
}

@media (min-width: 680px) {
  .hero-section {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 36px;
  }
}

/* 3D Animated Avatar Frame */
.avatar-frame {
  flex-shrink: 0;
  width: 145px;
  height: 145px;
  background: #141418;
  border: 2.5px solid var(--accent);
  border-radius: 255px 20px 225px 20px / 20px 225px 20px 255px;
  overflow: hidden;
  box-shadow: 4px 5px 0px var(--accent-glow);
  position: relative;
  animation: slightFloat 4.5s ease-in-out infinite alternate;
}

@keyframes slightFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(0.6deg); }
}

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

.hero-content h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

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

/* Buttons */
.btn-sketch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18181b;
  color: var(--text-main);
  border: 1.5px solid #3f3f46;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sketch:hover {
  background: #27272a;
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 2px 3px 0px rgba(56, 189, 248, 0.3);
}

.btn-primary {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent);
  color: #38bdf8;
}

.btn-primary:hover {
  background: var(--accent);
  color: #050505;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #27272a;
}

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

/* Filter Tags / Pills */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-btn {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid #27272a;
  border-radius: 180px 20px 200px 18px / 20px 190px 18px 210px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active, .tab-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: #111113;
  color: #d4d4d8;
  border: 1px solid #27272a;
  border-radius: 200px 15px 180px 15px / 15px 190px 15px 200px;
  padding: 6px 12px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Project Cards */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  background: #09090b;
  border: 1.5px solid #27272a;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 20px;
  transition: all 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 3px 4px 0px rgba(56, 189, 248, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-links a {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: color 0.15s;
}

.project-links a:hover {
  color: #ffffff;
  border-bottom-style: solid;
}

.project-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.55;
}

.project-problem-solution {
  background: #050505;
  border: 1px dashed #27272a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
}

.problem-text {
  color: #f87171;
  margin-bottom: 4px;
}

.solution-text {
  color: #4ade80;
}

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

.tag-mini {
  font-size: 0.72rem;
  color: #a1a1aa;
  background: #141418;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #1f1f23;
}

/* Contact Section */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #0e0e11;
  border: 1px dashed #27272a;
  border-radius: 6px;
  font-size: 0.85rem;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.copy-btn {
  background: #18181b;
  color: #d4d4d8;
  border: 1px solid #3f3f46;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
}

/* Footer */
.footer {
  margin-top: 50px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px dashed #27272a;
  padding-top: 20px;
}
