/* =============================================
   PRAMITH PORTFOLIO — portfolio_index.css
   Palette: Siltstone
   --tan:          #CBBD93
   --butter:       #FFF5B8
   --apricot:      #FFB16E
   --gold:         #CCA25A
   ============================================= */

/* ── RESET & BASE ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --tan:           #CBBD93;
  --butter:        #FFF5B8;
  --apricot:       #FFB16E;
  --gold:          #CCA25A;
  --butter-light:  #FFFDE8;
  --tan-light:     #F0EAD6;
  --apricot-light: #FFE0C0;
  --gold-light:    #F5E4C0;
  --text-dark:     #3A2E1A;
  --text-mid:      #6B5530;
  --text-light:    #A08850;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--butter-light);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent; /* remove tap flash on mobile */
}

/* Touch devices: prevent accidental text selection */
a, button, .btn, .social-btn, .filter-btn, .nav-link {
  touch-action: manipulation;
}

/* ══════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════ */

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0    rgba(255, 177, 110, 0.55); }
  70%  { box-shadow: 0 0 0 20px rgba(255, 177, 110, 0); }
  100% { box-shadow: 0 0 0 0    rgba(255, 177, 110, 0); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes glowTrace {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px  rgba(204, 162, 90, 0.55))
      drop-shadow(0 0 14px rgba(255, 177, 110, 0.28));
  }
  50% {
    filter:
      drop-shadow(0 0 18px rgba(204, 162, 90, 0.9))
      drop-shadow(0 0 34px rgba(255, 177, 110, 0.55))
      drop-shadow(0 0 50px rgba(203, 189, 147, 0.28));
  }
}

/* ── NAVBAR ───────────────────────────────── */
.navbar-custom {
  background-color: rgba(255, 253, 232, 0.92);
  border-bottom: 1px solid rgba(203, 189, 147, 0.4);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.6s ease both;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(203, 189, 147, 0.18);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 32px rgba(203, 189, 147, 0.32);
  background-color: rgba(255, 253, 232, 0.97);
}

.navbar-custom .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s, letter-spacing 0.3s;
}

.navbar-custom .navbar-brand:hover {
  color: var(--apricot);
  letter-spacing: 2px;
}

.navbar-custom .nav-link {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0.4rem;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--apricot), var(--gold));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover { color: var(--gold); }
.navbar-custom .nav-link:hover::after { width: 100%; }

/* Mobile nav links */
@media (max-width: 991px) {
  .navbar-custom .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(203, 189, 147, 0.2);
  }
  .navbar-custom .navbar-nav {
    padding: 0.5rem 0;
  }
}

/* ── HERO SECTION ─────────────────────────── */
.hero-section {
  background-color: var(--butter-light);
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Background blobs */
.shape1 {
  position: absolute;
  top: -100px; right: -200px;
  width: 700px; height: 700px;
  background: linear-gradient(135deg, rgba(161,140,209,0.25), rgba(251,194,235,0.2));
  border-radius: 50%;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}

.shape2 {
  position: absolute;
  top: 50px; right: -150px;
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(251,194,235,0.18), rgba(250,208,196,0.15));
  border-radius: 50%;
  animation: float 11s ease-in-out infinite reverse;
  pointer-events: none;
  opacity: 0.7;
}

.shape3 {
  position: absolute;
  bottom: -150px; left: -100px;
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(137,247,254,0.12), rgba(102,166,255,0.12));
  border-radius: 50%;
  animation: float 13s ease-in-out infinite;
  pointer-events: none;
}

/* Hero text */
.hero-section h5 {
  color: var(--apricot);
  font-size: clamp(0.75rem, 2.5vw, 0.88rem);
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  animation: fadeInLeft 0.8s ease both;
}

.hero-section h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  animation: fadeInLeft 0.8s 0.15s ease both;
}

.hero-section h3 {
  color: var(--gold);
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 500;
  animation: fadeInLeft 0.8s 0.3s ease both;
}

