/* ==========================================================================
   NANDYALA NITYA SRI - MINIMALIST DESIGN SYSTEM & STYLESHEET
   Reference: Ultra-Clean, Centered, Minimalist Modern Developer Portfolio
   Features: Floating Pill Navbar, Centered Avatar Hero, Visual Tech Stack,
             Theme Switching (Dark Mode & Light Mode Toggle)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Variables
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) */
  --bg-body: #0d0e12;
  --bg-surface: #14151a;
  --bg-surface-hover: #1c1d24;
  --bg-card: rgba(20, 21, 27, 0.85);
  --bg-pill: rgba(22, 23, 29, 0.88);
  --bg-pill-hover: rgba(38, 40, 50, 0.95);
  --bg-badge: rgba(255, 255, 255, 0.06);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inv: #0d0e12;

  --btn-primary-bg: #ffffff;
  --btn-primary-text: #0d0e12;
  --btn-primary-hover: #e2e8f0;

  --btn-secondary-bg: rgba(255, 255, 255, 0.07);
  --btn-secondary-text: #ffffff;
  --btn-secondary-border: rgba(255, 255, 255, 0.14);
  --btn-secondary-hover: rgba(255, 255, 255, 0.14);

  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-subtle: rgba(56, 189, 248, 0.12);

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.16);

  --success-color: #10b981;
  --success-glow: rgba(16, 185, 129, 0.25);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-pill: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-width: 920px;
  --container-wide: 1100px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme (Toggle Mode) */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-card: #ffffff;
  --bg-pill: rgba(255, 255, 255, 0.92);
  --bg-pill-hover: #e2e8f0;
  --bg-badge: rgba(15, 23, 42, 0.05);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inv: #ffffff;

  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #1e293b;

  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: rgba(15, 23, 42, 0.16);
  --btn-secondary-hover: #f1f5f9;

  --accent-color: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.2);
  --accent-subtle: rgba(2, 132, 199, 0.08);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.16);

  --success-color: #16a34a;
  --success-glow: rgba(22, 163, 74, 0.25);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-pill: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.05);
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-wide {
  max-width: var(--container-wide);
}

/* --------------------------------------------------------------------------
   3. Floating Pill Navigation Bar (Exact Reference Match)
   -------------------------------------------------------------------------- */
.floating-nav-wrapper {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  padding: 0 16px;
  transition: var(--transition);
}

.nav-pill-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-pill);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 8px 5px 16px;
  box-shadow: var(--shadow-pill);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-pill-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-pill-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-pill-link:hover,
.nav-pill-link.active {
  color: var(--text-main);
  background: var(--bg-pill-hover);
}

.theme-toggle-pill-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition);
  margin-left: 2px;
}

.theme-toggle-pill-btn:hover {
  color: var(--text-main);
  background: var(--bg-pill-hover);
  transform: rotate(20deg);
}

.theme-toggle-pill-btn:active {
  transform: scale(0.92);
}

.hamburger-pill-btn {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-full);
  color: var(--text-main);
}

.hamburger-pill-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}

.hamburger-pill-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger-pill-btn.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-pill-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 74px;
  left: 20px;
  right: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-pill);
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-drawer-link.active,
.mobile-drawer-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
}

.mobile-drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 4px;
}

.mobile-drawer-theme-row span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.mobile-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 860px) {
  .nav-pill-links {
    display: none;
  }
  .hamburger-pill-btn {
    display: flex;
  }
  .mobile-drawer {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   4. Hero Section (Centered Reference Design)
   -------------------------------------------------------------------------- */
.hero-centered {
  padding-top: 140px;
  padding-bottom: 70px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin: 0 auto 28px auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-avatar-wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 38px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .hero-avatar-wrap {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.05));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .hero-avatar-wrap:hover {
  box-shadow: 0 14px 38px rgba(2, 132, 199, 0.25);
}

@media (max-width: 640px) {
  .hero-avatar-wrap {
    width: 120px;
    height: 120px;
  }
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.hero-main-title {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .hero-main-title {
    font-size: 2.1rem;
  }
}

.hero-headline-role {
  color: var(--accent-color);
  display: inline;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: var(--accent-color);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.hero-centered-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 30px auto;
}

/* CTA Row (Reference Match) */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-ref-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-ref-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pill);
}

.btn-ref-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-ref-outline:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.status-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success-color);
  box-shadow: 0 0 10px var(--success-color);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Social Row (Reference Match) */
.hero-socials-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-icon-link {
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.social-icon-link:hover {
  color: var(--text-main);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. Tech Stack Visual Grid (Exact Reference Match)
   -------------------------------------------------------------------------- */
.tech-stack-section {
  padding-top: 40px;
  padding-bottom: 70px;
}

.tech-stack-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}

@media (max-width: 600px) {
  .tech-stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  background: var(--bg-surface-hover);
}

.tech-icon-svg {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.tech-item:hover .tech-label {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. General Section Styling
   -------------------------------------------------------------------------- */
.section {
  padding-top: 75px;
  padding-bottom: 75px;
}

.section-head {
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-subheading {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   7. About Section
   -------------------------------------------------------------------------- */
.about-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.seeking-card {
  background: var(--accent-subtle);
  border-left: 4px solid var(--accent-color);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.seeking-badge-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  margin-bottom: 6px;
  display: block;
}

.seeking-text {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}

.meta-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   8. Skills Categorized Cards
   -------------------------------------------------------------------------- */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

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

.skill-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-hover);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge-item {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 11px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  transition: var(--transition);
}

.skill-badge-item:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* --------------------------------------------------------------------------
   9. Experience Timeline
   -------------------------------------------------------------------------- */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.exp-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.exp-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.exp-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
}

.exp-period {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.exp-bullet {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
  padding-left: 18px;
}

.exp-bullet::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-color);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   10. Projects Section (Clean Minimalist Cards + Live Demos)
   -------------------------------------------------------------------------- */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-minimal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-minimal-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.proj-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.proj-category-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-color);
}

.proj-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.proj-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.proj-tech-pill {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item {
  text-align: center;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color);
}

.metric-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.proj-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-demo:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-pill);
}

.btn-code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   11. Education & Certifications
   -------------------------------------------------------------------------- */
.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.edu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.edu-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.edu-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.edu-spec {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edu-score {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. Contact & Footer
   -------------------------------------------------------------------------- */
.contact-card-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.contact-pill-item:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.form-simple {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.input-simple, .textarea-simple {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: var(--transition);
}

.input-simple:focus, .textarea-simple:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.textarea-simple {
  min-height: 120px;
  resize: vertical;
}

.site-footer-centered {
  padding: 60px 0 36px 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 80px;
}

.footer-name-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.footer-text-muted {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

/* --------------------------------------------------------------------------
   13. Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pill);
}

/* --------------------------------------------------------------------------
   14. Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   15. Reveal Animation on Scroll
   -------------------------------------------------------------------------- */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
