/*--------------------------------------------------------------
  custom.css: additions on top of the iPortfolio template.
  The original style.css is untouched; delete this file (and
  custom.js) to go back to the plain template look.
  Palette reused from the template: #149ddd, #173b6c, #050d18
--------------------------------------------------------------*/
:root {
  --accent: #149ddd;
  --accent-soft: rgba(20, 157, 221, 0.10);
  --navy: #173b6c;
  --ink: #050d18;
}

html { scroll-behavior: smooth; }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #37b3ed);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ---------- Sidebar ---------- */
#header .profile .profile-role {
  color: #a8b3c4;
  font-size: 13px;
  text-align: center;
  margin: 6px 0 0;
  letter-spacing: 0.5px;
}

/* ---------- Hero ---------- */
#hero { position: relative; overflow: hidden; }
#hero:before { background: linear-gradient(160deg, rgba(5, 13, 24, 0.55), rgba(23, 59, 108, 0.45)); }
#hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#hero .hero-container { text-align: center; padding: 0 15px; }
#hero p { margin-bottom: 30px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18d26e;
  box-shadow: 0 0 0 0 rgba(24, 210, 110, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(24, 210, 110, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(24, 210, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 210, 110, 0); }
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 50px;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}
.btn-hero:hover { background: #0e86bf; border-color: #0e86bf; color: #fff; transform: translateY(-2px); }
.btn-hero-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn-hero-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Decorative background shapes ---------- */
.deco { position: relative; }
.deco > .container { position: relative; z-index: 1; }
.deco::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
/* dotted grid, top right */
.deco-dots-right::before {
  top: 30px;
  right: -20px;
  width: 220px;
  height: 160px;
  background-image: radial-gradient(rgba(20, 157, 221, 0.28) 2px, transparent 2px);
  background-size: 18px 18px;
}
/* soft ring, right edge */
.deco-ring-left::before {
  top: 50px;
  right: -140px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 36px solid rgba(20, 157, 221, 0.07);
}

@media (max-width: 768px) { .deco::before { display: none; } }

/* Section title underline grows in */
.section-title h2::after {
  width: 0;
  background: linear-gradient(90deg, var(--accent), #37b3ed);
  transition: width 0.8s ease 0.2s;
}
.section-title.in-view h2::after { width: 60px; }

/* ---------- Shared card lift ---------- */
.card-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(23, 59, 108, 0.12); }

/* ---------- About ---------- */
.about-photo { position: relative; padding: 0 14px 14px 0; }
.about-photo::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 85%;
  height: 85%;
  border: 3px solid var(--accent);
  border-radius: 6px;
  z-index: 0;
}
.about-photo img { position: relative; z-index: 1; border-radius: 6px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.about-tags span {
  background: var(--accent-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

/* ---------- Facts ---------- */
.facts .count-box {
  background: #fff;
  border: 1px solid #e4edf9;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(23, 59, 108, 0.05);
}
.facts .count-box .count-num {
  margin-left: 60px;
  font-size: 44px;
  line-height: 40px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}
.facts .count-box .count-num span {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.facts .count-box .count-num em { font-style: normal; color: var(--accent); }

/* ---------- Skills: grouped chips (replace % bars) ---------- */
.skill-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  height: 100%;
  border: 1px solid #e4edf9;
}
.skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-card-head i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}
.skill-card-head h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--navy); font-family: "Poppins", sans-serif; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 50px;
  background: #f1f6fc;
  border: 1px solid #dce8f8;
  color: #23395d;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-strong { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips-sm { margin-top: 6px; }
.chips-sm .chip { font-size: 12px; padding: 3px 10px; }

/* Languages row */
.lang-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.lang {
  background: #fff;
  border: 1px solid #e4edf9;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lang-name { font-weight: 700; color: var(--navy); font-family: "Poppins", sans-serif; }
.lang-level { font-size: 13px; color: #6c7a8d; }
.lang-dots { display: flex; gap: 5px; }
.lang-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dce8f8; }
.lang-dots i.on { background: var(--accent); }
@media (max-width: 768px) { .lang-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Resume ---------- */
.resume .resume-item.current::before {
  background: var(--accent);
  border-color: var(--accent);
  animation: pulse-blue 2.2s infinite;
}
@keyframes pulse-blue {
  0%   { box-shadow: 0 0 0 0 rgba(20, 157, 221, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(20, 157, 221, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 157, 221, 0); }
}
.resume .company-note { font-size: 14px; color: #6c7a8d; margin-bottom: 8px; }

.cert-list { display: flex; flex-direction: column; gap: 12px; }
.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e4edf9;
  border-radius: 10px;
  background: #fff;
}
.cert i { font-size: 26px; color: var(--accent); }
.cert strong { display: block; color: var(--ink); font-family: "Poppins", sans-serif; font-size: 15px; }
.cert span { font-size: 13px; color: #6c7a8d; }

/* ---------- GitHub cards ---------- */
.portfolio .gh-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4edf9;
  border-top: 3px solid var(--accent);
  color: inherit;
}
.portfolio .gh-card:hover { color: inherit; }
.gh-card h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; word-break: break-word; }
.gh-card h4 i { color: var(--accent); }
.gh-card p { font-size: 14px; color: #556172; flex-grow: 1; margin-bottom: 14px; }
.gh-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #6c7a8d; }
.gh-meta .lang-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; background: var(--accent); }
.gh-empty { color: #6c7a8d; }

/* ---------- Interests: subtle lift ---------- */
.services .icon-box { transition: transform 0.3s ease; }
.services .icon-box:hover { transform: translateY(-3px); }

/* ---------- Contact CTA ---------- */
.contact-cta {
  text-align: center;
  padding: 70px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(55, 179, 237, 0.35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(20, 157, 221, 0.35), transparent 45%),
    var(--navy);
  color: #fff;
}
.contact-cta h3 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.contact-cta p { color: #cfe0f3; margin-bottom: 24px; }

/* Footer sits under the sidebar; keep it slim */
#footer { font-size: 13px; padding: 12px; }

/* ---------- Accessibility: respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #hero-network { display: none; }
}
