/* Elegant Artist Website Styles */
/* Custom Properties */
:root {
  --primary-color: #526d1b;
  --primary-dark: #556B2F;
  --primary-light: #9ACD32;
  --text-color: #2F4F2F;
  --text-light: #666666;
  --background-color: #FFFFFF;
  --background-secondary: #FAFAFA;
  --accent-color: #DAA520;
  --border-color: #E5E5E5;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  --border-radius: 4px;
  --border-radius-large: 8px;
  --transition-speed: 0.3s ease;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

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

body {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Text', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

/* Layout */
main {
  min-height: 100vh;
  padding: 0;
}

section {
  padding: var(--spacing-xxl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #FFFFFF; /* Solid white background for better visibility */
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav-container {
  transition: all var(--transition-speed);
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Crimson Text', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFFFFF; /* White text */
  letter-spacing: -0.01em;
  position: relative;
}

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

.nav-menu li a {
  font-family: 'Crimson Text', serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-speed);
  color: #FFFFFF; /* White text */
  position: relative; /* for underline pseudo-element */
  overflow: visible;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  border-bottom-color: var(--primary-color);
  color: #FFFFFF; /* Keep white on hover */
}

/* Animated white underline for nav links */
.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: -6px;
  height: 2px;
  background: rgba(255,255,255,0);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  transform: scaleX(1);
  background: #FFFFFF;
}

/* Logo underline effect */

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: rgba(255,255,255,0);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

/* Hero Section */
.hero {
  background-color: transparent; 
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-xl);
  color: var(--text-light);
}

/* Primary CTA button - olive green with white text and animated underline on hover */
.cta-button {
  display: inline-block;
  position: relative;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: var(--shadow-light);
  text-decoration: none;
  overflow: visible;
}

/* underline pseudo-element */
.cta-button::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: rgba(255,255,255,0);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.cta-button:hover {
  /* Keep the button background olive but maintain white text */
  background-color: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cta-button:hover::after {
  transform: scaleX(1);
  background: #FFFFFF; /* white underline */
}

/* Gallery Section */
.gallery {
  padding-top: var(--spacing-xxl);
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xxl);
  position: relative;
}

.gallery h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
}

.gallery-grid {
  column-count: 3;
  column-gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background-color: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed);
  cursor: pointer;
  display: inline-block;
  width: 100%;
  margin-bottom: var(--spacing-sm);
  break-inside: avoid;
}

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

.gallery-item:hover .overlay {
  transform: translateY(0);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform var(--transition-speed);
  background-color: #f8f8f8;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.96));
  color: #FFFFFF;
  padding: 20px;
  transform: translateY(100%);
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.gallery-item .overlay h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-item .overlay p {
  font-size: 0.9rem;
  margin: 0.25rem 0;
  opacity: 0.95;
}

.item-status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-xs);
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.item-status.sold {
  background-color: rgba(220, 20, 60, 0.8); /* Red background for sold items */
  color: #FFFFFF;
}

.item-status.available {
  background-color: rgba(34, 139, 34, 0.8); /* Green background for available items */
  color: #FFFFFF;
}

.gallery-item p {
  font-size: 0.9rem;
  opacity: 0.9;
  font-family: 'Segoe UI', sans-serif;
}

/* Featured Item */
.embed-container {
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.featured-image-container {
  position: relative;
  background-color: white;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.featured-image-container img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  transition: transform var(--transition-speed);
}

.featured-image-container:hover img {
  transform: scale(1.02);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: var(--spacing-xl);
}

.featured-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.featured-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: 'Segoe UI', sans-serif;
}

/* Bio Section */
.bio {
  background-color: var(--background-secondary);
  padding: var(--spacing-xxl) 0;
  margin: var(--spacing-xxl) 0;
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.bio-text h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.bio-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
  margin-top: var(--spacing-xxl);
}

footer p {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2001;
  transition: color var(--transition-speed);
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-media-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  min-height: 60vh; /* Ensure minimum height for image display */
}

.modal-media-container img,
.modal-media-container video,
.modal-media-container iframe {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-heavy);
}

.modal-data {
  color: #FFFFFF;
  padding: 0.5rem;
  text-align: center;
  flex-shrink: 0; /* Prevent shrinking */
}

