*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --bg: #0e0b16;
  --accent: #e8c8a8;
  --accent2: #c9a0d0;
  --text: #f0ece6;
  --muted: rgba(240,236,230,0.44);
  --card-w: 280px;
  --card-h: 420px;
  --gap: 20px;
}

/* Force immediate font rendering */
@font-face {
  font-family: 'Cormorant Garamond';
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  font-display: swap;
}

/* Contain layout calculations */
.swiper-slide {
  contain: layout style paint;
}

/* Reduce backdrop-filter on initial load */
.link-card {
  backdrop-filter: blur(8px) brightness(1.05);
  -webkit-backdrop-filter: blur(8px) brightness(1.05);
}

/* Mobile responsive card sizing */
@media (max-width: 640px) {
  :root {
    --card-w: 260px;
    --card-h: 380px;
    --gap: 16px;
  }
}

html, body {
  height: 100%; width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ══════════════════════════════════════
   BACKGROUND - OPTIMIZED BLOBS
══════════════════════════════════════ */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #2c241e 0%, #1a1510 100%);
  overflow: hidden;
  will-change: transform;
}

.blob {
  position: absolute; border-radius: 50%;
  mix-blend-mode: screen; 
  filter: blur(60px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  opacity: 0.6;
  will-change: transform;
}

/* Reduced to 3 blobs, slower animations (8-12s) */
.b1 { width:600px; height:600px; background:radial-gradient(circle,#6a0dad 0%,#300050 60%,transparent 100%); top:-10%; left:-10%; animation: b1 10s infinite alternate; }
.b2 { width:550px; height:550px; background:radial-gradient(circle,#a020f0 0%,#4b0082 60%,transparent 100%); top:20%; right:-10%; animation: b2 12s infinite alternate; }
.b3 { width:500px; height:500px; background:radial-gradient(circle,#b026ff 0%,#440088 60%,transparent 100%); bottom:-10%; left:10%; animation: b3 8s infinite alternate; }

@keyframes b1 { to { transform: translate(40vw, 30vh) scale(1.15); } }
@keyframes b2 { to { transform: translate(-35vw, 25vh) scale(1.1); } }
@keyframes b3 { to { transform: translate(35vw, -30vh) scale(1.2); } }

.sparks {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, #f5f5dc 0%, transparent 100%),
    radial-gradient(2px 2px at 85% 75%, #fffdd0 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 85%, #6a0dad 0%, transparent 100%),
    radial-gradient(2px 2px at 25% 55%, #fff 0%, transparent 100%);
  opacity: 0.3;
}

/* ══════════════════════════════════════
   APP SHELL
══════════════════════════════════════ */
.app {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
}

/* ── HEADER ── */
.profile {
  flex-shrink: 0;
  padding: 40px 24px 10px;
  text-align: center;
}

.profile-photo {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform, box-shadow;
  
  /* SIMPLIFIED GLASS */
  background:
  url('https://cdn.staticrun.app/89601062-93b2-4049-b188-25a9b170214c/8f1c0d3d-814d-48d4-ad02-718f6e7be525/profile.png') center/cover no-repeat,
  rgba(255,255,255,0.04);
  backdrop-filter: blur(8px) brightness(1.04);
  -webkit-backdrop-filter: blur(8px) brightness(1.04);
  
  /* REDUCED SHADOWS (3 layers instead of 10) */
  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 40px rgba(180,110,255,0.25);
}

.profile-photo::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(138deg, rgba(155,200,255,0.4) 0%, rgba(255,255,255,0.15) 50%, rgba(125,75,255,0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

.profile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 5;
}

/* SIMPLIFIED GLOW (2 keyframes instead of 4) */
.profile-photo {
  animation: photoGlow 4s ease-in-out infinite;
}

@keyframes photoGlow {
  0%, 100% { 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 40px rgba(180,110,255,0.25);
  }
  50% { 
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 50px rgba(100,180,255,0.35);
  }
}

.profile-photo:hover {
  transform: scale(1.05);
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.1em, 5.5vw, 3.2em);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1;
  background: linear-gradient(130deg,#fff 0%,var(--accent) 55%,var(--accent2) 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-tag {
  margin-top: 8px;
  font-size: 0.7em;
  color: var(--muted);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 300;
}

.tagline {
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1em;
  color: rgba(240,236,230,0.35);
  letter-spacing: 0.04em;
}

.profile-label {
  margin-top: 6px;
  font-size: 0.75em;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(232,200,168,0.08);
  border: 1px solid rgba(232,200,168,0.15);
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ══════════════════════════════════════
   SWIPER
══════════════════════════════════════ */
.lower {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding-bottom: 24px;
}

.swiper {
  width: 100%;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  position: relative;
  height: var(--card-h);
  overflow: visible;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.swiper:active { cursor: grabbing; }

.swiper-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* SIMPLIFIED GLOW (2 keyframes) */
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(180,100,255,0.2), 0 0 45px rgba(255,80,180,0.12); }
  50% { box-shadow: 0 0 30px rgba(100,180,255,0.25), 0 0 60px rgba(0,200,255,0.15); }
}

/* ══════════════════════════════════════
   SLIDE
══════════════════════════════════════ */
.swiper-slide {
  position: absolute;
  width: var(--card-w);
  height: var(--card-h);
  flex-shrink: 0;
  border-radius: 22px;
  transition: transform 0.52s cubic-bezier(0.4,0,0.2,1), opacity 0.52s ease, filter 0.52s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  cursor: pointer;
  animation: cardGlow 5s ease-in-out infinite;
  will-change: transform, box-shadow;
  contain: layout style;
}

.swiper-slide:nth-child(1) { animation-delay: 0s; }
.swiper-slide:nth-child(2) { animation-delay: 1s; }
.swiper-slide:nth-child(3) { animation-delay: 2s; }
.swiper-slide:nth-child(4) { animation-delay: 3s; }
.swiper-slide:nth-child(5) { animation-delay: 4s; }

/* Active card extra glow */
.swiper-slide.active-glow {
  box-shadow: 
    0 0 40px rgba(232,200,168,0.3),
    0 0 80px rgba(201,160,208,0.2) !important;
}

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%; height: 100%;
  border-radius: 22px;
  padding: 24px 22px 20px;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* OPTIMIZED GLASS (blur reduced 12px → 6px) */
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px) brightness(1.04);
  -webkit-backdrop-filter: blur(6px) brightness(1.04);

  /* REDUCED SHADOWS (4 layers instead of 8) */
  box-shadow:
    0 25px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.08);

  transition: box-shadow 0.3s ease;
}

.link-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(138deg, rgba(155,200,255,0.4) 0%, rgba(255,255,255,0.15) 50%, rgba(125,75,255,0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

/* Remove ::after caustic - not worth the performance cost */

/* SIMPLIFIED SHIMMER */
.link-card .shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}
.link-card .shine::after {
  content: '';
  position: absolute; top: 0; left: -120%; width: 75%; height: 100%;
  background: linear-gradient(108deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  animation: sweep 10s ease-in-out infinite;
}
@keyframes sweep {
  0%   { left:-120%; }
  10%  { left:160%; }
  100% { left:160%; }
}

.link-card .tint {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; z-index: 1;
}
.about    .tint { background: linear-gradient(150deg,rgba(195,105,175,0.12)0%,rgba(110,55,200,0.05)100%); }
.portfolio .tint { background: linear-gradient(150deg,rgba(135,75,220,0.12)0%,rgba(195,95,155,0.05)100%); }
.services  .tint { background: linear-gradient(150deg,rgba(175,115,55,0.13)0%,rgba(215,155,75,0.05)100%); }
.experience .tint { background: linear-gradient(150deg,rgba(55,125,210,0.12)0%,rgba(95,75,220,0.05)100%); }
.contact   .tint { background: linear-gradient(150deg,rgba(55,175,155,0.10)0%,rgba(35,135,195,0.04)100%); }

/* CARD CONTENT */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative; z-index: 5;
}

.card-label {
  font-size: 0.68em;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 400;
  line-height: 1.3;
}

.social-icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.social-icon svg {
  width: 17px; height: 17px;
  stroke-width: 1.6;
  color: rgba(255,255,255,0.85);
}

.card-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 0 6px;
  position: relative; z-index: 5;
}

.card-icon {
  font-size: 2.6em;
  display: block;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  line-height: 1;
}

.card-main-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.15em;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 9px;
}

.card-description {
  font-size: 0.82em;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; z-index: 5;
  margin-top: 18px;
}

.arrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 18px;
  border-radius: 100px;
  font-size: 0.76em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.arrow-pill svg {
  width: 13px; height: 13px;
  stroke-width: 2.2;
  transition: transform 0.2s ease;
}
.swiper-slide:hover .arrow-pill {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.swiper-slide:hover .arrow-pill svg {
  transform: translate(2px, -2px);
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.swiper-pagination {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}
.swiper-pagination-bullet {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  border: none; padding: 0;
  transition: all 0.35s cubic-bezier(0.34,1.2,0.64,1);
}
.swiper-pagination-bullet-active {
  background: var(--accent);
  width: 20px;
  border-radius: 3px;
}

/* ══════════════════════════════════════
   OVERLAY
══════════════════════════════════════ */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column;
  transform: translateY(102%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  
  /* OPTIMIZED GLASS */
  background: rgba(10,7,19,0.7);
  backdrop-filter: blur(8px) brightness(1.03);
  -webkit-backdrop-filter: blur(8px) brightness(1.03);
  
  /* REDUCED SHADOWS */
  box-shadow:
    0 0 100px rgba(0,0,0,0.8) inset,
    0 0 0 1px rgba(255,255,255,0.06);
}

.overlay.open { transform: translateY(0); }

.overlay::before {
  content: '';
  position: fixed;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(155,200,255,0.25) 0%, rgba(255,255,255,0.08) 50%, rgba(125,75,255,0.18) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.ov-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px 14px;
  position: sticky; top: 0;
  flex-shrink: 0;
  z-index: 10;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.ov-back {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.76em; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted); background: none; border: none; cursor: pointer;
  font-family: 'DM Sans',sans-serif; transition: color 0.2s;
}
.ov-back:hover { color: var(--text); }
.ov-sect { font-size: 0.66em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.ov-body {
  flex: 1; padding: 32px 28px 72px;
  max-width: 680px; width: 100%; margin: 0 auto;
}
.ov-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.3em,6.5vw,3.6em);
  font-weight: 300; line-height: 1;
  letter-spacing: -0.02em; margin-bottom: 26px;
  background: linear-gradient(130deg,#fff 0%,var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ov-p { font-size: 0.94em; line-height: 1.9; color: rgba(240,236,230,0.72); margin-bottom: 16px; font-weight: 300; }

.ov-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 11px; margin: 22px 0; }
.ov-tile {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.2s;
}
.ov-tile:hover {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.ov-tile-ico { font-size:1.75em; margin-bottom:8px; display:block; }
.ov-tile-t { color:#fff; font-size:0.87em; font-weight:500; margin-bottom:4px; }
.ov-tile-d { color:var(--muted); font-size:0.76em; line-height:1.5; }

.ov-photos { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; margin:18px 0; }
.ov-photo { 
  border-radius:15px; 
  overflow:hidden; 
  position:relative; 
  cursor:pointer; 
  transition:transform 0.25s ease;
}
.ov-photo:hover { transform:scale(1.03); }
.ov-photo:first-child { grid-column:span 2; }
.ov-photo-bg { 
  width: 100%; 
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ov-photo:not(:first-child) .ov-photo-bg { aspect-ratio: 1; }
.ov-photo-lbl {
  position:absolute; bottom:0; left:0; right:0;
  padding:16px 14px 12px;
  background:linear-gradient(to top,rgba(0,0,0,0.7) 0%,transparent 100%);
  font-family:'Cormorant Garamond',serif; font-size:1.1em; font-weight:300;
}

.ov-svcs { display:flex; flex-direction:column; gap:9px; margin:18px 0; }
.ov-svc {
  display:flex; align-items:flex-start; gap:13px;
  padding:16px 18px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.ov-svc:hover {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 5px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.14);
}
.ov-svc-ico { font-size:1.55em; flex-shrink:0; margin-top:2px; }
.ov-svc-t { color:#fff; font-size:0.9em; font-weight:500; margin-bottom:4px; }
.ov-svc-d { color:var(--muted); font-size:0.8em; line-height:1.55; }

.ov-form { display:flex; flex-direction:column; gap:11px; margin-top:20px; }
.ov-inp, .ov-ta {
  width:100%; padding:13px 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  color:#fff; font-size:0.91em; font-family:'DM Sans',sans-serif;
  outline:none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.ov-inp::placeholder, .ov-ta::placeholder { color:rgba(255,255,255,0.27); }
.ov-inp:focus, .ov-ta:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(232,200,168,0.3);
  box-shadow: 0 0 0 3px rgba(232,200,168,0.06);
}
.ov-ta { min-height:115px; resize:vertical; }
.ov-btn {
  padding:14px; border-radius:12px; background:rgba(232,200,168,0.1);
  border:1px solid rgba(232,200,168,0.22); 
  color:var(--accent); font-size:0.8em; font-weight:500;
  letter-spacing:0.16em; text-transform:uppercase; cursor:pointer;
  font-family:'DM Sans',sans-serif; transition:all 0.2s;
}
.ov-btn:hover { background:rgba(232,200,168,0.16); transform:translateY(-2px); }

.ov-crows { display:flex; flex-direction:column; gap:8px; margin-top:20px; }
.ov-crow {
  display:flex; align-items:center; gap:13px; padding:14px 16px;
  background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
  border-radius:12px; backdrop-filter:blur(6px);
}
.ov-crow-l { color:var(--muted); font-size:0.7em; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:3px; }
.ov-crow-v { color:#fff; font-size:0.87em; }

/* ══════════════════════════════════════
   PHOTO VIEWER
══════════════════════════════════════ */
.overlay-photo-viewer .ov-body-photo-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  min-height: calc(100vh - 80px);
}

.photo-viewer-container {
  position: relative;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 75vh;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px) brightness(1.04);
  -webkit-backdrop-filter: blur(8px) brightness(1.04);
  
  box-shadow:
    0 30px 70px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 0 50px rgba(180,110,255,0.3);
  
  animation: photoViewerGlow 5s ease-in-out infinite;
  will-change: box-shadow;
}

.photo-viewer-container::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, rgba(155,200,255,0.4) 0%, rgba(255,255,255,0.15) 50%, rgba(125,75,255,0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

#photo-viewer-img {
  display: block;
  max-width: 90vw;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 5;
}

.photo-viewer-gradient {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
}

.photo-viewer-gradient.show {
  display: block;
}

@keyframes photoViewerGlow {
  0%, 100% { 
    box-shadow: 0 30px 70px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 50px rgba(180,110,255,0.3);
  }
  50% { 
    box-shadow: 0 30px 70px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.3), 0 0 60px rgba(100,180,255,0.4);
  }
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 640px) {
  .profile-photo {
    width: 90px;
    height: 90px;
    margin-bottom: 18px;
  }
  .profile {
    padding: 28px 20px 8px;
  }
  .profile-name {
    font-size: clamp(1.8em, 5vw, 2.4em);
  }
  .profile-tag {
    font-size: 0.64em;
    letter-spacing: 0.2em;
  }
  .tagline {
    font-size: 0.88em;
  }
  .profile-label {
    font-size: 0.68em;
    padding: 5px 12px;
  }
  .lower {
    gap: 20px;
    padding-bottom: 20px;
  }
  .swiper {
    perspective: 1000px;
    -webkit-perspective: 1000px;
  }
  .card-main-title {
    font-size: 1.85em;
  }
  .card-icon {
    font-size: 2.2em;
    margin-bottom: 12px;
  }
}
  
/* UTILITY CLASSES */
.bold {font-weight: bold;}
.italic { font-style: italic; }
.justify { text-align: justify; }

.icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.instagram { background-image: url('https://img.icons8.com/fluency/32/instagram-new.png'); }
.facebook { background-image: url('https://img.icons8.com/fluency/32/facebook-new.png'); }