/* ═══════════════════════════════════════════════════
   CHARCHITA LUITEL — PORTFOLIO STYLESHEET
   Theme: Refined Feminine Elegance
   Fonts: Cormorant Garamond (display) + DM Sans (body)
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. CSS VARIABLES & RESET
───────────────────────────────────── */
:root {
  /* Brighter, higher-contrast delicate palette */
  --cream:        #fff9f2;
  --cream-dark:   #fff0df;
  --rose:         #d94673;
  --rose-light:   #ffd1df;
  --rose-deep:    #9f1d4d;
  --blush:        #ffd7c2;
  --sage:         #86cfa4;
  --sage-light:   #d9f7e5;
  --sky:          #7bb8ff;
  --sky-light:    #ddebff;
  --lavender:     #b79cff;
  --warm-gray:    #5f5650;
  --charcoal:     #251f1c;
  --dark:         #17110f;
  --white:        #ffffff;
  --ink:          #15100f;

  /* Accents */
  --accent:       #b91f55;
  --accent-light: #d94673;
  --accent-hover: #8f1741;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad:  5rem;
  --container:    1160px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   40px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm:  0 4px 16px rgba(88,54,48,0.10);
  --shadow-md:  0 10px 34px rgba(88,54,48,0.14);
  --shadow-lg:  0 18px 60px rgba(88,54,48,0.18);
  --shadow-xl:  0 30px 90px rgba(88,54,48,0.24);

  /* Transitions */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; }

/* ─────────────────────────────────────
   2. TYPOGRAPHY
───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--dark);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1rem;
}
.section-heading em {
  font-style: italic;
  color: var(--accent);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-label {
  justify-content: center;
}
.section-header .section-label::before { display: none; }
.section-header .section-sub {
  margin: 0 auto;
}

/* ─────────────────────────────────────
   3. LAYOUT UTILITIES
───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--section-pad) 0;
}

/* ─────────────────────────────────────
   4. BUTTONS
───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b86e87 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,130,154,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,130,154,0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--rose-light);
  transform: translateY(-2px);
}

.btn-nav {
  background: var(--rose-light);
  color: var(--accent);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-full { width: 100%; }

/* ─────────────────────────────────────
   5. SCROLL REVEAL ANIMATIONS
───────────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─────────────────────────────────────
   6. NAVIGATION
───────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0;
}

#navbar.scrolled {
  background: rgba(253,250,246,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(180,120,140,0.10);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: padding 0.3s var(--ease);
}

#navbar.scrolled .nav-inner {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-initials {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--rose-deep));
  color: var(--white);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--warm-gray);
  border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--rose-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--warm-gray);
  transition: color 0.2s;
}
.mobile-close:hover { color: var(--accent); }
.mobile-cta { margin-top: 0.5rem; }

/* ─────────────────────────────────────
   7. HERO SECTION
───────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(248,215,227,0.6), transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(216,238,220,0.5), transparent 70%);
  bottom: 0; left: -80px;
  animation-delay: -3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(220,232,245,0.5), transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -6s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.05); }
  66%       { transform: translate(-15px, 10px) scale(0.97); }
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

/* Hero text */
.hero-text { max-width: 600px; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  display: block;
}

/* Rotating role badge */
.hero-roles {
  margin-bottom: 1.5rem;
}
.role-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--rose-light), var(--blush));
  color: var(--accent);
  padding: 0.45rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
}
.role-tag.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}
.role-tag.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-intro {
  font-size: 1.1rem;
  color: var(--warm-gray);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--rose);
  opacity: 0.5;
}

/* Hero photo */
.hero-photo {
  position: relative;
  flex-shrink: 0;
}

.photo-frame {
  width: 300px;
  height: 360px;
  border-radius: 50% 50% 48% 52% / 48% 52% 50% 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--blush) 50%, var(--sky-light) 100%);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
  transition: border-radius 0.6s var(--ease);
}
.photo-frame:hover {
  border-radius: 48% 52% 44% 56% / 52% 44% 56% 48%;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--accent);
}
.photo-icon svg { opacity: 0.6; }
.photo-hint {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0.7;
  font-weight: 500;
}

