/* 
 * Main stylesheet for 7 Wonders webpage
 * Adapted from the diatom-webpage and earth-webpage projects
 */

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  line-height: 1.6;
  color: #f0e6d2;
  background-color: #271d10;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.4);
  letter-spacing: 1px;
}

/* Container for all content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header styles */
header {
  background-color: rgba(39, 29, 16, 0.9);
  color: white;
  padding: 12px 0;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(224, 192, 136, 0.3);
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', 'Trajan Pro', serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.4);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

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: #e0c088;
  box-shadow: 0 0 8px #e0c088;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #e0c088;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.6);
}

nav ul li a:hover::after {
  width: 100%;
}

/* AI notice banner */
.ai-notice-container {
  position: fixed;
  top: 61px; /* Position just below the header */
  left: 0;
  right: 0;
  z-index: 999; /* Below the header but above other content */
  width: 100%;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ai-notice {
  background-color: rgba(59, 43, 25, 0.9);
  border-top: 1px solid rgba(224, 192, 136, 0.3);
  border-bottom: 1px solid rgba(224, 192, 136, 0.3);
  color: #f0e6d2;
  padding: 3px 0;
  text-align: center;
  border-radius: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ai-notice .phone {
  font-weight: bold;
  color: #e0c088;
  text-shadow: 0 0 8px rgba(224, 192, 136, 0.5);
  letter-spacing: 0.5px;
}

.ai-notice p {
  margin: 0;
  line-height: 1.4;
}

.ai-notice-inner {
  padding: 0 15px;
}

/* Hero section */
.hero {
  height: 70vh;
  min-height: 500px;
  margin-top: 50px;
  background: url('../../images/pyramidsatnight.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(39, 29, 16, 0.8) 0%, rgba(59, 43, 25, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  padding: 20px;
  max-width: 900px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: #e0c088;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
}

.hero p {
  font-size: 1.7rem;
  max-width: 800px;
  margin: 0 auto;
  color: #f0e6d2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.8);
  font-weight: 300;
}

/* Navigation buttons section */
.nav-buttons-section {
  padding: 40px 0;
  background-color: rgba(39, 29, 16, 0.8);
  text-align: center;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 250px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-button.ocean {
  background: linear-gradient(135deg, #053047 0%, #0a5d7f 100%);
  color: #7cd9ff;
  border: 1px solid rgba(124, 217, 255, 0.3);
}

.nav-button.ocean:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(124, 217, 255, 0.3);
}

.nav-button.space {
  background: linear-gradient(135deg, #0c1527 0%, #1a203c 100%);
  color: #7b9eff;
  border: 1px solid rgba(123, 158, 255, 0.3);
}

.nav-button.space:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(123, 158, 255, 0.3);
}

.nav-button.default {
  background: linear-gradient(135deg, #3b2b19 0%, #5a442c 100%);
  color: #e0c088;
  border: 1px solid rgba(224, 192, 136, 0.3);
}

.nav-button.default:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(224, 192, 136, 0.3);
}

/* Main content sections */
.section {
  padding: 80px 0;
  overflow: hidden;
  background-color: rgba(59, 43, 25, 0.7);
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(224, 192, 136, 0.2);
}

.section:nth-child(odd) {
  background-color: rgba(39, 29, 16, 0.7);
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #e0c088;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, rgba(224, 192, 136, 0.1), rgba(224, 192, 136, 0.8), rgba(224, 192, 136, 0.1));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(224, 192, 136, 0.6);
}

.section-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.text-block {
  flex: 1;
  padding: 20px;
  min-width: 300px;
}

.text-block p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0e6d2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.image-block {
  flex: 1;
  padding: 20px;
  min-width: 300px;
  text-align: center;
  order: 1;
}

.text-block {
  order: 2;
}

#greatpyramid .image-block,
#templeofartemis .image-block,
#statueofzeus .image-block,
#lighthouse .image-block {
  order: 2;
}

#greatpyramid .text-block,
#templeofartemis .text-block,
#statueofzeus .text-block,
#lighthouse .text-block {
  order: 1;
}

.image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(224, 192, 136, 0.3), 0 0 15px rgba(224, 192, 136, 0.2);
  transition: all 0.4s ease;
  filter: brightness(1.05) contrast(1.05);
  border: 1px solid rgba(224, 192, 136, 0.2);
}

.image-block img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(224, 192, 136, 0.6), 0 0 20px rgba(224, 192, 136, 0.4);
  filter: brightness(1.1) contrast(1.1);
  border: 1px solid rgba(224, 192, 136, 0.6);
}