.hero-section .text-muted {
  color: var(--text-light) !important;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.8;
  animation: fadeInLeft 0.8s 0.45s ease both;
}

.hero-section .btn-dark {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  transition: all 0.35s ease;
  animation: fadeInUp 0.8s 0.6s ease both;
  box-shadow: 0 4px 18px rgba(204, 162, 90, 0.28);
}

.hero-section .btn-dark:hover {
  background-color: var(--apricot);
  border-color: var(--apricot);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(255, 177, 110, 0.4);
}

.hero-section .btn-outline-dark {
  border-color: var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1rem);
  background: transparent;
  transition: all 0.35s ease;
  animation: fadeInUp 0.8s 0.7s ease both;
}

.hero-section .btn-outline-dark:hover {
  background-color: var(--gold);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(204, 162, 90, 0.3);
}

/* Hero image wrapper & rings */
.hero-img-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 520px;
  height: 520px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-1 {
  width: 400px; height: 400px;
  border: 2px solid rgba(204, 162, 90, 0.45);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
  width: 450px; height: 450px;
  border: 1.5px solid rgba(255, 177, 110, 0.28);
  animation: ringPulse 3s ease-in-out infinite 0.6s;
}

.ring-3 {
  width: 500px; height: 500px;
  border: 1px solid rgba(203, 189, 147, 0.18);
  animation: ringPulse 3s ease-in-out infinite 1.2s;
}

/* Profile image */
.hero-img {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  outline: none;
  background: linear-gradient(135deg, white, rgb(195, 206, 250));
  cursor: pointer;
  animation:
    float       4s   ease-in-out infinite,
    fadeInRight 0.9s 0.3s ease both,
    glowTrace   3s   ease-in-out infinite;
  transition: filter 0.3s ease;
}

.hero-img:hover {
  filter:
    drop-shadow(0 0 18px rgba(204, 162, 90, 0.8))
    drop-shadow(0 0 36px rgba(255, 177, 110, 0.5));
}

/* ── ABOUT SECTION — REDESIGN ─────────────── */
#about {
  background-color: var(--tan-light);
  padding: 4rem 0 5rem;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

#about h1 {
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  display: inline-block;
  margin-bottom: 2.5rem;
}

#about h1::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--apricot), var(--gold));
  border-radius: 2px;
  margin: 12px auto 0;
  transition: width 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  #about h1:hover::after { width: 120px; }
}

/* Two-column grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── LEFT: Bio card ──────────── */
.about-bio-card {
  background: #fff;
  border-radius: 20px;
  border-top: 5px solid var(--apricot);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 6px 28px rgba(203,189,147,0.22), 0 2px 8px rgba(203,189,147,0.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-bio-card:hover {
    box-shadow: 0 16px 48px rgba(203,189,147,0.35), 0 4px 16px rgba(203,189,147,0.2);
    transform: translateY(-4px);
  }
}

.about-bio-greeting {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wave-emoji {
  display: inline-block;
  animation: waveHand 2.2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes waveHand {
  0%,100% { transform: rotate(0deg); }
  15%      { transform: rotate(18deg); }
  30%      { transform: rotate(-8deg); }
  45%      { transform: rotate(18deg); }
  60%      { transform: rotate(-4deg); }
  75%      { transform: rotate(10deg); }
}

.about-bio-text {
  color: var(--text-mid);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.85;
  margin-bottom: 1rem;
}

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

/* Interest tags */
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.25rem;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--tan-light), var(--butter));
  color: var(--text-mid);
  border: 1px solid rgba(204,162,90,0.35);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .about-tag:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
  }
}

/* ── RIGHT: Facts column ─────── */
.about-facts-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Stats row */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-stat {
  background: #fff;
  border-radius: 16px;
  border-top: 4px solid var(--gold);
  padding: 1.1rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 18px rgba(204,162,90,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(204,162,90,0.22);
  }
}

