@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/inter-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}

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

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  min-height: 100vh;
  padding: 0;
  color: #ffffff;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  animation: fadeIn 0.8s ease-out forwards;
  box-sizing: border-box;
  will-change: opacity, transform;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


body::-webkit-scrollbar {
  width: 8px;
}

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

body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 40px 20px 4px 20px;
  box-sizing: border-box;
}

.site-header {
  text-align: center;
  margin-bottom: 60px;
  padding: 30px 0;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Desktop/Tablet - Compact header */
@media (min-width: 768px) {
  .site-header {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .logo-container {
    margin: 10px auto 0;
  }

  .site-logo {
    width: 100px;
  }

  .site-title {
    font-size: 32px;
    margin-bottom: 4px;
  }

  .site-subtitle {
    font-size: 12px;
  }
}

/* Mobile - Normal scroll layout */
@media (max-width: 767px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  body {
    height: auto;
    overflow: auto;
  }

  .container {
    height: auto;
    padding: 40px 16px 4px 16px;
  }

  .gallery-container {
    flex: none;
    overflow: visible;
  }

  .gallery-grid {
    min-height: auto;
  }
}

.logo-container {
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  width: 120px;
  height: auto;
  padding: 0;
}

.logo-container.no-logo {
  display: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.site-title {
  font-size: 42px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  margin-bottom: 8px;
}

.site-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 10px 0;
  justify-content: center;
  align-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(100vh - 516px);
}

.gallery-item {
  width: 280px;
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 1;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }
.gallery-item:nth-child(9) { animation-delay: 0.5s; }
.gallery-item:nth-child(10) { animation-delay: 0.55s; }
.gallery-item:nth-child(11) { animation-delay: 0.6s; }
.gallery-item:nth-child(12) { animation-delay: 0.65s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.image-box {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 20, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #e0e0e0;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.image-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.image-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.image-box:hover::before {
  background: rgba(0, 0, 0, 0.4);
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.1);
  min-height: 100%;
  display: block;
}

.image-box.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, 0.5);
}

.image-box.no-image .thumbnail {
  display: none;
}

.image-box.no-image::before {
  content: 'No Image';
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  position: static;
  background: none;
  opacity: 1;
}

.image-box:hover .thumbnail {
  transform: scale(1.1);
}

.image-box::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  z-index: 2;
  transition: transform 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.image-box:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Mobile styles */
@media (max-width: 767px) {
  .site-header {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .site-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .site-header::after {
    width: 60px;
  }

  .slider-container {
    min-height: 250px;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }

  .slider-nav.prev {
    left: 5px;
  }

  .slider-nav.next {
    right: 5px;
  }

  .slider-nav svg {
    width: 20px;
    height: 20px;
  }

  .category-tag {
    font-size: 10px;
    padding: 4px 10px;
    letter-spacing: 0.5px;
  }

  .image-box {
    border-radius: 12px;
  }

  .image-box::after {
    font-size: 12px;
    padding: 10px 20px;
    letter-spacing: 2px;
  }
}

/* Tablet styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-title {
    font-size: 42px;
    letter-spacing: 3px;
  }

  .slider-track {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
}

/* Desktop view - grid layout */
@media (min-width: 768px) {
  .slider-container {
    overflow: visible;
  }

  .slider-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding: 10px;
    transform: none !important;
  }

  .slider-item {
    flex: none;
    padding: 0;
  }
}

.container {
  position: relative;
  z-index: 1;
}

.site-body {
  margin: 40px 0 0 0;
  padding: 30px 40px;
  background: rgba(20, 20, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
}

.company-description {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.3px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .site-body {
    padding: 25px 20px;
    margin: 30px 0;
  }

  .company-description {
    font-size: 14px;
  }
}

.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-text {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-nzbn {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.footer-location {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-location-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-location {
    align-items: center;
  }
}

/* Page transition loading overlay */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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