:root {
  --bg: #f6f7f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panelSolid: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.66);
  --line: rgba(15, 23, 42, 0.1);

  --accent: #5f8f8a; /* muted green */
  --accent2: #4b7f7a;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow2: 0 8px 18px rgba(15, 23, 42, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 50% -100px,
      rgba(95, 143, 138, 0.18),
      transparent 60%
    ),
    linear-gradient(#ffffff, var(--bg));
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.85;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(246, 247, 247, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #9cc8c3);
}
.brand__text {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.74);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: white;
  box-shadow: 0 10px 18px rgba(95, 143, 138, 0.25);
}
.btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  box-shadow: var(--shadow2);
}

.hero {
  padding: 84px 0 44px;
}
.hero__inner {
  text-align: center;
}
.hero__photo {
  width: 586px;
  height: 586px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  border: 0;
  box-shadow: none;
  margin-bottom: 55px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(14px, 2vw, 34px);
  letter-spacing: -0.8px;
}
.hero__sub {
  margin: 14px 0 26px;
  color: var(--muted);
  font-size: 16px;
}
.dot {
  opacity: 0.45;
  margin: 0 6px;
}
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 72px 0;
}
.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.section__head {
  margin-bottom: 22px;
}

.section__head h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.4px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  padding: 18px;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 143, 138, 0.12);
  margin-bottom: 12px;
  color: rgba(95, 143, 138, 0.95);
}

.icon svg {
  width: 22px;
  height: 22px;
}
.feature__title {
  font-weight: 700;
  margin-bottom: 6px;
}
.feature__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 16px;
}
.grid--projects {
  grid-template-columns: repeat(2, 1fr);
}
.project {
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.project--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.project--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
.project__img {
  position: relative;
  background: rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.project__img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project--video .project__img img {
  cursor: pointer;
}
.project--video:hover .project__img img {
  transform: scale(1.02);
}
.project__playOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.3);
  opacity: 1;
  transition: background 0.3s ease;
  pointer-events: none;
}
.project--video:hover .project__playOverlay {
  background: rgba(15, 23, 42, 0.4);
}
.project__playButton {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project--video:hover .project__playButton {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}
.project__playText {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(15, 23, 42, 0.3);
}
.project__playHint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: bounceHint 2s ease-in-out infinite;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
@keyframes bounceHint {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.project__body {
  padding: 16px 16px 18px;
}
.project__body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.project__body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chips--dense .chip {
  padding: 6px 10px;
}
.chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.metric {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  padding-left: 10px;
  position: relative;
}
.metric::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(95, 143, 138, 0.75);
  position: absolute;
  left: 0;
  top: 6px;
}

.note {
  margin-top: 18px;
  text-align: center;
  color: rgba(15, 23, 42, 0.7);
}
.sep {
  opacity: 0.45;
  margin: 0 10px;
}

.about {
  display: block;
}

.about__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 18px;
}

.about__title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.6px;
}

.about__subtitle {
  margin: 10px 0 0;
  font-size: 15px;
}

.about__heroMedia {
  overflow: hidden;
  margin: 18px auto 14px;
  max-width: 980px;
  padding: 18px;
}

.about__heroMedia img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 6px);
}

.about__profileMeta {
  text-align: center;
  margin: 8px 0 22px;
}

.about__name {
  font-weight: 800;
  font-size: 18px;
}

.about__role {
  margin-top: 6px;
  font-size: 14px;
}

.about__meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.about__links {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.74);
  font-size: 14px;
}
.about__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about__card {
  padding: 16px;
}
.about__cardTitle {
  font-weight: 700;
  margin-bottom: 10px;
}
.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.profile {
  overflow: hidden;
}
.profile__img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.profile__body {
  padding: 16px;
}
.profile__name {
  font-weight: 800;
  font-size: 18px;
}
.profile__role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.profile__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(95, 143, 138, 0.1);
  border: 1px solid rgba(95, 143, 138, 0.18);
  color: rgba(15, 23, 42, 0.72);
}
.profile__links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  color: rgba(15, 23, 42, 0.74);
  font-size: 14px;
}

.grid--skills {
  grid-template-columns: repeat(2, 1fr);
}
.skill {
  padding: 16px;
}
.skill__title {
  font-weight: 700;
  margin-bottom: 10px;
}

.grid--edu {
  grid-template-columns: repeat(2, 1fr);
}
.edu {
  padding: 16px;
}
.edu__title {
  font-weight: 800;
}
.edu__meta {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}
.edu__desc {
  margin-top: 8px;
  font-size: 14px;
}

.contact {
  padding: 16px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.contact__label {
  font-weight: 700;
  margin-top: 10px;
}
.contact__value {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.72);
}
/* Contact form removed */
.footer {
  margin-top: 22px;
  text-align: center;
}
.footer__links {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(15, 23, 42, 0.74);
  transition: opacity 0.2s ease, color 0.2s ease;
}
.footer__link:hover {
  opacity: 0.85;
  color: var(--accent);
}
.footer__link svg {
  flex-shrink: 0;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .grid--projects {
    grid-template-columns: 1fr;
  }
  .about__heroMedia img {
    height: 240px;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .grid--skills {
    grid-template-columns: 1fr;
  }
  .grid--edu {
    grid-template-columns: 1fr;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Video Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.lightbox--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox__content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  background: #000;
}

.lightbox__close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1002;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.project--video {
  cursor: pointer;
}
