@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --bg: #0a0a0a;
  --dark: #1a1b1d;
  --panel: #222325;
  --text: #ffffff;
  --muted: #6e6e6e;
  --accent: #0adfb1;
}
html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h2 {
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  font-weight:200;
}

h2 span {
  color: var(--text);
  font-weight:700;
}

h2 strong {
  font-weight: 600;
}

p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
  font-weight: 400;
}

span {
  color: var(--accent);
}
/* ================= HEADER ================= */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 72px;
  padding: 0 2rem;

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

  background: transparent;
  z-index: 10;

  box-sizing: border-box;
}

header a {
  color: var(--text);
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  display: flex;
  align-items: center;
}

.logo span {
  display: inline-block;
}

.logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  border: none;
  padding-bottom:4px;
}
/* ================= NAV DEFAULT / DESKTOP ================= */
nav {
  display: flex;
  align-items: center;
  height: 100%;
}

nav a {
  position: relative;
  margin-left: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  height: 100%;
  display: flex;
  align-items: center;
  font-weight:700;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
}

nav a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}

/* ================= HAMBURGER ================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================= MOBILE NAV ================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(17,17,17,0.95);
    padding: 0 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
  }

  nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
  }

  nav a:hover,
  nav a.active {
    color: var(--accent);
  }

  nav a::before,
  nav a::after {
    display: none;
  }
}





/* ================= HERO ================= */
.hero {
  position: relative;
  height: 90svh;
  max-height: 90svh;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #242424 0%, #111111 100%);
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero h1 {
  font-size: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.play {
  border: 2px solid #ffffff;
  padding: 0.9rem 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  
  color: white;
}

.play:hover {
  background: #ffffff;
  color: #000;
}

.hero-continue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;

  text-decoration: none;
  color: white;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-continue .arrow {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s ease;
  color: white;
}

.hero-continue .text {
  color: white;
}

.hero-continue:hover .arrow {
  transform: translateY(4px);
  color: white;
}

/* ================= PROJECT DETAIL ================= */

.project-title {
  position: relative;
  height: 60svh;
  width: 100%;
  overflow: hidden;
}

.project-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0) 0%,
    rgba(17,17,17,0.6) 40%,
    #111111 100%
  );
  z-index: 3;
}

.project-title-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-title-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  
  filter: grayscale(100%) brightness(0.55) contrast(1.1);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
}

.project-title-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.project-title-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  text-align: left;
}

@media (max-width: 768px) {
  .project-title {
    height: 65svh;
  }

  .project-title-content h2 {
    font-size: clamp(1.5rem, 6vw, 3rem);
  }
}

.project-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 5;
  margin-top: -80px;
}

@media (max-width: 768px) {
  .project-detail-container {
    margin-top: 0px;
  }
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 600px;
}

.meta-row {
  display: grid;
  grid-template-columns: 80px auto;
  gap: 1rem;
}

.meta-label {
  font-weight: 600;
  text-transform: uppercase;
  color: #ccc;
  text-align: left;
}

.meta-value {
  color: #fff;
  text-align: left;
}

/* ================= SECTIONS ================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.22em;
  text-align: center;
}

.section-intro-container {
  padding-bottom: 2rem;
  padding-top: 6rem;
}

.section-intro {
  font-size: clamp(1.5rem, 1vw, 2rem);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
}


.button {
  border: 2px solid #ffffff;
  padding: 0.7rem 1.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.25s ease;
  color: white;
  margin: 0 auto;
  display: block;
  width: fit-content;
}

.button:hover {
  background: #ffffff;
  color: #000;
}

.button--right {
  margin-left: auto;
  margin-right: 0;
}

.button--center {
  margin: 0 auto 1rem;
}

/* ================= PORTFOLIO ================= */

.portfolio-grid {
  --columns: 2;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: 0;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .portfolio-grid {
    --columns: 2;
  }
}

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

.portfolio-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none;
  color: white;

  transition: opacity 0.6s ease;
  will-change: opacity;
  opacity: 1;
}


.portfolio-item.is-hidden {
  display: none;
}

.portfolio-item.is-fading-in {
  opacity: 0;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-item h3 {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.portfolio-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;

  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease, font-size 0.35s ease, background 0.35s ease;
}

@media (hover: hover) {
  .portfolio-item:hover .portfolio-title {
    opacity: 1;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.65);
  }

  .portfolio-item:hover img {
    filter: brightness(0.6);
    transform: scale(1.03);
  }
}

@media (hover: hover) {
  .portfolio-item:hover img {
    filter: brightness(0.75);
  }
}

