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

:root {
  --bg: #f9f9f7;
  --surface: #ffffff;
  --hover-surface: #f4f4f1;
  --border: #e4e4df;
  --text: #1a1a18;
  --muted: #6b6b66;
  --nav-bg: rgba(249, 249, 247, 0.9);
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;

  /* accent palette */
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --purple: #7c3aed;
  --purple-bg: #f5f3ff;
  --purple-border: #ddd6fe;
  --pink: #db2777;
  --pink-bg: #fdf2f8;
  --pink-border: #fbcfe8;
  --orange: #ea580c;
  --orange-bg: #fff7ed;
  --orange-border: #fed7aa;
  --teal: #0d9488;
  --teal-bg: #f0fdfa;
  --teal-border: #99f6e4;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
}

html[data-theme="dark"] {
  --bg: #0f0f0e;
  --surface: #1a1a18;
  --hover-surface: #252523;
  --border: #2e2e2b;
  --text: #f0efe9;
  --muted: #8a8a82;
  --nav-bg: rgba(15, 15, 14, 0.9);

  --blue: #60a5fa;
  --blue-bg: #1e2a3a;
  --blue-border: #2d4a6e;
  --purple: #a78bfa;
  --purple-bg: #211d35;
  --purple-border: #3d3468;
  --pink: #f472b6;
  --pink-bg: #2a1525;
  --pink-border: #5c2a47;
  --orange: #fb923c;
  --orange-bg: #271a0e;
  --orange-border: #5c3415;
  --teal: #2dd4bf;
  --teal-bg: #0d2521;
  --teal-border: #174e47;
  --green: #4ade80;
  --green-bg: #0d2218;
  --green-border: #165c2e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  transition:
    background 0.3s,
    color 0.3s;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 5px 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s,
    color 0.2s;
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.icon-sun,
.icon-moon {
  width: 15px;
  height: 15px;
}
html[data-theme="dark"] .icon-sun {
  display: none;
}
html:not([data-theme="dark"]) .icon-moon {
  display: none;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

/* LAYOUT */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 80px 0;
}
section + section {
  border-top: 1px solid var(--border);
}

/* HERO */
.hero {
  padding: 60px 0 80px;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}
.hero-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.hero-avatar-placeholder:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.hero-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-flex;      /* changed from inline-block */
  align-items: center;       /* added */
  gap: 7px;  
}
.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  margin-top: 8px;
}
.hero h1 strong {
  font-weight: 500;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
html[data-theme="dark"] .btn-primary {
  color: #0f0f0e;
}
html[data-theme="dark"] .btn-primary:hover {
  background: #93c5fd;
  border-color: #93c5fd;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--muted);
}

/* SKILLS TICKER */

.skills-ticker {
  margin: 30px 0;
  overflow: hidden;
  position: relative;

  /* smooth fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;

  /* smoother + longer scroll */
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);

  /* increased spacing = more horizontal length feel */
  padding: 0 12px;
  letter-spacing: 0.05em;
}

.ticker-track .dot {
  color: var(--muted);
  padding: 0 6px;
}

/* pause on hover */
.skills-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* infinite smooth loop */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* SECTION LABEL */
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 500;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}
.stat:nth-child(2) {
  border-left-color: var(--purple);
}
.stat:nth-child(3) {
  border-left-color: var(--teal);
}
.stat-number {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.skill-card {
  background: var(--surface);
  padding: 24px;
}
.skill-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #f0f0ec;
  color: #4a4a46;
}
/* per-category tag colors */
.skill-card.cat-core .tag {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}
.skill-card.cat-db .tag {
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid var(--teal-border);
}
.skill-card.cat-api .tag {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}
.skill-card.cat-infra .tag {
  background: var(--orange-bg);
  color: var(--orange);
  border: 1px solid var(--orange-border);
}
.skill-card.cat-testing .tag {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.skill-card.cat-tools .tag {
  background: var(--pink-bg);
  color: var(--pink);
  border: 1px solid var(--pink-border);
}

/* PROJECTS */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.project-card {
  background: var(--surface);
  padding: 28px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}
.project-card:hover {
  background: var(--hover-surface);
}
.project-card:nth-child(1) {
  border-left-color: var(--blue);
}
.project-card:nth-child(2) {
  border-left-color: var(--purple);
}
.project-card:nth-child(3) {
  border-left-color: var(--orange);
}
.project-card:nth-child(4) {
  border-left-color: var(--teal);
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.5;
  min-width: 24px;
  padding-top: 3px;
}
.project-body {
  flex: 1;
}
.project-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.65;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.project-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--blue-border);
  padding-bottom: 1px;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.project-link:hover {
  color: #1d4ed8;
  border-color: #1d4ed8;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* EXPERIENCE */
.exp-list {
  display: flex;
  flex-direction: column;
}
.exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.exp-item:last-child {
  border-bottom: none;
}
.exp-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
  line-height: 1.6;
}
.exp-role {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
}
.exp-company {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.exp-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* CONTACT */
.contact-card {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-left h2 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--blue);
}
.contact-left p {
  font-size: 13px;
  color: var(--muted);
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.contact-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.contact-icon-btn:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.contact-icon-btn:nth-child(2) {
  color: var(--purple);
  border-color: var(--purple-border);
}
.contact-icon-btn:nth-child(2):hover {
  background: var(--purple-bg);
  border-color: var(--purple);
}
.contact-icon-btn:nth-child(3) {
  color: var(--teal);
  border-color: var(--teal-border);
}
.contact-icon-btn:nth-child(3):hover {
  background: var(--teal-bg);
  border-color: var(--teal);
}
.contact-icon-btn:nth-child(4) {
  color: var(--orange);
  border-color: var(--orange-border);
}
.contact-icon-btn:nth-child(4):hover {
  background: var(--orange-bg);
  border-color: var(--orange);
}
.contact-link:hover {
  color: #1d4ed8;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
footer p {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}


    @keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@media (max-width: 600px) {
  nav {
    padding: 12px 1rem 10px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nav-right {
    gap: 1rem;
  }
  .nav-links {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 13px;
  }
  .container {
    padding: 0 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 28px;
  }
  .contact-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .exp-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
