/* Base Variables */
:root {
  --primary-color: #c0392b;
  --secondary-color: #8e44ad;
  --accent-color: #f5c46b;
  --dark-color: #3e2b23;
  --light-color: #fff8f0;
  --text-color: #333;
  --white: #fff;
  --black: #121010;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

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

.spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(192, 57, 43, 0.3);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-size: 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation */
.portfolio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(245, 196, 107, 0.2);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.back-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
}

.back-btn:hover {
  color: var(--secondary-color);
  transform: translateX(-3px);
}

.nav-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--dark-color);
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 196, 107, 0.1), rgba(142, 68, 173, 0.1));
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

/* Search Container */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeInUp 1s ease 0.4s both;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-color);
  font-size: 1.2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(245, 196, 107, 0.3);
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Filter Section */
.filter-section {
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(245, 196, 107, 0.3);
  border-radius: 50px;
  background: var(--white);
  color: var(--dark-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: rgba(245, 196, 107, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 5px 20px rgba(192, 57, 43, 0.3);
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Portfolio Card */
.portfolio-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  cursor: pointer;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease both;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.portfolio-card:hover .card-image {
  transform: scale(1.1);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.overlay-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.portfolio-card:hover .overlay-content {
  transform: translateY(0);
}

.overlay-artist {
  color: var(--dark-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.overlay-details {
  color: var(--text-color);
  font-size: 0.8rem;
}

/* Card Badges */
.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent-color), #ffd700);
  color: var(--dark-color);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.heart-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-card:hover .heart-icon {
  opacity: 1;
}

.heart-icon:hover {
  background: var(--white);
  transform: scale(1.1);
}

/* Card Content */
.card-content {
  padding: 1.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.portfolio-card:hover .card-title {
  color: var(--primary-color);
}

.card-description {
  color: var(--dark-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--dark-color);
  opacity: 0.7;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--white);
  transform: scale(1.1);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Modal Image Section */
.modal-image-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--white);
  transform: scale(1.1);
}

.image-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.indicator.active,
.indicator:hover {
  background: var(--white);
  transform: scale(1.2);
}

/* Modal Details */
.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow-y: auto;
}

.modal-category {
  background: linear-gradient(135deg, var(--accent-color), #ffd700);
  color: var(--dark-color);
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--dark-color);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--light-color);
  border-radius: 10px;
}

.detail-label {
  font-weight: 600;
  color: var(--dark-color);
}

.detail-value {
  font-weight: 500;
}

.detail-value.artist {
  color: var(--primary-color);
}

.detail-value.duration {
  color: var(--secondary-color);
}

.detail-value.price {
  color: var(--accent-color);
  font-weight: bold;
}

.book-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192, 57, 43, 0.3);
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-image-section {
    height: 400px;
  }
  
  .modal-details {
    height: auto;
    max-height: 400px;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .search-container {
    margin: 0 1rem;
  }
  
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-details {
    padding: 1.5rem;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
}