/* ===== Tokens ===== */
:root {
  --bg: #010517;
  --bg-soft: #0a0f24;
  --surface: #0d1330;
  --border: rgba(120, 170, 255, 0.14);
  --text: #eef1f8;
  --text-muted: #93a0c0;
  --cyan: #29d3ff;
  --cyan-2: #0a7fd9;
  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-2) 100%);
  --font-head: 'Orbitron', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --radius: 16px;
  --shadow-glow: 0 0 40px rgba(41, 211, 255, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Background FX ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(41, 211, 255, 0.16) 0%, rgba(1, 5, 23, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--grad);
  color: #04101c;
  box-shadow: 0 0 24px rgba(41, 211, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(41, 211, 255, 0.55); }

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand__logo { height: 39px; width: auto; }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: 24px;
}

.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--cyan); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 80px;
  position: relative;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(420px, 78vw);
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.hero__role {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.accent { color: var(--cyan); font-weight: 600; }

.hero__tagline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.85;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Sections ===== */
section { padding: 100px 0; position: relative; }

.section__eyebrow {
  font-family: var(--font-head);
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  margin-bottom: 36px;
}

/* ===== About ===== */
.about__text {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about__location {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.95rem;
}
.about__location .icon { width: 18px; height: 18px; fill: currentColor; }

/* ===== Skills ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.skill-card {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.55) 0%, rgba(1, 5, 23, 0.78) 100%),
    url('../assets/card-bg.jpg') center/cover no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}
.skill-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.skill-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Projects ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}

.project-card__preview {
  height: 160px;
  background: linear-gradient(135deg, #0b1c4d 0%, #10173a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.project-card__preview img {
  position: relative;
  z-index: 1;
  max-width: 62%;
  max-height: 68%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.project-card__preview--ank {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.4) 0%, rgba(1, 5, 23, 0.68) 100%),
    url('../assets/projects/ank-bg.jpg') center/cover no-repeat;
}
.project-card__preview--ank::before { display: none; }

.project-card__preview--rikera {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.45) 0%, rgba(1, 5, 23, 0.7) 100%),
    url('../assets/projects/rikera-bg.jpg') center/cover no-repeat;
}
.project-card__preview--rikera::before { display: none; }

.project-card__preview--infok {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.4) 0%, rgba(1, 5, 23, 0.68) 100%),
    url('../assets/projects/infok-bg.jpg') center/cover no-repeat;
}
.project-card__preview--infok::before { display: none; }

.project-card__preview--grettel {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.4) 0%, rgba(1, 5, 23, 0.68) 100%),
    url('../assets/projects/grettel-bg.jpg') center/cover no-repeat;
}
.project-card__preview--grettel::before { display: none; }

.project-card__preview--eleven {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.4) 0%, rgba(1, 5, 23, 0.68) 100%),
    url('../assets/projects/eleven-bg.jpg') center/cover no-repeat;
}
.project-card__preview--eleven::before { display: none; }

.project-card__preview--food {
  background:
    linear-gradient(135deg, rgba(1, 5, 23, 0.45) 0%, rgba(1, 5, 23, 0.72) 100%),
    url('../assets/projects/food-bg.jpg') center/cover no-repeat;
}
.project-card__preview--food::before { display: none; }

.project-card__preview .logo-tile {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.project-card__preview .logo-tile img {
  max-width: 72%;
  max-height: 72%;
  border-radius: 0;
  box-shadow: none;
}

.project-card__preview .logo-tile--fenix img {
  width: 104px;
  height: 104px;
  max-width: none;
  max-height: none;
}

.project-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.project-card__body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
}

.project-card__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.project-card__link {
  margin-top: 8px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.88rem;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}
.project-card__link:hover { opacity: 0.75; }

.badge {
  align-self: flex-start;
  background: rgba(41, 211, 255, 0.1);
  border: 1px solid rgba(41, 211, 255, 0.35);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.projects__subtitle {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 50px 0 10px;
}

.projects__note {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 680px;
  margin-bottom: 28px;
}

/* ===== Contact ===== */
.contact__text {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:not(.contact-card--static):hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow);
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  color: var(--cyan);
}
.contact-card__icon svg { width: 100%; height: 100%; }
.contact-card__label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-card__value { font-weight: 600; font-size: 1.02rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer__logo { height: 26px; opacity: 0.8; }

/* ===== WhatsApp FAB ===== */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  z-index: 90;
  transition: transform 0.25s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(5, 8, 20, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
}

@media (max-width: 520px) {
  section { padding: 70px 0; }
  .hero { padding-top: 120px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .projects__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
