/* =============================================
   MADHU SUDHAN G – Portfolio (Light Theme)
   Modern · Clean · Professional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- Variables ---- */
:root {
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-hi: #c7d2fe;
  --text: #0f172a;
  --muted: #64748b;
  --light: #94a3b8;

  /* Brand */
  --indigo: #6366f1;
  --indigo-lt: #eef2ff;
  --teal: #0d9488;
  --teal-lt: #f0fdfa;
  --violet: #a855f7;
  --violet-lt: #fdf2f8;
  --amber: #f59e0b;
  --amber-lt: #fff7ed;
  --rose: #f43f5e;
  --sky: #0ea5e9;

  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 60px rgba(99, 102, 241, 0.15);

  --r: 14px;
  --r-sm: 8px;
  --r-full: 999px;
  --t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth
}

ul {
  list-style: none
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

strong {
  font-weight: 700
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Helpers ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.section {
  padding: 6rem 0
}

.bg-white {
  background: var(--white)
}

.bg-soft {
  background: var(--bg)
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 3rem
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.section-desc {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== NAVBAR ===================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--t);
}

#navbar.scrolled {
  box-shadow: var(--shadow)
}

/* ① Navbar Avatar */
.nav-avatar-link {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  cursor: pointer;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2.5px var(--indigo), 0 3px 10px rgba(99, 102, 241, 0.25);
  transition: all var(--t);
}

.nav-avatar-link:hover .nav-avatar {
  box-shadow: 0 0 0 3px var(--indigo), 0 6px 18px rgba(99, 102, 241, 0.4);
  transform: scale(1.08);
}

.nav-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: dotPulse 2s ease-in-out infinite;
}

@media(max-width:900px) {
  .nav-avatar-link {
    display: none
  }
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

/* ---- Search bar (left) ---- */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f1f5f9;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.55rem 1.25rem;
  transition: all var(--t);
  width: 340px;
}

.nav-search:focus-within {
  border-color: var(--indigo);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.nav-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--muted);
  transition: stroke var(--t);
}

.nav-search:focus-within .nav-search-icon {
  stroke: var(--indigo)
}

.nav-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  width: 100%;
}

.nav-search-input::placeholder {
  color: var(--light)
}

.nav-links {
  display: flex;
  gap: 1.75rem
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t);
}

.nav-links a:hover {
  color: var(--indigo)
}

.nav-links a:hover::after {
  transform: scaleX(1)
}

/* Hire Me button removed */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t)
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.mobile-drawer.open {
  display: block
}

.mobile-drawer ul li a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--t), background var(--t);
}

.mobile-drawer ul li a:hover {
  color: var(--indigo);
  background: var(--indigo-lt)
}

@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .nav-search {
    width: 200px;
  }

  .hamburger {
    display: flex
  }
}

@media(max-width:600px) {
  .nav-container {
    padding: 0 0.85rem;
  }

  .nav-search {
    flex: 1;
    /* grow to fill remaining space */
    width: auto;
    min-width: 0;
    max-width: 100%;
    padding: 0.4rem 0.85rem;
  }

  .nav-search-input {
    font-size: 0.8rem;
  }

  /* Shorten placeholder on very small screens */
  .nav-search-input::placeholder {
    color: var(--light);
    font-size: 0.78rem;
  }
}

@media(max-width:400px) {
  .nav-search {
    padding: 0.35rem 0.7rem;
  }

  .nav-search-icon {
    width: 15px;
    height: 15px;
  }
}

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f8faff 0%, #faf5ff 40%, #f0feff 100%);
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.06));
}

/* hero-container: vertically centered */
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 2rem;
}

/* Compact Highlights + Awards strip */
.hero-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--indigo-lt);
  font-size: 0.85rem;
}

.hero-highlights-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 1.25rem;
  overflow: visible;
}

/* Stats row (inline flex) */
.hhs-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.hhs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  min-width: 70px;
}

.hhs-stat:first-child {
  padding-left: 0
}

.hhs-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hhs-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
}

.hhs-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* Awards (vertical stack on desktop, horizontal row on mobile via override) */
.hhs-awards {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}

.hhs-award {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
}

.hhs-award.gold {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a
}

.hhs-award.blue {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe
}

/* Core skills row below strip */
.hero-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

/* ② Hero Profile Photo Frame (right column) */
.hero-right {
  position: sticky;
  top: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
}

.hero-right-dual {
  flex-direction: row;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
}

.hero-photo-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 480px;
  background: transparent;
  transition: transform 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(99,102,241,0.13);
}

