/* 
 * Simplified ocean styling for diatom-webpage
 * Use this file to ensure ocean styling works on nginx
 */

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main ocean gradient */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #e6f7ff;
  background: linear-gradient(180deg, #053047 0%, #07456c 20%, #0a5d7f 40%, #0d7590 60%, #108aa1 80%, #13a0b1 100%);
  background-attachment: fixed;
  background-size: 100% 400%;
  background-position: 0% 0%;
  animation: depthChange 120s ease infinite alternate;
  overflow-x: hidden;
  position: relative;
}

/* Animation for depth change */
@keyframes depthChange {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Original Surfer', 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #7cd9ff;
  text-shadow: 0 0 15px rgba(124, 217, 255, 0.5);
  letter-spacing: 1px;
}

/* Navigation bar */
header {
  background-color: rgba(5, 48, 71, 0.6);
  color: white;
  padding: 12px 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 217, 255, 0.3);
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15), 0 0 8px rgba(124, 217, 255, 0.3);
  transition: all 0.3s ease;
}

.logo {
  font-family: 'Original Surfer', 'Quicksand', Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #7cd9ff;
  text-shadow: 0 0 10px rgba(124, 217, 255, 0.7);
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #7cd9ff;
  box-shadow: 0 0 8px #7cd9ff, 0 0 12px #7cd9ff;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #7cd9ff;
  text-shadow: 0 0 10px rgba(124, 217, 255, 0.8);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Section styles */
/* Simple flex layout with image ordering */
.section-content {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* By default, put images first (on left) */
.image-block {
  order: 1 !important;
}

.text-block {
  order: 2 !important;
}

/* For even sections, flip the order */
#importance .image-block,
#threats .image-block {
  order: 2 !important;
}

#importance .text-block,
#threats .text-block {
  order: 1 !important;
}

/* Text styles */
.text-block p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d9e6ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image styles */
.image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(78, 205, 196, 0.3), 0 0 15px rgba(124, 217, 255, 0.2);
  transition: all 0.4s ease;
  filter: brightness(1.05) contrast(1.05);
  border: 1px solid rgba(124, 217, 255, 0.2);
}

.image-block img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(78, 205, 196, 0.6), 0 0 20px rgba(124, 217, 255, 0.4);
  filter: brightness(1.1) contrast(1.1);
  border: 1px solid rgba(124, 217, 255, 0.6);
}

/* Ocean icon styles */
.ocean-icon {
  color: #4ecdc4;
  margin-right: 10px;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.8);
  animation: glow 2s infinite ease-in-out;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
  }
  50% {
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.8), 0 0 20px rgba(78, 205, 196, 0.5);
  }
}

/* AI notice */
.ai-notice {
  background-color: rgba(15, 30, 60, 0.8);
  border-top: 1px solid rgba(124, 217, 255, 0.3);
  border-bottom: 1px solid rgba(124, 217, 255, 0.3);
  color: #d9e6ff;
}

.ai-notice .phone {
  font-weight: bold;
  color: #7cd9ff;
  text-shadow: 0 0 8px rgba(124, 217, 255, 0.8);
}

/* Highlight box */
.highlight-box {
  background-color: rgba(15, 25, 50, 0.6);
  border-left: 5px solid rgba(78, 205, 196, 0.7);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.15), inset 0 0 30px rgba(10, 20, 40, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.highlight-box p {
  color: #d9e6ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.highlight-box p em {
  color: #7cd9ff;
  text-shadow: 0 0 8px rgba(124, 217, 255, 0.6);
}

/* Hero section with animation */
.hero {
  position: relative;
  background-color: transparent !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 48, 71, 0.85) 0%, rgba(7, 69, 108, 0.9) 100%) !important;
  z-index: 1;
  animation: underwaterLight 10s ease-in-out infinite alternate;
}

@keyframes underwaterLight {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.7; }
}

@keyframes underwaterWaves {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Responsive design */
@media (max-width: 768px) {
  /* On mobile, everything stacks normally */
  .image-block, .text-block {
    order: 0 !important;
  }
}