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

:root {
  --green: #60c0b7;
  --bg-dark: #000;
  --bg-light: #d4d4d4;
  --text-dark: #fff;
  --text-light: #333;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==================== Typography ==================== */
::green {
  color: var(--green);
}

/* ==================== HOME Button ==================== */
.home-btn {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  z-index: 100;
  transition: opacity 0.3s ease;
}

.home-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-btn:active {
  opacity: 0.6;
}

/* ==================== Theme Toggle ==================== */
.theme-toggle {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
}

.light-theme .theme-toggle {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==================== Dot Navigation ==================== */
.dot-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}

.dot-nav button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.dot-nav button.active {
  border-color: #fff;
  background: #fff;
}

.dot-nav button:hover {
  border-color: #fff;
}

/* Tooltip label for about dots on work page */
.dot-nav button .dot-label {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1;
}

.dot-nav button:hover .dot-label {
  opacity: 1;
}

/* ==================== Landing Page (index.html) ==================== */
#landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#landing-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#video-controls {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 1001;
}

#video-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

#video-controls button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==================== Sound Toggle Button ==================== */
.sound-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.1s ease;
  z-index: 1002;
  padding: 0;
}

.sound-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.sound-btn:active {
  transform: scale(0.92);
}

.sound-btn svg {
  width: 24px;
  height: 24px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sound-btn .icon-unmuted {
  display: none;
  opacity: 0;
}

.sound-btn .icon-muted {
  display: block;
  opacity: 1;
}

.sound-btn.unmuted .icon-unmuted {
  display: block;
  opacity: 1;
}

.sound-btn.unmuted .icon-muted {
  display: none;
  opacity: 0;
}

#main-bg {
  position: fixed;
  inset: 0;
  background: center/cover;
  display: flex;
}

.split-links {
  position: fixed;
  inset: 0;
  display: flex;
}

.split-links .split-left,
.split-links .split-right {
  flex: 1;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.split-links .split-left video,
.split-links .split-right video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.split-links .split-left a,
.split-links .split-right a {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.split-links .split-left:hover,
.split-links .split-right:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ==================== Works Page (work.html) ==================== */
.works-page {
  min-height: 100vh;
  background: #000;
  padding: 100px 80px 80px;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 48px;
  color: #fff;
}

/* Filters */
#filters {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

#filters button {
  padding: 8px 24px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

#filters button:hover,
#filters button.active {
  border-color: #fff;
  background: #fff;
  color: #000;
}

/* Project Grid */
#project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1600px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.project-card img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .overlay h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.project-card .overlay p {
  font-size: 14px;
  opacity: 0.8;
}

/* ==================== Project Detail (project.html) ==================== */
.project-detail {
  min-height: 100vh;
  background: #000;
  padding: 100px 80px 80px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.project-info {
  flex: 0 0 35%;
  color: #fff;
}

.project-info h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
}

.project-info .client {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 24px;
}

.project-info .meta {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 32px;
}

.project-info .description {
  font-size: 16px;
  line-height: 1.8;
}

.project-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.project-media video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 1;
}

/* ==================== About Page (about.html) ==================== */
.about-page {
  position: relative;
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  background: #000;
  color: #fff;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-page.light-theme {
  background: var(--bg-light);
  color: var(--text-light);
}

.slide {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px;
  background: center/cover no-repeat;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content Slide */
.slide-content {
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}

.slide-top {
  justify-content: flex-start !important;
  padding-top: 8%;
}

.slide-content-top {
  max-width: 80%;
  margin: 0 auto;
  text-align: center;
}


.slide-content h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.2;
}

.slide-content p {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
}

.light-theme .slide-content {
  color: #333;
}

/* Split Slide */
.slide-split {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding: 80px;
}

.slide-split .media-area {
  flex: 1;
  max-width: 55%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  overflow: hidden;
}

.slide-split .media-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-split .text-area {
  flex: 0.45;
  color: #fff;
  text-align: right;
  z-index: 1;
}

.light-theme .slide-split .text-area {
  color: #333;
}

.slide-split .text-area h2 {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.2;
  color: inherit;
}

.light-theme .slide-split .text-area h2 {
  color: #333;
}

