@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --ap-bg: #07090f;
  --ap-bg-2: #0c111c;
  --ap-surface: rgba(255, 255, 255, 0.035);
  --ap-surface-2: rgba(255, 255, 255, 0.06);
  --ap-line: rgba(255, 255, 255, 0.08);
  --ap-text: #f4f7fb;
  --ap-muted: #9aa8bc;
  --ap-accent: #2dd4bf;
  --ap-accent-2: #38bdf8;
  --ap-warn: #fbbf24;
  --ap-font: "Outfit", system-ui, sans-serif;
  --ap-display: "Syne", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.ap-body {
  margin: 0;
  font-family: var(--ap-font);
  color: var(--ap-text);
  background: var(--ap-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.ap-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 85% 10%, rgba(45, 212, 191, 0.12), transparent 55%),
    radial-gradient(50% 40% at 10% 30%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(40% 35% at 50% 100%, rgba(251, 191, 36, 0.05), transparent 55%),
    var(--ap-bg);
}

body.ap-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: soft-light;
}

.ap-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid var(--ap-line);
  backdrop-filter: blur(16px);
}

.ap-nav .navbar-brand {
  font-family: var(--ap-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
  font-size: 1.2rem;
}

.ap-nav .navbar-brand span { color: var(--ap-accent); }

.ap-nav .nav-link {
  color: var(--ap-muted) !important;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.45rem 0.75rem !important;
  transition: color .2s ease;
}

.ap-nav .nav-link:hover { color: #fff !important; }

.ap-nav .btn-resume {
  background: #fff;
  color: #07090f !important;
  border-radius: 999px;
  padding: 0.45rem 0.95rem !important;
  font-weight: 700;
  font-size: 0.8rem;
}

.ap-nav .btn-resume:hover {
  background: var(--ap-accent);
  color: #07090f !important;
}

.navbar-toggler {
  border-color: var(--ap-line);
}
.navbar-toggler-icon {
  filter: invert(1);
}

.ap-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.ap-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .ap-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.ap-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
  color: var(--ap-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.ap-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: ap-pulse 2s infinite;
}

@keyframes ap-pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.ap-hero h1 {
  font-family: var(--ap-display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
}

.ap-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 20%, var(--ap-accent) 55%, var(--ap-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ap-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: #dbe7f5;
  margin-bottom: 0.85rem;
}

.ap-lead {
  max-width: 34rem;
  color: var(--ap-muted);
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.ap-btn:hover { transform: translateY(-2px); }

.ap-btn-primary {
  background: linear-gradient(120deg, var(--ap-accent), var(--ap-accent-2));
  color: #041018;
}

.ap-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.ap-btn-ghost:hover {
  border-color: var(--ap-accent);
  color: var(--ap-accent);
}

.ap-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  color: var(--ap-muted);
  font-size: 0.9rem;
}

.ap-meta-row a {
  color: var(--ap-accent-2);
  text-decoration: none;
  font-weight: 600;
}

.ap-photo-stage {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.ap-photo-stage::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.35), transparent 40%, rgba(56, 189, 248, 0.25));
  filter: blur(18px);
  z-index: 0;
  animation: ap-glow 6s ease-in-out infinite alternate;
}

@keyframes ap-glow {
  from { opacity: 0.55; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.03); }
}

.ap-photo-stage img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-float-card {
  position: absolute;
  z-index: 2;
  right: -8%;
  bottom: 10%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-width: 180px;
}

.ap-float-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.ap-float-card span {
  color: var(--ap-muted);
  font-size: 0.78rem;
}

.ap-strip {
  border-block: 1px solid var(--ap-line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 0.95rem 0;
}

.ap-strip-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: ap-marquee 28s linear infinite;
}

.ap-strip-track span {
  font-family: var(--ap-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(244, 247, 251, 0.55);
  white-space: nowrap;
}

.ap-strip-track span::after {
  content: "✦";
  margin-left: 2rem;
  color: var(--ap-accent);
}

@keyframes ap-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ap-section {
  padding: 5rem 0;
  position: relative;
}

.ap-section-title {
  font-family: var(--ap-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.45rem;
}

.ap-section-sub {
  color: var(--ap-muted);
  max-width: 34rem;
  margin: 0 0 2.2rem;
}

.ap-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ap-accent);
  margin-bottom: 0.7rem;
}

.ap-panel {
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 20px;
  padding: 1.4rem;
  height: 100%;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.ap-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, 0.35);
  background: var(--ap-surface-2);
}

.ap-about-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ap-about-grid {
    grid-template-columns: 1.4fr 0.8fr;
  }
}

.ap-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ap-stat {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(45, 212, 191, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.15);
}

.ap-stat strong {
  display: block;
  font-family: var(--ap-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.ap-stat span {
  color: var(--ap-muted);
  font-size: 0.78rem;
}

.ap-chip {
  display: inline-block;
  margin: 0 0.35rem 0.4rem 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ap-line);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e2f0;
  font-size: 0.78rem;
  font-weight: 600;
}

.ap-skill-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .ap-skill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ap-skill-grid { grid-template-columns: repeat(3, 1fr); }
}

.ap-skill-cat h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-accent);
  margin: 0 0 0.8rem;
  font-weight: 700;
}

.ap-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 992px) {
  .ap-bento {
    grid-template-columns: 1.2fr 1fr;
  }
  .ap-bento .ap-project:first-child {
    grid-row: span 2;
  }
}

.ap-project .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-accent);
  font-weight: 700;
}

.ap-project h3 {
  font-family: var(--ap-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.55rem;
}

.ap-project p { color: var(--ap-muted); }
.ap-project ul {
  margin: 0 0 0.9rem;
  padding-left: 1.05rem;
  color: #c7d3e4;
}
.ap-project li { margin-bottom: 0.3rem; }

.ap-timeline {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid rgba(45, 212, 191, 0.25);
}

.ap-job {
  position: relative;
  padding: 0 0 1.6rem 0.5rem;
}

.ap-job::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ap-accent);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.ap-job h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.ap-job .meta {
  color: var(--ap-accent);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
}

.ap-job p {
  margin: 0;
  color: var(--ap-muted);
}

.ap-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ap-clients .ap-chip {
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
}

.ap-contact {
  background:
    radial-gradient(80% 80% at 90% 10%, rgba(45, 212, 191, 0.12), transparent 50%),
    var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  padding: 2rem 1.5rem;
}

.ap-contact a { color: var(--ap-accent-2); text-decoration: none; font-weight: 600; }

.ap-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--ap-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--ap-line);
}

/* Reveal motion */
.ap-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

.ap-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ap-reveal-delay-1 { transition-delay: .08s; }
.ap-reveal-delay-2 { transition-delay: .16s; }
.ap-reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .ap-reveal, .ap-strip-track, .ap-status i, .ap-photo-stage::before {
    animation: none !important;
    transition: none !important;
  }
  .ap-reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 991.98px) {
  .ap-hero { min-height: auto; padding-top: 2.5rem; text-align: center; }
  .ap-lead { margin-left: auto; margin-right: auto; }
  .ap-actions, .ap-meta-row { justify-content: center; }
  .ap-float-card { right: 4%; bottom: 4%; }
}