.about-stat-num {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.about-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Fact list */
.about-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  border-top: 5px solid var(--gold);
  box-shadow: 0 6px 28px rgba(203,189,147,0.22);
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .about-facts-list:hover {
    box-shadow: 0 16px 48px rgba(203,189,147,0.35);
    transform: translateY(-4px);
  }
}

.about-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(203,189,147,0.15);
}

.about-fact-item:last-child {
  border-bottom: none;
}

.about-fact-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tan-light), var(--butter));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: 1px solid rgba(204,162,90,0.25);
}

.about-fact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  margin-bottom: 3px;
}

.about-fact-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .about-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .about-stat-num { font-size: 1.3rem; }
}

/* ── RESUME MOBILE PREVIEW CARD ─────────── */
.resume-mobile-preview {
  display: flex;
  justify-content: center;
  width: 100%;
}

.resume-mobile-preview-inner {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,245,184,0.6), rgba(255,224,192,0.5));
  border: 2px dashed rgba(204,162,90,0.45);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.resume-mobile-preview:active .resume-mobile-preview-inner {
  transform: scale(0.97);
  background: linear-gradient(135deg, rgba(255,245,184,0.9), rgba(255,224,192,0.8));
}

.resume-mobile-icon {
  font-size: 3.5rem;
  color: var(--apricot);
  margin-bottom: 1rem;
  line-height: 1;
}

.resume-mobile-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.resume-mobile-hint {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.resume-mobile-btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border-radius: 50px;
  padding: 8px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(204,162,90,0.35);
}


/* ── SKILLS SECTION ───────────────────────── */
#skills {
  background: linear-gradient(160deg, rgba(232,210,150,0.85) 0%, rgba(255,245,184,0.7) 60%, rgba(255,224,192,0.55) 100%);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(204,162,90,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#skills::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,177,110,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Section heading ── */
.skills-header { position: relative; z-index: 1; }

.skills-title {
  color: var(--text-dark);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.skills-accent {
  color: var(--gold);
  position: relative;
}
.skills-accent::after {
  content: '';
  display: block;
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, var(--apricot), var(--gold));
  border-radius: 4px;
  margin: 6px auto 0;
}

.skills-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.3px;
}

/* ── Cards grid ── */
.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .skills-cards-grid { grid-template-columns: 1fr; }
}

/* ── Category card ── */
.skill-category-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  box-shadow:
    0 4px 24px rgba(204,162,90,0.10),
    0 1px 4px rgba(204,162,90,0.07);
  border: 1.5px solid rgba(204,162,90,0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--apricot), var(--gold));
  border-radius: 20px 20px 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .skill-category-card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 18px 48px rgba(204,162,90,0.18),
      0 4px 12px rgba(204,162,90,0.12);
  }
}

/* ── Category header (icon + title) ── */
.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(204,162,90,0.12);
}

.skill-cat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cat-color) 18%, white),
    color-mix(in srgb, var(--cat-color) 10%, white));
  color: var(--cat-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in srgb, var(--cat-color) 22%, transparent);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--cat-color) 20%, transparent);
}

/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red, blue)) {
  .skill-cat-icon-wrap {
    background: rgba(204,162,90,0.12);
    color: var(--gold);
    border-color: rgba(204,162,90,0.25);
  }
}

.skill-cat-title {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.skill-cat-count {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.4px;
  margin: 0;
  text-transform: uppercase;
}

/* ── Skill items grid & cards (No Progress Bars) ── */
.skill-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
}

@media (max-width: 576px) {
  .skill-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.75rem;
  }
}