.slide-split .text-area p {
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.6;
  opacity: 0.8;
}

.light-theme .slide-split .text-area p {
  opacity: 1;
}

/* Cards Slide */
.slide-cards {
  padding: 80px;
  background: center/cover;
}

.slide-cards h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
  margin-top: 0;
  transform: translateY(-150px);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.card-item {
  text-align: center;
}

.card-item .card-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center;
  cursor: pointer;
}

.card-item:hover .card-image {
  transform: scale(1.25);
  z-index: 10;
}

.card-item .card-image img {
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.card-item:hover .card-image img {
  filter: brightness(0.4);
}

.card-item .card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 16px;
}

.card-item:hover .card-overlay {
  opacity: 1;
}

.card-item .card-caption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1;
}

.light-theme .slide-cards {
  background-color: var(--bg-light);
}

.light-theme .slide-cards h1 {
  color: #333;
}

/* News Slide */
.slide-news {
  padding: 80px;
  background: center/cover;
  overflow-y: auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
}

.news-header h2 {
  font-size: clamp(20px, 2.5vw, 32px);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.news-item {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.news-item .news-image {
  flex: 0 0 35%;
}

.news-item .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item .news-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item .news-content h3 {
  font-size: clamp(15px, 1.5vw, 20px);
  margin-bottom: 8px;
}

.news-item .news-content .date {
  font-size: clamp(12px, 1vw, 14px);
  opacity: 0.8;
  margin-bottom: 12px;
}

.news-item .news-content .summary {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}

.news-pagination button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.news-pagination button.active {
  border-color: #fff;
  background: #fff;
}

/* Contact Slide */
.slide-contact {
  padding: 80px;
  background: center/cover;
  text-align: center;
}

.slide-contact h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: bold;
  margin-bottom: 48px;
}

.logo-wall-wrap {
  margin-bottom: 48px;
  max-width: 80%;
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.4);
  padding: 24px 32px;
}

.logo-wall-img {
  width: 100%;
  height: auto;
  display: block;
}

.callout {
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 80%;
  line-height: 1.5;
}