/* Floating badges */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
  animation: badgeFloat 4s ease-in-out infinite;
}
.float-badge span { color: var(--accent); }

.badge-1 { top: 10%; right: -30px; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -40px; animation-delay: -1.5s; }
.badge-3 { top: 40%; left: -35px; animation-delay: -3s; }

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

/* Photo rings */
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,130,154,0.2);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
}
.ring-outer {
  width: 360px; height: 360px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}
.ring-inner {
  width: 320px; height: 320px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2s;
}

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

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: fadeInUp 1s 1s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  to { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─────────────────────────────────────
   8. ABOUT SECTION
───────────────────────────────────── */
#about {
  background: var(--cream-dark);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Card grid */
.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.about-accent-card {
  padding: 1.5rem;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}
.about-accent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.about-accent-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.accent-icon { font-size: 1.5rem; }

.card-rose    { background: linear-gradient(135deg, #fdf2f6, #f5dce6); }
.card-blush   { background: linear-gradient(135deg, #fef6f0, #f5e0d2); }
.card-sage    { background: linear-gradient(135deg, #f0f9f2, #d8eedc); }
.card-sky     { background: linear-gradient(135deg, #f0f5fc, #dce8f5); }

.about-quote-block {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-sm);
}
.about-quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
}

/* About content */
.about-lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body {
  font-size: 0.975rem;
  color: var(--warm-gray);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.value-pill {
  padding: 0.4rem 1rem;
  background: var(--white);
  border: 1px solid var(--rose);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
}

/* ─────────────────────────────────────
   9. SERVICES SECTION
───────────────────────────────────── */
#services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 2.5rem;
  border: 1px solid rgba(201,130,154,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(248,215,227,0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }

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

.service-hover-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card[data-color="rose"]  .service-hover-line { background: linear-gradient(90deg, var(--rose), var(--accent)); }
.service-card[data-color="blush"] .service-hover-line { background: linear-gradient(90deg, #f5c9a5, #e8a68c); }
.service-card[data-color="sage"]  .service-hover-line { background: linear-gradient(90deg, var(--sage), #7ab886); }
.service-card[data-color="sky"]   .service-hover-line { background: linear-gradient(90deg, var(--sky), #7aaad5); }

.service-card:hover .service-hover-line { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s var(--spring);
}
.service-card[data-color="rose"]  .service-icon-wrap { background: var(--rose-light); color: var(--accent); }
.service-card[data-color="blush"] .service-icon-wrap { background: #fdeedd; color: #c97a50; }
.service-card[data-color="sage"]  .service-icon-wrap { background: var(--sage-light); color: #5a9e6e; }
.service-card[data-color="sky"]   .service-icon-wrap { background: var(--sky-light); color: #4a82b5; }

.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(-4deg); }

.service-icon { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}
.service-card p {
  font-size: 0.875rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--warm-gray);
  padding-left: 1rem;
  position: relative;
}
.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
}

/* ─────────────────────────────────────
   10. PORTFOLIO SECTION
───────────────────────────────────── */
#portfolio {
  background: var(--cream-dark);
}

/* Filter buttons */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  background: var(--white);
  border: 1px solid rgba(201,130,154,0.2);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--rose-light);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--rose-deep));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(201,130,154,0.3);
}

/* Projects grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease), opacity 0.3s, scale 0.3s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.project-card.hidden {
  opacity: 0;
  scale: 0.95;
  pointer-events: none;
  position: absolute;
}

.project-img {
  height: 220px;
  position: relative;
  overflow: hidden;
}
.project-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-img-inner {
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,32,38,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-view-btn {
  padding: 0.7rem 1.5rem;
  background: var(--white);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  transform: translateY(8px);
}
.project-card:hover .project-view-btn { transform: translateY(0); }
.project-view-btn:hover { background: var(--rose-light); }

.project-info {
  padding: 1.5rem;
}
.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.project-info h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.project-info p {
  font-size: 0.855rem;
  color: var(--warm-gray);
  line-height: 1.65;
}

.portfolio-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.portfolio-cta p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

/* ─────────────────────────────────────
   11. SKILLS SECTION
───────────────────────────────────── */
#skills {
  background: var(--cream);
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.skills-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 2rem;
}

/* Skill bars */
.skill-item {
  margin-bottom: 1.5rem;
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
}
.skill-pct {
  color: var(--accent);
  font-size: 0.8rem;
}
.skill-track {
  height: 7px;
  background: var(--rose-light);
  border-radius: var(--r-full);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--rose-deep));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chips */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.83rem;
  font-weight: 500;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  cursor: default;
}
.chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.chip-icon { font-size: 1rem; }
.chip-design { background: var(--rose-light); color: var(--accent); }
.chip-video  { background: var(--sky-light);  color: #4a82b5; }
.chip-code   { background: var(--sage-light); color: #5a9e6e; }

/* Soft skills */
.soft-skills-block {
  border-top: 1px solid rgba(201,130,154,0.15);
  padding-top: 1.5rem;
}
.soft-skills-block h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1rem;
}
.soft-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.soft-skill-pills span {
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  background: var(--white);
  border: 1px solid rgba(201,130,154,0.2);
  font-size: 0.8rem;
  color: var(--warm-gray);
}

/* ─────────────────────────────────────
   12. TESTIMONIALS SECTION
───────────────────────────────────── */
#testimonials {
  background: var(--cream-dark);
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--warm-gray);
}

/* ─────────────────────────────────────
   13. CONTACT SECTION
───────────────────────────────────── */
#contact {
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(201,130,154,0.1);
  transition: color 0.2s;
  text-decoration: none;
}
.contact-item:hover .contact-item-value { color: var(--accent); }

.contact-item-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.contact-item:hover .contact-item-icon {
  background: var(--accent);
  transform: scale(1.05);
}
.contact-item:hover .contact-item-icon svg { stroke: var(--white); }
.contact-item-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent);
  transition: stroke 0.2s;
}

.contact-item-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.1rem;
}
.contact-item-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid rgba(201,130,154,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.social-link svg {
  width: 17px; height: 17px;
  stroke: var(--warm-gray);
  transition: stroke 0.2s;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.social-link:hover svg { stroke: var(--white); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(201,130,154,0.08);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(201,130,154,0.2);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,130,154,0.12);
  background: var(--white);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e07070;
  box-shadow: 0 0 0 3px rgba(224,112,112,0.1);
}

.field-error {
  font-size: 0.76rem;
  color: #c05858;
  min-height: 1rem;
}

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

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9829a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-feedback {
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-feedback.success {
  background: rgba(184,216,192,0.3);
  color: #3a7a4a;
  border: 1px solid rgba(184,216,192,0.6);
}
.form-feedback.error {
  background: rgba(224,180,180,0.3);
  color: #8a3a3a;
  border: 1px solid rgba(224,180,180,0.6);
}

/* ─────────────────────────────────────
   14. FOOTER
───────────────────────────────────── */
#footer {
  background: var(--dark);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rose); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ─────────────────────────────────────
   15. BACK TO TOP
───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--rose-deep));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s var(--spring);
  pointer-events: none;
  z-index: 500;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 18px; height: 18px;
}