.skill-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 235, 0.85));
  border: 1.5px solid rgba(204, 162, 90, 0.16);
  border-radius: 14px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease,
              background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.skill-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--chip-color, var(--gold));
  opacity: 0.6;
  border-radius: 14px 0 0 14px;
  transition: opacity 0.25s ease, width 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .skill-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(204, 162, 90, 0.18), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: color-mix(in srgb, var(--chip-color, var(--gold)) 40%, rgba(204, 162, 90, 0.2));
    background: #ffffff;
  }
  .skill-tile:hover::before {
    opacity: 1;
    width: 4px;
  }
  .skill-tile:hover .skill-icon-chip {
    transform: scale(1.1) rotate(4deg);
    box-shadow: 0 4px 14px var(--chip-bg);
  }
}

/* Individual skill icon chip */
.skill-icon-chip {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--chip-bg);
  color: var(--chip-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--chip-color) 20%, transparent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@supports not (color: color-mix(in srgb, red, blue)) {
  .skill-icon-chip { border-color: rgba(204,162,90,0.18); }
  .skill-tile:hover { border-color: var(--gold); }
}

.skill-tile-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.skill-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.skill-item-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── "Also familiar with" chip cloud ── */
.skills-chips-section {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  border: 1.5px solid rgba(204,162,90,0.16);
  text-align: center;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .skills-chips-section { margin: 1.5rem 1.5rem 0; }
}

.skills-chips-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skills-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sk-chip {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,245,184,0.8), rgba(255,224,192,0.6));
  border: 1.5px solid rgba(204,162,90,0.28);
  color: var(--text-mid);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: default;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  .sk-chip:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204,162,90,0.3);
  }
}

/* ── WORK EXPERIENCE SECTION ──────────────── */
#experience {
  background: linear-gradient(160deg, rgba(238,230,205,0.9) 0%, rgba(255,245,184,0.65) 60%, rgba(255,224,192,0.5) 100%) !important;
  padding: 3rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

#experience::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(204,162,90,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.exp-container {
  max-width: 960px;
  margin: 0 auto;
}

.exp-header { position: relative; z-index: 1; }

.exp-title {
  color: var(--text-dark);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.exp-accent {
  color: var(--gold);
  position: relative;
}

.exp-accent::after {
  content: '';
  display: block;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, var(--apricot), var(--gold));
  border-radius: 4px;
  margin: 4px auto 0;
}

.exp-subtitle {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.35rem;
  letter-spacing: 0.3px;
}

/* Experience Card */
.exp-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  border: 1.5px solid rgba(204,162,90,0.18);
  border-top: 4px solid var(--apricot);
  box-shadow: 0 4px 20px rgba(203,189,147,0.14), 0 1px 4px rgba(203,189,147,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(203,189,147,0.25), 0 2px 8px rgba(203,189,147,0.14);
    border-color: rgba(204,162,90,0.35);
  }
}

.exp-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.exp-company-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,245,184,0.8), rgba(255,224,192,0.8));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(204,162,90,0.3);
  box-shadow: 0 3px 8px rgba(204,162,90,0.12);
}

.exp-role-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1px;
}

.exp-company-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0;
}

.exp-date-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gold), var(--apricot));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 3px 10px;
  box-shadow: 0 2px 6px rgba(204,162,90,0.2);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.exp-description {
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.exp-contrib-heading {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.exp-contrib-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.85rem;
}

.exp-contrib-item {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-mid);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.exp-contrib-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.exp-tech-section {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(204,162,90,0.25);
}

.exp-tech-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: block;
}

.exp-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.exp-tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255,253,232,0.9), rgba(248,242,225,0.9));
  border: 1px solid rgba(204,162,90,0.28);
  color: var(--text-mid);
  border-radius: 50px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .exp-tech-chip:hover {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(204,162,90,0.25);
  }
}

/* ── PROJECTS SECTION ─────────────────────── */
#projects {
  background-color: var(--gold-light);
  padding: 4rem 0;
}

#projects h2 {
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

#projects .text-primary { color: var(--gold) !important; }

#projects .filter-btn {
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  font-weight: 700;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  margin: 0 3px;
  transition: all 0.3s ease;
}

