/* ============================================================
   Artha Bastanta Portfolio — Modern Redesign 2024
   ============================================================ */

/* ---- CSS Variables ---------------------------------------- */
:root {
  --sidebar-bg: #0d1117;
  --sidebar-width: 300px;
  --accent: #4a9eff;
  --accent-2: #7b61ff;
  --accent-grad: linear-gradient(135deg, #4a9eff 0%, #7b61ff 100%);
  --text-primary: #1a1a2e;
  --text-muted: #6c757d;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.7;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-weight: 600;
}

img { max-width: 100%; }

/* ---- Open to Work Badge ----------------------------------- */
.open-to-work-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 8px auto 0;
  letter-spacing: 0.3px;
}

.otw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse-green 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-otw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

/* ---- Sidebar CV Button ------------------------------------ */
.sidebar-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 20px 0;
  padding: 9px 16px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(74,158,255,0.3);
}
.sidebar-cv-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,158,255,0.45);
}
.sidebar-cv-btn i { font-size: 15px; }

/* ---- Hero CV Button --------------------------------------- */
.btn-hero-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-hero-cv:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

/* ---- Back to Top ------------------------------------------ */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 9996;
  background: var(--accent-grad);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(74,158,255,0.4);
}
.back-to-top i { font-size: 26px; color: #fff; line-height: 0; }
.back-to-top.active { visibility: visible; opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(74,158,255,0.5); }

/* ---- Sidebar / Header ------------------------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 9997;
  padding: 0;
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
  transition: left 0.5s ease;
}

#header .d-flex {
  min-height: 100%;
  padding: 0 0 20px;
}

.profile {
  padding: 30px 20px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(74,158,255,0.08) 0%, transparent 100%);
}

.profile img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(74,158,255,0.4);
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px rgba(74,158,255,0.08);
  transition: var(--transition);
}
.profile img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(74,158,255,0.15);
}

.profile h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.profile h1 a, .profile h1 a:hover { color: #fff; text-decoration: none; }

.sidebar-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}

.profile .social-links { margin-top: 14px; }

.profile .social-links a {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #a0aec0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 2px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.08);
}
.profile .social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74,158,255,0.35);
}

/* Navigation */
.nav-menu {
  padding: 20px 0;
  flex: 1;
}
.nav-menu *, .nav-menu ul { margin: 0; padding: 0; list-style: none; }

.nav-menu a, .nav-menu a:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #718096;
  padding: 10px 24px;
  margin: 2px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a i { font-size: 20px; min-width: 22px; }

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
  color: #fff;
  background: rgba(74,158,255,0.12);
  text-decoration: none;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu li:hover > a i { color: var(--accent); }

.nav-menu .active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.sidebar-footer p {
  color: #4a5568;
  font-size: 11px;
  margin: 0;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 9998;
  border: 0;
  font-size: 22px;
  transition: var(--transition);
  background: var(--sidebar-bg);
  color: #fff;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.mobile-nav-active { overflow: hidden; }
.mobile-nav-active #header { left: 0; }

/* Main content offset */
#main { margin-left: var(--sidebar-width); }

.container, .container-fluid {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1199px) {
  #header { left: calc(-1 * var(--sidebar-width)); }
  #main { margin-left: 0; }
  .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
}

/* ---- Hero -------------------------------------------------- */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  background: url('../img/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(13,17,23,0.88) 0%,
    rgba(13,17,23,0.70) 50%,
    rgba(74,158,255,0.15) 100%);
  z-index: 1;
}

/* Animated background particles effect via pseudo-element */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(74,158,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123,97,255,0.08) 0%, transparent 50%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 700px;
}

#hero h1 {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -2px;
}

#hero h1 span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero p {
  color: rgba(255,255,255,0.80);
  font-size: clamp(16px, 3vw, 22px);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 36px;
}

#hero p span {
  color: #fff;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-grad);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(74,158,255,0.4);
}
.btn-hero-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(74,158,255,0.5);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-hero-outline:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

