/* ============================================
   Modern Portfolio Site Stylesheet
   Maisie Douglas Photography
   ============================================ */

:root {
  --color-bg: #FAF8F3;
  --color-text: #1A1A1A;
  --color-text-light: #666;
  --color-accent: #E07A5F;
  --color-accent-dark: #C85D42;
  --color-accent-light: rgba(224, 122, 95, 0.1);
  --color-white: #FFFFFF;
  --color-overlay: rgba(26, 26, 26, 0.65);
  --color-overlay-light: rgba(26, 26, 26, 0.3);
  
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --shadow-accent: 0 4px 24px rgba(224, 122, 95, 0.25);
  --shadow-accent-lg: 0 8px 32px rgba(224, 122, 95, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;
  
  --max-width: 1200px;
  --max-width-narrow: 900px;
  
  --header-height: 72px;
  --header-height-mobile: 64px;
}

/* ============================================
   Base Styles
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .header-container {
    height: var(--header-height-mobile);
    padding: 0 var(--spacing-sm);
  }
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  transition: var(--transition-fast);
  position: relative;
  z-index: 1001;
}

.logo:hover,
.logo:focus {
  color: var(--color-accent);
}

.logo-text {
  display: block;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  z-index: 1001;
  position: relative;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}

.menu-toggle-icon {
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: center;
}

body.nav-open .menu-toggle-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation */
.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-height-mobile);
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: calc(100vh - var(--header-height-mobile));
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md);
    align-items: stretch;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-link--cta {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover,
.nav-link--cta:focus {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

@media (max-width: 768px) {
  .nav-link {
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link--cta {
    margin-top: var(--spacing-sm);
    text-align: center;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

@media (max-width: 768px) {
  body.nav-open .nav-overlay {
    display: block;
    opacity: 1;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  padding-top: var(--header-height);
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--header-height-mobile);
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.4) 0%,
    rgba(26, 26, 26, 0.2) 50%,
    rgba(26, 26, 26, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--spacing-xl) var(--spacing-md);
  animation: fadeInUp 1s ease-out;
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 3vw, 1.75rem);
  font-weight: 400;
  margin-bottom: var(--spacing-xs);
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.hero-scroll {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  opacity: 0.8;
  animation: bounce 2s infinite;
  transition: var(--transition-fast);
}

.hero-scroll:hover,
.hero-scroll:focus {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - var(--header-height-mobile));
  }

  .hero-content {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before,
.btn:focus::before {
  opacity: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.btn.loading .btn-text {
  opacity: 0;
}

.btn.loading .btn-loader {
  display: block;
  position: absolute;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) 0;
  }
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  color: var(--color-text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title--centered {
  text-align: center;
  display: block;
}

.section-title--centered::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

.section-content p {
  margin-bottom: var(--spacing-md);
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
  background: var(--color-white);
  margin-top: calc(var(--spacing-2xl) * -0.5);
  position: relative;
  z-index: 10;
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 6px solid var(--color-accent-light);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.about-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.about-text {
  max-width: 600px;
}

@media (max-width: 968px) {
  .about-text {
    max-width: 100%;
  }
}

.about-text .section-title {
  margin-bottom: var(--spacing-md);
}

.about-text .btn {
  margin-top: var(--spacing-md);
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio-section {
  background: var(--color-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
  }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 4 / 3;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--color-bg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleX(1);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-accent);
  color: var(--color-white);
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.service-description {
  color: var(--color-text-light);
  line-height: 1.7;
}

.services-cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* ============================================
   Instagram Section
   ============================================ */

.instagram-section {
  background: var(--color-bg);
}

.instagram-widget {
  margin-top: var(--spacing-lg);
  min-height: 200px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(224, 122, 95, 0.05) 100%);
}

.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .contact-wrapper {
    padding: var(--spacing-lg);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  display: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.form-message.show {
  display: flex;
}

.form-success {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.form-error {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.2);
}

.form-message svg {
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
  border-top: 4px solid var(--color-accent);
}

.footer-content {
  text-align: center;
}

.footer-copyright {
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transition: var(--transition);
}

.social-link:hover,
.social-link:focus {
  background: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.footer-credit {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-credit a {
  color: var(--color-accent);
  font-weight: 600;
  transition: var(--transition-fast);
}

.footer-credit a:hover,
.footer-credit a:focus {
  opacity: 1;
  text-decoration: underline;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--spacing-md);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

#lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-info {
  color: var(--color-white);
  font-size: 0.9375rem;
  opacity: 0.8;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close {
  top: var(--spacing-md);
  right: var(--spacing-md);
}

.lightbox-prev {
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-thumbnails {
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  max-width: 90vw;
  overflow-x: auto;
  margin-top: var(--spacing-md);
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.1);
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 3px;
}

.lightbox-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.lightbox-thumbnails img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-thumbnails img.active {
  opacity: 1;
  border-color: var(--color-accent);
}

@media (max-width: 768px) {
  .lightbox-close,
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-close {
    top: var(--spacing-sm);
    right: var(--spacing-sm);
  }

  .lightbox-prev {
    left: var(--spacing-sm);
  }

  .lightbox-next {
    right: var(--spacing-sm);
  }

  .lightbox-thumbnails img {
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   Animations & Transitions
   ============================================ */

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

.fade-in {
  animation: fadeIn 0.3s ease;
}

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

/* Intersection Observer animations */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .site-header,
  .hero-scroll,
  .lightbox,
  .nav-overlay {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }
}