#projects .btn-primary {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(204, 162, 90, 0.3);
}

#projects .btn-light {
  background-color: #fff;
  border: 1px solid rgba(204, 162, 90, 0.35);
  color: var(--text-mid);
}

#projects .btn-light:hover {
  background-color: var(--butter);
  border-color: var(--apricot);
  color: var(--gold);
  transform: translateY(-2px);
}

#projects .card {
  border: 1.5px solid rgba(203, 189, 147, 0.3) !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 4px 18px rgba(204, 162, 90, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: cardEntrance 0.5s ease both;
}

@media (hover: hover) and (pointer: fine) {
  #projects .card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(204, 162, 90, 0.22) !important;
  }
}

.project-img-wrapper {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  height: 200px;           /* slightly taller for better image display */
  position: relative;
  background: linear-gradient(135deg, #0d1117, #1a1f2e); /* dark bg so contain has no ugly whitespace */
}

.project-img-wrapper .project-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* shows FULL image — no side cropping */
  object-position: center;
  padding: 6px;            /* small breathing room between image and card edge */
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover overlay — "View Project" label on mouse hover */
.project-img-wrapper::after {
  content: '\f35d\00a0\00a0View Project'; /* fa-arrow-up-right-from-square + label (fallback text) */
  font-family: 'Inter', sans-serif;
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-img-wrapper::after {
    opacity: 1;
  }
  .project-card:hover .project-thumbnail {
    transform: scale(1.06) !important;
  }
}


#projects .card h5 {
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

#projects .card p {
  color: var(--text-light);
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

#projects .btn-outline-dark {
  border-color: var(--tan);
  color: var(--text-mid);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s;
}

#projects .btn-outline-dark:hover {
  background-color: var(--tan);
  color: var(--text-dark);
  transform: scale(1.05);
}

#projects .btn-primary.btn-sm {
  background-color: var(--apricot) !important;
  border-color: var(--apricot) !important;
  color: #fff !important;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(255, 177, 110, 0.3);
}

#projects .btn-primary.btn-sm:hover {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(204, 162, 90, 0.35);
}

/* ── RESUME SECTION ───────────────────────── */
#resume {
  background-color: #c1be81;
  padding: 4rem 0;
}

#resume h2 {
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

#resume .text-primary { color: var(--butter) !important; }

#resume .mx-auto[style] {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

#resume .bg-light {
  background: rgba(255, 255, 255, 0.88) !important;
  border-radius: 20px !important;
  border: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07), 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  #resume .bg-light:hover {
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.11), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
  }
}

#resume .text-muted {
  color: var(--text-mid) !important;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.8;
}

#resume .btn-primary {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  border-radius: 50px;
  font-weight: 700;
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: 0.7rem 2.2rem;
  color: #fff !important;
  transition: all 0.35s ease;
  animation: pulseRing 3s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(204, 162, 90, 0.3);
}

#resume .btn-primary:hover {
  background: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(58, 46, 26, 0.25);
  animation: none;
}

/* ── CONTACT SECTION ──────────────────────── */
#contact {
  background-color: var(--tan);
  padding: 4rem 0;
}

#contact h2 {
  color: var(--text-dark);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
}

#contact .text-primary { color: var(--gold) !important; }

#contact .mx-auto[style] {
  background: rgba(255, 255, 255, 0.4) !important;
}

#contact .text-muted {
  color: var(--text-mid) !important;
  font-size: clamp(0.88rem, 2vw, 1rem);
}

#contact .bg-light {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(204, 162, 90, 0.15);
  box-shadow: 0 4px 20px rgba(204, 162, 90, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  #contact .bg-light:hover {
    transform: translateY(-6px) translateX(4px);
    box-shadow: 0 16px 40px rgba(204, 162, 90, 0.28) !important;
  }
}

.contact-icon {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

#contact .bg-light:hover .contact-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

#contact small.text-muted {
  color: var(--text-light) !important;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  font-weight: 700;
}