/* Special styling for highlighting important information */
.highlight-box {
  background-color: rgba(59, 43, 25, 0.8);
  border-left: 5px solid rgba(224, 192, 136, 0.7);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 5px 15px rgba(224, 192, 136, 0.15), inset 0 0 30px rgba(39, 29, 16, 0.7);
  position: relative;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.highlight-box p {
  font-style: italic;
  color: #f0e6d2;
  line-height: 1.8;
  position: relative;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.highlight-box p::before {
  content: '"';
  font-size: 50px;
  color: rgba(224, 192, 136, 0.25);
  position: absolute;
  top: -20px;
  left: -15px;
  font-family: Georgia, serif;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.3);
}

.highlight-box p em {
  font-weight: 500;
  color: #e0c088;
  display: block;
  text-align: right;
  margin-top: 10px;
  font-style: normal;
  text-shadow: 0 0 8px rgba(224, 192, 136, 0.5);
}

/* Call to action section */
.cta {
  background: linear-gradient(135deg, #3b2b19 0%, #5a442c 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../../images/lighthouseofalexandria.jpg') no-repeat center center;
  background-size: cover;
  opacity: 0.1;
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
}

.cta h2 {
  margin-bottom: 25px;
  font-size: 2.5rem;
  color: #e0c088;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 20px;
  color: #f0e6d2;
}

.cta-button {
  display: inline-block;
  background-color: #8b6d3b;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background-color: #a07d43;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* VR box styles */
.vr-box {
  background-color: rgba(224, 192, 136, 0.1);
  padding: 20px;
  margin: 25px auto;
  max-width: 700px;
  border-radius: 8px;
  border: 1px solid rgba(224, 192, 136, 0.2);
}

/* Footer */
footer {
  background-color: #271d10;
  color: #fff;
  padding: 50px 0 30px;
  text-align: center;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8b6d3b, #a07d43, #e0c088);
}

footer p {
  margin-bottom: 15px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.qr-code {
  margin: 20px auto;
  text-align: center;
}

footer small {
  opacity: 0.7;
  font-size: 0.85rem;
}

footer a {
  color: #e0c088;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: none;
}

/* Ancient icons */
.ancient-icon {
  color: #e0c088;
  margin-right: 10px;
  text-shadow: 0 0 10px rgba(224, 192, 136, 0.5);
  animation: glow 2s infinite ease-in-out;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(224, 192, 136, 0.3);
  }
  50% {
    text-shadow: 0 0 15px rgba(224, 192, 136, 0.6), 0 0 20px rgba(224, 192, 136, 0.3);
  }
}

.highlight-box .ancient-icon {
  font-size: 1.2rem;
  opacity: 0.9;
  vertical-align: middle;
  margin-right: 8px;
}

/* Lists in content */
.text-block ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

.text-block li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #f0e6d2;
}

/* Scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
  animation-delay: 0.15s;
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.15s;
}

.delay-1 {
  animation-delay: 0.25s;
}

.delay-2 {
  animation-delay: 0.35s;
}

/* Responsive design */
@media (max-width: 992px) {
  .section-content {
    gap: 30px;
  }
  
  .text-block, .image-block {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .section-content {
    flex-direction: column !important;
  }
  
  .image-block, .text-block {
    order: 0 !important;
  }
  
  .hero {
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
  }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 15px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin: 0 10px;
    margin-bottom: 5px;
  }
  
  .cta h2 {
    font-size: 2rem;
  }
  
  .cta-button {
    padding: 12px 28px;
  }
  
  /* Make AI notice more responsive */
  .ai-notice-container {
    top: 125px;
  }
  
  .hero {
    margin-top: 65px;
  }
  
  .ai-notice {
    padding: 6px 0;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .text-block, .image-block {
    padding: 10px;
  }
  
  .highlight-box {
    padding: 20px;
    margin: 20px 0;
  }
  
  .cta {
    padding: 50px 0;
  }
  
  /* Fix for AI notice on mobile */
  .ai-notice-container {
    height: auto;
    position: fixed;
  }
  
  .ai-notice {
    min-height: auto;
    padding: 10px 0;
  }
  
  .ai-notice p {
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 5px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .ai-notice-container {
    top: 135px;
  }
  
  .ai-notice-inner {
    padding: 0 10px;
  }
  
  .ai-notice p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .hero {
    margin-top: 75px;
  }
}