/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg-card:   #111118;
  --bg-card2:  #16161f;
  --purple:    #7c3aed;
  --purple-lt: #a855f7;
  --pink:      #ec4899;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --border:    rgba(124,58,237,.25);
  --radius:    16px;
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ===== UTILITIES ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-lt), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--purple-lt);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: .75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(124,58,237,.45);
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.2);
  color: #fff;
}
.btn--outline:hover {
  border-color: var(--purple-lt);
  color: var(--purple-lt);
  transform: translateY(-3px);
}

.tag {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(124,58,237,.15);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--purple-lt);
  margin: .25rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--purple-lt); }

.nav { display: flex; gap: 2rem; }

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple-lt), var(--pink));
  transition: width var(--transition);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link.active { color: #fff; }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(10,10,15,.97);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu__link {
  padding: .85rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero__bg-glow--left {
  background: radial-gradient(circle, rgba(124,58,237,.35) 0%, transparent 70%);
  top: 0; left: -150px;
}
.hero__bg-glow--right {
  background: radial-gradient(circle, rgba(236,72,153,.2) 0%, transparent 70%);
  top: 100px; right: -100px;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero__content { flex: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1.1rem;
  background: rgba(124,58,237,.15);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.badge__dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero__title--white { color: #fff; }

.hero__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* photo ring */
.hero__photo-wrap { flex: 0 0 auto; }

.hero__ring {
  position: relative;
  width: 320px; height: 320px;
}

.hero__ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--purple) 0%,
    var(--pink)   50%,
    #1e1b4b      50%,
    var(--purple) 100%
  );
  padding: 5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: rotate 8s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

.hero__photo-placeholder {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__photo-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero__avatar-icon { font-size: 5rem; }

/* floating tags */
.hero__tag {
  position: absolute;
  background: rgba(17,17,24,.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.hero__tag--top    { top: -10px;  left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.hero__tag--right  { right: -20px; top: 50%; transform: translateY(-50%); animation-delay: .75s; }
.hero__tag--bottom { bottom: -10px; left: 50%; transform: translateX(-50%); animation-delay: 1.5s; }
.hero__tag--left   { left: -20px; top: 50%; transform: translateY(-50%); animation-delay: 2.25s; }

@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}
.hero__tag--right, .hero__tag--left {
  animation-name: floatY;
}
@keyframes floatY {
  0%,100% { transform: translateY(-50%); }
  50%      { transform: translateY(calc(-50% - 8px)); }
}

/* stats */
.hero__stats {
  display: flex;
  gap: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-lt), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat-plus {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pink);
}
.hero__stat p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--bg-card);
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about__photo-col { flex: 0 0 auto; }

.about__photo-frame {
  position: relative;
  width: 280px;
  flex-shrink: 0;
}

.about__photo-img {
  display: block;
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  border: 2px solid var(--border);
}

.about__photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: var(--radius);
  background: radial-gradient(
    ellipse,
    rgba(124, 58, 237, .2) 0%,
    transparent 70%
  );
  z-index: -1;
  pointer-events: none;
}

.about__text-col { flex: 1; }

.about__role {
  color: var(--purple-lt);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.about__bio {
  color: var(--text-muted);
  margin-bottom: .85rem;
  line-height: 1.7;
}

.about__tags { margin-top: 1.25rem; }

/* ===== SKILLS ===== */
.skills {
  padding: 100px 0;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124,58,237,.25);
  border-color: rgba(168,85,247,.5);
}

.skill-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card__info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.skill-card__info p {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .85rem;
}

.skill-card__bar {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}
.skill-card__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}

/* ===== RESUME ===== */
.resume {
  padding: 100px 0;
  background: var(--bg-card);
}

.resume__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}

.resume__col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-lt);
  margin-bottom: 1.5rem;
}

.resume__item {
  position: relative;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  margin-bottom: 1.75rem;
  padding-bottom: .25rem;
}
.resume__item::before {
  content: '';
  position: absolute;
  left: -6px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.resume__year {
  font-size: .78rem;
  color: var(--purple-lt);
  font-weight: 600;
  display: block;
  margin-bottom: .3rem;
}

.resume__item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}

.resume__item p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0 80px;
  text-align: center;
}

.contact__card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact__social-btn,
.contact__email {
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Inter', sans-serif;
}

.contact__social-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.6rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
}

.contact__social-btn:hover {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
}

button.contact__email {
  display: block;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  padding: .5rem 1rem;
  margin: .5rem auto 0;
  width: fit-content;
  text-align: center;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition), transform var(--transition);
}