.hero-photo-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(99,102,241,0.2);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: none;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Left column */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--indigo);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.5
  }
}

.hero-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Professional summary */
.hero-summary {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 1.1rem;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--light);
  margin-bottom: 1.75rem;
}

.hero-location svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0
}

/* CTA + icons row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Icon-only contact buttons */
.contact-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem
}

.contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}

.contact-icon-btn svg {
  width: 16px;
  height: 16px
}

.contact-icon-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}


.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5)
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}




.pst {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  border-radius: var(--r-full);
  transition: all var(--t);
}

.pst:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1)
}

.pst.indigo {
  background: var(--indigo-lt);
  color: var(--indigo)
}

.pst.teal {
  background: var(--teal-lt);
  color: var(--teal)
}

.pst.violet {
  background: var(--violet-lt);
  color: var(--violet)
}

.pst.amber {
  background: var(--amber-lt);
  color: var(--amber)
}

.pst.rose {
  background: #fff1f2;
  color: var(--rose)
}

.pst.sky {
  background: #f0f9ff;
  color: var(--sky)
}

@media(max-width:1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-photo-wrap {
    height: 400px;
  }

  .hero-photo-frame {
    max-width: 100%;
  }
}

@media(max-width:900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
  }

  .hero-right {
    order: -1;
    position: static;
    padding-top: 0;
    width: 100%;
  }

  .hero-right-dual {
    width: 100%;
    justify-content: center;
  }

  .hero-photo-frame {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .hero-photo-wrap {
    height: 480px;
  }

  /* Stack stats + awards vertically */
  .hero-highlights-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .hhs-stats-row {
    justify-content: center;
  }

  .hhs-stat {
    padding: 0 0.65rem;
  }

  .hhs-awards {
    padding-left: 0;
    border-left: none;
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
  }
}

@media(max-width:600px) {
  .hero-name {
    letter-spacing: -1px;
    white-space: normal;
  }

  .hero-metrics {
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .metric-divider {
    display: none;
  }

  .metric {
    flex: 1;
    min-width: 80px;
  }

  .hero-right-dual {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .hero-photo-frame {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .hero-photo-wrap {
    height: 460px;
    width: 100%;
  }

  .hhs-stat {
    padding: 0 0.5rem;
    min-width: 60px
  }
}

/* ===================== ABOUT ===================== */
.about-modern-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

/* --- Bio Card --- */
.bio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.bio-avatar-ring {
  padding: 5px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25);
}

.bio-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--white);
  display: block;
}

.bio-intro {
  display: flex;
  flex-direction: column;
}

.bio-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.bio-title {
  color: var(--indigo);
  font-weight: 600;
  font-size: 1rem;
}

.bio-body {
  flex-grow: 1;
}

.bio-body p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.bio-body p:last-child {
  margin-bottom: 0;
}

.bio-body strong {
  color: var(--text);
  font-weight: 700;
}

.highlight-text {
  background: linear-gradient(120deg, var(--indigo-lt) 0%, transparent 100%);
  padding: 0 4px;
  border-radius: 4px;
  color: var(--indigo);
  font-weight: 700;
}

.bio-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.bio-footer-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.language-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.lang-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* --- Highlights Bento Grid --- */
.highlights-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.hl-bento-card {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hl-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.hl-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hi);
}

.hl-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hl-bento-content {
  position: relative;
  z-index: 1;
}

.hl-bento-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hl-bento-content p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 950px) {
  .about-modern-wrapper {
    grid-template-columns: 1fr;
  }
}

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

/* ===================== SKILLS ===================== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-full);
  transition: all var(--t);
  cursor: default
}

.tag.indigo {
  background: var(--indigo-lt);
  color: var(--indigo)
}

.tag.indigo:hover {
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tag.teal {
  background: var(--teal-lt);
  color: var(--teal)
}

.tag.teal:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tag.violet {
  background: var(--violet-lt);
  color: var(--violet)
}

.tag.violet:hover {
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.tag.amber {
  background: var(--amber-lt);
  color: var(--amber)
}

.tag.amber:hover {
  background: var(--amber);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* ---- Skills Tabbed Layout ---- */
