/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --bg: #0a0a12;
  --bg-alt: #101018;
  --card: #14141f;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f6;
  --text-muted: #9a9aae;
  --accent: #ffc107;
  --accent-2: #7c5cff;
  --accent-grad: linear-gradient(135deg, #ffc107 0%, #f5721c 100%);
  --accent-grad-2: linear-gradient(135deg, #7c5cff 0%, #2ed6c9 100%);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  outline: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #111;
}

.section-pad {
  padding: 100px 0;
  scroll-margin-top: 40px;
}

.section-alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 16px;
}

.text-body-2 {
  color: #d3d3de;
  margin-bottom: 18px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-accent {
  background: var(--accent-grad);
  color: #14140f;
  border: none;
}

.btn-accent:hover {
  color: #14140f;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.28);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: transparent;
}

.btn-outline-light:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}

/* =========================================================
   SCROLL REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   MOBILE TOP BAR
========================================================= */
.mob-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 14px 20px;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.mob-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}

.mob-brand span {
  color: var(--accent);
}

.toggler-menu {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  position: relative;
}

.toggler-menu span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 20px;
  height: 2px;
  background: #14140f;
  box-shadow: 0 -6px 0 0 #14140f, 0 6px 0 0 #14140f;
}

/* Offcanvas mobile nav */
.nav-offcanvas {
  background: var(--bg-alt);
  color: var(--text);
  width: 280px;
}

.mobile-nav-list .nav-link {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-list .nav-link i {
  color: var(--accent);
  font-size: 18px;
  width: 22px;
}

.mobile-nav-socials {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  font-size: 20px;
}

.mobile-nav-socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--text);
}

/* =========================================================
   DESKTOP SIDE RAIL
========================================================= */
.header-left {
  width: 84px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--card-border);
  z-index: 1020;
  align-items: center;
  padding: 24px 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #14140f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.nav-menu {
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.rail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin: 0 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 19px;
  transition: all 0.25s ease;
}

.rail-link:hover,
.rail-link.active {
  color: #14140f;
  background: var(--accent);
}

.rail-cta {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-top: 12px;
}

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  padding-top: 130px;
  padding-bottom: 40px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero {
    margin-left:  -12px;
    padding-top: 60px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.14) 0%, transparent 70%);
  z-index: -1;
}

.hero-topbar {
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px 0;
  font-size: 14px;
}

.hero-topbar .info a {
  color: var(--text-muted);
  margin-right: 28px;
}

.hero-topbar .info a:hover {
  color: var(--accent);
}

.hero-topbar .social a {
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.25s ease;
}

.hero-topbar .social a:hover {
  background: var(--accent);
  color: #14140f;
  border-color: var(--accent);
}

.hero-row {
  min-height: 78vh;
  padding: 40px 0;
}

.hero-name {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 14px;
}

.hero-name .dot {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 28px;
  margin-bottom: 20px;
}

.caret {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 560px;
  color: #cfcfdb;
  font-size: 16.5px;
}

.hero-quick-contact {
  display: flex;
  gap: 12px;
}

.quick-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: transform 0.25s ease;
}

.quick-btn:hover {
  transform: translateY(-4px) scale(1.05);
  color: #fff;
}