button.contact__email:hover {
  opacity: .75;
  transform: scale(1.03);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ===== AOS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate  { transform: translateX(0); }

/* ===== CERTIFICATES ===== */
.certs {
  padding: 100px 0;
  background: var(--bg);
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition),
              box-shadow  var(--transition),
              border-color var(--transition);
}
.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124,58,237,.3);
  border-color: rgba(168,85,247,.6);
}

.cert-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-card2);
}

.cert-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  z-index: 1;
}
.cert-card:hover .cert-card__img {
  transform: scale(1.06);
}

.cert-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(124,58,237,.12),
    rgba(236,72,153,.08));
  border-bottom: 1px dashed var(--border);
  z-index: 0;
}
.cert-card__img[src]:not([src=""]) ~ .cert-card__placeholder {
  display: none;
}

.cert-card__placeholder-icon { font-size: 2.5rem; }

.cert-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}
.cert-card:hover .cert-card__overlay { opacity: 1; }

.cert-card__zoom {
  padding: .6rem 1.4rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: 'Inter', sans-serif;
}
.cert-card__zoom:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(124,58,237,.5);
}

.cert-card__body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.cert-card__badge {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(124,58,237,.18);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--purple-lt);
  margin-bottom: .6rem;
}

.cert-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
  line-height: 1.4;
}

.cert-card__meta {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ===== PROJECTS ===== */
.projects {
  padding: 100px 0;
  background: var(--bg-card);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition),
              box-shadow  var(--transition),
              border-color var(--transition);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(124,58,237,.3);
  border-color: rgba(168,85,247,.6);
}

.project-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card2);
  flex-shrink: 0;
}

.project-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .5s ease;
  z-index: 1;
}
.project-card:hover .project-card__img {
  transform: scale(1.05);
}

.project-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  background: linear-gradient(135deg,
    rgba(124,58,237,.1),
    rgba(236,72,153,.07));
  z-index: 0;
}
.project-card__placeholder span:first-child { font-size: 2rem; }
.project-card__img[src]:not([src=""])
  ~ .project-card__placeholder { display: none; }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
  backdrop-filter: blur(3px);
}
.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__btn {
  padding: .65rem 1.4rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.project-card__btn:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 24px rgba(124,58,237,.5);
}

.project-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.project-card__desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .25rem;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(168,85,247,.4);
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .35s ease,
              visibility .35s ease,
              transform .35s ease,
              background .25s ease,
              box-shadow .25s ease,
              border-color .25s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(124,58,237,.55);
  transform: translateY(-3px);
}

.scroll-top:active {
  transform: translateY(0) scale(.95);
}

.scroll-top.is-visible::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  opacity: 0;
  z-index: -1;
  animation: scrollTopGlow 2.5s ease-in-out infinite;
}

@keyframes scrollTopGlow {
  0%, 100% { opacity: 0;    transform: scale(1);    }
  50%       { opacity: .15; transform: scale(1.12); }
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(.85);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.lightbox.is-open .lightbox__content {
  transform: scale(1);
}

.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  border: 1px solid rgba(168,85,247,.3);
}

.lightbox__img {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__caption {
  color: var(--text-muted);
  font-size: .9rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.lightbox__close:hover {
  background: rgba(236,72,153,.5);
  transform: rotate(90deg) scale(1.1);
}

.cert-card__img-wrap[data-lightbox] { cursor: zoom-in; }

/* ===== АДАПТИВ 900px ===== */
@media (max-width: 900px) {
  .hero__inner        { flex-direction: column; text-align: center; }
  .hero__desc         { margin: 0 auto 2rem; }
  .hero__btns         { justify-content: center; }
  .hero__ring         { width: 260px; height: 260px; }
  .about__inner       { flex-direction: column; align-items: center; text-align: center; }
  .about__photo-placeholder { width: 220px; height: 270px; }
  .resume__grid       { grid-template-columns: 1fr; gap: 2rem; }
  .projects__grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ===== АДАПТИВ 600px ===== */
@media (max-width: 600px) {
  .nav                { display: none; }
  .burger             { display: flex; }
  .hero__stats        { gap: 1.5rem; }
  .footer__inner      { flex-direction: column; text-align: center; }
  .certs__grid        { grid-template-columns: 1fr; }
  .projects__grid     { grid-template-columns: 1fr; }
  .scroll-top         { bottom: 24px; right: 20px; width: 42px; height: 42px; border-radius: 12px; }
  section             { padding: 60px 0 !important; }
}