:root {
  --bg: #f4f4f4;
  --panel-grad: radial-gradient(108.04% 108.04% at 50% 50%, #0c0b0b 14.51%, #726969 90.61%);
  --card-bg: #ffffff;
  --text-dark: #000000;
  --text-light: #ffffff;
  --border: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "ABeeZee", sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

.hero {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #d5d5d5;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
}

.socials {
  position: absolute;
  right: 24px;
  display: flex;
  gap: 12px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.socials a:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.page {
  width: min(1200px, calc(100% - 48px));
  margin: 28px auto 60px;
  display: grid;
  gap: 72px;
}

.panel {
  position: relative;
  background: var(--panel-grad);
  padding: 130px 24px 72px;
  overflow: hidden;
}

.panel h2 {
  position: absolute;
  top: 32px;
  left: 50px;
  margin: 0;
  color: var(--text-light);
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
}

.cards {
  display: grid;
  justify-content: center;
  gap: 86px;
}

.three-col {
  grid-template-columns: repeat(3, minmax(260px, 361px));
}

.one-col {
  grid-template-columns: minmax(280px, 600px);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
}

.project-card {
  position: relative;
  min-height: 255px;
  padding: 0;
  overflow: hidden;
  transition: transform 200ms ease;
}

.project-link {
  display: block;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(0.97);
}

.project-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 255px;
  object-fit: cover;
}

.project-title {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 400;
}

.internship-card {
  min-height: 344px;
  padding: 0 22px 48px;
  overflow: hidden;
}

.card-head {
  min-height: 70px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  margin: 0;
  font-family: "Abril Fatface", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
}

.logo-dot {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.internship-card p {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.tech-carousel {
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

.tech-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: tech-scroll 18s linear infinite;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.tech-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@keyframes tech-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.about-panel {
  min-height: clamp(460px, 58vw, 680px);
  display: grid;
  align-items: center;
}

.about-copy {
  max-width: 75%;
  margin: 0;
  padding-right: clamp(120px, 23vw, 300px);
  padding-bottom: clamp(16px, 3vw, 32px);
  color: var(--text-light);
  font-size: clamp(1.3rem, 3.6vw, 4rem);
  line-height: 1.1;
}

.about-photo {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2vw, 24px);
  width: clamp(96px, 22vw, 240px);
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  object-fit: cover;
}

@media (max-width: 1220px) {
  .three-col {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  .page {
    width: min(760px, calc(100% - 24px));
    gap: 72px;
  }

  .panel {
    padding: 130px 24px 48px;
  }

  .panel h2 {
    left: 32px;
  }

  .three-col,
  .one-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-card {
    min-height: 202px;
  }

  .project-video {
    min-height: 202px;
  }

  .project-title {
    font-size: 1rem;
  }

  .internship-card {
    min-height: 202px;
    padding: 0 14px 28px;
  }

  .tech-carousel {
    margin-top: 14px;
  }

  .tech-track {
    gap: 10px;
    animation-duration: 15s;
  }

  .tech-pill {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .tech-icon {
    width: 18px;
    height: 18px;
  }

  .card-head {
    min-height: 44px;
  }

  .logo-dot {
    width: 43px;
    height: 43px;
  }

  .about-panel {
    min-height: clamp(420px, 105vw, 610px);
  }

  .about-copy {
    font-size: clamp(1.1rem, 5.8vw, 2rem);
    max-width: 100%;
    padding-right: clamp(100px, 31vw, 180px);
    padding-bottom: clamp(86px, 26vw, 130px);
  }

  .about-photo {
    right: 14px;
    bottom: 14px;
    width: clamp(88px, 26vw, 150px);
    border-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-track {
    animation: none;
  }
}
