:root {
  --navy-900: #081A3D;
  --navy-800: #0E2A5E;
  --navy-700: #123166;
  --blue-500: #3E63C2;
  --teal: #2EC4C4;
  --teal-light: #6FE0D6;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FC;
  --text: #16213E;
  --text-muted: #5B6478;
  --border: #E4E9F2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 42, 94, 0.08);
  --max-width: 1120px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.logo span { color: var(--teal); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav a:hover { color: var(--navy-900); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--teal); background: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal);
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(46, 196, 196, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(46, 196, 196, 0.45); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,196,0.25) 0%, rgba(46,196,196,0) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-media { display: flex; justify-content: center; }
.avatar {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 40px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text { color: var(--text-muted); font-size: 1.05rem; }

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about-facts li { color: var(--text-muted); font-size: 0.95rem; }
.about-facts strong { color: var(--navy-900); }

.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tag {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy-800);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--navy-900);
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  background: var(--bg-alt);
  color: var(--navy-800);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(14, 42, 94, 0.14);
}

.project-visual {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.project-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(46, 196, 196, 0.2);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.timeline-content h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline-content .muted { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.timeline-content ul { display: flex; flex-direction: column; gap: 6px; }
.timeline-content li {
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
  padding-left: 16px;
}
.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* Testimonial */
.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
}
.quote-icon { margin-bottom: 16px; }
.testimonial-card blockquote {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.5;
}
.testimonial-source {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy-800);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-link:hover { border-color: var(--teal); background: var(--bg-alt); }
.contact-link svg { color: var(--teal); flex-shrink: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.contact-form .btn { align-self: flex-start; }

.consent-check {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: var(--text-muted);
}
.consent-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 28px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* Reveal on scroll */
.section, .hero-inner { opacity: 0; transform: translateY(16px); }
.section.is-visible, .hero-inner.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.25s ease;
  }
  .nav.is-open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-media { order: -1; }
  .avatar { width: 160px; height: 160px; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
