/* Modern Viking-Inspired CSS with Enhanced Animations */
:root {
  --gold: #d4af37;
  --dark: #1a1a2e;
  --blood: #8b0000;
  --sky: #4682b4;
  --stone: #c0c0c0;
  --parchment: #f5e7d0;
  --wood: #5e2c04;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--dark);
  color: #fff;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Animated Viking Ship Background */
.viking-ship-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/ship-bg.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: -1;
  animation: sail 60s linear infinite;
}

@keyframes sail {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating Runes */
.floating-runes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url('../assets/runes.png');
  opacity: 0.05;
  animation: float 30s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-50px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  animation: scaleIn 0.3s;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: -10px;
  right: 10px;
  color: var(--gold);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.close-modal:hover {
  color: white;
  transform: rotate(90deg);
}

#welcome-video {
  width: 100%;
  height: auto;
  display: block;
  border: 5px solid var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.9)), 
              url('../assets/travis-hero.jpg') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 70%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.seal {
  width: 120px;
  height: 120px;
  background: url('../assets/wax-seal.png') center/contain no-repeat;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
  animation: pulse 2s infinite alternate, floatSeal 8s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

@keyframes floatSeal {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Countdown Timer */
.countdown {
  margin: 2rem 0;
}

.countdown p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.countdown-timer {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(to right, var(--gold), #b38f2a);
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background: linear-gradient(to right, #b38f2a, var(--gold));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pulse {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Video Section */
.video-section {
  padding: 5rem 0;
  background: url('../assets/parchment-bg.jpg') center/cover;
  position: relative;
  overflow: hidden;
}

.video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 231, 208, 0.9);
  z-index: 0;
}

.video-section .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.video-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border: 10px solid var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 5px;
}

.video-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.video-thumbnail {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.video-wrapper:hover .video-thumbnail {
  transform: scale(1.02);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.8);
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0;
}

.play-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--dark);
}

.video-wrapper:hover .play-btn {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.video-caption {
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
  color: var(--dark);
  font-size: 1.1rem;
  animation: fadeInUp 1s ease 0.5s both;
}

/* Experience Grid */
.details {
  padding: 5rem 0;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/wood-texture.jpg') center/cover;
  opacity: 0.05;
  z-index: 0;
}

.details .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.details h2 {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.details h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.experience-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2rem;
  border-radius: 5px;
  transition: all 0.5s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  opacity: 0;
  transition: all 0.5s ease;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--gold);
}

.experience-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold);
  transition: all 0.3s ease;
}

.experience-card:hover .card-icon {
  transform: scale(1.2);
  animation: bounce 0.5s ease infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0) scale(1.2); }
  100% { transform: translateY(-5px) scale(1.2); }
}

.experience-card h3 {
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: url('../assets/fabric-bg.jpg') center/cover;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.9);
  z-index: 0;
}

.testimonials .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonials h2 {
  text-align: center;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 250px;
}

.testimonial {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial:not(.active) {
  transform: translateY(20px);
}

.quote-icon {
  width: 50px;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.testimonial p {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: bold;
  color: var(--gold);
}

/* Form Styles */
.form-section {
  background: url('../assets/wood-bg.jpg') center/cover;
  padding: 5rem 0;
  border-top: 5px solid var(--gold);
  position: relative;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 44, 4, 0.9);
  z-index: 0;
}

.form-section .container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
}

.form-header h2 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.remaining-spots {
  max-width: 500px;
  margin: 2rem auto 0;
}

.spots-progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--gold), var(--blood));
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.full-width {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--gold);
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--stone);
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-footer {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(to right, var(--blood), #5e0000);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 1rem auto;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn:hover {
  background: linear-gradient(to right, #5e0000, var(--blood));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-icon {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.secure-notice {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.secure-notice i {
  margin-right: 5px;
  color: var(--gold);
}

.success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--gold);
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.success-message h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

.success-countdown {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: #0d0d17;
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  border: 2px solid var(--gold);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-3px) scale(1.1);
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .full-width {
    grid-column: span 1;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-slider {
    padding: 0 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .seal {
    width: 80px;
    height: 80px;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .video-wrapper {
    border-width: 5px;
  }
  
  .play-btn {
    width: 60px;
    height: 60px;
  }
  
  .play-btn::after {
    border-width: 10px 0 10px 18px;
  }
}