.modal-data-content {
  max-width: 800px;
  margin: 0 auto;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.modal-status {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.modal-status.sold {
  background-color: rgba(220, 20, 60, 0.8);
}

.modal-status.available {
  background-color: rgba(34, 139, 34, 0.8);
}

.modal-details {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.modal-medium,
.modal-dimensions,
.modal-year {
  margin-right: 0.75rem;
}

.modal-description {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 3;
    column-gap: var(--spacing-sm);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .nav-menu {
    gap: var(--spacing-md);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: var(--spacing-sm);
  }

  .bio-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .modal-close {
    top: 15px;
    right: 20px;
    font-size: 30px;
  }

  .modal-nav {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .modal-prev {
    left: 15px;
  }

  .modal-next {
    right: 15px;
  }
}

@media (max-width: 480px) {
  section {
    padding: var(--spacing-lg);
  }

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

  .hero h1 {
    font-size: 2rem;
  }

  .gallery h2 {
    font-size: 2rem;
  }

  .gallery-grid {
    column-count: 1;
    column-gap: 0;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-0 {
  margin-top: 0;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  flex: 1;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  text-align: left;
}

.nav-menu {
  flex: 2;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-social {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.nav-social-link .social-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1); /* Make icons white */
}

.nav-social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-social-link:hover .social-icon {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(25deg); /* Make icons golden on hover */
}

.nav-menu {
  flex: 2;
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: var(--transition-speed);
}

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
}

/* Hero Section */

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
  color: var(--text-light);
}

/* CTA buttons: olive green background with white text */
.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: all var(--transition-speed);
  animation: fadeInUp 1s ease-out 0.4s both;
  box-shadow: var(--shadow-light);
}

.cta-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Gallery Styles */
/* Responsive Gallery Styles */
@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
    column-gap: 1rem;
  }
}

/* Embed Styles */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 2rem 0;
  cursor: pointer;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Featured Item Styles */
.featured-image-container {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.featured-image-container img {
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 20px;
  text-align: center;
}

.featured-overlay h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.featured-overlay p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Small Embed Container for Gallery Grid */
.embed-container-small {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.embed-container-small iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Bio Section */
.bio {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.bio h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.bio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.bio-text {
  text-align: left;
}

.bio-text p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.bio-image {
  position: relative;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  max-width: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter:
    sepia(0.1)
    contrast(1.05)
    brightness(1.02)
    saturate(1.1);
}

.bio-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(45deg, rgba(218, 165, 32, 0.05) 0%, transparent 50%, rgba(107, 142, 35, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.bio-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 0;
}

.bio-image:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(218, 165, 32, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  filter:
    sepia(0.05)
    contrast(1.08)
    brightness(1.05)
    saturate(1.15);
  transform: scale(1.02);
}

.bio-image:hover img {
  transform: scale(1.05);
}

.bio-image:hover::before {
  background:
    radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(45deg, rgba(218, 165, 32, 0.08) 0%, transparent 50%, rgba(107, 142, 35, 0.08) 100%);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: left var(--transition-speed);
    padding: 2rem 0;
    display: flex;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -8px);
  }

  .hero h1 {
    font-size: 3.5rem !important;
    animation: fadeInUp 1s ease-out;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
  }

  .hero p {
    font-size: 1.1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .bio-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bio-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: 4rem;
}

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

footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  color: white;
}

.social-media {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.social-link .social-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* Make icons white */
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-link:hover .social-icon {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(25deg); /* Make icons golden on hover */
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 95%;
  max-width: 1400px;
  max-height: 900px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition-speed);
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 24px;
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modal-nav-pulse 3s ease-in-out infinite;
}

.modal-nav::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
}

.modal-nav:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: none;
}

.modal-nav:hover::before {
  width: 140px;
  height: 140px;
}

.modal-nav:active {
  transform: translateY(-50%) scale(0.95);
  transition: transform 0.1s ease;
}

.modal-nav span {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.modal-nav:hover span {
  transform: scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-media-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-media-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.modal-media-container video {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--border-radius);
}

.modal-media-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius);
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 95%;
  }

  .modal-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }

  .modal-nav {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .modal-prev {
    left: 10px;
  }

  .modal-next {
    right: 10px;
  }
}

/* Mobile modal styles */
@media (max-width: 480px) {
  .modal-nav {
    width: 55px;
    height: 55px;
    font-size: 18px;
  }

  .modal-prev {
    left: 5px;
  }

  .modal-next {
    right: 5px;
  }
}

.social-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .social-media {
    justify-content: center;
  }

  .nav-social {
    display: none; /* Hide nav social on mobile to save space */
  }
}

/* Featured Works Carousel */
.featured-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden; /* Hide only horizontal overflow */
  overflow-y: visible; /* Allow vertical overflow for shadows */
}

.carousel-container {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-group {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  height: 100%;
  align-items: center;
  width: auto;
  min-width: 100%;
}

.carousel-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed);
  cursor: pointer;
  height: 400px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.carousel-item.last-visible {
  box-shadow: var(--shadow-heavy), 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.carousel-item.last-visible::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.carousel-item img,
.carousel-item video,
.carousel-item iframe {
  width: auto;
  height: 400px;
  max-width: 600px;
  min-width: 200px;
  object-fit: contain;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background-color: #f8f8f8; /* Add background for letterboxed images */
  display: block;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.carousel-item:hover .carousel-overlay {
  transform: translateY(0);
}

.carousel-overlay h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.carousel-overlay p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.carousel-nav:disabled:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: white;
  border-color: white;
}

.carousel-indicator:hover {
  background: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.7);
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel-group {
    gap: 0.25rem;
    padding: 0 0.25rem;
  }
  
  .carousel-container {
    padding: 0;
  }

  .carousel-item img,
  .carousel-item video,
  .carousel-item iframe {
    max-width: 400px;
    min-width: 150px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-overlay {
    padding: 0.25rem;
  }

  .carousel-overlay h3 {
    font-size: 1rem;
  }

  .carousel-overlay p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 400px;
    padding: 0;
  }

  .carousel-group {
    gap: 0.25rem;
    padding: 0 0.25rem;
  }

  .carousel-item img,
  .carousel-item video,
  .carousel-item iframe {
    height: 400px;
    max-width: 350px;
    min-width: 200px;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }
}