
:root {
  --bg: #050b16;
  --panel: #0b172b;
  --text: #f3f7ff;
  --muted: #9fb0ca;
  --accent: #21c7ff;
  --accent2: #7857ff;
  --border: rgba(255,255,255,.08);
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 80% 10%, rgba(33,199,255,.10), transparent 30%),
    radial-gradient(circle at 15% 30%, rgba(120,87,255,.08), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-tap-highlight-color: transparent;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: rgba(5,11,22,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  width: min(1120px, calc(100% - 8px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  font-weight: 900;
  letter-spacing: .6px;
  font-size: clamp(1.2rem, 4vw, 1.65rem);
}

.language-toggle {
  min-height: 42px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.globe { font-size: 1.05rem; line-height: 1; }

.section {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.profile-hero {
  padding: 26px 0 20px;
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 26px;
  border: 1px solid rgba(33,199,255,.22);
  box-shadow: var(--shadow);
}

.accordion-wrap {
  padding: 8px 0 70px;
  display: grid;
  gap: 14px;
}

.accordion-card,
.panel,
.stat,
.project-card,
.contact-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(13,27,50,.96), rgba(8,18,37,.96));
}

.accordion-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.accordion-toggle {
  width: 100%;
  min-height: 76px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  display: block;
  font: inherit;
  font-size: clamp(1.18rem, 3vw, 1.5rem);
  font-weight: 800;
  cursor: pointer;
  text-align: inherit;
}

.accordion-content {
  border-top: 1px solid var(--border);
  padding: 16px;
}

.panel {
  border-radius: 16px;
  padding: 22px;
  color: var(--muted);
}

.panel p { margin: 0; }

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

.stat {
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
}

.stat span { color: var(--muted); }

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

.project-card {
  border-radius: 16px;
  padding: 22px;
  min-height: 170px;
}

.project-card h3 { margin: 12px 0 8px; }
.project-card p { color: var(--muted); margin: 0; }

.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(33,199,255,.10);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
}

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

.contact-card {
  border-radius: 16px;
  padding: 18px;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.app-icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.whatsapp-icon { background: #25D366; color: #fff; }
.phone-icon { background: #1f8cff; color: #fff; }
.facebook-icon { background: #1877F2; color: #fff; }

footer {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 30px 0 max(46px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: var(--muted);
}

footer strong { color: var(--text); }

:focus-visible {
  outline: 3px solid rgba(33,199,255,.55);
  outline-offset: 3px;
}

html[dir="ltr"] body { font-family: Arial, Tahoma, sans-serif; }
html[dir="ltr"] .panel,
html[dir="ltr"] .project-card,
html[dir="ltr"] .accordion-toggle { text-align: left; }

html[dir="rtl"] .panel,
html[dir="rtl"] .project-card,
html[dir="rtl"] .accordion-toggle { text-align: right; }

@media (max-width: 860px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { width: min(100% - 20px, 1120px); }
  .topbar { padding-left: 10px; padding-right: 10px; }
  .header-row { width: 100%; }
  .brand { font-size: 1.25rem; }
  .language-toggle { min-height: 40px; padding: 7px 10px; }
  .profile-hero { padding-top: 18px; }
  .profile-photo { border-radius: 22px; }
  .stats,
  .projects-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .accordion-content { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.footer-signature {
  font-family: "Times New Roman", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: .2px;
}