.quick-whatsapp { background: #25d366; }
.quick-call { background: #2ea1ff; }
.quick-email { background: #ff6b4a; }
.quick-linkedin { background: #0a66c2; }

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

.hero-blob {
  position: absolute;
  inset: 0;
  background: var(--accent-grad-2);
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  filter: blur(2px);
  opacity: 0.35;
  transform: scale(1.08);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.hero-badge {
  position: absolute;
  bottom: 10px;
  left: -10px;
  z-index: 2;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-badge i {
  color: var(--accent);
  font-size: 22px;
}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}

.hero-badge span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Signature: scrolling clearance-badge tape */
.badge-tape {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-alt);
  padding: 16px 0;
  white-space: nowrap;
}

.badge-tape::before,
.badge-tape::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.badge-tape::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

.badge-tape::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.badge-tape-inner {
  display: inline-flex;
  gap: 14px;
  animation: tape-scroll 32s linear infinite;
  width: max-content;
}

.badge-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #d3d3de;
  background: var(--card);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  white-space: nowrap;
}

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

@media (min-width: 992px) {
  main, footer { margin-left: 84px; }
}

/* =========================================================
   ABOUT
========================================================= */
.about-photo-wrap {
  max-width: 260px;
}

.about-photo {
  border-radius: 50%;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 2px var(--card-border);
}

.social-icons a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  transition: all 0.25s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: #14140f;
  border-color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 30px;
  margin-top: 22px;
}

.info-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.info-item span {
  font-size: 15px;
  color: var(--text);
}

@media (max-width: 575px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SKILLS
========================================================= */
.skill-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-card-head i {
  font-size: 24px;
  color: var(--accent);
}

.skill-card-head h3 {
  font-size: 20px;
  margin: 0;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 13px;
  font-family: var(--font-mono);
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: #dcdce6;
  transition: all 0.25s ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* =========================================================
   EXPERIENCE TIMELINE
========================================================= */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--card-border);
}

@media (min-width: 768px) {
  .timeline { padding-left: 190px; }
}

.timeline-item {
  position: relative;
  margin-bottom: 44px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

@media (min-width: 768px) {
  .timeline-item::before { left: -199px; }
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .timeline-date {
    position: absolute;
    left: -190px;
    width: 150px;
    text-align: right;
    top: 4px;
  }
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.timeline-role {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--text);
  font-weight: 600;
}

.timeline-location {
  color: var(--text-muted);
  font-size: 13.5px;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-list {
  margin: 0;
  padding-left: 20px;
  color: #d3d3de;
}

.timeline-list li {
  margin-bottom: 10px;
}

.timeline-list li strong {
  color: var(--text);
}

.achievement-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* =========================================================
   SERVICES
========================================================= */
.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-grad);
  color: #14140f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h5 {
  font-size: 18px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* =========================================================
   PROJECTS
========================================================= */
.project-cta-card {
  background: var(--card);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.project-cta-card p {
  color: var(--text-muted);
  margin: 14px 0 22px;
}

/* =========================================================
   RESUME CTA
========================================================= */
.resume-cta {
  background: radial-gradient(circle at top, rgba(124, 92, 255, 0.12), transparent 60%), var(--bg);
}

/* =========================================================
   CONTACT
========================================================= */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 560px;
  margin: 40px auto 30px;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

.contact-btn {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-btn i {
  font-size: 26px;
}

.contact-btn span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.contact-whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; transform: translateY(-5px); }
.contact-call:hover { background: #2ea1ff; border-color: #2ea1ff; color: #fff; transform: translateY(-5px); }
.contact-email:hover { background: #ff6b4a; border-color: #ff6b4a; color: #fff; transform: translateY(-5px); }
.contact-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; transform: translateY(-5px); }

.contact-direct {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13.5px;
}

/* =========================================================
   MOBILE STICKY CTA
========================================================= */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
}

.mobile-sticky-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  color: var(--text);
  font-size: 21px;
}

.mobile-sticky-cta a:nth-child(1) { color: #2ea1ff; }
.mobile-sticky-cta a:nth-child(2) { color: #25d366; }
.mobile-sticky-cta a:nth-child(3) { color: #ff6b4a; }
.mobile-sticky-cta a:nth-child(4) { color: #0a66c2; }

@media (min-width: 992px) {
  .mobile-sticky-cta { display: none !important; }
}

body {
  padding-bottom: 64px;
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

/* =========================================================
   RESPONSIVE TWEAKS
========================================================= */
@media (max-width: 767px) {
  .section-pad { padding: 70px 0; }
  .hero { padding-top: 90px; }
  .hero-row { min-height: auto; padding: 20px 0 50px; }
  .hero-photo-wrap { margin-top: 40px; max-width: 260px; }
  .hero-actions, .hero-quick-contact { justify-content: center; }
  .hero-name, .hero-desc { text-align: center; }
  .eyebrow { justify-content: center; }
}