/* ─────────────────────────────────────
   16. RESPONSIVE — TABLET (max 1024px)
───────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

  .hero-intro { max-width: 100%; }

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

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

  .hero-photo {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .skills-layout { grid-template-columns: 1fr; gap: 3rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .hamburger { display: flex; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonials-track { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ─────────────────────────────────────
   17. RESPONSIVE — MOBILE (max 640px)
───────────────────────────────────── */
@media (max-width: 640px) {
  :root { --section-pad: 3.5rem; }

  .portfolio-grid    { grid-template-columns: 1fr; }
  .services-grid     { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .about-card-grid   { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  .photo-frame { width: 240px; height: 290px; }
  .ring-outer  { width: 290px; height: 290px; }
  .ring-inner  { width: 260px; height: 260px; }

  .hero-stats { gap: 1rem; }
  .stat-num   { font-size: 1.6rem; }

  .badge-1 { right: -10px; }
  .badge-2 { right: -15px; }
  .badge-3 { left: -15px; }

  .contact-form-wrap { padding: 1.5rem; }

  .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

  .portfolio-filters { gap: 0.4rem; }
  .filter-btn { padding: 0.4rem 0.85rem; font-size: 0.8rem; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}


/* ═══════════════════════════════════════════════════
   REQUESTED REVISION: brighter theme, dark contrast,
   no testimonials, ability-focused skills, 3D icons
═══════════════════════════════════════════════════ */

/* Brighter and clearer base */
body {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 143, 171, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(123, 184, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #fff9f2 0%, #fff3e4 46%, #fff7fb 100%);
}

.hero-intro,
.about-body,
.project-info p,
.service-card p,
.service-list li,
.section-sub {
  color: #51453f;
}

.section-heading,
.hero-name,
.project-info h3,
.service-card h3 {
  color: var(--dark);
}

/* Brighter hero visual energy */
.blob-1 {
  background: radial-gradient(circle, rgba(185,31,85,0.52), transparent 70%);
}

.blob-2 {
  background: radial-gradient(circle, rgba(134,207,164,0.36), transparent 70%);
}

.blob-3 {
  background: radial-gradient(circle, rgba(123,184,255,0.38), transparent 70%);
}

.photo-frame {
  background: linear-gradient(135deg, #ffe1ea 0%, #ffd7c2 48%, #ddebff 100%);
  box-shadow: 0 26px 70px rgba(88,54,48,0.22);
}

/* Dark contrast sections */
#services,
#skills {
  background:
    radial-gradient(circle at top right, rgba(185,31,85,0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(123,184,255,0.10), transparent 32%),
    linear-gradient(135deg, #211714 0%, #35231f 100%);
  color: #fffaf4;
  position: relative;
  overflow: hidden;
}

#services::before,
#skills::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(185,31,85,0.24), transparent 68%);
  pointer-events: none;
}

#services .container,
#skills .container {
  position: relative;
  z-index: 1;
}

#services .section-heading,
#skills .section-heading,
#services .skills-subtitle,
#skills .skills-subtitle {
  color: #ffffff;
}

#services .section-sub,
#skills .section-sub {
  color: rgba(255,250,244,0.78) !important;
}

#services .section-label,
#skills .section-label {
  color: #f06f9b;
}

#services .section-label::before,
#skills .section-label::before {
  background: #f06f9b;
}

