:root {
  --primary-hue: 190;
  --primary: hsl(var(--primary-hue), 100%, 55%);
  --primary-dark: hsl(190, 90%, 35%);
  --primary-glow: hsla(190, 100%, 55%, 0.7);
  --bg-main: #050B18;
  --bg-alternate: #0A1228;
  --bg-glass: rgba(10, 18, 40, 0.92);
  --border-glass: rgba(0, 229, 255, 0.12);
  --text-main: #F1F7FC;
  --text-muted: #8899B4;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-main);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* === Slide System === */
.slide {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
  overflow-y: auto;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease,
              visibility 0s 0.7s;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease,
              visibility 0s 0s;
  z-index: 2;
  pointer-events: auto;
}

.slide-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* === Hero Slide (special) === */
.hero-slide {
  position: relative;
  z-index: 2;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content .badge-wrapper { margin-bottom: 1.5rem; }

.hero-image-wrapper {
  flex: 1;
  max-width: 380px;
  min-height: 280px;
  position: relative;
  display: flex;
  justify-content: center;
}

.image-border {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-glass);
  padding: 1rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.image-border::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--border-glass);
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  animation: spin-slow 15s linear infinite;
}

@keyframes spin-slow { 100% { transform: rotate(360deg); } }

.cover-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.floating-badge {
  position: absolute;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 20;
  white-space: nowrap;
}

.floating-badge i {
  color: var(--text-main);
  font-size: 0.75rem;
  opacity: 0.6;
}

.badge-1 { top: 18%; left: -35px; animation: float-pro 7s ease-in-out infinite alternate; }
.badge-2 { bottom: 18%; right: -35px; animation: float-pro 9s ease-in-out infinite alternate-reverse; }

@keyframes float-pro { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }



.hero-bg-elements {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 50px) scale(1.2); }
  100% { transform: translate(-50px, 100px) scale(0.9); }
}

.blob-1 { top: -10%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); opacity: 0.8; }
.blob-2 { bottom: -20%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%); animation-delay: -5s; opacity: 0.8; }

.badge-wrapper { margin-bottom: 1.5rem; }

.greeting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title .typed-text { color: var(--primary); }
.hero-title .cursor { animation: blink 1s step-end infinite; color: var(--primary); }

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

.hero-bio {
  font-size: 1.1rem;
  max-width: 450px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.github-status-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.6rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.github-status-widget:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.status-pulse {
  width: 8px; height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.hero-content .hero-name,
.hero-content .hero-title,
.hero-content .hero-bio { text-align: left; }
.hero-content .hero-bio { margin-left: 0; }
.hero-content .hero-actions { justify-content: flex-start; }
.hero-content .github-status-widget { justify-content: flex-start; }



/* === Utility === */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; }
.title-underline { width: 60px; height: 4px; background: var(--primary); margin: 0.5rem auto 0; border-radius: 2px; box-shadow: 0 0 10px var(--primary-glow); }
.section-subtitle { margin-top: 0.75rem; font-size: 1.05rem; }
.text-secondary { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: #10B981; }
.glass-panel { background: var(--bg-glass); backdrop-filter: blur(12px); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 50px;
  font-family: var(--font-heading); font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #020617; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--primary-glow); background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; text-decoration: none; }
.btn-outline:hover { background: var(--primary); color: #020617; }
.w-100 { width: 100%; }
.text-center { text-align: center; }

/* === About === */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: stretch; }
.about-text { padding: 2rem; font-size: 1rem; line-height: 1.8; }
.stats-grid { display: flex; flex-direction: column; gap: 1rem; }
.stat-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); transition: var(--transition); }
.stat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.stat-icon { width: 48px; height: 48px; background: rgba(2, 132, 199, 0.15); color: var(--primary); border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-card h3 { font-size: 1.8rem; color: var(--primary); line-height: 1; margin-bottom: 0.15rem; }
.stat-card p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* === Education === */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.edu-card { padding: 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); transition: var(--transition); }
.edu-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.edu-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.edu-icon { width: 45px; height: 45px; background: var(--primary-glow); color: var(--primary); border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.edu-meta { color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; display: block; }
.edu-details { list-style: none; color: var(--text-muted); font-size: 0.9rem; }
.edu-details li { margin-bottom: 0.5rem; padding-left: 1.25rem; position: relative; }
.edu-details li::before { content: "▹"; position: absolute; left: 0; color: var(--primary); }

/* === Skills === */
.skills-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skills-card { padding: 1.5rem; transition: var(--transition); }
.skills-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.card-title { margin-bottom: 1rem; font-size: 1.1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-glass); display: flex; align-items: center; gap: 0.5rem; }
.skills-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
.skill-item { margin-bottom: 0; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.78rem; }
.skill-name { color: var(--text-main); font-weight: 500; }
.skill-percentage { color: var(--primary); font-weight: 600; }
.skill-bar-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.skill-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary-dark), var(--primary)); border-radius: 4px; width: 0; transition: width 1.2s cubic-bezier(0.1, 0.5, 0.1, 1); }

