:root {
  --bg: #f5f7fb;
  --bg-alt: #edf3ff;
  --panel: #ffffff;
  --panel-strong: #101a2b;
  --panel-soft: #eaf0fa;
  --text: #162235;
  --muted: #5d6d82;
  --primary: #1d4ed8;
  --primary-soft: rgba(29, 78, 216, 0.12);
  --accent: #f0b429;
  --line: rgba(22, 34, 53, 0.1);
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: rgba(245, 247, 251, 0.5);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(15, 23, 42, 0.04));
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.55);
}

.eyebrow {
  color: var(--primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 251, 0.8);
  border-bottom: 1px solid rgba(22, 34, 53, 0.05);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #0f172a);
  color: white;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  margin-right: 1.2rem;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
}

.language-btn {
  min-width: 36px;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-btn.is-active {
  background: var(--primary);
  color: white;
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  padding: 0.5rem;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  padding: 4rem 0 2.5rem;
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(237, 243, 255, 0.5));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow,
.hero-copy h1,
.section-heading h2,
.timeline-content h3,
.info-card h3,
.badge-card h3,
.project-body h3,
.contact-box h2 {
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1.1rem;
  max-width: 660px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  text-align: justify;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #173c8c);
  color: white;
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.2);
}

.btn-secondary {
  background: rgba(29, 78, 216, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-metrics {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1rem;
  max-width: 480px;
}

.hero-metrics li {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.hero-metrics strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: min(100%, 420px);
  background: linear-gradient(180deg, #ffffff 0%, rgba(234, 240, 250, 0.9) 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.avatar-wrap {
  margin-bottom: 1.1rem;
}

.avatar {
  width: 143px;
  height: 143px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  font-size: 2.1rem;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), #0f172a 75%);
  box-shadow: 0 18px 35px rgba(29, 78, 216, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.9);
}

.status-pill {
  display: inline-flex;
  background: rgba(15, 185, 129, 0.12);
  color: #0b8a62;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.card-body h2 {
  margin-top: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.role {
  margin-top: 0.5rem;
  font-size: 1.02rem;
  color: var(--muted);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.mini-list span {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.6rem;
}

.about-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.03);
}

.about-copy p + p {
  margin-top: 1rem;
}

.focus-panel {
  background: linear-gradient(180deg, var(--panel-strong) 0%, #182439 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}

.focus-panel h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.focus-panel ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.focus-panel li {
  position: relative;
  padding-left: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
}

.focus-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(29, 78, 216, 0.2);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.timeline-dot {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.12);
  margin-top: 0.65rem;
}

.timeline-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.period {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.42rem 0.7rem;
}

.company {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.timeline-content ul {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.badge-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.card-tag {
  display: inline-flex;
  background: rgba(240, 180, 41, 0.14);
  color: #9a6500;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 0.9rem;
}

.info-card h3,
.badge-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.meta {
  font-weight: 700;
  color: var(--text);
}

.badge-card {
  text-align: center;
}

.badge-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(240, 180, 41, 0.15));
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 35px rgba(15, 23, 42, 0.08);
}

.project-visual {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-one {
  background-image: linear-gradient(135deg, rgba(29, 78, 216, 0.4), rgba(19, 22, 40, 0.5)), url('linko.png');
  background-size: cover;
  background-position: center;
}

.visual-two {
  background-image: linear-gradient(135deg, rgba(57, 20, 193, 0.4), rgba(19, 22, 40, 0.5)), url('afore.png');
  background-size: cover;
  background-position: center;
}

.visual-three {
  background-image: linear-gradient(135deg, rgba(216, 98, 29, 0.4), rgba(19, 22, 40, 0.5)), url('santander.jpg');
  background-size: cover;
  background-position: center;
}

.visual-four {
  background-image: linear-gradient(135deg, rgba(216, 98, 29, 0.4), rgba(19, 22, 40, 0.5)), url('santander.jpg');
  background-size: cover;
  background-position: center;
}

.visual-five {
  background-image: linear-gradient(135deg, rgba(216, 98, 29, 0.4), rgba(19, 22, 40, 0.5)), url('santander.jpg');
  background-size: cover;
  background-position: center;
}

.project-body {
  padding: 1.3rem 1.2rem 1.5rem;
}

.project-tag {
  display: inline-flex;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.project-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.project-body p {
  color: var(--muted);
  text-align: justify;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
}

.skills-group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
}

.skills-group h3 {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.skill-list {
  display: grid;
  gap: 1rem;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(29, 78, 216, 0.09);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #53a0ff);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip-cloud span {
  display: inline-flex;
  align-items: center;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.12);
  color: var(--text);
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cta-section {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, #101a2b, #1d4ed8);
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--shadow);
}

.contact-box .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.2rem 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .skills-layout,
  .project-grid,
  .three-col,
  .two-col {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-nav {
    margin: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.35rem 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