.skills-tab-layout {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.skills-sidebar {
  width: 320px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.skills-tab {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.25rem 1.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border-left: 3px solid transparent;
  transition: all var(--t);
  position: relative;
}

.skills-tab:hover {
  background: rgba(99, 102, 241, 0.03);
}

.skills-tab.active {
  background: var(--white);
  border-left-color: var(--indigo);
  box-shadow: inset 8px 0 10px rgba(0, 0, 0, 0.01);
}

.st-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.st-icon svg {
  width: 22px;
  height: 22px;
}

.skills-tab.active .st-icon {
  transform: scale(1.08);
}

.st-text {
  display: flex;
  flex-direction: column;
}

.st-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  transition: color var(--t);
}

.skills-tab.active .st-title {
  color: var(--indigo);
}

.st-desc {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.skills-content {
  flex: 1;
  padding: 3.5rem;
  position: relative;
}

.skills-pane {
  display: none;
  animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skills-pane.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.sp-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sp-icon svg {
  width: 32px;
  height: 32px;
}

.sp-title-wrap h3 {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.sp-title-wrap .sp-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 500px;
}

@media (max-width: 950px) {
  .skills-tab-layout {
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
  }

  .skills-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
  }

  .skills-tab {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    gap: 0.6rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
  }

  .skills-tab:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .skills-tab:nth-child(3),
  .skills-tab:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .skills-tab.active {
    border-bottom-color: var(--indigo);
    background: var(--white);
    box-shadow: none;
  }

  .skills-content {
    padding: 2.5rem;
  }
}

@media (max-width: 600px) {
  .skills-tab-layout {
    border-radius: 12px;
  }

  .skills-tab {
    padding: 0.8rem 0.5rem;
    gap: 0.4rem;
  }

  .st-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .st-icon svg {
    width: 18px;
    height: 18px;
  }

  .st-title {
    font-size: 0.82rem;
    margin-bottom: 0;
  }

  .st-desc {
    display: none;
  }

  .skills-content {
    padding: 1.5rem 1.25rem;
  }

  .sp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  .sp-icon {
    width: 44px;
    height: 44px;
  }

  .sp-icon svg {
    width: 22px;
    height: 22px;
  }

  .sp-title-wrap h3 {
    font-size: 1.1rem;
  }

  .sp-title-wrap .sp-desc {
    font-size: 0.82rem;
  }
}


/* ===================== EXPERIENCE ===================== */
.exp-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start
}

@media(max-width:820px) {
  .exp-layout {
    grid-template-columns: 1fr
  }
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t);
}

.tl-item.active {
  background: var(--indigo-lt)
}

.tl-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.tl-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--indigo)
}

.tl-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text)
}

@media(max-width:820px) {
  .timeline {
    display: none
  }
}

.exp-detail-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.exp-role {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text)
}

.exp-company {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem
}

.exp-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
  background: #dcfce7;
  color: #16a34a;
  white-space: nowrap;
}

.exp-project {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--indigo-lt);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--indigo);
}

.proj-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--indigo);
  flex-shrink: 0
}

.proj-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text)
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem
}

.exp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6
}

.exp-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--indigo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 2px;
}

.exp-list strong {
  color: var(--text)
}

.exp-skills-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem
}

.exp-skills-used span {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ===================== PROJECTS ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem
}

.project-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px)
}

.project-top {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-emoji {
  font-size: 2.5rem
}

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end
}

.project-stack span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-body {
  padding: 1.25rem 1.5rem
}

.project-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem
}

.project-body p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7
}

.project-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border)
}

.project-type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-full);
}

/* ===================== CERTIFICATIONS ===================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.25rem
}

.cert-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}

.cert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hi)
}

.cert-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  margin: 0 auto 1rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.cert-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4
}

.cert-info p {
  font-size: 0.78rem;
  color: var(--muted)
}

.cert-year {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-full);
  background: var(--indigo-lt);
  color: var(--indigo);
}

/* ===================== AWARDS ===================== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem
}

.award-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.award-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px)
}

.award-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.award-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted)
}

.award-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.2rem 0 0.4rem
}

.award-content p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6
}

/* ===================== EDUCATION ===================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem
}

.edu-card {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--t);
}

.edu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px)
}

.edu-year {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-full);
  background: var(--indigo-lt);
  color: var(--indigo);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem
}

.edu-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  line-height: 1.4;
  padding-right: 3rem
}

.edu-inst {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem
}

/* edu-score-bar wrapper */
.score-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem
}

.score-num {
  color: var(--indigo);
  font-weight: 700
}

.score-track {
  height: 7px;
  background: #f1f5f9;
  border-radius: var(--r-full);
  overflow: hidden
}

.score-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--gradient);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== FOOTER ===================== */
#footer {
  background: #0f172a;
  color: #e2e8f0;
  position: relative;
}