/* === Experience Timeline === */
.timeline-items { max-width: 700px; margin: 0 auto; }
.exp-item { position: relative; padding-left: 2.5rem; margin-bottom: 1.5rem; }
.exp-item::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border-glass); }
.exp-item:last-child::before { display: none; }
.exp-marker { position: absolute; left: 2px; top: 0.6rem; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); z-index: 2; }
.exp-card { padding: 1.25rem 1.5rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.exp-title-box h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.exp-company { font-size: 0.85rem; color: var(--text-muted); }
.exp-date { font-size: 0.75rem; color: var(--primary); background: var(--primary-glow); padding: 0.2rem 0.6rem; border-radius: 20px; font-weight: 600; }
.exp-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* === Services === */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 650px; margin: 0 auto; }
.service-card { padding: 1.25rem 1.25rem; text-align: center; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); transition: var(--transition); }

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; max-width: 350px; }
}
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.service-icon { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; width: 60px; height: 60px; margin-inline: auto; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 50%; display: grid; place-items: center; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p { font-size: 0.85rem; line-height: 1.6; color: var(--text-muted); }

/* === Projects === */
.projects-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.project-card { flex: 0 1 320px; max-width: 100%; }
.project-card { padding: 1.25rem; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); transition: var(--transition); display: flex; flex-direction: column; }
.project-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.project-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.project-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-glow)); color: #fff; }
.project-title { font-size: 1rem; }
.project-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.75rem; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.tech-tag { font-size: 0.65rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-glass); color: var(--text-muted); }

/* === Certificates === */
.certs-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
}

.certificates-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
}
.cert-card {
  flex: 0 1 340px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  background: var(--bg-glass);
  border-radius: 8px;
  overflow: hidden;
}

.cert-preview-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-alternate);
}

.cert-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.12);
  border: none;
  pointer-events: none;
}

.cert-info {
  padding: 0.35rem 0.5rem 0.5rem;
  line-height: 1.2;
}

.cert-thumb-placeholder {
  width: 100%;
  height: 220px;
  background: var(--bg-alternate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.5;
}

.cert-date { font-size: 0.75rem; color: var(--primary); font-weight: 600; font-family: monospace; }
.cert-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.cert-card h3 { font-size: 1rem; margin: 0.4rem 0; }
.cert-issuer { color: var(--text-muted); font-size: 0.82rem; display: flex; align-items: center; justify-content: center; gap: 0.35rem; }

@media (max-width: 768px) {
  .certificates-grid { max-width: 100%; }
}

/* === Achievements === */
.achievements-card { padding: 2rem; max-width: 600px; margin: 0 auto; position: relative; overflow: hidden; }
.blob-accent { position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: radial-gradient(circle, var(--primary) 0%, transparent 70%); filter: blur(40px); border-radius: 50%; opacity: 0.2; z-index: 1; }
.achievements-list { display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 10; }
.achievements-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; padding: 1rem; background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: 10px; }
.achievements-list li i { color: #fbbf24; font-size: 1.2rem; margin-top: 0.1rem; filter: drop-shadow(0 0 6px rgba(251,191,36,0.5)); }

/* === Contact === */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
  transition: opacity 0.4s ease;
}

.contact-card:hover::before { opacity: 1; }

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), var(--shadow-glow);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: var(--primary);
  color: #020617;
  transform: scale(1.1);
}

.contact-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.contact-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
  position: relative;
  z-index: 1;
}

.contact-card-btn {
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
}

.contact-card:hover .contact-card-btn {
  background: var(--primary);
  color: #020617;
  border-color: var(--primary);
}