#contact .fw-semibold {
  color: var(--text-dark);
  font-size: clamp(0.85rem, 2vw, 1rem);
}

#contact a {
  word-break: break-all;
}

/* ── FOOTER ───────────────────────────────── */
footer {
  background-color: var(--text-dark);
  border-top: none !important;
  padding: 2rem 0;
}

footer .text-muted {
  color: var(--tan) !important;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

footer .text-muted:hover { color: var(--apricot) !important; }

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════ */

/* ── Large tablets (max 992px) ── */
@media (max-width: 992px) {

  .hero-section {
    padding: 3rem 0 4rem;
    min-height: auto;
  }

  .hero-img-wrapper {
    width: 380px;
    height: 380px;
  }

  .ring-1 { width: 350px; height: 350px; }
  .ring-2 { width: 390px; height: 390px; }
  .ring-3 { width: 430px; height: 430px; }

  .hero-img {
    width: 350px;
    height: 350px;
  }

  .skills-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {

  /* Hero */
  .hero-section {
    text-align: center;
    padding: 2.5rem 0 3rem;
  }

  .hero-text {
    order: 2;
  }

  .col-lg-4.col-12 {
    order: 1;
  }

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

  .hero-section .text-muted {
    max-width: 100%;
  }

  .hero-img-wrapper {
    width: 450px;
    height: 450px;
    margin-bottom: 1rem;
  }

  .ring-1 { width: 260px; height: 260px; }
  .ring-2 { width: 300px; height: 300px; }
  .ring-3 { width: 330px; height: 330px; }

  .hero-img {
    width: 330px;
    height: 330px;
  }

  /* About */
  #about {
    padding: 3rem 0;
  }

  .about_me {
    padding: 1.5rem 1.25rem;
    font-size: 0.95rem;
  }

  /* Skills — one per row on mobile */
  #skills {
    padding: 3rem 0;
  }

  .skills-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #skills .col-12.col-md-6 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Projects — one per row on mobile */
  #projects {
    padding: 3rem 0;
  }

  #projectContainer .col-12.col-md-6.col-lg-4 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Resume */
  #resume {
    padding: 3rem 0;
  }

  /* Contact */
  #contact {
    padding: 3rem 0;
  }

  #contact .mb-5 {
    margin-bottom: 2rem !important;
  }

  /* Section headings */
  h2.fw-bold {
    font-size: 1.6rem;
  }
}

/* ── Small mobile (max 480px) ── */
@media (max-width: 480px) {

  .hero-section h1 {
    font-size: 1.7rem;
  }

  .hero-section h3 {
    font-size: 0.95rem;
  }

  .hero-img-wrapper {
    width: 330px;
    height: 330px;
  }

  .ring-1 { width: 260px; height: 260px; }
  .ring-2 { width: 285px; height: 285px; }
  .ring-3 { width: 310px; height: 310px; }

  .hero-img {
    width: 250px;
    height: 250px;
  }

  .hero-section .btn-dark,
  .hero-section .btn-outline-dark {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .about_me {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  #skills .bg-light,
  #projects .card {
    border-radius: 12px !important;
  }

  #contact .bg-light {
    padding: 0.85rem !important;
  }

  .contact-icon {
    font-size: 1.1rem;
  }

  footer {
    padding: 1.5rem 0;
  }
}

/* ── Extra small mobile (max 350px) ── */
@media (max-width: 350px) {
  .hero-img-wrapper {
    width: 280px;
    height: 280px;
  }
  .ring-1 { width: 220px; height: 220px; }
  .ring-2 { width: 240px; height: 240px; }
  .ring-3 { width: 260px; height: 260px; }
  .hero-img {
    width: 200px;
    height: 200px;
  }
}

/* Floating Social Container */

/* Close button */
.close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #615d5dcb;
  color: #fff;
  font-size: 24px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close-btn:hover {
  background: rgb(95, 92, 92);
}