@media (min-width: 1024px) { #hero { background-attachment: fixed; } }

/* ---- Sections General ------------------------------------- */
section { padding: 70px 0; overflow: hidden; }
.section-bg { background: var(--surface-alt); }

.section-title { padding-bottom: 36px; }

.section-title h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 16px;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent-grad);
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.section-title p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---- About ------------------------------------------------ */
.about-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-img-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-img-badge {
  position: absolute;
  bottom: 24px;
  right: -12px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(74,158,255,0.4);
}
.about-img-badge span { font-size: 32px; font-weight: 700; display: block; line-height: 1; }
.about-img-badge small { font-size: 11px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }

.about .content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.about-quote {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 100%);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 14px;
}

.about .content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.about .content ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.about .content ul i { color: var(--accent); font-size: 14px; flex-shrink: 0; }
.about .content ul strong { min-width: 80px; color: #2d3748; font-weight: 600; }

.status-badge {
  background: linear-gradient(135deg, #d4edff 0%, #e8d5ff 100%);
  color: #2b5f8e;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ---- Facts / Stats ---------------------------------------- */
.facts { background: var(--text-primary); }
.facts .section-title h2 { color: #fff; }
.facts .section-title h2::after { background: var(--accent-grad); }
.facts .section-title p { color: #718096; }

.facts .count-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 20px;
}
.facts .count-box:hover {
  background: rgba(74,158,255,0.08);
  border-color: rgba(74,158,255,0.2);
  transform: translateY(-3px);
}

.facts .count-box > i {
  font-size: 40px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.facts .count-box .count-content span {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}

.facts .count-box .count-content p {
  color: #718096;
  font-size: 13px;
  margin: 6px 0 0;
  line-height: 1.4;
}

.facts .count-box .count-content p strong { color: #a0aec0; display: block; }

/* ---- Skills ----------------------------------------------- */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.skill-category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.skill-category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(74,158,255,0.3);
  transform: translateY(-3px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.skill-cat-header i {
  font-size: 20px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.skill-cat-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.skill-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
  cursor: default;
}

.skill-tag.tier-expert {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.skill-tag.tier-expert:hover {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.skill-tag.tier-skilled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.skill-tag.tier-skilled:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: scale(1.05);
}

.proficiency-section { margin-top: 16px; }
.proficiency-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.skills .progress {
  height: 64px;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 4px;
}

.skills .progress .skill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.skills .progress .skill .val {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.skills .progress-bar-wrap {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.skills .progress-bar {
  width: 1px;
  height: 8px;
  border-radius: 4px;
  transition: width 0.9s ease-out;
  background: var(--accent-grad);
}

/* ---- Resume ----------------------------------------------- */
.resume .resume-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.resume .resume-item {
  padding: 0 0 24px 24px;
  margin-top: 0;
  border-left: 2px solid rgba(74,158,255,0.25);
  position: relative;
  transition: var(--transition);
}

.resume .resume-item:hover {
  border-left-color: var(--accent);
}

.resume .resume-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -7px;
  top: 4px;
  background: var(--surface);
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.resume .resume-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74,158,255,0.2);
}

.resume .resume-item h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.resume .resume-item h5 {
  font-size: 13px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1d4ed8;
  padding: 3px 12px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 8px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

.resume .resume-item p em {
  color: var(--text-muted);
  font-size: 13px;
}

.resume .resume-item ul {
  padding-left: 18px;
  margin-top: 8px;
}

.resume .resume-item ul li {
  font-size: 13.5px;
  padding-bottom: 6px;
  color: #4a5568;
  line-height: 1.6;
}

.resume .resume-item:last-child { padding-bottom: 0; }

/* ---- Portfolio -------------------------------------------- */
.portfolio #portfolio-flters {
  padding: 6px 20px;
  margin: 0 auto 40px;
  list-style: none;
  text-align: center;
  background: var(--surface);
  border-radius: 50px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  background: var(--accent-grad);
  color: #fff;
}

.portfolio .portfolio-item { margin-bottom: 24px; }

.portfolio .portfolio-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio .portfolio-wrap:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio .portfolio-wrap:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(13,17,23,0.92) 0%, rgba(13,17,23,0) 100%);
  padding: 40px 18px 18px;
  transform: translateY(100%);
  transition: var(--transition);
}

.portfolio .portfolio-wrap:hover .portfolio-overlay { transform: translateY(0); }

.portfolio-overlay h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px;
}
.portfolio-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  margin: 0 0 2px;
}
.portfolio-overlay small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio .portfolio-links {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  opacity: 0;
  transition: var(--transition);
}

.portfolio .portfolio-wrap:hover .portfolio-links { opacity: 1; }

.portfolio .portfolio-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(74,158,255,0.4);
  transition: var(--transition);
}
.portfolio .portfolio-links a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(74,158,255,0.5);
}

/* ---- Services --------------------------------------------- */
.services .icon-box {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: calc(100% - 24px);
}

.services .icon-box:hover {
  border-color: rgba(74,158,255,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.services .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: var(--transition);
}
.services .icon i { font-size: 24px; color: var(--accent); }

.services .icon-box:hover .icon {
  background: var(--accent-grad);
}
.services .icon-box:hover .icon i { color: #fff; }

.services .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.services .title a { color: inherit; }
.services .title a:hover { color: var(--accent); }

.services .description {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Testimonials ----------------------------------------- */
.testimonials .testimonial-item {
  text-align: center;
  padding: 20px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(74,158,255,0.25);
  margin-bottom: 12px;
}

.testimonials .testimonial-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.testimonials .testimonial-item h4 {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(74,158,255,0.3);
  font-size: 28px;
}
.testimonials .testimonial-item .quote-icon-left { position: relative; top: 3px; right: 3px; }
.testimonials .testimonial-item .quote-icon-right { position: relative; bottom: -10px; left: 3px; }

.testimonials .testimonial-item p {
  font-style: italic;
  font-size: 14px;
  color: #4a5568;
  background: var(--surface);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border);
  position: relative;
  line-height: 1.7;
}

.testimonials .testimonial-item p::after {
  content: '';
  border-top: 16px solid var(--surface);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.testimonials .swiper-pagination { margin-top: 24px; position: relative; }
.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e0;
  opacity: 1;
}
.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  transition: width 0.3s;
}

/* ---- Contact ---------------------------------------------- */
.contact { padding-bottom: 80px; }

.contact .info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.info-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.info-item a i,
.info-item > i {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
}
.info-item a:hover i,
.info-item:hover > i {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74,158,255,0.35);
}

.info-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.info-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

.contact-social-links { display: flex; gap: 8px; margin-top: 6px; }
.contact-social-links a {
  width: 34px;
  height: 34px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}
.contact-social-links a:hover {
  background: var(--accent-grad);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Contact profile circle */
.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  gap: 24px;
}

.image-nickname img { max-width: 200px; }

.circle .outer-circle {
  position: relative;
  height: 180px;
  width: 180px;
  background: var(--accent-grad);
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.circle .outer-circle span {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4a9eff, #7b61ff, #4a9eff);
  border-radius: 50%;
}
.circle span:nth-child(1) { filter: blur(4px); }
.circle span:nth-child(2) { filter: blur(8px); }
.circle span:nth-child(3) { filter: blur(20px); }
.circle span:nth-child(4) { filter: blur(100px); }

.circle .inner-circle {
  height: 160px;
  width: 160px;
  position: absolute;
  background: var(--surface);
  top: 10px;
  left: 10px;
  border-radius: 50%;
  z-index: 9;
  overflow: hidden;
}
.circle .inner-circle img { width: 100%; height: 100%; object-fit: cover; }

@keyframes rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ---- Footer ----------------------------------------------- */
#footer {
  display: none; /* Footer content is inside sidebar-footer on desktop */
}

@media (max-width: 1199px) {
  #footer {
    display: block;
    padding: 20px;
    background: var(--sidebar-bg);
    color: #718096;
    font-size: 13px;
    text-align: center;
    width: 100%;
  }
  #footer .copyright { color: #718096; }
}

/* ---- Tech Stack Section ----------------------------------- */
.techstack { background: var(--surface-alt); }

.tech-grid { display: flex; flex-direction: column; gap: 36px; }

.tech-group { }

.tech-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tech-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 90px;
  max-width: 110px;
  flex: 1 1 90px;
  padding: 18px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.tech-icon-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.tech-icon-item:hover {
  border-color: rgba(74,158,255,0.4);
  box-shadow: 0 10px 30px rgba(74,158,255,0.18);
  transform: translateY(-6px) scale(1.04);
}

.tech-icon-item:hover::before { opacity: 0.06; }

.tech-icon-item:hover i,
.tech-icon-item:hover img { transform: scale(1.15); }

.tech-icon-item i {
  font-size: 38px;
  line-height: 1;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.tech-icon-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform var(--transition);
  position: relative;
  z-index: 1;
}

.tech-icon-item span {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.tech-icon-item:hover span { color: var(--accent); }

/* Devicon color overrides */
.devicon-apachekafka-original { color: #231F20; }
.devicon-jenkins-plain { color: #D33833; }

/* ---- Impact Metrics Callout ------------------------------- */
.impact-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.impact-card {
  background: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity var(--transition);
}

.impact-card:hover { transform: translateY(-4px); }
.impact-card:hover::before { opacity: 0.12; }

.impact-number {
  font-size: 38px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
}

.impact-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.impact-desc {
  font-size: 11px;
  color: #718096;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

/* ---- Resume Download CTA ---------------------------------- */
.resume-download-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 100%);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cta-text > i {
  font-size: 36px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.cta-text strong {
  color: #fff;
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.cta-text p {
  color: #718096;
  font-size: 13px;
  margin: 0;
}

.btn-download-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-grad);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(74,158,255,0.35);
}
.btn-download-cv:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(74,158,255,0.5);
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 992px) {
  .skills-categories { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .about-img-wrapper img { aspect-ratio: auto; max-height: 350px; }
  .about-img-badge { right: 0; }
  .impact-metrics { grid-template-columns: repeat(2, 1fr); }
  .resume-download-cta { flex-direction: column; align-items: flex-start; }
  .tech-icon-item { min-width: 76px; padding: 14px 8px; }
  .tech-icon-item i { font-size: 32px; }
}

@media (max-width: 768px) {
  section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
  #hero h1 { font-size: 40px; letter-spacing: -1px; }
  #hero p { font-size: 16px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .skills-categories { grid-template-columns: 1fr; }
  .facts .count-box { flex-direction: column; text-align: center; padding: 20px; }
  .facts .count-box > i { margin: 0 auto; }
  .portfolio #portfolio-flters { display: flex; flex-wrap: wrap; justify-content: center; border-radius: var(--radius-md); }
  .portfolio #portfolio-flters li { padding: 6px 14px; font-size: 12px; }
  .info-item { flex-direction: column; gap: 8px; }
  .circle { padding: 30px 16px; }
  .resume .resume-item { padding-left: 16px; }
  .impact-metrics { grid-template-columns: repeat(2, 1fr); }
  .impact-number { font-size: 30px; }
  .tech-icons-row { gap: 8px; }
  .tech-icon-item { min-width: 68px; padding: 12px 8px; }
  .tech-icon-item i { font-size: 28px; }
}

@media (max-width: 480px) {
  #hero h1 { font-size: 32px; }
  .btn-hero-primary, .btn-hero-outline, .btn-hero-cv { width: 100%; justify-content: center; }
  .about-img-badge { position: static; margin: 12px auto 0; display: inline-flex; gap: 8px; align-items: center; border-radius: 50px; }
  .about-img-badge span { font-size: 24px; }
  .impact-metrics { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .impact-number { font-size: 26px; }
  .resume-download-cta { padding: 16px; }
  .cta-text > i { display: none; }
  .tech-icon-item { width: 60px; }
}
