:root {
  --bg-body: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-primary: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --status-bg: #ecfdf5;
  --status-text: #059669;
  --status-border: #d1fae5;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --nav-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
  --bg-body: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --border-color: #334155;
  --border-hover: #475569;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --accent-primary: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --status-bg: rgba(16, 185, 129, 0.1);
  --status-text: #34d399;
  --status-border: rgba(16, 185, 129, 0.2);
  --shadow-sm: none;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
}
.section:last-child {
  border-bottom: none;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s;
}
.nav-wrapper {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-link:hover {
  color: var(--accent-primary);
}
.nav-link-cta {
  color: var(--accent-primary);
  font-weight: 600;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.icon-sun,
.icon-moon {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}
html:not([data-theme="light"]) .icon-sun {
  display: block;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 8rem 0 4rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.hero-grid {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-body);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.hero-info {
  flex: 1;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--status-bg);
  color: var(--status-text);
  border: 1px solid var(--status-border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--status-text);
  border-radius: 50%;
}
.hero-greeting {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero-name {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.hero-title {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background-color: var(--accent-primary);
  color: white;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--bg-body);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px dashed var(--border-color);
}
.btn-ghost:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  border-style: solid;
}

/* CONNECT BUTTONS */
.hero-connect {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
}
.connect-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 6px;
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 110px;
}
.connect-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  display: block;
}
.connect-btn:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* SECTION HEADERS */
.section-header {
  margin-bottom: 3rem;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* CARDS */
.card,
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover,
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

/* EXPERIENCE */
.experience-list {
  position: relative;
  border-left: 2px solid var(--border-color);
  padding-left: 2rem;
  margin-left: 0.5rem;
}
.experience-item {
  position: relative;
  margin-bottom: 3rem;
}
.experience-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--bg-body);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
}
.experience-title-row {
  margin-bottom: 0.5rem;
}
.experience-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.experience-company {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 500;
}
.experience-location-date {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.75rem;
  font-family: "JetBrains Mono", monospace;
}
.experience-details {
  list-style: disc;
  padding-left: 1.25rem;
}
.experience-details li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* PROJECTS */
.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-header {
  height: 8px;
  width: 100%;
}
.header-blue {
  background: #3b82f6;
}
.header-indigo {
  background: #6366f1;
}
.header-slate {
  background: #64748b;
}
.header-green {
  background: #10b981;
}
.header-orange {
  background: #f59e0b;
}
.header-rose {
  background: #f43f5e;
}
.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}
.tag {
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: 4px;
}

/* SKILLS */
.skill-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.skill-category-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.75rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-tag {
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: default;
}
.skill-tag:hover {
  background-color: white;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .skill-tag:hover {
  background-color: var(--bg-body);
}

/* EDUCATION */
.education-list {
  display: grid;
  gap: 1.5rem;
}
.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.edu-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.edu-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.edu-degree {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.edu-school {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.edu-meta {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-family: "JetBrains Mono", monospace;
  margin-top: 0.3rem;
}

/* CONTACT FORM */
.contact-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  max-width: 600px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* FOOTER */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}
.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-link {
  color: var(--text-secondary);
  font-weight: 500;
}
.footer-link:hover {
  color: var(--accent-primary);
}

/* PROJECT CATEGORY HEADINGS */
.project-category-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border-color);
}

/* WIP BADGE */
.wip-badge {
  font-size: 0.65rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
[data-theme="dark"] .wip-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-cta,
  .hero-connect {
    justify-content: center;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-list.active {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .experience-list {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .experience-item::before {
    display: none;
  }
  .experience-item {
    border-left: 3px solid var(--border-color);
    padding-left: 1rem;
  }
  .edu-item {
    flex-direction: column;
    gap: 0.75rem;
  }
}
