/* =========================================================
   MODERN PORTFOLIO · STYLESHEET
   ========================================================= */

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-soft: #f9fcff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #8b5cf6;
  --border: #eef2f6;
  --border-strong: #e2e8f0;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
  --badge-bg: #eef2ff;
  --badge-text: #1e40af;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-card: #131c31;
  --bg-soft: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-soft: #94a3b8;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --accent: #a78bfa;
  --border: #1e293b;
  --border-strong: #1e293b;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
  --badge-bg: #1e293b;
  --badge-text: #93c5fd;
  --gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding: 5.5rem 1.5rem 2rem;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--border-strong);
  transition: background 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.75);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo i {
  color: var(--primary);
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--badge-bg);
}

.nav-actions {
  display: flex;
  gap: 0.6rem;
}

.theme-toggle,
.hamburger {
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

.hamburger { display: none; }

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---------- TYPOGRAPHY ---------- */
h2 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

h2 i {
  color: var(--primary);
  font-size: 1.5rem;
  width: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.75rem 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.lorem { color: var(--text-muted); font-size: 0.98rem; }
.lorem-sm { font-size: 0.88rem; color: var(--text-soft); }

.badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  border: 1px solid var(--border);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-strong);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: blur(1px) brightness(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(15, 23, 42, 0.7) 45%,
    rgba(59, 130, 246, 0.35) 100%
  );
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.9) 0%,
    rgba(11, 17, 32, 0.8) 45%,
    rgba(96, 165, 250, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: white;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.hero-eyebrow .badge {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.hero-left h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, #bfdbfe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.hero-subtitle strong { color: #bfdbfe; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.resume-btn.primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.resume-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.55);
}

.resume-btn.ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.resume-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta i {
  color: #93c5fd;
  margin-right: 0.4rem;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--badge-bg);
  color: var(--primary);
  font-size: 4rem;
  animation: float 5s ease-in-out infinite;
}

.avatar-placeholder:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 44px rgba(59, 130, 246, 0.5);
}

.avatar-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
}

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

/* ---------- HERO STRIP ---------- */
.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  padding: 0 2.5rem 2rem;
}

.hero-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.hero-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-thumb:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-4px);
}

.hero-thumb:hover img { transform: scale(1.12); }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

.about-chips {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about-photo {
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.about-photo:hover { transform: scale(1.02); }

.about-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

/* ---------- EXPERIENCE ITEMS ---------- */
.exp-item {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary);
  transition: padding-left 0.2s ease;
}

.exp-item:hover { padding-left: 1.5rem; }
.exp-item:last-child { margin-bottom: 0; }

.exp-title {
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--text);
}

.exp-title span:first-child { flex: 1 1 auto; min-width: 0; }

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

.exp-date {
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  padding: 0.2rem 0.75rem;
  border-radius: 30px;
  border: 1px solid var(--border);
}

.exp-desc {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.exp-photo,
.edu-photo {
  margin-top: 0.85rem;
  border-radius: 0.85rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.exp-photo:hover,
.edu-photo:hover { transform: scale(1.02); }

.exp-photo img,
.edu-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.exp-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.exp-photo-row .exp-photo { margin-top: 0; }
.exp-photo-row .exp-photo img { aspect-ratio: 4/3; }

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

.project-card {
  background: var(--bg-soft);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.project-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after { opacity: 1; }

.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img { transform: scale(1.08); }

.project-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.project-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.project-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mini-thumb {
  width: 70px;
  height: 70px;
  border-radius: 0.6rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: all 0.25s ease;
}

.mini-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.mini-thumb:hover {
  transform: scale(1.08);
  border-color: var(--primary);
}

/* ---------- PUBLICATION / CERT / REF ---------- */
.pub-card {
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: all 0.25s ease;
}

.pub-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.pub-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
  color: var(--text);
  line-height: 1.35;
}

.pub-journal {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.ref-item {
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--primary);
  transition: transform 0.2s ease;
}

.ref-item:hover { transform: translateX(4px); }

.ref-name { font-weight: 700; color: var(--text); }
.ref-title { font-size: 0.85rem; color: var(--text-soft); }

.ref-item a, .lorem-sm a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
}

/* ---------- SKILLS ---------- */
.skill-group { margin-bottom: 1.25rem; }
.skill-group:last-child { margin-bottom: 0; }

.skill-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-group-title i {
  color: var(--primary);
  width: 1.1rem;
  font-size: 0.9rem;
}

.skill-tag {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 0.4rem 0.95rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin: 0.2rem 0.3rem 0.2rem 0;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  right: 0.75rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- COMMUNITY ---------- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.community-item {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.community-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.community-item i {
  color: var(--primary);
  font-size: 1.35rem;
  margin-top: 0.15rem;
}

.community-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.community-meta {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.community-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary);
}

/* ---------- CONTACT ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .full { grid-column: 1 / -1; }

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.submit-btn {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.5);
}

/* ---------- BOTTOM DOWNLOAD ---------- */
.bottom-download {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- SCROLL TOP ---------- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.6);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lightboxIn 0.35s ease;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1.5rem; right: 1.5rem;
}

.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-nav.next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- FOOTER ---------- */
.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 2rem 0 0.5rem;
  border-top: 1px solid var(--border-strong);
  margin-top: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-strong);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 1rem; }
  .hamburger { display: flex; align-items: center; justify-content: center; }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem 1.5rem;
    text-align: center;
  }
  .hero-right { order: -1; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .avatar-wrapper, .avatar-placeholder { width: 140px; height: 140px; }
  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 1.75rem 1.75rem;
  }
  .hero-strip .hero-thumb:nth-child(n+4) { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .exp-photo-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { padding: 5rem 1rem 1.5rem; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip .hero-thumb:nth-child(n+3) { display: none; }
  .hero-left h1 { font-size: 2rem; }
  .avatar-wrapper, .avatar-placeholder { width: 110px; height: 110px; font-size: 3rem; }
  h2 { font-size: 1.35rem; }
  h2 i { font-size: 1.2rem; width: 1.5rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { display: none; }
  .exp-photo-row { grid-template-columns: 1fr 1fr; }
}