* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  background: #1a3a52;
  color: #f5f1e8;
  position: relative;
}

/* Fixed backdrop image */
.backdrop-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: -2;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.3s forwards;
}

/* Fixed backdrop overlay */
.backdrop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 58, 82, 0.4);
  z-index: -1;
}

/* Fixed vintage texture */
.vintage-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.vintage-border {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  border: 15px solid #e8dcc4;
  border-radius: 15px;
  box-shadow:
    inset 0 0 50px rgba(0,0,0,0.3),
    0 10px 50px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 1s ease-out 1s forwards;
}

.hero-content {
  z-index: 2;
  position: relative;
  padding: 2rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
}

.hero-content.animate .greeting {
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero-content.animate .tagline {
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.hero-content.animate .subtitle {
  animation: fadeInUp 0.8s ease-out 1.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.greeting {
  font-family: 'Caveat', cursive;
  font-size: 3.5rem;
  color: #f5f1e8;
  margin-bottom: 1rem;
  text-shadow:
    3px 3px 6px rgba(0,0,0,0.9),
    0 0 20px rgba(217, 125, 84, 0.5);
  transform: rotate(-3deg);
}

.tagline {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #d97d54;
  margin-bottom: 2rem;
  transform: rotate(2deg);
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.9),
    0 0 15px rgba(217, 125, 84, 0.6);
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f5f1e8;
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem;
  background: rgba(13, 59, 82, 0.9);
  border: 3px solid #d97d54;
  border-radius: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  z-index: 2;
  opacity: 0;
  color: #f5f1e8;
  font-size: 2rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}

.scroll-left {
  left: 50px;
}

.scroll-center {
  left: 50%;
  transform: translateX(-50%);
}

.scroll-right {
  right: 50px;
}

.scroll-indicator.show {
  animation: fadeIn 0.5s ease-out 1.8s forwards, bounce 2s infinite 1.8s;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.scroll-left.show {
  animation: fadeIn 0.5s ease-out 1.8s forwards, bounceLeft 2s infinite 1.8s;
}

@keyframes bounceLeft {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(0%) translateY(0);
  }
  40% {
    transform: translateX(0%) translateY(-20px);
  }
  60% {
    transform: translateX(0%) translateY(-10px);
  }
}

.scroll-right.show {
  animation: fadeIn 0.5s ease-out 1.8s forwards, bounceRight 2s infinite 1.8s;
}

@keyframes bounceRight {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-100%) translateY(0);
  }
  40% {
    transform: translateX(-100%) translateY(-20px);
  }
  60% {
    transform: translateX(-100%) translateY(-10px);
  }
}

.section {
  padding: 100px 20px;
  position: relative;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 241, 232, 0.92);
  z-index: 0;
}

.section-alt .section-overlay {
  background: rgba(94, 179, 196, 0.9);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: 'Righteous', cursive;
  font-size: 5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #0d3b52;
  text-shadow:
    3px 3px 0px #d97d54,
    -1px -1px 0px #5eb3c4;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-alt .section-title {
  color: #f5f1e8;
  text-shadow:
    3px 3px 0px #0d3b52,
    -1px -1px 0px #d97d54;
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 150px;
  height: 5px;
  background: repeating-linear-gradient(
    45deg,
    #d97d54,
    #d97d54 10px,
    #0d3b52 10px,
    #0d3b52 20px
  );
  transition: transform 0.6s ease-out 0.3s;
}

.section-title.visible::after {
  transform: translateX(-50%) scaleX(1);
}

.intro-text {
  text-align: center;
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  color: #1a3a52;
}

.section-alt .intro-text {
  color: #f5f1e8;
}

.intro-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: rgba(245, 241, 232, 0.95);
  border: 4px solid #0d3b52;
  border-radius: 15px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  box-shadow: 8px 8px 0px rgba(217, 125, 84, 0.8);
}

.card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card:nth-child(1).visible { transition-delay: 0.1s; }
.card:nth-child(2).visible { transition-delay: 0.2s; }
.card:nth-child(3).visible { transition-delay: 0.3s; }
.card:nth-child(4).visible { transition-delay: 0.4s; }

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    #d97d54,
    #d97d54 10px,
    #5eb3c4 10px,
    #5eb3c4 20px
  );
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 12px 12px 0px rgba(217, 125, 84, 0.9);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
  filter: drop-shadow(2px 2px 0px #5eb3c4);
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
}

.card-title {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: #0d3b52;
  margin-bottom: 1rem;
}

.card-text {
  line-height: 1.6;
  color: #1a3a52;
}

.cta-section {
  padding: 100px 20px;
  text-align: center;
  position: relative;
}

.cta-section .section-overlay {
  background: rgba(217, 125, 84, 0.92);
}

.cta-title {
  font-family: 'Righteous', cursive;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: #f5f1e8;
  text-shadow:
    4px 4px 0px #0d3b52,
    -2px -2px 0px #5eb3c4;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-title.visible {
  opacity: 1;
  transform: scale(1);
}

.cta-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  position: relative;
  z-index: 2;
  color: #f5f1e8;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-text.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Righteous', cursive;
  letter-spacing: 0.05em;
  background: #0d3b52;
  color: #f5f1e8;
  border: 4px solid #f5f1e8;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-shadow: 6px 6px 0px rgba(94, 179, 196, 0.8);
  opacity: 0;
  transform: translateY(20px);
}

.btn.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0px rgba(94, 179, 196, 0.9);
  background: #f5f1e8;
  color: #0d3b52;
}

/* Button group for side-by-side buttons */
.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Secondary button style */




/* Mobile: stack buttons vertically */
@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}


.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: rgba(245, 241, 232, 0.95);
  border-radius: 15px;
  border: 4px solid #0d3b52;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.8) rotate(-5deg);
  box-shadow: 6px 6px 0px rgba(217, 125, 84, 0.8);
}

.value-item.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.value-item:nth-child(1).visible { transition-delay: 0.1s; }
.value-item:nth-child(2).visible { transition-delay: 0.2s; }
.value-item:nth-child(3).visible { transition-delay: 0.3s; }
.value-item:nth-child(4).visible { transition-delay: 0.4s; }

.value-item:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 10px 10px 0px rgba(217, 125, 84, 0.9);
}

.value-number {
  font-family: 'Righteous', cursive;
  font-size: 5rem;
  color: #0d3b52;
  line-height: 1;
  text-shadow: 3px 3px 0px #5eb3c4;
}

.value-label {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #1a3a52;
}

.footer {
  padding: 50px 20px;
  text-align: center;
  position: relative;
}

.footer .section-overlay {
  background: rgba(13, 59, 82, 0.95);
  border-top: 5px solid #d97d54;
}

.footer-text {
  color: #363645;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.handwritten {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #d97d54;
  text-align: center;
  margin: 2rem 0;
  transform: rotate(-1deg);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  text-shadow: 2px 2px 0px rgba(13, 59, 82, 0.3);
}

a {
  text-decoration: none;
  color: #0e3a4f;
}

.handwritten.visible {
  opacity: 1;
}

.find-us-content {
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  color: #1a3a52;
}

.find-us-content.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .greeting {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}
