:root {
  --bg: #0b0d10;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f5f7fa;
  --muted: #b2bac5;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ffffff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #151923 0%, #0b0d10 45%, #07080a 100%);
  color: var(--text);
  line-height: 1.65;
}

body::selection {
  background: rgba(255, 255, 255, 0.18);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255,255,255,0.05), transparent 25%);
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 14, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 20px;
}

.brand,
nav a,
.site-footer a,
.contact-box a {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a,
.site-footer a {
  color: var(--muted);
  transition: color 0.25s ease;
}

nav a:hover,
.site-footer a:hover,
.contact-box a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding: 88px 0 48px;
  align-items: center;
}

.eyebrow,
.section-tag,
.card-label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.button.primary {
  background: var(--accent);
  color: #0a0b0d;
}

.button.secondary {
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.card,
.panel,
.contact-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel {
  padding: 28px;
}

.hero-card .card h2 {
  margin-bottom: 10px;
}

.hero-card .card p,
.hero-card .card li,
.panel p,
.section-heading p,
.education-meta,
.info-list span,
.clean-list li,
.timeline-content p,
.contact-box span {
  color: var(--muted);
}

.hero-card ul,
.clean-list {
  list-style: none;
  margin-top: 18px;
}

.hero-card li,
.clean-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.hero-card li:last-child,
.clean-list li:last-child {
  border-bottom: none;
}

.section {
  padding: 34px 0 26px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.grid-two,
.skills-grid {
  display: grid;
  gap: 22px;
}

.grid-two {
  grid-template-columns: 1.2fr 0.8fr;
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-list div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list strong {
  font-size: 1.02rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 126px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-date {
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 6px;
}

.timeline-content {
  position: relative;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
}

.timeline-content::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 28px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.timeline-content h3,
.panel h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
}

.education-card {
  max-width: 820px;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
  padding: 24px 28px;
}

.contact-box a {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 52px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero,
  .grid-two,
  .skills-grid,
  .timeline-item,
  .work-details {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-content::before {
    left: 20px;
    top: -6px;
    width: 10px;
    height: 10px;
  }

  .timeline-date {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .nav,
  .footer-inner,
  .contact-box,
  .work-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 56px;
  }

  .card,
  .panel,
  .contact-box {
    padding: 22px;
  }

  nav {
    gap: 16px;
  }
}


.work-card-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.work-card-top .button {
  flex-shrink: 0;
}

.work-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.work-details div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.work-details a {
  color: var(--text);
  text-decoration: none;
}

.work-details a:hover {
  text-decoration: underline;
}


.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.contact-whatsapp:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #0b0d10;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.86);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: rgba(20, 23, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    min-height: 52px;
    padding: 0 16px;
  }
}



@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap {
    margin-bottom: 8px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo-wrap {
    margin: 0 auto 6px;
  }

  .hero-actions {
    justify-content: center;
  }
}


/* ---- Final fixes: circular profile photo + visible WhatsApp icons ---- */
.hero {
  display: grid !important;
  grid-template-columns: 190px 1.5fr 1fr !important;
  gap: 32px !important;
  align-items: center !important;
}

.hero-photo-wrap {
  position: relative !important;
  width: 170px !important;
  height: 170px !important;
  min-width: 170px !important;
  min-height: 170px !important;
  justify-self: center !important;
  border-radius: 50% !important;
  overflow: visible !important;
}

.hero-photo-ring {
  position: absolute !important;
  inset: -8px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.16), rgba(37,211,102,0.55)) !important;
}

.hero-photo {
  position: relative !important;
  z-index: 1 !important;
  width: 170px !important;
  height: 170px !important;
  min-width: 170px !important;
  min-height: 170px !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
  border: 4px solid rgba(255,255,255,0.78) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,0.28) !important;
  transition: transform 0.45s ease, box-shadow 0.45s ease !important;
}

.hero-photo:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 30px 70px rgba(0,0,0,0.34) !important;
}

.contact-whatsapp,
.whatsapp-float {
  position: relative !important;
  overflow: hidden !important;
}

.wa-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #25D366 !important;
  line-height: 1 !important;
}

.wa-icon svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
  fill: currentColor !important;
}

.contact-whatsapp::after,
.whatsapp-float::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%) !important;
  transform: translateX(-130%) !important;
  transition: transform 0.7s ease !important;
}

.contact-whatsapp:hover::after,
.whatsapp-float:hover::after {
  transform: translateX(130%) !important;
}

.contact-whatsapp:hover,
.whatsapp-float:hover {
  box-shadow: 0 14px 30px rgba(37,211,102,0.18) !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .hero-photo-wrap {
    margin: 0 auto 10px !important;
  }

  .hero-actions {
    justify-content: center !important;
  }
}


/* --- Adjust profile position (more top-left) --- */
.hero {
  align-items: flex-start !important;
}

.hero-photo-wrap {
  justify-self: flex-start !important;
  margin-top: -10px !important;
  margin-left: -10px !important;
}


/* --- FIX WhatsApp floating button position --- */
.whatsapp-float {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  z-index: 999 !important;
}


/* --- Hide floating WhatsApp button near contact section --- */
.whatsapp-float {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.25s ease, border-color 0.25s ease;
}

.whatsapp-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
}


/* --- Final floating WhatsApp visibility fix --- */
.whatsapp-float {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  z-index: 999 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    background 0.25s ease,
    border-color 0.25s ease !important;
}

.whatsapp-float.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(18px) !important;
}


/* --- Navbar font size fix (mobile friendly) --- */
.nav-links a {
  font-size: 0.95rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.7rem;
  }
}


/* --- Mobile horizontal scroll navbar (Apple style) --- */
@media (max-width: 768px) {
  .nav-links {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 5px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}