#services .service-card {
  background: rgba(255,255,255,0.96);
  color: var(--charcoal);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

#services .service-card p,
#services .service-list li {
  color: #51453f;
}

#about,
#portfolio {
  background:
    radial-gradient(circle at top left, rgba(185,31,85,0.14), transparent 34%),
    linear-gradient(135deg, #fff0df 0%, #fff7f0 100%);
}

/* Ability-focused skills layout */
.updated-skills .skill-bars,
.updated-skills .skill-chips {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 70px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
}

#skills .skill-meta,
#skills .soft-skills-block h4 {
  color: #fffaf4;
}

#skills .skill-pct {
  color: #ffc0d4;
}

#skills .skill-track {
  background: rgba(255,255,255,0.18);
}

#skills .skill-fill {
  background: linear-gradient(90deg, #b91f55, #ffd166, #86cfa4);
}

/* 3D-style icon system */
.icon-3d,
.icon-cube,
.cube-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  transform-style: preserve-3d;
}

.icon-3d {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #ffe1ea 45%, #b91f55 100%);
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.9),
    inset 0 -7px 12px rgba(159,29,77,0.22),
    0 12px 24px rgba(159,29,77,0.22);
}

.icon-3d::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: rgba(37,31,28,0.78);
  box-shadow: 8px 8px 0 rgba(37,31,28,0.18);
}

.icon-palette::after {
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffd166 0 16%, transparent 17%),
    radial-gradient(circle at 70% 35%, #86cfa4 0 15%, transparent 16%),
    radial-gradient(circle at 45% 72%, #7bb8ff 0 14%, transparent 15%),
    #ffffff;
}

.icon-spark::after {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ffd166, #b91f55);
  clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
  box-shadow: none;
}

.icon-leaf::after {
  width: 22px;
  height: 15px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #86cfa4, #d9f7e5);
  transform: rotate(-18deg);
  box-shadow: none;
}

.icon-screen::after {
  width: 24px;
  height: 17px;
  border-radius: 5px;
  background: linear-gradient(135deg, #7bb8ff, #ddebff);
  border: 2px solid rgba(37,31,28,0.5);
  box-shadow: 0 8px 0 -5px rgba(37,31,28,0.8);
}

.icon-cube {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  margin-bottom: 1.25rem;
  box-shadow:
    inset 0 3px 7px rgba(255,255,255,0.85),
    inset 0 -10px 18px rgba(0,0,0,0.16),
    0 16px 28px rgba(0,0,0,0.15);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--ease);
}

.icon-cube::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 8px 4px rgba(0,0,0,0.15));
}