.contact-info {
  font-size: clamp(13px, 1.2vw, 16px);
  margin-bottom: 48px;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.light-theme .slide-news {
  background-color: var(--bg-light);
}

.light-theme .slide-news h2 {
  color: #333;
}

.light-theme .news-item {
  background: rgba(255, 255, 255, 0.9);
}

.light-theme .news-item .news-content h3,
.light-theme .news-item .news-content .date,
.light-theme .news-item .news-content .summary {
  color: #333;
}

.light-theme .slide-contact {
  background-color: var(--bg-light);
}

.light-theme .slide-contact h1 {
  color: #333;
}

/* ==================== Contact Page ==================== */
.contact-page {
  min-height: 100vh;
  background: center/cover;
  padding: 100px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ==================== 404 Page ==================== */
.error-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.error-page h1 {
  font-size: 120px;
  font-weight: bold;
  margin-bottom: 24px;
  opacity: 0.3;
}

.error-page p {
  font-size: 24px;
  margin-bottom: 48px;
  opacity: 0.6;
}

.error-page a {
  padding: 12px 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 40px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

.error-page a:hover {
  background: #fff;
  color: #000;
}

/* ==================== News Modal ==================== */
.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.news-modal-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-modal-content img {
  width: 100%;
  display: block;
}

.news-modal-text {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 40%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px 40px;
  color: #fff;
  text-align: right;
}

.news-modal-text h3 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: bold;
  line-height: 1.2;
}

.news-modal-text .subtitle {
  font-size: 20px;
  opacity: 0.8;
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 2px;
}

.news-modal-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.news-modal-text a {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
  border-bottom: 2px solid #fff;
  padding-bottom: 6px;
}

.news-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  backdrop-filter: blur(4px);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .slide-content h1 {
    font-size: 48px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slide-split .text-area h2 {
    font-size: 44px;
  }

  .slide-split .text-area p {
    font-size: 18px;
  }

  .slide-cards h1 {
    font-size: 40px;
  }

  .slide-contact h1 {
    font-size: 40px;
  }

  .logo-wall-wrap {
    max-width: 100%;
  }

  .callout {
    max-width: 100%;
  }

  .slide-split {
    flex-direction: column !important;
    align-items: center;
  }

  .slide-split .media-area {
    max-width: 100%;
  }

  .slide-split .text-area {
    flex: none !important;
    text-align: center;
  }

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

  .project-detail {
    flex-direction: column;
    padding: 80px 40px;
  }

  .project-info {
    flex: none;
  }

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

@media (max-width: 768px) {
  .works-page,
  .slide {
    padding: 80px 24px 40px;
  }

  .slide-content {
    max-width: 100%;
  }

  .slide-content h1 {
    font-size: 36px;
  }

  .slide-content p {
    font-size: 16px;
  }

  .slide-split .text-area h2 {
    font-size: 32px;
  }

  .slide-split .text-area p {
    font-size: 16px;
  }

  .slide-split .media-area img {
    max-height: 60vh;
  }

  .slide-cards h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .slide-news {
    padding: 80px 24px 40px;
  }

  .slide-news h2 {
    font-size: 24px;
  }

  .news-item .news-content h3 {
    font-size: 16px;
  }

  .news-item .news-content .summary {
    font-size: 13px;
  }

  .news-pagination {
    margin-top: 32px;
  }

  .news-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

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

  .card-item .card-image {
    aspect-ratio: 1/1;
  }

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

  .card-item .card-caption {
    font-size: 12px;
  }

  .media-area img {
    max-width: 100%;
    max-height: 40vh;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item .news-image {
    flex: none;
    height: 200px;
  }

  .contact-info {
    flex-direction: column;
    gap: 16px;
  }

  .slide-contact h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .logo-wall-wrap {
    padding: 16px 20px;
    max-width: 100%;
  }

  .callout {
    font-size: 16px;
    max-width: 100%;
  }

  .contact-page {
    padding: 80px 24px 40px;
  }

  .contact-page h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .home-btn {
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
  }

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

@media (max-width: 480px) {
  #project-grid {
    grid-template-columns: 1fr;
  }

  #video-controls {
    top: 16px;
    right: 16px;
  }

  #video-controls button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .sound-btn {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .slide-contact {
    padding: 80px 20px 40px;
  }
}

/* ==================== Work Modal ==================== */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}

.work-modal.active {
  display: block;
}

.work-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  animation: modalFadeIn 0.25s ease;
}

.work-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
  width: 90vw;
  max-height: 90vh;
  z-index: 2001;
  animation: modalFadeIn 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  overflow: hidden;
}

.work-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.work-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.work-modal-left {
  flex: 0 0 320px;
  color: #fff;
  padding: 0;
  min-width: 0;
}

.work-modal-client {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.6;
}

.work-modal-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.work-modal-description {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 32px;
}

.work-modal-meta {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  margin-top: 16px;
}

.work-modal-meta span {
  font-size: 13px;
  opacity: 0.7;
}

.work-modal-right {
  flex: 1 1 auto;
  max-width: calc(90vw - 400px);
  height: 75vh;
  max-height: 75vh;
  background: #000;
  overflow: hidden;
}

.work-modal-right img,
.work-modal-right video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 75vh;
}

/* Work Modal Carousel */
.work-modal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.carousel-slide.active {
  display: block;
  pointer-events: auto;
}

.carousel-slide img,
.carousel-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
  pointer-events: auto;
}

.carousel-dot.active {
  background: #fff;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Work modal responsive */
@media (max-width: 1200px) {
  .work-modal-content {
    flex-direction: column;
    gap: 24px;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
  }

  .work-modal-left {
    flex: none;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .work-modal-meta {
    justify-content: center;
  }

  .work-modal-right {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 60vh;
  }

  .work-modal-title {
    font-size: 36px;
  }

  .work-modal-close {
    top: 0;
    right: 0;
  }
}

@media (max-width: 768px) {
  .work-modal-content {
    gap: 16px;
    max-height: 95vh;
    overflow-y: auto;
  }

  .work-modal-title {
    font-size: 28px;
  }

  .work-modal-description {
    font-size: 14px;
  }

  .work-modal-left {
    padding: 0 8px;
  }

  .work-modal-right {
    height: 40vh;
    min-height: 250px;
    max-height: 50vh;
    max-width: 100%;
  }
}