/* 
 * Visionary Silhouette - Global Styles
 * Design Philosophy: Minimalist, Modern, High-End
 */

/* 1. Base Typography & Reset */
:root {
  --font-primary: 'Helvetica Now', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'PingFang SC', sans-serif;
  --color-text-main: #1a1a1a;
  --color-bg-main: #fcfcfc;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 2. Utility Classes for Visual Effects */

/* Image Containers & Hover Effects */
.img-container {
  overflow: hidden;
  position: relative;
  background-color: #f0f0f0; /* Placeholder color */
}

.img-zoom {
  transition: transform 1.2s var(--ease-out-expo), opacity 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-container:hover .img-zoom {
  transform: scale(1.03);
}

/* Text Typography Enhancements */
.text-tracking-wide {
  letter-spacing: 0.1em;
}

.text-balance {
  text-wrap: balance;
}

/* Navigation Link Hover */
.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  background-color: currentColor;
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* 3. Animation Keyframes */

/* Fade Up on Load */
.fade-up {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

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

/* Scroll Indicator Bounce */
.scroll-indicator {
  animation: softBounce 2.5s infinite ease-in-out;
}

@keyframes softBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* 4. Component Styles */

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(252, 252, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease, padding 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #d1d1d1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #a3a3a3;
}

/* Lightbox/Modal */
.lightbox-overlay {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
}

/* Hide scrollbar when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Gallery Grid Adjustments */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 10px;
  gap: 0;
}