/* =========================
   GLOBAL RESET + SELECTION
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: rgb(205, 229, 255);
  color: #000;
}

body {
  background: #000;
}

/* Disable selection on non-text layers */
.section,
.gif-frame,
.gif-frame__img,
.gif-frame__overlay,
.gif-frame__blend {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Allow text selection */
.hero, .hero *,
.about, .about *,
.projects, .projects *,
.contact, .contact * {
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}

/* =========================
   FONTS
========================= */
@font-face {
  font-family: "Thuast";
  src: url("fonts/Thuast.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}


/* Google Sans */
@font-face {
  font-family: "GoogleSans";
  src: url("fonts/GoogleSans/GoogleSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "GoogleSans";
  src: url("fonts/GoogleSans/GoogleSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "GoogleSans";
  src: url("fonts/GoogleSans/GoogleSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "GoogleSans";
  src: url("fonts/GoogleSans/GoogleSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "GoogleSans";
  src: url("fonts/GoogleSans/ProductSans-Black.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

/* =========================
   BRAND (TOP LEFT)
========================= */
.site-brand {
  position: fixed;
  top: 22px;
  left: 34px;
  z-index: 99999;
  background: transparent;
}

.site-brand__wrap {
  cursor: pointer;
  user-select: none;
}

.site-brand__name {
  font-size: 28px;
  font-family: "Thuast", sans-serif;
  font-weight: 700;
  color: #fff;
}

.site-brand__tag {
  font-size: 12px;
  font-family: "GoogleSans", sans-serif;
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
}

/* =========================
   NAVBAR (TOP RIGHT)
========================= */
.site-nav {
  position: fixed;
  top: 24px;
  right: 40px;
  z-index: 99999;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav__btn {
  all: unset;
  cursor: pointer;

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  position: relative;
  color: #fff;

  font-family: "GoogleSans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;

  display: inline-block;
  padding: 12px 4px;
}

/* underline base */
.site-nav__btn::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;

  height: 1px;
  background: #fff;

  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

.site-nav__btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__btn.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav__btn:not(:hover):not(.active)::after {
  transform: scaleX(0);
  transform-origin: right;
}

/* =========================
   SECTIONS + GIF FRAME
========================= */
.section {
  width: 100%;
}

/* Standard GIF section */
.gif-frame {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* original spacing system */
  padding-top: 8vw;
  padding-bottom: 8vw;
}

.gif-frame__img {
  width: 100%;
  height: auto;
  display: block;

  transform: scale(1.25);
  transform-origin: center;
}

.gif-frame__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

/* Blends */
.gif-frame__blend {
  position: absolute;
  left: 0;
  width: 100%;
  height: 400px;
  z-index: 9;
  pointer-events: none;
}

.gif-frame__blend--bottom {
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
}

.gif-frame__blend--top {
  top: 0;
  background: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
}

/* =========================
   SPLIT GIF (HOME + ABOUT)
========================= */
.gif-frame--split-top,
.gif-frame--split-bottom {
  padding-top: 0;
  padding-bottom: 0;
  height: 100vh;
}

.gif-frame--split-top .gif-frame__img,
.gif-frame--split-bottom .gif-frame__img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
  transform: none;
  z-index: 1;
}

.gif-frame--split-top .gif-frame__img { top: 0; }
.gif-frame--split-bottom .gif-frame__img { bottom: 0; top: auto; }

/* =========================
   HERO (HOME TEXT)
========================= */
.hero {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 20px;
}

.hero__title {
  font-family: "Thuast", sans-serif;
  font-size: 64px;
  margin-bottom: 10px;
}

.hero__subtitle {
  font-family: "GoogleSans", sans-serif;
  font-weight: 500;
}

/* =========================
   ABOUT
========================= */
.about {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: #fff;
  text-align: center;

  padding: 110px 22px 120px;

  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about__container {
  width: 100%;
  max-width: 1080px;
}

.about__title {
  color: #fff;
  font-family: "Thuast", sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 36px;
  text-align: center;
}

.about__title::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin: 18px auto 0;
  background: rgba(255,255,255,0.35);
}

.about__text {
  white-space: pre-line;
  text-align: left;

  font-family: "GoogleSans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  color: rgba(255, 255, 255, 0.6);
}

/* =========================
   PROJECTS
========================= */
.projects {
  position: absolute;
  inset: 0;
  z-index: 10;

  padding: 120px 32px 90px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.projects__container {
  width: 100%;
  max-width: 1456px;
}

.projects__title {
  color: #fff;
  font-family: "Thuast", sans-serif;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 36px;
  text-align: center;
}

.projects__title::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  margin: 18px auto 0;
  background: rgba(255,255,255,0.35);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

/* =========================
   PROJECT CARD
========================= */
.project-card {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.22);
}

.project-card__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.project-card__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
    rgba(0,0,0,0.05),
    rgba(0,0,0,0.65)
  );
  pointer-events: none;
}

.project-card__tech,
.project-card__actions {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
}

.project-card__tech {
  left: 0;
  bottom: 0;
}

.project-card__actions {
  right: 0;
  bottom: 0;
  justify-content: flex-end;
}

.project-card__meta {
  padding: 18px 22px 22px;
}

.project-card__name {
  font-family: "GoogleSans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.project-card__desc {
  font-family: "GoogleSans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
}

/* Pills */
.pill {
  font-family: "GoogleSans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;

  padding: 10px 14px;
  border-radius: 999px;

  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  user-select: none;
  -webkit-user-select: none;
}

.pill--btn {
  text-decoration: none;
  transition: 0.25s ease;
}
.pill--btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                 /* space between text and icon */
  padding: 10px 16px;        /* consistent padding */
  line-height: 1;            /* fixes vertical weirdness */
}

.pill--btn:hover {
  background: rgba(255,255,255,0.92);
  color: rgba(0,0,0,0.95);
  border-color: rgba(255,255,255,0.9);
}

.pill__icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
  transform: translateY(-0.5px); /* tiny tweak for perfect center */
}


/* =========================
   CONTACT
========================= */
.contact {
  position: absolute;
  inset: 0;
  z-index: 10;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 20px;
}

.contact__title {
  font-family: "Thuast", sans-serif;
  font-size: 64px;
}