/* Gradient accent line at top */
.foot-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  background-size: 200% 100%;
  animation: footAccentMove 4s linear infinite;
}

@keyframes footAccentMove {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 200% 0%;
  }
}

.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

/* 3-Column grid */
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Column base */
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Brand Column --- */
.foot-logo-wrap {
  margin-bottom: 0.75rem;
}

.foot-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-dot {
  color: #6366f1;
}

.foot-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
}

.foot-title-role {
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(90deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.foot-tagline {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 1.5rem;
}

/* Download Resume button */
.foot-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-full);
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  text-decoration: none;
  white-space: nowrap;
}

.foot-resume-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.foot-resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.55);
  color: #fff;
}

/* --- Column heading --- */
.foot-col-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
  margin-bottom: 1.25rem;
}

/* --- Quick Links nav --- */
.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.foot-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.foot-nav-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.6;
}

.foot-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateX(4px);
}

.foot-nav-link:hover svg {
  opacity: 1;
}

/* --- Contact list --- */
.foot-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.foot-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}

.foot-contact-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.foot-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.foot-contact-icon svg {
  width: 15px;
  height: 15px;
}

.foot-contact-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.foot-contact-item:hover .foot-contact-text {
  color: #e2e8f0;
}

/* --- Bottom bar --- */
.foot-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1.25rem 0;
}

.foot-copy {
  font-size: 0.78rem;
  color: #475569;
}

.foot-copy strong {
  color: #64748b;
  font-weight: 600;
}

/* .foot-cert-text removed — element deleted from footer */

/* Responsive */
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .foot-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* ===================== HIRE ME MODAL ===================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  border-radius: 24px;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--t);
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-header {
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.modal-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mc-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: all var(--t);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.mc-detail:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mc-detail svg {
  width: 16px;
  height: 16px;
}

.hire-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-left: 0.2rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--indigo);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #94a3b8;
}

.select-wrapper {
  position: relative;
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-success {
  background: #dcfce7;
  color: #16a34a;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid #bbf7d0;
}

.form-success.hidden {
  display: none;
}

/* ---- Submit Button ---- */
.submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem 1.5rem;
}

.submit-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.22s ease;
}

.submit-btn:hover svg {
  transform: translateX(3px) translateY(-3px);
}

.submit-send-icon {
  flex-shrink: 0;
}

.m-t-1 {
  margin-top: 0.5rem;
}

/* ---- Success Popup Card ---- */
.success-popup {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-top: 0.25rem;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.18);
  animation: popupSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  position: relative;
}

.success-popup.hidden {
  display: none;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-popup-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.success-popup-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.success-popup-body {
  flex: 1;
  min-width: 0;
}

.success-popup-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 0.15rem;
}

.success-popup-sub {
  font-size: 0.78rem;
  color: #166534;
  opacity: 0.8;
  line-height: 1.4;
}

.success-popup-close {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #16a34a;
  transition: all 0.18s ease;
}

.success-popup-close:hover {
  background: #fff;
  border-color: #86efac;
  color: #dc2626;
  transform: rotate(90deg);
}

.success-popup-close svg {
  width: 13px;
  height: 13px;
}

.optional-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: var(--r-full);
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Dual-send-button styles removed — standard submit-btn is used */

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

  .modal-box {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .modal-header h2 {
    font-size: 1.6rem;
  }
}

/* =======================================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   Breakpoints: 1024px | 768px | 640px | 480px
   ======================================================= */

/* ---- Global ---- */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .container {
    padding: 0 1rem;
  }
}

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

  .section-title {
    font-size: 1.5rem;
  }
}

/* ---- Navbar ---- */
@media (max-width: 768px) {
  .nav-container {
    height: 56px;
  }

  /* Search bar width is now handled by flex:1 in the 600px block above — no fixed width here */
}

