:root {
  --bg: #050b16;
  --bg-soft: #08111f;
  --panel: rgba(9, 18, 35, 0.78);
  --panel-strong: rgba(8, 15, 30, 0.96);
  --text: #f5f8ff;
  --muted: #99a5bb;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(140, 175, 255, 0.18);
  --primary: #69a6ff;
  --primary-2: #80e6ff;
  --accent: #b6c8ff;
  --success: #8ef0c7;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
  --radius: 26px;
  --radius-sm: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 125, 255, 0.22), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(87, 226, 255, 0.16), transparent 18%),
    linear-gradient(180deg, #040913 0%, #071221 35%, #050b16 100%);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 108px 0; position: relative; }
.section--dark { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03)); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-title { margin: 10px 0 14px; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.04; letter-spacing: -0.04em; }
.section-copy { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  color: var(--primary-2); background: rgba(104, 166, 255, 0.08);
  border: 1px solid rgba(104, 166, 255, 0.18); font-size: .83rem; text-transform: uppercase; letter-spacing: .16em;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 11, 22, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.26); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a, .footer__nav a { color: rgba(255,255,255,.84); transition: color .25s ease; }
.nav a:hover, .footer__nav a:hover { color: white; }
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.lang-pill {
  padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text);
}
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; }

.hero { padding-top: 84px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 44px; align-items: center; }
.hero h1 { margin: 18px 0 8px; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .92; letter-spacing: -.06em; }
.hero h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.06; color: rgba(255,255,255,.93); letter-spacing: -.04em; }
.hero__lead { max-width: 760px; font-size: 1.1rem; line-height: 1.9; color: var(--muted); margin-bottom: 28px; }
.hero__cta, .contact-actions, .project-card__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; min-height: 54px; border-radius: 18px;
  border: 1px solid transparent; font-weight: 600; transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #06101d; box-shadow: 0 18px 35px rgba(78, 153, 255, .24); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255,255,255,.03); color: white; }
.btn--full { width: 100%; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.stat-card, .service-card, .cert-card, .timeline-card, .project-card, .contact-card, .intro-grid, .admin-login, .admin-panel, .hero-card {
  background: linear-gradient(180deg, rgba(18, 30, 56, .78), rgba(8, 15, 30, .95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat-card { padding: 22px; border-radius: 22px; }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stat-card span { color: var(--muted); font-size: .92rem; }
.hero__visual { position: relative; min-height: 720px; }
.hero-card {
  border-radius: 34px; padding: 24px; overflow: hidden; position: relative;
  height: 100%; min-height: 720px;
}
.hero-card::before {
  content: ''; position: absolute; inset: -20% auto auto -10%; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90,149,255,.36), transparent 70%);
}
.hero-card__badge {
  position: absolute; top: 24px; right: 24px; z-index: 2; padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.hero-card__avatar { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 70px rgba(0,0,0,.4)); }
.floating-panel {
  position: absolute; min-width: 240px; padding: 18px 20px; border-radius: 22px;
  background: rgba(5, 11, 22, 0.78); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}
.floating-panel span { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 6px; }
.floating-panel strong { font-size: 1rem; }
.floating-panel--one { left: -20px; bottom: 150px; }
.floating-panel--two { right: -12px; top: 120px; }

.intro-grid { border-radius: 30px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; }
.chip-cloud span, .tag-list span, .project-card__chips span {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--accent); font-size: .9rem;
}
.timeline { display: grid; gap: 20px; }
.timeline-card { border-radius: 30px; padding: 26px; display: grid; grid-template-columns: 120px 1fr; gap: 24px; }
.timeline-card__year { font-size: 2.4rem; font-weight: 800; color: var(--primary-2); letter-spacing: -.05em; }
.timeline-card__period { color: var(--muted); display: inline-block; margin-bottom: 10px; }
.timeline-card h4, .service-card h4, .cert-card h4, .project-card h4 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.03em; }
.timeline-card p, .service-card p, .cert-card p, .project-card p { color: var(--muted); line-height: 1.8; margin: 8px 0 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.cert-grid, .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cert-card, .service-card { border-radius: 28px; padding: 28px; }
.cert-card__date { color: var(--primary-2); font-size: .9rem; display: inline-block; margin-bottom: 16px; }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(103, 166, 255, .18), rgba(128, 230, 255, .12));
  border: 1px solid rgba(103, 166, 255, .18);
}
.service-card__icon svg, .floating-whatsapp svg { width: 26px; height: 26px; }

