:root {
  --navy: #0b1f4d;
  --navy-deep: #081635;
  --sky: #eaf5ff;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #5b6473;
  --accent: #f97316;
  --success: #16a34a;
  --border: #dbe3ef;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: var(--sky);
  color: var(--text);
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.87rem;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #334155;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle,
.menu-btn {
  border: 1px solid #c5d4ee;
  background: #eff6ff;
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.menu-btn {
  display: none;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(8, 22, 53, 0.92) 0%, rgba(11, 31, 77, 0.75) 48%, rgba(11, 31, 77, 0.5) 100%);
}

.hero-content {
  position: relative;
  color: var(--white);
}

.hero-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.2em;
  color: #cbe1ff;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.08;
}

.hero-title {
  margin: 14px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  font-weight: 600;
}

.hero-summary {
  margin: 16px 0 0;
  max-width: 760px;
  color: #d7e4ff;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.24s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

.btn-soft {
  border-color: #98b7ee;
  background: rgba(152, 183, 238, 0.15);
  color: #e8f1ff;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: #f9fcff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--navy-deep);
  color: #fff;
}

.section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
}

.section-dark h2 {
  color: #fff;
}

.section p {
  line-height: 1.8;
  color: #334155;
}

.section-dark p {
  color: #dbeafe;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.skill-group h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.02rem;
}

.skill {
  margin-bottom: 16px;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: #46566e;
}

.bar {
  width: 100%;
  height: 8px;
  background: #e9eef8;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, #f97316);
  transition: width 0.9s ease;
}

.timeline {
  position: relative;
  margin-top: 12px;
  border-left: 2px solid #bfd1f3;
  padding-left: 24px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 6px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--sky);
  border-radius: 50%;
  background: #1d4ed8;
}

.timeline-item h3 {
  margin: 0 0 5px;
  color: #0f172a;
  font-size: 1.08rem;
}

.timeline-meta {
  color: #1d4ed8;
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-item ul {
  margin: 0;
  padding-left: 16px;
  color: #374151;
}

.timeline-item li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(3, 8, 20, 0.35);
}

.project img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.project-body {
  padding: 14px;
}

.project h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.project p {
  margin: 0 0 12px;
  min-height: 72px;
  color: #d7e6ff;
  font-size: 0.92rem;
}

.project a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.education-block {
  margin-bottom: 20px;
}

.education-block h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.certs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.certs summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.certs ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.certs li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #334155;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-grid p {
  margin: 0 0 14px;
}

.contact-grid a {
  color: #1d4ed8;
}

.wa-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.wa-links a {
  color: #fff;
  background: var(--success);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
}

.contact-form span {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c6d3e8;
  border-radius: 10px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1d4ed8;
}

.floating-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: var(--success);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.35);
}

.site-footer {
  background: var(--navy-deep);
  color: #d3e2ff;
  border-top: 1px solid #15306d;
  padding: 18px 0;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 10px 0 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-cta .btn {
    width: 100%;
  }
}