/* Common Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Enhanced Background Styles */
.page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
  transition: opacity 0.5s ease;
}

.page-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 51, 102, 0.95),
    rgba(0, 51, 102, 0.8)
  );
}

/* Enhanced Navigation */
nav {
  background: rgba(0, 51, 102, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

nav.scrolled {
  padding: 0.5rem 2rem;
  background: rgba(0, 51, 102, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff4d4d;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Enhanced Buttons */
.animated-button {
  position: relative;
  padding: 1rem 2rem;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 25px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.animated-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.5s ease;
}

.animated-button:hover::before {
  left: 100%;
}

.animated-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Card Animations */
.animated-card {
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease forwards;
}

.animated-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image loading styles */
img {
    transition: opacity 0.3s ease;
}

.loading {
    position: relative;
    background: #f0f0f0;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Remove error icon from broken images */
img:-moz-broken {
    visibility: hidden;
}

img:-moz-loading {
    visibility: hidden;
}

img:not([src]):not([srcset]) {
    visibility: hidden;
}

.ship-row, .ship-row-1, .ship-row-2, .ship-row-3 {
  animation-play-state: running !important;
} 