:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --max-width: 1512px;
  --container-padding: 32px;
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

* {
  box-sizing: border-box;
}

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

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

/* Layout Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.project .project-images iframe {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
}

/* ===========================
   HERO SECTION
=========================== */

.hero-section {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  background-color: var(--bg-color);
}

.hero-section .container {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 1448px;
  object-fit: contain;
  margin-top: 4rem;
  height: 100%;
  min-height: calc(100vh - 12rem);
}

.hero-intro {
  max-width: 1202px;
  text-align: center;
  color: var(--text-color);
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.5;
  padding: 1rem 1rem 14rem 1rem;

}

.hero-cta {
  margin-top: max(80px, 15vh);
  margin-bottom: max(80px, 10vh);
  color: var(--text-color);
  font-size: clamp(18px, 2vw, 28px);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hero-cta:hover {
  opacity: 0.8;
}

.hero-cta .underline {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* ===========================
   HEADER
=========================== */

#section-header {
  width: 100%;
  position: relative;
  z-index: 10;
  background-color: var(--bg-color);
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 250px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a,
.nav-link {
  font-size: 16px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.nav-link:hover {
  opacity: 0.7;
}

/* ===========================
   WORK SECTION
=========================== */

#section-work {
  padding: 32px 0 80px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  cursor: pointer;
}

.work-card:hover .card-image {
  transform: scale(1.03);
}

.card-image-wrapper {
  width: 100%;
  aspect-ratio: 470 / 335;
  overflow: hidden;
  background-color: #000000;
  padding-bottom: 1rem;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  margin: 0;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.card-meta {
  margin: 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

/* ===========================
   PROJECT DETAILS
=========================== */

#section-project-details {
  width: 100%;
  background-color: var(--bg-color);
  padding-bottom: 80px;
}

.project-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}

.project-info {
  width: 465px;
  flex-shrink: 0;
  position: sticky;
  top: 32px;
}

.project-title {
  margin: 0 0 14px;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-subtitle {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

.separator-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.separator-line {
  width: 100%;
  height: auto;
}

.project-description p {
  margin: 0 0 16px;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.project-description p:last-child {
  margin-bottom: 0;
}

.project-gallery {
  width: 100%;
  max-width: 957px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-gallery .gallery-item iframe{
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
}


/* ===========================
   FOOTER
=========================== */

.footer-section {
  width: 100%;
  padding: 0 16px 20px;
  display: flex;
  justify-content: center;
  background-color: var(--bg-color);
}

.footer-section .container {
  width: 100%;
  max-width: 1448px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  font-size: clamp(14px, 1.2vw, 18px);
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .project-container {
    flex-direction: column;
    padding: 32px 24px;
  }

  .project-info {
    width: 100%;
    max-width: 600px;
    position: static;
    margin-bottom: 40px;
  }

  .project-gallery {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-logo {
    margin-top: max(80px, 15vh);
  }

  .hero-intro {
    margin-top: max(100px, 20vh);
  }

  .hero-cta {
    margin-top: max(60px, 10vh);
  }

  .site-header {
    padding: 0 20px;
  }

  .logo img {
    width: 180px;
  }

  .project-container {
    padding: 24px 20px;
  }

  .project-title {
    font-size: 36px;
  }

  .project-gallery {
    gap: 16px;
  }

  .footer-section .container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
}