.icon-design-3d { background: linear-gradient(145deg, #fff, #ffe1ea 45%, #b91f55); }
.icon-design-3d::before {
  background:
    radial-gradient(circle at 26% 32%, #ffd166 0 12%, transparent 13%),
    radial-gradient(circle at 68% 32%, #86cfa4 0 12%, transparent 13%),
    radial-gradient(circle at 46% 70%, #7bb8ff 0 12%, transparent 13%),
    #ffffff;
  border-radius: 50%;
}

.icon-video-3d { background: linear-gradient(145deg, #fff, #ddebff 45%, #7bb8ff); }
.icon-video-3d::before {
  background: #ffffff;
  clip-path: polygon(25% 14%, 82% 50%, 25% 86%);
}

.icon-web-3d { background: linear-gradient(145deg, #fff, #d9f7e5 45%, #86cfa4); }
.icon-web-3d::before {
  width: 34px;
  height: 24px;
  border-radius: 7px;
  background:
    linear-gradient(#251f1c 0 4px, transparent 4px),
    linear-gradient(90deg, #ffffff 0 34%, #e8fff0 34% 100%);
  border: 2px solid #251f1c;
}

.icon-code-3d { background: linear-gradient(145deg, #fff, #efe7ff 45%, #b79cff); }
.icon-code-3d::before {
  content: "</>";
  color: #251f1c;
  font-weight: 800;
  font-size: 16px;
  width: auto;
  height: auto;
  background: transparent;
}

.service-card:hover .icon-cube {
  transform: translateY(-6px) rotateX(10deg) rotateY(-12deg) scale(1.06);
  box-shadow:
    inset 0 3px 7px rgba(255,255,255,0.9),
    inset 0 -10px 18px rgba(0,0,0,0.14),
    0 22px 36px rgba(0,0,0,0.22);
}

.cube-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.cube-tool {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.94);
  color: var(--charcoal);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease);
}

.cube-tool:hover {
  transform: translateY(-5px) rotateX(3deg);
  box-shadow: 0 20px 38px rgba(0,0,0,0.18);
}

.cube-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.55rem;
  background: linear-gradient(145deg, #ffffff, #ffe1ea 55%, #b91f55);
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,0.9),
    inset 0 -8px 14px rgba(0,0,0,0.14),
    0 12px 20px rgba(0,0,0,0.16);
}

.cube-video .cube-icon { background: linear-gradient(145deg, #ffffff, #ddebff 55%, #7bb8ff); }
.cube-web .cube-icon { background: linear-gradient(145deg, #ffffff, #d9f7e5 55%, #86cfa4); }
.cube-code .cube-icon { background: linear-gradient(145deg, #ffffff, #efe7ff 55%, #b79cff); }
.cube-audio .cube-icon { background: linear-gradient(145deg, #ffffff, #fff0df 55%, #ffd166); }
.cube-social .cube-icon { background: linear-gradient(145deg, #ffffff, #ffe1ea 55%, #9f1d4d); }

.cube-tool strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cube-tool p {
  color: #5f5650;
  font-size: 0.82rem;
  line-height: 1.45;
}

.updated-soft-skills {
  margin-top: 1.4rem;
}

#skills .soft-skill-pills span {
  background: rgba(255,255,255,0.12);
  color: #fffaf4;
  border: 1px solid rgba(255,255,255,0.18);
}

.project-emoji {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255,255,255,0.74);
  box-shadow:
    inset 0 3px 7px rgba(255,255,255,0.9),
    inset 0 -10px 20px rgba(0,0,0,0.12),
    0 18px 34px rgba(0,0,0,0.15);
  transform: rotate(-5deg);
}

#contact {
  background: linear-gradient(135deg, #fff9f2 0%, #fff0df 100%);
}


/* ═══════════════════════════════════════════════════
   FINAL REVISION: darker pink + original-style skills layout
═══════════════════════════════════════════════════ */

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.skill-bars,
.skill-chips {
  border-radius: var(--r-lg);
  padding: 2rem;
}

.updated-chips-grid,
.chips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.chip {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.95);
  color: var(--charcoal);
  box-shadow: 0 12px 26px rgba(0,0,0,0.13);
  border: 1px solid rgba(255,255,255,0.55);
  transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
  border-color: rgba(185,31,85,0.45);
}

.chip span:last-child {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
}

.chip-3d {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #ffffff 0%, #ffd1df 52%, #b91f55 100%);
  box-shadow:
    inset 0 3px 6px rgba(255,255,255,0.9),
    inset 0 -8px 14px rgba(0,0,0,0.16),
    0 10px 18px rgba(0,0,0,0.15);
}

.chip-video .chip-3d {
  background: linear-gradient(145deg, #ffffff 0%, #ddebff 52%, #5d9cec 100%);
}

.chip-code .chip-3d {
  background: linear-gradient(145deg, #ffffff 0%, #efe7ff 52%, #8b68db 100%);
}

.chip-audio .chip-3d {
  background: linear-gradient(145deg, #ffffff 0%, #fff0df 52%, #d99618 100%);
}

#skills .skill-bars,
#skills .skill-chips {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 70px rgba(0,0,0,0.18);
  backdrop-filter: blur(16px);
}

#skills .soft-skills-block {
  margin-top: 1.5rem;
}

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

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


/* ═══════════════════════════════════════════════════
   HERO PHOTO BALANCE FIX
   Makes the hero image area more balanced and polished
═══════════════════════════════════════════════════ */

.hero-inner {
  grid-template-columns: 1fr 420px;
  gap: 3rem;
}

.hero-text {
  max-width: 620px;
}

.photo-frame {
  width: 360px;
  height: 430px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.badge-1 {
  top: 10%;
  right: 10px;
}

.badge-2 {
  bottom: 22%;
  right: 8px;
}

.badge-3 {
  top: 42%;
  left: 10px;
}

.float-badge {
  z-index: 5;
}

.photo-ring.ring-outer {
  width: 430px;
  height: 430px;
}

.photo-ring.ring-inner {
  width: 390px;
  height: 390px;
}

.hero-stats {
  background: rgba(255, 255, 255, 0.62);
  padding: 1rem 1.3rem;
  border-radius: 22px;
  width: fit-content;
  box-shadow: 0 14px 36px rgba(185, 31, 85, 0.10);
  border: 1px solid rgba(185, 31, 85, 0.12);
}

.scroll-hint {
  bottom: 1.2rem;
  opacity: 0.35;
}

/* Better hero balance on large screens */
@media (min-width: 1200px) {
  .hero-inner {
    gap: 4rem;
  }

  .hero-photo {
    transform: translateX(-20px);
  }
}

/* Tablet responsive fix */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-ctas,
  .hero-stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-photo {
    margin: 0 auto;
    transform: none;
  }
}

/* Mobile responsive fix */
@media (max-width: 560px) {
  .photo-frame {
    width: 280px;
    height: 350px;
  }

  .photo-ring.ring-outer {
    width: 330px;
    height: 330px;
  }

  .photo-ring.ring-inner {
    width: 300px;
    height: 300px;
  }

  .float-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }
}


/* ═══════════════════════════════════════════════════
   PROJECT DETAILS POPUP
═══════════════════════════════════════════════════ */

.project-detail-btn {
  border: none;
  font-family: var(--font-body);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-modal.open {
  display: flex;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 17, 15, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFade 0.25s ease forwards;
}

.project-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(185,31,85,0.12), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #fff3e8 100%);
  border: 1px solid rgba(185,31,85,0.18);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 30px 90px rgba(23, 17, 15, 0.28);
  animation: modalPop 0.28s var(--spring) forwards;
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(185,31,85,0.10);
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  transition: all 0.25s var(--ease);
}

.project-modal-close:hover {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-project-type {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(185,31,85,0.12), rgba(255,209,223,0.8));
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.project-modal-card h3 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-right: 2.5rem;
}

.modal-detail-grid {
  display: grid;
  gap: 0.9rem;
}

.modal-detail-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(185,31,85,0.12);
  box-shadow: 0 10px 26px rgba(88,54,48,0.08);
}

.modal-detail-item span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.modal-detail-item p {
  color: #51453f;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-contact-btn {
  margin-top: 1.35rem;
  width: 100%;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .project-modal-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .project-modal-card h3 {
    padding-right: 2rem;
  }
}


/* ═══════════════════════════════════════════════════
   MOBILE COMPACT REFINEMENT
   Makes the mobile layout smaller, cleaner, and concise
═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --section-pad: 3.2rem;
  }

  html {
    font-size: 15px;
  }

  .container {
    padding: 0 1.1rem;
  }

  section {
    padding: 3.2rem 0;
  }

  /* Navigation */
  .nav-inner {
    padding: 0.85rem 1rem;
  }

  .logo-initials {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .logo-name {
    font-size: 0.95rem;
  }

  .btn-nav {
    display: none;
  }

  /* Hero */
  #hero {
    min-height: auto;
    padding: 6.2rem 1rem 3rem;
    align-items: flex-start;
  }

  .hero-inner {
    gap: 2rem;
  }

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

  .hero-eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.11em;
    margin-bottom: 0.7rem;
  }

  .hero-name {
    font-size: clamp(3rem, 18vw, 4.4rem);
    margin-bottom: 0.85rem;
    line-height: 0.95;
  }

  .hero-roles {
    margin-bottom: 1rem;
  }

  .role-tag {
    font-size: 0.78rem;
    padding: 0.38rem 1rem;
  }

  .hero-intro {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 95%;
    margin: 0 auto 1.35rem;
  }

  .hero-ctas {
    gap: 0.7rem;
    margin-bottom: 1.4rem;
  }

  .btn {
    padding: 0.72rem 1.25rem;
    font-size: 0.82rem;
  }

  .hero-stats {
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
    border-radius: 16px;
  }

  .stat-num {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .stat-divider {
    height: 28px;
  }

  .hero-photo {
    margin-top: 0.2rem;
  }

  .photo-frame {
    width: 240px;
    height: 290px;
  }

  .profile-photo {
    object-position: center 32%;
  }

  .photo-ring.ring-outer {
    width: 285px;
    height: 285px;
  }

  .photo-ring.ring-inner {
    width: 255px;
    height: 255px;
  }

  .float-badge {
    font-size: 0.62rem;
    padding: 0.28rem 0.55rem;
    gap: 0.2rem;
  }

  .badge-1 {
    top: 8%;
    right: -2px;
  }

  .badge-2 {
    bottom: 20%;
    right: -2px;
  }

  .badge-3 {
    top: 43%;
    left: -2px;
  }

  .scroll-hint {
    display: none;
  }

  /* Section headings */
  .section-header {
    margin-bottom: 2rem;
  }

  .section-label {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }

  .section-heading {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    margin-bottom: 0.65rem;
  }

  .section-sub {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  /* About */
  .about-inner {
    gap: 2.2rem;
  }

  .about-card-grid {
    gap: 0.7rem;
    margin-bottom: 1rem;
  }

  .about-accent-card {
    padding: 1rem;
    border-radius: 14px;
  }

  .about-accent-card p {
    font-size: 0.78rem;
  }

  .accent-icon,
  .icon-3d {
    width: 38px;
    height: 38px;
  }

  .about-quote-block {
    padding: 0.95rem 1rem;
  }

  .about-quote-block blockquote {
    font-size: 0.9rem;
  }

  .about-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .about-body {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .about-values {
    gap: 0.4rem;
    margin: 1rem 0 1.3rem;
  }

  .value-pill {
    font-size: 0.74rem;
    padding: 0.32rem 0.75rem;
  }

  /* Services */
  .services-grid {
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem 1.1rem 1.45rem;
    border-radius: 18px;
  }

  .icon-cube,
  .service-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    margin-bottom: 0.8rem;
  }

  .service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }

  .service-card p {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  .service-list {
    gap: 0.25rem;
  }

  .service-list li {
    font-size: 0.76rem;
  }

  /* Portfolio */
  .portfolio-filters {
    gap: 0.45rem;
    margin-bottom: 1.6rem;
  }

  .filter-btn {
    font-size: 0.72rem;
    padding: 0.42rem 0.78rem;
  }

  .portfolio-grid {
    gap: 1rem;
  }

  .project-img {
    height: 160px;
  }

  .project-emoji {
    width: 64px;
    height: 64px;
    font-size: 2.1rem;
    border-radius: 20px;
  }

  .project-info {
    padding: 1rem;
  }

  .project-tag {
    font-size: 0.62rem;
    margin-bottom: 0.3rem;
  }

  .project-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .project-info p {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .project-view-btn {
    font-size: 0.74rem;
    padding: 0.55rem 1rem;
  }

  .portfolio-cta {
    margin-top: 2rem;
    gap: 0.8rem;
  }

  .portfolio-cta p {
    font-size: 0.9rem;
  }

  /* Skills */
  .skills-layout {
    gap: 1.2rem;
  }

  .skill-bars,
  .skill-chips {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .skills-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .skill-item {
    margin-bottom: 0.85rem;
  }

  .skill-meta {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
  }

  .skill-track {
    height: 8px;
  }

  .updated-chips-grid,
  .chips-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .chip {
    min-height: 58px;
    padding: 0.68rem 0.75rem;
    border-radius: 14px;
  }

  .chip-3d {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.05rem;
    border-radius: 12px;
  }

  .chip span:last-child {
    font-size: 0.78rem;
  }

  .soft-skills-block {
    margin-top: 1rem;
    padding: 1rem;
  }

  .soft-skills-block h4 {
    font-size: 0.92rem;
    margin-bottom: 0.7rem;
  }

  .soft-skill-pills {
    gap: 0.4rem;
  }

  .soft-skill-pills span {
    font-size: 0.72rem;
    padding: 0.32rem 0.65rem;
  }

  /* Contact */
  .contact-inner {
    gap: 2rem;
  }

  .contact-intro {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .contact-methods {
    gap: 0.75rem;
    margin-top: 1.1rem;
  }

  .contact-method {
    padding: 0.85rem;
    border-radius: 16px;
  }

  .method-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .method-label {
    font-size: 0.7rem;
  }

  .method-value {
    font-size: 0.82rem;
  }

  .contact-form {
    padding: 1.2rem;
    border-radius: 20px;
  }

  .form-group {
    margin-bottom: 0.85rem;
  }

  .form-group label {
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 12px;
  }

  .form-group textarea {
    min-height: 105px;
  }

  .form-error,
  .form-success {
    font-size: 0.78rem;
  }

  /* Project popup */
  .project-modal {
    padding: 0.8rem;
  }

  .project-modal-card {
    width: min(440px, 100%);
    padding: 1.25rem;
    border-radius: 20px;
  }

  .project-modal-close {
    width: 32px;
    height: 32px;
    font-size: 1.35rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  .modal-project-type {
    font-size: 0.62rem;
    padding: 0.32rem 0.7rem;
    margin-bottom: 0.7rem;
  }

  .project-modal-card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
    padding-right: 2rem;
  }

  .modal-detail-grid {
    gap: 0.65rem;
  }

  .modal-detail-item {
    padding: 0.75rem;
    border-radius: 14px;
  }

  .modal-detail-item span {
    font-size: 0.62rem;
    margin-bottom: 0.25rem;
  }

  .modal-detail-item p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .modal-contact-btn {
    margin-top: 0.95rem;
  }

  /* Footer and back to top */
  footer,
  .footer {
    padding: 1.2rem 1rem;
    font-size: 0.78rem;
  }

  #backToTop {
    width: 38px;
    height: 38px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Extra tiny phones */
@media (max-width: 380px) {
  .hero-name {
    font-size: 2.8rem;
  }

  .photo-frame {
    width: 220px;
    height: 270px;
  }

  .photo-ring.ring-outer {
    width: 260px;
    height: 260px;
  }

  .photo-ring.ring-inner {
    width: 235px;
    height: 235px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-divider {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .hero-ctas {
    width: 100%;
  }
}
