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

html {
  overflow-y: scroll;
}

html, body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  padding-top: 100px;
}

/* =====================
   CONTAINER
===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 80px;
}

/* =====================
   NAVIGATION
===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5% 16px 5%;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

nav::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0;
  border-bottom: 1px solid #bbb;
}

.logo-small a {
  text-decoration: none;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 700;
}

.nav-right {
  display: flex;
  gap: 34px;
}

.nav-right a {
  text-decoration: none;
  color: #777;
  font-size: 14px;
  line-height: 1;
}

.nav-right a:hover {
  color: #000;
}

.nav-right a.active {
  color: #000;
  font-weight: 500;
}

/* =====================
   HERO
===================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* TEXT SIDE */
.hero-text {
  margin-top: 30px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* NAME */
.name-script {
  font-family: 'Rock Salt', cursive;
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: 1px;
  margin-bottom: -20px;
  color: #007BFF !important;
  display: inline-block;
  transform: rotate(-15deg);
}

.name-last {
  font-weight: 700;
  font-size: 78px;
  margin-top: -30px;
}

/* SUBTITLE */
.subtitle {
  color: #777;
  font-size: 16px;
}

.subtitle span {
  font-size: 14px;
  color: #999;
}

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007BFF;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

/* =====================
   HERO IMAGE
===================== */
.hero-image-wrapper {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-top: -70px;
  margin-bottom: 20px;
}

.eye-background {
  position: relative;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 4;
}

.eye-whites,
.pupil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* =====================
   WORKS PAGE
===================== */
.works-wrapper {
  max-width: 1200px;
  width: 90%;
  margin: 60px auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
}

.work-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-item:hover .work-info {
  opacity: 1;
}

.work-title {
  font-size: 18px;
  font-weight: 600;
}

.work-category {
  font-size: 14px;
  opacity: 0.8;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 900px) {
  .container {
    padding: 20px 30px;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text {
    margin-top: 40px;
    align-items: center;
  }

  .name-script {
    font-size: 68px;
    margin-left: 0;
  }

  .name-last {
    font-size: 54px;
    margin-top: -18px;
  }

  .hero-image-wrapper {
    margin-top: 20px;
    max-width: 90%;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    width: calc(100% - 60px);
  }
}

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

  .nav-right {
    gap: 18px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 15px 20px;
  }

  .name-script {
    font-size: 56px;
  }

  .name-last {
    font-size: 48px;
  }

  .nav-right a,
  .logo-small a {
    font-size: 13px;
  }

   /* =====================
   WORKS PAGE TITLE
===================== */
.works-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  font-weight: 700;
}
}
