/* Font */
@font-face {
  font-family: 'Modak';
  src: url('../assets/fonts/Modak-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* scroll-behavior handled by Lenis */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, background-color 0.3s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}

.hero-title {
  font-family: 'Modak', cursive;
  font-size: clamp(60px, 10vw, 140px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* About Section */
.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.section-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.about-body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.about-video {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}

/* Work Section */
.work {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.work-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  margin-bottom: 40px;
}

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

.work-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.work-item--wide {
  grid-column: span 1;
}

/* Footer */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #ffffff;
}

.phone-wrapper {
  position: relative;
}

.phone-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #1a1a1a;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 8px;
  transform: translateX(-50%) translateY(4px);
}

.phone-wrapper:hover .phone-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* GSAP initial states — elements start invisible, GSAP reveals them */
.nav,
.hero-title,
.hero-subtitle,
.about .section-heading,
.about-body,
.about-video,
.work .section-heading,
.work-subtitle,
.work-item,
.footer-heading,
.footer-socials > * {
  visibility: hidden;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    gap: 40px;
  }

  .about-video {
    width: 100%;
    max-width: 400px;
  }

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

  .work-item--wide {
    grid-column: span 2;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .nav {
    gap: 4px;
    padding: 4px;
  }

  .nav-link {
    padding: 6px 14px;
    font-size: 13px;
  }

  .hero {
    min-height: 60vh;
    padding: 100px 20px 40px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--wide {
    grid-column: span 1;
  }

  .work-item {
    aspect-ratio: 16 / 9;
  }
}