.filter {
  background: none;
  border: 1px solid #fff;
  padding: 0.5rem 1.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
}

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

/* ================= PROJECT GRID ================= */
.project-grid {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.project-grid.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
  gap: 0px;
  margin-top:20px;
}

.project-grid.single {
  grid-template-columns: 1fr;
  margin-bottom: 20px;
}

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

.project-grid.triple {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .project-grid.triple,
  .project-grid.double,
  .project-grid.full-bleed {
    grid-template-columns: 1fr !important;
    gap: 20px;
    width: 100%;
    margin-left: 0;
  }
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.project-thumb:hover::before {
  transform: scale(1.08);
}

.project-thumb:hover {
  transform: none;
  box-shadow: none;
  cursor: pointer;
}

.project-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.85);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

.project-thumb:hover .play-icon {
  transform: scale(1.1);
  color: #fff;
}


/* ================= SPECIALTIES ================= */
.specialties {
  margin-top: 6rem;
}

.specialties-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

.specialty-grid {
  display: grid;
  margin-top: 3rem;
}

.specialty-grid div {
  background: var(--panel);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}


/* ================= PROJECTS EXPAND ================= */
.projects-expand {
  margin: 3rem 0;
  text-align: center;
}

.expand-btn {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.7rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin: 0 auto 1rem;
  font-family: 'Space Grotesk', sans-serif;
}

.expand-btn .arrow {
  transition: transform 0.3s ease;
}

.expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  table-layout: fixed;
}

.table-wrapper th,
.table-wrapper td {
  text-align: left;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #555;
  white-space: normal;
}

.table-wrapper th:nth-child(1) { width: 150px; }
.table-wrapper th:nth-child(2) {
  width: 300px;
  font-size: 1.0rem;}
.table-wrapper th:nth-child(3) { width: 200px; }
.table-wrapper th:nth-child(4) { width: 100px; }

.expand-btn[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}


/* ================= ABOUT ME ================= */

.about-layout {
  display: flex;
  align-items: flex-start;
  margin-top: 3rem;
}

.about-text {
  flex: 1.7;
}

.about-image {
  flex: 1;
  margin-bottom:2rem;
  padding-right: 2rem;
  padding-left: 2rem;
  overflow: hidden;
  
  margin-top: 1rem;
  flex-shrink: 1;
  min-width: 0;
}

.about-image img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.about-image-wrapper {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-right:2rem;
  margin-left:2rem;
  margin-bottom:1rem;
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
  }

  .about-image {
    margin-top: 1rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .about-image img {
    max-width: 90vw;
    max-height: 60vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

    .about-image-wrapper {
    max-width: 90vw;
  }
}

/* ================= CTA ================= */
.cta {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 3rem;
}


/* ================= TESTIMONIALS ================= */

.testimonials {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  transition: height 0.3s ease;
}

.testimonial-track {
  display: flex;
  width: 100%;
  will-change: transform;
}

@supports (-webkit-touch-callout: none) {
  .testimonial-track {
    transform: translateZ(0);
  }
}

.testimonial-list {
  position: relative;
}

.testimonial {
  animation: fade 0.4s ease;
  display: none !important;

}

.testimonial.is-active {
  display: block !important;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.quote {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
  font-style: italic;
}

.author {
  font-weight: 600;
}

.role {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-arrow {
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color:white;
  padding-bottom:4px;
}

.testimonial-arrow:hover {
  opacity: 0.7;
  color: var(--accent);
}

.testimonial-arrow.prev,
.testimonial-arrow.next {
  position: static;
  transform: none;
}


/* ================= SERVICES ================= */
.services {
  background: var(--accent);
  height:3px;
}

/* ================= FOOTER ================= */
footer {
  background: #0e0e0e;
  color: white;
  text-align: center;
  font-size: 0.7rem;
  padding: 2rem;
}

/* ================= BACK TO TOP ================= */
#toTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: 2px solid #1fb9a8;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#toTop.show {
  opacity: 0.3;
  pointer-events: auto;
}

#toTop:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.85);
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: white;
  font-size: 2rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-content {
    max-width: 95vw;
    max-height: 85vh;
  }

  .modal-content video {
    max-height: 80vh;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* ================= YOUTUBE ================= */

.video-wrapper {
  width: 100%;
  max-width: 1200px; /* optional, keeps desktop sane */
  aspect-ratio: 16 / 9;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .project-grid-triple {
    grid-template-columns: 1fr;
  }

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

  .specialties-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 75vh;
  }

  .hero h1 {
    font-size: 3rem;
  }

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