/* ── Variables ── */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F2EDE7;
  --hero: #1A2F42;
  --hero-deep: #132333;
  --accent: #C9913D;
  --accent-dark: #A87332;
  --accent-light: #F5E6D0;
  --accent-glow: rgba(201, 145, 61, 0.18);
  --wa: #25D366;
  --wa-dark: #1DA851;
  --primary: #1A2F42;
  --text: #2C2C2C;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --white: #FFFFFF;
  --border: #E5DFD6;

  --font-h: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-b: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --sh-sm: 0 1px 4px rgba(0,0,0,0.07);
  --sh-md: 0 4px 18px rgba(0,0,0,0.09);
  --sh-lg: 0 12px 40px rgba(0,0,0,0.12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --nav-h: 68px;
  --max-w: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  transition: box-shadow 0.25s;
}
#navbar.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.025em;
  transition: color 0.2s;
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  margin-left: 4px;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  padding: 2px 3px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn.active {
  color: var(--accent);
  background: var(--accent-light);
}
.lang-btn:hover:not(.active) { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  min-height: 100vh;
  background: var(--hero);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Warm radial glow behind the photo */
.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 55vw; height: 55vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  flex: 1;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-name {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-title-line {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 300;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--wa);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.28);
}
.btn-whatsapp:hover {
  background: var(--wa-dark);
  box-shadow: 0 6px 24px rgba(37,211,102,0.38);
}
.btn-large { padding: 18px 36px; font-size: 1rem; }

/* ── Hero Photo ── */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-frame {
  width: 300px;
  height: 370px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid rgba(201,145,61,0.35);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
  background: #1f3347;
}
.photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #243b53 0%, #1a2f42 100%);
}
.photo-placeholder svg {
  width: 90px; height: 90px;
  color: rgba(255,255,255,0.1);
}
.photo-frame .photo-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.photo-frame .photo-img.loaded { opacity: 1; }

/* ── Hero scroll hint ── */
.hero-scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 28px;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll-hint svg {
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.25);
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION COMMONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 44px; height: 3px;
  background: var(--accent);
  margin-top: 12px;
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 52px;
  line-height: 1.75;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ABOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about { padding: 100px 0; background: var(--bg); }

.about-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.stat-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.stat-number {
  display: block;
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.stat-card--expertise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.stat-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SERVICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.services { padding: 100px 0; background: var(--bg-alt); }

.svc-category { margin-bottom: 60px; }
.svc-category:last-child { margin-bottom: 0; }

.svc-cat-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.svc-cat-title {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
.svc-cat-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 32px 28px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.service-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: var(--accent); }
.service-icon svg {
  width: 24px; height: 24px;
  color: var(--accent);
  transition: color 0.2s;
}
.service-card:hover .service-icon svg { color: var(--white); }
.service-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EXPERIENCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.experience { padding: 100px 0; background: var(--bg); }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.exp-block {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}
.exp-marker {
  position: absolute;
  left: -7px; top: 2px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.exp-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.exp-job-title {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.exp-company {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.exp-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-bullets li {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  padding-left: 16px;
  position: relative;
}
.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Education items ── */
.edu-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.edu-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.6;
}
.edu-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.edu-highlight svg { color: var(--accent); }
.edu-highlight { font-weight: 600; color: var(--primary); }
.edu-item strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.edu-item p { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* ── Skills ── */
.skills-block {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 4px;
}
.skills-title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}
.skills-grid { display: flex; flex-direction: column; gap: 0; }
.skill-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.skill-row:last-child { border-bottom: none; }
.skill-category {
  min-width: 165px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 11px;
  white-space: nowrap;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTACT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.contact {
  padding: 100px 0;
  background: var(--hero);
}
.contact .section-title { color: var(--white); }
.contact .section-title::after { background: var(--accent); }
.contact-subtitle { color: rgba(255,255,255,0.60); }

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.contact-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.contact-email-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-email-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.contact-email-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s, gap 0.2s;
}
.contact-email-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.contact-email-btn:hover { color: #daa656; gap: 10px; }
.contact-email-link {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 400;
  word-break: break-all;
}
.contact-email-link:hover { color: var(--accent); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.09);
  width: 100%;
}
.contact-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
}
.contact-location svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-lang-badge {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  padding: 4px 13px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
footer {
  background: var(--hero-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 22px 0;
  text-align: center;
}
footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.03em;
}
.footer-credit {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-credit:hover { color: var(--accent); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 52px;
    padding-bottom: 0;
    gap: 36px;
  }
  /* Text first on tablet/mobile — photo floats as decorative circle below */
  .hero-photo { order: 1; padding-bottom: 52px; }
  .photo-frame {
    width: 160px; height: 160px;
    border-radius: 50%;
    margin: 0 auto;
  }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-scroll-hint { display: none; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .exp-grid { grid-template-columns: 1fr; gap: 40px; }

  .skill-category { min-width: 130px; }

  .contact-card { padding: 40px 36px; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    box-shadow: var(--sh-md);
    flex-direction: column;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 13px 28px;
  }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .lang-toggle { margin-left: 0; }

  .hero-inner { padding-top: 40px; gap: 28px; }
  .photo-frame { width: 130px; height: 130px; }

  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 26px 20px; }

  .services-grid { grid-template-columns: 1fr; }

  .svc-cat-header { flex-direction: column; gap: 4px; }

  .exp-block { padding-left: 22px; }

  .skill-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .skill-category { min-width: auto; }

  .contact-card { padding: 32px 24px; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .btn-large { padding: 16px 24px; font-size: 0.92rem; }
}