.floating-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* Buttons */
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.666);
  transition: all 0.3s ease;
}

/* Hover Effect */
.social-btn:hover {
  transform: scale(1.1);
}

/* Colors */
.email {
  background: #EA4335; /* Gmail red */
}
.linkedin {
  background: #0077b5;
}

.github {
  background: #333;
}

/* =============================================
   PREMIUM ANIMATIONS & MICRO-INTERACTIONS
   ============================================= */

/* Global Smooth Transitions */
.btn, .card, .nav-link, .social-btn, .contact-icon, .form-control {
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Scroll Animation Baseline States */
.fade-up-element {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.fade-up-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-element {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.fade-in-element.in-view {
  opacity: 1;
}

.zoom-in-element {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
.zoom-in-element.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Sequential Delay utility classes for child elements */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }

/* Hero Section Enhancements */
/* NOTE: hero-img-wrapper does NOT get float animation here — the hero-img
   already floats on its own (defined in its base rule). Animating BOTH
   parent and child causes jitter and compounding movement on mobile. */
.hero-img {
  box-shadow: 0 10px 30px rgba(204, 162, 90, 0.15);
  animation: glowTrace 4s ease-in-out infinite !important;
}
/* Hover scale only on pointer (non-touch) devices */
@media (hover: hover) and (pointer: fine) {
  .hero-img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(204, 162, 90, 0.35), 0 0 30px rgba(255, 177, 110, 0.2) !important;
  }
}

/* Button Lift & Shadow Effects — only on real pointer (mouse) devices */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(204, 162, 90, 0.25) !important;
  }
}
.btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(204, 162, 90, 0.15) !important;
}

/* Skills Cards Lifts */
#skills .bg-light {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Project Cards Image Zoom Hover & Elevation */
#projects .card {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover lifts ONLY on real pointer/mouse devices — prevents jump on mobile tap */
@media (hover: hover) and (pointer: fine) {
  #skills .bg-light:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 16px 36px rgba(204, 162, 90, 0.18) !important;
  }
  #projects .card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 18px 36px rgba(204, 162, 90, 0.2) !important;
  }
  #education .bg-light:hover, #experience .bg-light:hover, #certifications .card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 16px 36px rgba(204, 162, 90, 0.18) !important;
  }
}

/* Contact Cards focus and hover */
.contact-icon {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
/* Contact icon spin only on mouse hover — not on touch tap */
@media (hover: hover) and (pointer: fine) {
  #contact .bg-light:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg) !important;
  }
}
.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 8px rgba(204, 162, 90, 0.3) !important;
  transform: translateY(-2px);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* ── PROJECT TECH-STACK BADGES ────────────── */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--tan-light), var(--butter));
  color: var(--text-mid);
  border: 1px solid rgba(204, 162, 90, 0.35);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .tech-badge:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
  }
}

/* ── CERTIFICATION CARD ENHANCEMENTS ──────── */
.cert-issuer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(204,162,90,0.12), rgba(255,177,110,0.10));
  border: 1px solid rgba(204,162,90,0.30);
  color: var(--text-mid);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 auto 10px;
  width: fit-content;
}

.cert-view-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  letter-spacing: 0.3px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .cert-view-btn:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(204,162,90,0.30);
  }
}

.cert-img-wrapper {
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
  border: 1px solid rgba(204, 162, 90, 0.2);
  position: relative;
}

.cert-img-wrapper .hover-zoom {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

@media (hover: hover) and (pointer: fine) {
  .cert-img-wrapper:hover .hover-zoom {
    transform: scale(1.08) !important;
  }
}

/* Accessibility: Reduced Motion preferences overrides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .fade-up-element, .fade-in-element, .zoom-in-element {
    opacity: 1 !important;
    transform: none !important;
  }
  .project-card:hover .project-thumbnail {
    transform: none !important;
  }
  .hero-img-wrapper {
    animation: none !important;
  }
}
