/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arial', sans-serif;
  background: #000000;
  position: relative;
  overflow-x: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 40px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c33a3a;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #c33a3a;
}

.nav-link:hover::after {
  width: 100%;
}

/* Gallery Container */
.gallery-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 200px 20px 60px;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  width: 100%;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-content {
  width: fit-content;
  min-width: 100%;
}

/* Title */
.gallery-title {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
  z-index: 50;
  background: transparent;
  padding: 20px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-title.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Subtitle */
.gallery-subtitle {
  position: fixed;
  top: 160px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin: 0;
  letter-spacing: 0;
  z-index: 50;
  background: transparent;
  padding: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-subtitle.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Gallery Grid - BASE STYLES (dynamic values added by generator) */
.gallery-grid {
  display: grid;
  gap: 30px;
  padding: 30px;
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.gallery-grid::-webkit-scrollbar {
  height: 12px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(91, 190, 199, 0.6);
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(91, 190, 199, 0.8);
}

/* Gallery Items */
.gallery-item {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  border: 1px solid #5bbec7;
  flex-shrink: 0;
  aspect-ratio: 1 / 1.07;
}

.gallery-item:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Gallery Item Overlay - hidden by default, shown on hover */
.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
  padding: 30px 25px 25px;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-desc {
  font-size: 1rem;
  color: white;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  /* Limit to 2 lines with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-item-price {
  font-size: 1.2rem;
  color: #00ff88;
  margin: 8px 0 0 0;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Gallery Item Title - hidden by default, shown on hover */
.gallery-item-titel {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-item-titel {
  opacity: 1;
  transform: translateY(0);
}

/* Detail Page Styles */
.detail-container {
  min-height: 100vh;
  padding: 120px 70px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-content {
  max-width: 1400px;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.detail-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  /* Ensure proper clipping of animated images */
  isolation: isolate;
  border-radius: 10px;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Slide Navigation Buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.slide-btn:hover {
  background: rgba(195, 58, 58, 0.9);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slide-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Slide Indicators */
.slide-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slide-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.slide-indicator.active {
  background: #c33a3a;
  border-color: white;
  transform: scale(1.3);
}

/* Slide Animations */
.sliding-out-left {
  animation: slideOutLeft 0.6s ease forwards;
}

.sliding-out-right {
  animation: slideOutRight 0.6s ease forwards;
}

.sliding-in-from-left {
  animation: slideInFromLeft 0.6s ease forwards;
}

.sliding-in-from-right {
  animation: slideInFromRight 0.6s ease forwards;
}

.prepare-left {
  transform: translateX(-100%);
  transition: none;
}

.prepare-right {
  transform: translateX(100%);
  transition: none;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.detail-info {
  padding: 70px;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 30px;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.3;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.detail-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-family: Arial;
}

.detail-description p {
  margin-bottom: 20px;
}

.detail-description ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.detail-description li {
  padding: 10px 0 10px 30px;
  position: relative;
}

.detail-description li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #c33a3a;
  font-weight: bold;
}

.detail-actions {
  margin-top: 40px;
}

.btn-back {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #8a2334 0%, #c33a3a 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 35, 52, 0.3);
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(138, 35, 52, 0.4);
}

/* Purchase Form Styles */
.purchase-section {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.purchase-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.purchase-subtitle {
  font-size: 1rem;
  color: #666;
  margin: 0 0 30px;
}

.purchase-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
  border-color: #c33a3a;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(195, 58, 58, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #8a2334 0%, #c33a3a 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(138, 35, 52, 0.3);
  font-family: inherit;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(138, 35, 52, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.form-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 1rem;
  font-weight: 500;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.form-message svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .gallery-grid {
    gap: 25px;
  }

  .gallery-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-content {
    gap: 25px;
    padding: 15px 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .gallery-container {
    padding: 100px 15px 40px;
  }

  .gallery-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .gallery-grid {
    gap: 20px;
    padding: 0 10px 10px;
  }

  .detail-info {
    padding: 40px;
  }

  .detail-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .nav-content {
    gap: 20px;
    padding: 12px 15px;
  }

  .nav-link {
    font-size: 13px;
  }

  .gallery-container {
    padding: 90px 10px 30px;
  }

  .gallery-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .gallery-grid {
    gap: 15px;
    padding: 0 5px 10px;
  }

  .gallery-item {
    border-radius: 15px;
  }

  .detail-info {
    padding: 30px 20px;
  }

  .detail-title {
    font-size: 2rem;
  }

  .detail-description {
    font-size: 1rem;
  }

  .purchase-title {
    font-size: 1.75rem;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}

/* TYPE 1 HOVER EFFECT STYLES - GENERATED DYNAMICALLY */
/* Triggers, balls, animations will be added here by generator */


/* DYNAMIC CSS - GENERATED BY PORTFOLIO MANAGER */
.gallery-grid {
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 40px;
  width: 101.0%;
  padding: 5px;
  margin: 0;
}

/* Responsive breakpoints for gallery grid */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  .gallery-item-titel {
    font-size: clamp(0.9rem, 4vw, 1.4rem) !important;
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .gallery-item-overlay {
    padding: 15px 12px 12px;
  }
  .gallery-item-desc {
    font-size: 0.85rem;
  }
  .gallery-item-price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 13px;
  }
  .gallery-item-titel {
    font-size: clamp(0.75rem, 3.5vw, 1.1rem) !important;
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .gallery-item-overlay {
    padding: 10px 8px 8px;
  }
  .gallery-item-desc {
    font-size: 0.75rem;
  }
  .gallery-item-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Detail Page Content Width */
.detail-content {
  max-width: 100%;
}

/* Detail Slideshow Height */
.detail-image-wrapper {
  aspect-ratio: 100 / 100;
}

/* Menu Styling */
.navbar {
  background-color: #1a1a1a;
}

.nav-link {
  color: #ffffff;
}

/* Gallery Item Shadow */
.gallery-item {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Gallery Title Color and Shadow */
.gallery-title {
  color: #535353;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

/* Gallery Subtitle Color and Shadow */
.gallery-subtitle {
  color: #535353;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

/* Responsive breakpoints for detail pages */
@media (max-width: 768px) {
  .detail-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .detail-content {
    max-width: 100vw !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .detail-info {
    padding: 0 15px !important;
  }
}

@media (max-width: 480px) {
  .detail-container {
    padding: 0 !important;
  }
  
  .detail-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .detail-info {
    padding: 0 10px !important;
  }
  
  /* Ensure footer is full width and at bottom */
  .page-footer-image {
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .page-footer-image img {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Ensure footer is always full width */
.page-footer-image {
  width: 100% !important;
  max-width: 100% !important;
}

.page-footer-image img {
  width: 100% !important;
  max-width: 100% !important;
}
