:root {
  --bg: #0f0f0f;
  --card: #1b1b1b;
  --muted: #b0b0b0;
  --accent: #ffb703;
  --accent2: #219ebc;
  --white: #fefefe;
  --glass: rgba(255,255,255,0.04);
  --radius: 14px;
  --maxw: 1100px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: #0f0f0f;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: background 0.3s ease;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 20px;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand span {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent);
}
.btn {
  background: #2b2b2b;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}

.btn:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  color: #0f0f0f;
  box-shadow: 0 0 12px rgba(255,183,3,0.4);
  transform: translateY(-1px);
}

.avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.04);
}

.hero {
  max-width: var(--maxw);
  margin: 40px auto;
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 24px;
}
.hero-left {
  flex: 0 0 180px;
}
.avatar {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.05);
}
.hero-right {
  flex: 1;
}
.title {
  color: var(--accent2);
  margin-top: 6px;
  font-weight: 600;
}
.summary {
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.6;
}
.links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.links a:hover {
  color: var(--accent2);
}

.container {
  max-width: var(--maxw);
  margin: 10px auto;
  padding: 12px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(255,183,3,0.15);
}
.job h3 {
  margin: 0;
  color: var(--accent);
}
.muted {
  color: var(--muted);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.skill {
  background: var(--glass);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease, transform 0.2s ease;
}
.skill:hover {
  background: rgba(255,183,3,0.05);
  transform: translateY(-2px);
}
.skill h4 {
  color: var(--accent2);
}
.callout {
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255,183,3,0.08), rgba(33,158,188,0.06));
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
  font-size: 14px;
}

.project {
  margin-top: 10px;
}
.project h4 {
  color: var(--accent);
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
#contactForm input,
#contactForm textarea {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  border-radius: 8px;
  color: var(--white);
  transition: border 0.2s ease, background 0.2s ease;
}
#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border: 1px solid var(--accent);
  background: rgba(255,255,255,0.04);
}
#contactForm textarea {
  min-height: 100px;
  resize: vertical;
}

.footer {
  max-width: var(--maxw);
  margin: 18px auto;
  text-align: center;
  color: var(--muted);
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(15,15,15,0.85);
}
.footer span {
  color: var(--accent);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(15,15,15,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

html.light body {
  background: #fafaf9;
  color: #111827;
}

html.light .nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

html.light .brand span {
  color: #f59e0b;
}

html.light .nav-links a {
  color: #4b5563;
}
html.light .nav-links a:hover {
  color: #f59e0b;
}

html.light .btn {
  background: #f3f4f6;
  color: #111827;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
html.light .btn:hover {
  background: linear-gradient(90deg, #fbbf24 0%, #219ebc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

html.light .footer {
  background: rgba(255,255,255,0.9);
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #4b5563;
}

html.light .footer span {
  color: #f59e0b;
}

html.light .card {
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

#themeToggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.25s ease;
}

#themeToggle:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}

html.light #themeToggle {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.1);
}

html.light #themeToggle:hover {
  background: rgba(0,0,0,0.1);
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

#hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

html.light #hamburger span {
  background: #111827;
}

#hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

#hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(15,15,15,0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.active {
  max-height: 400px;
}

.mobile-menu a {
  padding: 16px 20px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
}

.mobile-menu a.btn {
  margin: 10px 20px;
  text-align: center;
  border-bottom: none;
}

html.light .mobile-menu {
  background: rgba(255,255,255,0.98);
  border-top: 1px solid rgba(0,0,0,0.05);
}

html.light .mobile-menu a {
  color: #4b5563;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

html.light .mobile-menu a:hover {
  background: rgba(0,0,0,0.03);
  color: #f59e0b;
}

@media (max-width: 880px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    display: none;
  }
  .nav-inner {
    gap: 8px;
  }
  #hamburger {
    display: flex;
  }
  .mobile-menu {
    display: flex;
  }
  .btn {
    font-size: 13px;
    padding: 6px 10px;
  }
}
