* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom, #111827, #1f2937);
  color: #f1f5f9;
  line-height: 1.5;
  overflow-x: hidden;
  background-color: #0f172a;
}

html {
  background-color: #0f172a;
}

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #b91c1c, #ef4444, #b91c1c);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  z-index: 1000;
  width: 0;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bg-element {
  position: fixed;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

#bg-1 {
  top: 10%;
  left: 10%;
  animation: float 20s infinite;
}

#bg-2 {
  top: 60%;
  right: 15%;
  animation: float 25s infinite reverse;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
}

#bg-3 {
  bottom: 20%;
  left: 20%;
  animation: float 22s infinite;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(50px, 50px);
  }
  50% {
    transform: translate(0, 100px);
  }
  75% {
    transform: translate(-50px, 50px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.hero-header {
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
}

.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827 0%, #374151 50%, #111827 100%);
}

.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185, 28, 28, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.logo-container svg {
  width: 3rem;
  height: 3rem;
  color: #ef4444;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 4s ease-in-out infinite alternate;
  margin-bottom: 1.5rem;
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(209, 213, 219, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(209, 213, 219, 0.6));
  }
}

.header-text {
  font-size: 1.25rem;
  color: #d1d5db;
  max-width: 64rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.4s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.main-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.content-section {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(55, 65, 81, 0.8) 50%, rgba(31, 41, 55, 0.9) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(185, 28, 28, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.section-visible {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ef4444;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 4px;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 100%;
}

.section-title svg {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(75, 85, 99, 0.8) 50%, rgba(55, 65, 81, 0.9) 100%);
  border: 1px solid rgba(185, 28, 28, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item.item-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  border-color: rgba(185, 28, 28, 0.3);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(185, 28, 28, 0.15);
}

.image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

/* Weapon Tags */
.weapon-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 5;
  backdrop-filter: blur(10px);
  border: 2px solid;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.foil-tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.epee-tag {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-item:hover .weapon-tag {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

.image-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.image-info {
  padding: 1.5rem;
}

.image-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.gallery-item:hover .image-info h3 {
  color: #f87171;
}

.image-info p {
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.gallery-item:hover .image-info p {
  color: #e5e7eb;
}

.image-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.image-meta span {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(185, 28, 28, 0.3);
}

/* Lightbox Styles */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -50px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95) 0%, rgba(55, 65, 81, 0.9) 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 600px;
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.lightbox-info h3 {
  color: #fca5a5;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.lightbox-info p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.lightbox-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.lightbox-actions .action-btn {
  width: auto;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(185, 28, 28, 0.95) 0%,
    rgba(127, 29, 29, 1) 50%,
    rgba(185, 28, 28, 0.95) 100%
  );
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.875rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 1) 100%);
  color: #b91c1c;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #7f1d1d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .weapon-tag {
    top: 8px;
    right: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .lightbox-close {
    top: -40px;
    right: -20px;
  }

  .lightbox-image {
    max-height: 60vh;
  }

  .bg-element {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .image-actions {
    flex-direction: column;
    gap: 0.25rem;
  }

  .action-btn {
    width: 35px;
    height: 35px;
  }

  .weapon-tag {
    top: 6px;
    right: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }
}