/* ---- Hero ---- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 500px;
  }

  .hero-photo-glow {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 900px) {
  #hero {
    padding: 6rem 1.5rem 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 0;
  }

  .hero-right {
    order: -1;
    position: static;
    padding-top: 0;
    display: flex;
    justify-content: center;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 480px;
  }

  .hero-photo-glow {
    width: 240px;
    height: 240px;
  }

  .hero-left {
    text-align: center;
  }

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

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

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

  .hero-skill-row {
    justify-content: center;
  }

  .hero-section-label {
    justify-content: center;
  }

  .hero-summary {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  #hero {
    padding: 5.5rem 1rem 2.5rem;
  }

  .hero-name {
    font-size: 2.4rem;
    letter-spacing: -1px;
    white-space: normal;
  }

  .hero-title {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 0.92rem;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 460px;
  }

  .hero-photo-glow {
    width: 200px;
    height: 200px;
  }

  .hhs-stat {
    padding: 0 0.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .contact-icons {
    justify-content: center;
    margin-left: 0;
  }

  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-photo-wrap {
    width: 100%;
    height: 440px;
  }
}

/* ---- About ---- */
@media (max-width: 950px) {
  .about-modern-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .bio-card {
    padding: 1.75rem;
  }

  .bio-avatar {
    width: 90px;
    height: 90px;
  }

  .bio-name {
    font-size: 1.3rem;
  }

  .bio-body p {
    font-size: 0.9rem;
  }

  .highlights-bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .hl-bento-card {
    padding: 1.25rem;
  }
}

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

  .bio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .bio-card {
    padding: 1.25rem;
  }

  .bio-avatar {
    width: 75px;
    height: 75px;
  }
}

/* ---- Skills ---- */
@media (max-width: 950px) {
  .skills-tab-layout {
    flex-direction: column;
  }

  .skills-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 0.5rem 0;
  }

  .skills-sidebar::-webkit-scrollbar {
    display: none;
  }

  .skills-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: unset;
    padding: 0.85rem 1.25rem;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    white-space: nowrap;
  }

  .skills-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--indigo);
    background: var(--white);
  }

  .skills-content {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .skills-sidebar {
    padding: 0.4rem 0.4rem 0;
  }

  .skills-tab {
    padding: 0.7rem 1rem;
    gap: 0.55rem;
  }

  .st-icon {
    width: 34px;
    height: 34px;
  }

  .st-icon svg {
    width: 17px;
    height: 17px;
  }

  .st-title {
    font-size: 0.82rem;
  }

  .st-desc {
    display: none;
  }

  .skills-content {
    padding: 1.25rem;
  }

  .sp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .sp-icon {
    width: 48px;
    height: 48px;
  }

  .sp-icon svg {
    width: 24px;
    height: 24px;
  }

  .sp-title-wrap h3 {
    font-size: 1.2rem;
  }
}

/* ---- Experience ---- */
@media (max-width: 820px) {
  .exp-layout {
    grid-template-columns: 1fr;
  }

  .timeline {
    display: none;
  }
}

@media (max-width: 640px) {
  .exp-detail-card {
    padding: 1.25rem;
  }

  .exp-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .exp-role {
    font-size: 1rem;
  }

  .exp-list li {
    font-size: 0.85rem;
  }

  .exp-skills-used span {
    font-size: 0.72rem;
  }
}

/* ---- Projects ---- */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-body h3 {
    font-size: 0.97rem;
  }

  .project-top {
    padding: 1.25rem;
  }

  .project-body {
    padding: 1rem 1.25rem;
  }
}

/* ---- Certifications ---- */
@media (max-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .cert-img {
    width: 56px;
    height: 56px;
  }

  .cert-info h3 {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Awards ---- */
@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .award-card {
    padding: 1.25rem;
  }

  .award-content h3 {
    font-size: 0.88rem;
  }

  .award-content p {
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Education ---- */
@media (max-width: 768px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .edu-card {
    padding: 1.25rem;
  }

  .edu-card h3 {
    font-size: 0.88rem;
  }
}

/* ---- Footer ---- */
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .foot-col-brand {
    grid-column: 1 / -1;
  }

  .foot-inner {
    padding: 2.5rem 1rem 0;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .foot-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .foot-resume-btn {
    align-self: stretch;
    justify-content: center;
  }

  .foot-logo {
    font-size: 1.4rem;
  }

}

/* ---- Modal ---- */
@media (max-width: 640px) {
  .modal-box {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-dual-btn .submit-main-text {
    font-size: 0.88rem;
  }

  .submit-channel {
    width: 44px;
  }
}

/* ---- Hire me button ---- */
@media (max-width: 480px) {
  .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.85rem;
  }
}

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 420px;
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: all;
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(110%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast--error {
  background: rgba(255, 241, 242, 0.97);
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.toast--success {
  background: rgba(240, 253, 250, 0.97);
  border: 1px solid #99f6e4;
  color: #065f46;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast-msg {
  flex: 1;
  line-height: 1.5;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
  opacity: 0.6;
  padding: 0 0.2rem;
  transition: opacity 0.18s;
}

.toast-close:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .toast-container {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }
}