/* Atelier Vance - Minimalist & Editorial Photography Portfolio Styles */
/* Refined Soft-Touch Luxury & Fluid Tactile Interactions */

:root {
  --bg-primary: #FAF9F5;
  --bg-secondary: #F3EFEB;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --text-primary: #151514;
  --text-secondary: #4A4843;
  --text-muted: #7D7A73;
  --border: rgba(21, 21, 20, 0.09);
  --border-subtle: rgba(21, 21, 20, 0.05);
  --accent: #151514;
  --accent-contrast: #FAF9F5;
  --surface-tint: rgba(21, 21, 20, 0.035);
  --surface-hover: rgba(21, 21, 20, 0.06);
  --shadow-soft-sm: 0 2px 8px -2px rgba(21, 21, 20, 0.05), 0 1px 4px -1px rgba(21, 21, 20, 0.03);
  --shadow-soft-md: 0 10px 30px -8px rgba(21, 21, 20, 0.08), 0 4px 12px -3px rgba(21, 21, 20, 0.04);
  --shadow-soft-lg: 0 20px 48px -12px rgba(21, 21, 20, 0.1), 0 8px 24px -5px rgba(21, 21, 20, 0.05);
  --bevel-light: inset 0 1px 1px 0 rgba(255, 255, 255, 0.75);
}

[data-theme="noir"] {
  --bg-primary: #0C0C0B;
  --bg-secondary: #151514;
  --bg-card: #181817;
  --bg-elevated: #1F1F1D;
  --text-primary: #F6F5F0;
  --text-secondary: #B8B5AD;
  --text-muted: #7E7B74;
  --border: rgba(246, 245, 240, 0.09);
  --border-subtle: rgba(246, 245, 240, 0.05);
  --accent: #F6F5F0;
  --accent-contrast: #0C0C0B;
  --surface-tint: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --shadow-soft-sm: 0 2px 10px -2px rgba(0, 0, 0, 0.45);
  --shadow-soft-md: 0 10px 32px -8px rgba(0, 0, 0, 0.65);
  --shadow-soft-lg: 0 24px 54px -12px rgba(0, 0, 0, 0.85);
  --bevel-light: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-editorial {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-mono-tech {
  font-family: 'JetBrains Mono', monospace;
}

/* Subtle Film Grain */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Selection */
::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Hairline dividers */
.hairline {
  height: 1px;
  background-color: var(--border);
}

/* Soft Pill Buttons & Tactile Interaction System */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-soft-sm);
  position: relative;
  cursor: pointer;
}

.btn-pill:hover {
  box-shadow: var(--shadow-soft-md);
  transform: translateY(-1px);
}

.btn-pill:active {
  transform: translateY(0) scale(0.975);
  box-shadow: var(--shadow-soft-sm);
}

.btn-primary-soft {
  background-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-soft-sm), var(--bevel-light);
}

.btn-primary-soft:hover {
  opacity: 0.94;
  box-shadow: var(--shadow-soft-md), var(--bevel-light);
}

.btn-secondary-soft {
  background-color: var(--surface-tint);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary-soft:hover {
  background-color: var(--surface-hover);
  border-color: var(--text-muted);
}

/* Soft Card Architecture */
.soft-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.soft-card:hover {
  box-shadow: var(--shadow-soft-md);
}

/* Soft Floating Nav Header */
.floating-nav-pill {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(250, 249, 245, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft-md);
  border-radius: 9999px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="noir"] .floating-nav-pill {
  background-color: rgba(12, 12, 11, 0.82);
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.7);
}

/* Pill Segmented Controls */
.pill-segmented-container {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  gap: 3px;
}

.pill-segment-btn {
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
}

.pill-segment-btn:hover {
  color: var(--text-primary);
}

.pill-segment-btn.active {
  background-color: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft-sm), var(--bevel-light);
  font-weight: 600;
}

[data-theme="noir"] .pill-segment-btn.active {
  background-color: var(--bg-elevated);
}

/* Soft Image Frame & Hover Mechanics */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-soft-sm);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-frame img {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: grayscale(8%) contrast(102%);
}

.photo-frame:hover img {
  transform: scale(1.035);
  filter: grayscale(0%) contrast(104%);
}

.photo-frame:hover {
  box-shadow: var(--shadow-soft-md);
}

/* Form Controls Soft Styling */
.soft-input {
  width: 100%;
  border-radius: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 0.875rem 1.125rem;
  transition: all 0.25s ease;
  outline: none;
}

.soft-input:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(21, 21, 20, 0.08);
  background-color: var(--bg-card);
}

[data-theme="noir"] .soft-input:focus {
  box-shadow: 0 0 0 3px rgba(246, 245, 240, 0.12);
}

/* Lightbox styles */
.lightbox-backdrop {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.94);
}

/* Smooth custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Fade in animation */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