@media (max-width: 600px) {
  .contact-methods { grid-template-columns: 1fr; max-width: 320px; }
  .contact-card { padding: 1.5rem; }
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-container { flex-direction: column-reverse; text-align: center; gap: 2rem; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content .hero-name,
  .hero-content .hero-title,
  .hero-content .hero-bio { text-align: center; }
  .hero-content .hero-bio { margin-left: auto; }
  .hero-content .hero-actions,
  .hero-content .github-status-widget { justify-content: center; }
  .hero-image-wrapper { max-width: 280px; }
  .image-border { max-width: 260px; }
  .floating-badge { padding: 0.3rem 0.6rem; font-size: 0.6rem; }
  .floating-badge i { font-size: 0.65rem; }
  .badge-1 { left: 5px; top: 10%; }
  .badge-2 { right: 5px; bottom: 10%; }
}

@media (max-width: 768px) {
  .slide { padding: 3.5rem 1.5rem 3.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-wrapper { grid-template-columns: 1fr; }
  .skills-list { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .input-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .certificates-grid { grid-template-columns: 1fr; }
  .hero-image-wrapper { max-width: 200px; }
  .image-border { max-width: 180px; }
}

@media (max-width: 480px) {
  .slide { padding: 3rem 1rem 3rem; }
}

/* === QR Code Slide === */
.qr-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-container {
  text-align: center;
  position: relative;
  animation: qrEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.qr-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulseGlow 2s ease-in-out infinite;
}

.qr-image {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 20px;
  padding: 0.75rem;
  background: var(--qr-bg, #0B1120);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), inset 0 0 0 1px rgba(0, 229, 255, 0.2);
  transition: box-shadow 0.3s ease;
}

.qr-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--text-main));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qr-url {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.qr-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.75rem;
  opacity: 0.7;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@keyframes qrEnter {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

@media (max-width: 480px) {
  .qr-image { width: 170px; height: 170px; }
  .qr-glow { width: 240px; height: 240px; }
  .qr-heading { font-size: 1.2rem; }
}

/* === Settings Modal === */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
}
.settings-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s 0s;
}
.settings-modal {
  background: var(--bg-alternate);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.settings-overlay.open .settings-modal {
  transform: scale(1) translateY(0);
}
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}
.settings-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.settings-header h3 i { color: var(--primary); }
.settings-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 8px;
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.settings-close:hover {
  background: var(--bg-glass);
  color: var(--text-main);
}
.settings-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.setting-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.setting-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.theme-btns {
  display: flex;
  gap: 0.5rem;
}
.theme-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.theme-btn:hover {
  border-color: var(--primary);
  color: var(--text-main);
}
.theme-btn.active {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}
.setting-input {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
  outline: none;
  transition: var(--transition);
}
.setting-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* === Light Theme === */
body.light-mode {
  --bg-main: #E8F4FD;
  --bg-alternate: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-glass: rgba(2, 132, 199, 0.1);
  --text-main: #0B1A2A;
  --text-muted: #3B5A78;
  --primary: hsl(190, 95%, 38%);
  --primary-dark: hsl(190, 95%, 28%);
  --primary-glow: hsla(190, 95%, 38%, 0.25);
  --qr-bg: #FFFFFF;
  background: linear-gradient(135deg, #E0F2FE 0%, #F0F0FF 50%, #FFEAF0 100%);
}
body.light-mode .slide {
  background: transparent;
}
body.light-mode .hero-bg-elements { opacity: 0.5; }
body.light-mode .blob-1 { background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%); }
body.light-mode .blob-2 { background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%); }
body.light-mode .cert-preview-wrapper { background: #E2E8F0; }
body.light-mode .qr-image { box-shadow: 0 0 40px rgba(2, 132, 199, 0.12), inset 0 0 0 1px rgba(2, 132, 199, 0.15); }
body.light-mode .contact-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .exp-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .edu-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .service-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .project-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .cert-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .achievements-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .stat-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .skills-card { background: rgba(255, 255, 255, 0.9); }
body.light-mode .stat-card:hover,
body.light-mode .contact-card:hover,
body.light-mode .edu-card:hover,
body.light-mode .service-card:hover,
body.light-mode .project-card:hover,
body.light-mode .skills-card:hover,
body.light-mode .cert-card:hover { box-shadow: 0 8px 30px rgba(2, 132, 199, 0.12); }
body.light-mode .qr-heading { background: linear-gradient(135deg, hsl(190, 90%, 40%), #6366F1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.light-mode .achievements-list li { background: rgba(255, 255, 255, 0.9); }
body.light-mode .settings-modal { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); }
body.light-mode .github-status-widget { background: rgba(255, 255, 255, 0.9); }
