:root {
  --bg: #07182c;
  --bg-soft: #0f2b4b;
  --surface: #ffffff;
  --surface-alt: #f3f7fb;
  --text: #152235;
  --muted: #5a6878;
  --primary: #0e7490;
  --primary-strong: #075985;
  --accent: #f59e0b;
  --success: #1f9d55;
  --danger: #c0392b;
  --ring: rgba(14, 116, 144, 0.25);
  --shadow: 0 16px 40px rgba(7, 24, 44, 0.14);
  --radius: 14px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  z-index: 2000;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(5, 17, 33, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.resume-link a {
  background: var(--accent);
  color: #101317;
  font-weight: 700;
}

.resume-link a:hover {
  background: #fbbf24;
  color: #0f172a;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  width: min(1120px, 95%);
  margin: 1.5rem auto 2rem;
}

.hero {
  color: #fff;
  margin: 0 auto 2rem;
  padding: 2.2rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 110% at 0% 0%, rgba(14, 116, 144, 0.38), transparent 55%),
    linear-gradient(138deg, #102941 0%, #1a3553 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-img {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 8px 26px rgba(7, 15, 28, 0.42);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(237, 248, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.2;
  max-width: 24ch;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.hero-subtitle {
  margin-top: 0.72rem;
  max-width: 56ch;
  color: rgba(238, 247, 255, 0.95);
  font-size: 1.01rem;
}

.hero-panel {
  background: rgba(4, 14, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 14px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #f1f7ff;
}

.hero-stats {
  list-style: none;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(235, 246, 255, 0.95);
}

.hero-note {
  margin-top: 0.72rem;
  font-size: 0.9rem;
  color: rgba(233, 245, 255, 0.9);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.btn-primary,
.btn-primary:link,
.btn-primary:visited {
  background: #f8b947;
  color: #17212f;
}

.btn-primary:hover {
  background: #ffd073;
}

.btn-secondary,
.btn-secondary:link,
.btn-secondary:visited {
  background: #eef5ff;
  color: #10263e;
}

.btn-secondary:hover {
  background: #ffffff;
}

.btn-ghost,
.btn-ghost:link,
.btn-ghost:visited {
  background: transparent;
  color: #f3f9ff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

section {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 1.4rem 0;
}

section:not(.hero) h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  color: #0f2236;
}

section:not(.hero) p {
  color: var(--muted);
}

.about-highlights {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 0.8rem;
}

.highlight-item {
  background: var(--surface-alt);
  border: 1px solid #deebf6;
  border-radius: 10px;
  padding: 0.9rem;
}

.highlight-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.meta {
  color: #49607a;
  font-size: 0.94rem;
  margin-bottom: 0.7rem;
}

.job,
.project,
.edu,
.achievement {
  border: 1px solid #deebf6;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.job h3,
.project h3,
.edu h3,
.achievement h3 {
  margin-bottom: 0.35rem;
  color: var(--text);
}

.project-duration {
  color: #4f6278;
  margin-bottom: 0.4rem;
}

.project ul,
.job ul,
#skills ul,
.contact-info {
  list-style: none;
}

.project li,
.job li {
  margin: 0.35rem 0;
  padding-left: 1.15rem;
  position: relative;
  color: var(--muted);
}

.project li::before,
.job li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 0.63rem;
}

#skills ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 0.6rem;
}

#skills li {
  background: var(--surface-alt);
  border: 1px solid #deebf6;
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 0.95rem;
}

#skills a {
  color: #14314e;
  text-decoration: none;
}

#skills a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-details,
.contact-form {
  border: 1px solid #deebf6;
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 1rem;
}

.contact-details h3,
.contact-form h3 {
  margin-bottom: 0.6rem;
}

.contact-info li {
  margin-bottom: 0.55rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #1f2d3c;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bfd3e4;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

input.invalid,
textarea.invalid {
  border-color: var(--danger);
}

input.valid,
textarea.valid {
  border-color: var(--success);
}

.error {
  display: block;
  margin-top: 0.2rem;
  min-height: 1.2rem;
  font-size: 0.84rem;
  color: var(--danger);
}

.button-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.button-group button {
  border: 0;
}

footer {
  margin-top: 1rem;
  background: rgba(5, 17, 33, 0.98);
  color: #fff;
}

.footer-content {
  width: min(1120px, 95%);
  margin: 0 auto;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a,
.back-to-top {
  color: #d0e8ff;
  text-decoration: none;
}

.footer-links a:hover,
.back-to-top:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .nav-menu ul {
    gap: 0.35rem;
  }

  .nav-menu a {
    font-size: 0.86rem;
  }

  #skills ul {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 58px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    transform: translateY(-120%);
    transition: transform 0.24s ease;
    background: rgba(5, 17, 33, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 0;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    width: min(1120px, 95%);
    margin: 0 auto;
  }

  .hero {
    padding: 1.2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .hero-panel {
    padding: 0.9rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  section {
    padding: 1.15rem;
  }

  .about-highlights,
  .contact-container,
  #skills ul {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}




