/* ── FONTS ── */
@font-face {
  font-family: 'NeueHaas';
  src: url('fonts/NeueHaasDisplayMediu.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ── BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

h1 {
  font-size: 100px;
  font-family: 'NeueHaas', sans-serif;
  letter-spacing: -5px;
  line-height: 1;
  font-weight: 600;
  text-transform: lowercase;
}

h2, h3 {
  font-family: 'NeueHaas', sans-serif;
}

p {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── NAV ── */
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  height: 20px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 50px;
  list-style: none;
  font-weight: 300;
  letter-spacing: -0.1px;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover {
  color: #868686;
}

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

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 100px;
}

/* ── BUTTON ── */
button {
  margin-top: 20px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 20px 50px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s ease;
}

button:hover {
  background: #222;
}

/* ── LOADER ── */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader p {
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ── WORKS ── */
.works {
  padding: 60px 0;
}

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

.card {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card.wide {
  grid-column: span 2;
}

.card-image {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.card-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ── MODAL ── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal.active .modal-inner {
  transform: translateY(0);
}

.modal-close {
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  color: #000;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.modal-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.modal-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 24px;
}

/* ── ABOUT ── */
.about-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 190px;
  padding-top: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 60px;
}

.about-bio p {
  line-height: 1.6;
  font-size: 15px;
  margin-top: 18px;
}

/* ── EXPERIENCE ── */
.experience-section {
  margin-bottom: 60px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 80px;
}

.exp-card {
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
}

.exp-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.exp-card p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1;
}

/* ── TOOLS ── */
.tools-section {
  padding-top: 60px;
  border-top: 1px solid #ccc;
  margin-bottom: 80px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.tool-card {
  background: #f9f9f9;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  border: 1px solid #c1c1c1;
  transition: transform 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
}

.tool-card img {
  width: 48px;
  height: 48px;
}

.tool-card p {
  font-size: 13px;
  color: #000;
  margin: 0;
  line-height: 1;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 24px;
}

/* ── FOOTER ── */
footer .container {
  border-top: 1px solid #ccc;
  padding: 40px 0;
}

footer p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

footer {
  padding: 0;
  margin-top: 40px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 50px;
  color: #000;
}

.filter-btn.active,
.filter-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}

.hero-word-reveal {
  overflow: hidden;
}

.reveal-text {
  display: block;
  font-family: 'NeueHaas', sans-serif;
  font-size: clamp(100px, 20vw, 150px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.reveal-text.visible {
  transform: translateY(0);
  opacity: 1;
}

.hero-sub-content {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-sub-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.typewriter {
  font-size: 20px;
  font-weight: 300;
  color: #666;
  margin-bottom: 32px;
  margin-top: 0;
  min-height: 32px;
}

.cursor-blink {
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── NOISE ── */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: noise-anim 0.5s steps(2) infinite;
}

@keyframes noise-anim {
  0% { background-position: 0 0; }
  25% { background-position: 50px -50px; }
  50% { background-position: -50px 100px; }
  75% { background-position: 100px 50px; }
  100% { background-position: -100px -100px; }
}

/* ── DOT GRID ── */
.dot-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, #00000015 1px, transparent 1px);
  background-size: 30px 30px;
  animation: grid-shift 8s ease-in-out infinite alternate;
}

@keyframes grid-shift {
  0% { background-position: 0 0; }
  100% { background-position: 15px 15px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {

  h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .container {
    padding: 0 20px;
  }

  nav .container {
    padding: 20px;
  }

  .nav-links {
    gap: 24px;
  }

  .works {
    padding: 40px 0;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card.wide {
    grid-column: span 1;
  }

  .about-header {
    flex-direction: column;
    gap: 20px;
    padding-top: 40px;
  }

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

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .tool-card {
    padding: 20px;
  }

  .modal-inner {
    padding: 24px;
    width: 95%;
  }

  .filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .filter-btn {
    text-align: center;
    padding: 8px 10px;
    font-size: 11px;
  }
}


.card.hidden {
  display: none;
}