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

body {
  background-color: rgb(8, 8, 8);
  color: rgb(250, 250, 250);
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  min-height: 100vh;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.5rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.3s;
  color: inherit;
  text-decoration: none;
}

.nav-link:hover {
  opacity: 0.5;
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

h1 {
  font-size: clamp(4rem, 15vw, 14rem);
  font-weight: bold;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
  text-transform: uppercase;
}

.hero p {
  margin-top: 3rem;
  text-align: center;
  font-size: clamp(0.875rem, 2vw, 1rem);
  max-width: 42rem;
  line-height: 1.6;
}

/* Work Section Base */
.work-section {
  padding: 0 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Section Titles (custom addition for organization) */
.section-title {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 6rem 0 2rem;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.work-grid.is-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.work-grid.is-3col-square {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.work-grid + .work-grid {
  margin-top: 2rem;
}

/* Work Items */
.work-item {
  background: linear-gradient(
    90deg,
    rgb(18, 18, 18) 0%,
    rgb(28, 28, 28) 50%,
    rgb(18, 18, 18) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform;
  position: relative;
}

.work-item.media-loaded {
  animation: none;
  background: transparent;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.work-item img,
.work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: inherit;
}

.work-item img.loaded,
.work-item video.loaded {
  opacity: 1;
}

.work-item.large {
  aspect-ratio: 15 / 9;
  grid-column: 1 / -1;
}

.work-item.small {
  aspect-ratio: 1 / 1;
}

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

.work-item:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

/* Logo grid flexbox for different sized boxes */
.work-grid.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

/* Logos - show fully without cropping in their own sized boxes */
.work-item.logo-item {
  aspect-ratio: auto;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 1rem;
}

.work-item.logo-item img {
  object-fit: contain;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 300px;
  border-radius: inherit;
  display: block;
}

/* Footer */
footer {
  padding: 8rem 2rem 4rem;
  border-top: 1px solid rgba(250, 250, 250, 0.05);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(250, 250, 250, 0.9);
}

.tagline {
  font-size: 0.75rem;
  color: rgba(250, 250, 250, 0.4);
  letter-spacing: 0.02em;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(250, 250, 250, 0.6);
  text-decoration: none;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: rgba(250, 250, 250, 0.8);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: rgba(250, 250, 250, 1);
}

.footer-link:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-right {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  footer {
    padding: 6rem 1.5rem 3rem;
  }
}

/* Modal / Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 0.5rem;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  object-fit: contain;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  color: #f1f1f1;
  font-size: 2.5rem;
  font-weight: 300;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.close-modal:hover {
  color: #bbb;
}

.work-item img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
  }
  .close-modal {
    top: 1rem;
    right: 1.5rem;
  }
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  width: 90vw !important;
  max-width: 1000px !important;
  background: #000;
  margin: auto;
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0;
}

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

.work-item.video-trigger {
  cursor: pointer;
}

.work-item.video-trigger img {
  cursor: pointer;
}

.video-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  color: rgb(250, 250, 250);
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-align: left;
}

.work-item.media-loaded .video-title {
  opacity: 1;
}

/* Floating Menu */
.floating-menu-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.floating-menu-btn {
  background: rgba(250, 250, 250, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 250, 250, 0.2);
  color: rgb(250, 250, 250);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  outline: none;
}

.floating-menu-btn:hover {
  background: rgba(250, 250, 250, 0.2);
  transform: scale(1.05);
}

.floating-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.floating-menu-container.active .floating-menu-btn svg {
  transform: rotate(90deg);
}

.floating-menu-content {
  position: absolute;
  bottom: 4.5rem;
  right: 0;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 250, 250, 0.1);
  border-radius: 1rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.floating-menu-container.active .floating-menu-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-menu-content a {
  color: rgba(250, 250, 250, 0.7);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.floating-menu-content a:hover {
  background: rgba(250, 250, 250, 0.1);
  color: rgb(250, 250, 250);
  padding-left: 1.25rem;
}

@media (max-width: 768px) {
  .floating-menu-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
