/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'PP Pangaia';
  src: url('/fonts/PPPangaia-Bold.woff2') format('woff2'),
       url('/fonts/PPPangaia-Bold.woff') format('woff'),
       url('/fonts/PPPangaia-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --color-background: #ffffff;
  --color-foreground: #030303;
  --color-primary: #030303;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}

/* Animations */
@keyframes fade-in {
  from { 
    opacity: 0; 
    transform: translateY(8px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOut {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: 1280px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Page Container */
.page-container {
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #f3f4f6;
  height: 80px;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
  }
}

.logo-button {
  font-family: 'PP Pangaia', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.logo-button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-button {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  position: relative;
}

.nav-button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

/*.nav-button.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #030303;
  border-radius: 1px;
}*/

/* Series Dropdown */
.series-dropdown {
  position: relative;
}

.series-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.series-button:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.series-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  background-color: var(--color-gray-100);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  min-width: max-content;
  z-index: 50;
  animation: fade-in 0.15s ease-out;
}

.series-dropdown.active .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.dropdown-menu a:hover {
  opacity: 0.7;
}

.instagram-link {
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.instagram-link:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.instagram-link:visited {
  color:#000;
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-button:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem;
}

.mobile-close-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  transition: opacity 0.3s ease;
}

.mobile-close-button:hover {
  opacity: 0.7;
}

.mobile-nav {
  flex: 1;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-button {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  padding: 0.75rem 0;
  transition: opacity 0.3s ease;
  text-align: left;
}

.mobile-nav-button:hover,
.mobile-nav-button.active {
  opacity: 0.7;
}

/* Mobile Series Dropdown */
.mobile-series-dropdown {
  width: 100%;
}

.mobile-series-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Red Hat Display', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  padding: 0.75rem 0;
  text-align: left;
}

.mobile-dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.mobile-series-dropdown.active .mobile-dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  margin-top: 1rem;
  padding-left: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: fade-in 0.15s ease-out;
}

.mobile-series-dropdown.active .mobile-dropdown-content {
  display: flex;
}

.mobile-dropdown-content a {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-500);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.mobile-dropdown-content a:hover {
  opacity: 0.7;
}

/* Carousel */
.carousel-section {
  position: relative;
  height: 90vh;
  overflow: hidden;
  background-color: #000000;
  margin-top: 80px;
  width: 100%;
}

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

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: crisp-edges;
}

.carousel-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92), transparent);
  pointer-events: none;
  z-index: 10;
}

/* Projects Section */
.projects-section {
  position: relative;
  margin-top: -80px;
  z-index: 20;
  padding-bottom: 4rem;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 639px) {
  .carousel-section {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background-color: #000000;
  margin-top: 80px;
  width: 100%;
}
.project-details {
    gap: 0 !important;
}
}





@media (min-width: 640px) {
  .projects-section {
    margin-top: -80px;
  }
}

@media (min-width: 1024px) {
  .projects-section {
    margin-top: -80px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 0 2rem;
  }
}

.project-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  width: 100%;
}

.project-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-image-container {
  height: 80px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

@media (min-width: 640px) {
  .project-image-container {
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .project-image-container {
    height: 80px;
  }
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.project-card:hover .project-image {
  filter: grayscale(0%);
  transform: scale(1.08);
}

.project-content {
  padding: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .project-content {
    padding: 1.5rem;
  }
}

.project-title {
  font-family: 'PP Pangaia', Georgia, serif;
  font-weight: 700;
  font-size: clamp(16px, 4vw, 22px);
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.3;
  min-height: 3rem;
  display: flex;
  align-items: flex-start;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.project-year,
.project-location {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Project Page Styles */
.project-page {
  padding-top: 80px;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.project-header {
  padding: 4rem 1.25rem 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.project-header .project-title {
  font-family: 'PP Pangaia', Georgia, serif;
  font-weight: 700;
  text-align: left;
  font-size: clamp(28px, 5vw, 42px);
  color: #000000;
  line-height: 1.2;
  margin-bottom: 2rem;
  min-height: auto;
}

.project-details {
  display: flex;
  justify-content: flex-start;
  gap: 5rem;
  flex-wrap: wrap;
  flex-direction: row;
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0rem;
    width: 40%;
}

.project-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-meta-value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  color: #000000;
  font-weight: 500;
}

.project-statement {
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.project-statement p {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

/* Photo Carousel */
.photo-carousel {
  position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 4rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-main-image {
  width: 100%;
    height: 80vh;
    max-height: 800px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.carousel-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image-slide.active {
  opacity: 1;
}

.carousel-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Carousel Navigation Arrows */
.carousel-nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav-button:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-nav-button svg {
  width: 20px;
  height: 20px;
  stroke: #000000;
  stroke-width: 2;
}

/* About Page */
.about-page {
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.about-content {
  padding: 4rem 1.25rem 3rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  flex: 1;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .about-content {
   padding: 4rem 1.25rem;
  }
}

.about-title {
  font-family: 'PP Pangaia', Georgia, serif;
    font-weight: 700;
    text-align: left;
    font-size: clamp(28px, 5vw, 42px);
    color: #000000;
    line-height: 1.2;
    min-height: auto;
}

.about-statement {
  width: 100%;
}

.about-text {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  color: #000000;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 640px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.contact-value {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 16px;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  margin: 0;
}

.contact-value:hover {
  opacity: 0.7;
  transform: translateX(2px);
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  width: 100%;
}

.footer-text {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

/* Loading States */
.loading {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Image Loading */
img {
  max-width: 100%;
  height: auto;
}

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 767px) {
  .project-navigation {
    flex-direction: column;
    align-items: stretch;
  }
  
  .back-link,
  .next-project {
    margin: 0;
    text-align: center;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .carousel-slide {
    transition: none;
  }

  .project-card:hover {
    transform: none;
  }

  .project-card:hover .project-image {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .header,
  .mobile-menu,
  .carousel-gradient,
  .carousel-nav-button {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .project-title,
  .about-title {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    height: auto !important;
  }
}