.projects-grid { display: grid; gap: 26px; }
.project-card { border-radius: 34px; padding: 24px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; }
.project-card__gallery {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; cursor: pointer;
}
.project-card__thumb { border-radius: 20px; overflow: hidden; min-height: 180px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.project-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card__expand {
  position: absolute; right: 14px; bottom: 14px; border: 0; border-radius: 14px; padding: 10px 14px;
  background: rgba(5, 11, 22, .88); color: white; border: 1px solid var(--line-strong); cursor: pointer;
}
.project-card small { display: block; color: var(--primary-2); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.project-card__chips { display: flex; gap: 10px; margin-bottom: 16px; }
.project-card__details { margin-top: 12px; }

.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: start; }
.contact-card { border-radius: 30px; padding: 28px; display: grid; gap: 16px; }
.contact-card label { display: grid; gap: 8px; }
.contact-card span { color: var(--muted); font-size: .92rem; }
.contact-card input, .contact-card textarea {
  width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: white; padding: 14px 16px; outline: none;
}
.contact-card input:focus, .contact-card textarea:focus { border-color: rgba(104, 166, 255, .35); box-shadow: 0 0 0 4px rgba(104, 166, 255, .08); }
.form-note { min-height: 22px; color: var(--success); margin: 0; }
.form-note.is-error { color: #ff9f9f; }

.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); background: rgba(5,11,22,.5); }
.footer__inner { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.brand--footer img { width: 50px; height: 50px; }

.lightbox {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 80;
}
.lightbox.is-open { display: flex; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(2, 6, 14, .82); backdrop-filter: blur(12px); }
.lightbox__dialog {
  position: relative; z-index: 1; width: min(1180px, calc(100% - 30px)); max-height: 86vh; overflow: auto;
  border-radius: 30px; padding: 24px; background: var(--panel-strong); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lightbox__close {
  position: sticky; top: 0; margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: white; font-size: 1.5rem; cursor: pointer;
}
.lightbox__content h4 { margin: 0 0 18px; font-size: 1.8rem; }
.lightbox__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lightbox__grid img { width: 100%; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); }

.floating-whatsapp {
  position: fixed; right: 22px; bottom: 22px; width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; z-index: 50;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #06101d; box-shadow: 0 18px 35px rgba(78,153,255,.28);
}

.admin-body { min-height: 100vh; display: grid; place-items: center; }
.admin-wrap { width: min(1200px, calc(100% - 30px)); padding: 34px 0; }
.admin-login { max-width: 460px; margin: 0 auto; padding: 30px; border-radius: 28px; display: grid; gap: 16px; }
.admin-login label { display: grid; gap: 8px; }
.admin-login input { border-radius: 16px; border: 1px solid var(--line); padding: 14px 16px; background: rgba(255,255,255,.03); color: white; }
.admin-error { color: #ff9f9f; }
.admin-panel { border-radius: 28px; padding: 28px; }
.admin-panel__head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.admin-table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { color: var(--accent); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal--delay { transition-delay: .16s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero__grid, .project-card, .contact-grid, .intro-grid, .cert-grid, .services-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: auto; }
  .hero-card { min-height: 560px; }
  .timeline-card { grid-template-columns: 1fr; }
  .floating-panel--one { left: 12px; bottom: 18px; }
  .floating-panel--two { right: 12px; top: 18px; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 10px); display: none;
    flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; border-radius: 22px;
    background: rgba(5,11,22,.96); border: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: inline-block; }
  .hero__stats { grid-template-columns: 1fr; }
  .lightbox__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 82px 0; }
  .topbar__inner { min-height: 72px; }
  .brand span, .lang-pill { display: none; }
  .hero { padding-top: 42px; }
  .hero-card { min-height: 470px; }
  .floating-panel { position: static; margin-top: 14px; }
  .project-card, .timeline-card, .service-card, .cert-card, .contact-card, .intro-grid { padding: 20px; border-radius: 24px; }
  .project-card__gallery { grid-template-columns: 1fr 1fr; }
  .project-card__thumb { min-height: 120px; }
}
