/* Global Reset remains unchanged */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Lato', sans-serif;
  overflow-x: hidden;
}

/* ---------- Content Elements ---------- */
.hero {
  position: relative;
  height: 100vh;
  background: url('golf-course.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Header styling remains the same */
.header {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  text-align: center;
}
.logo {
  display: block;
  margin: 0 auto;
  transform: translateX(13px); /* Shift right by px */
  width: 400px;
  max-width: 400px;
}


/* Hero Content styling */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 20px;
  transform: translateY(-10%); /* Moves content 10% higher */
}

.enter-btn {
  background-color: #0A6642;
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-bottom: 30px;
}
.enter-btn:hover {
  background-color: #1D835E;
  transform: scale(1.05);
}
.disclaimer {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
}

/* Footer styling */
.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}
.contact-info {
  font-size: 0.9rem;
  color: #fff;
}

/* ---------- Reveal Effect Elements ---------- */

/* White overlay that will be progressively wiped from left to right */
.white-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 999; /* Above content but below the golf ball */
  pointer-events: none;
  /* Animate the white overlay so that its left edge moves across */
  animation: wipeOverlay 1.5s ease forwards;
}

/* Keyframes for the white overlay wipe effect */
@keyframes wipeOverlay {
  0% {
    /* Initially, the overlay is fully visible */
    clip-path: inset(0 0 0 0);
  }
  100% {
    /* At the end, only a zero‑width slice remains (all cleared from left) */
    clip-path: inset(0 0 0 100%);
  }
}

/* Container for the golf ball */
.reveal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000; /* Above white overlay */
  pointer-events: none;
  overflow: hidden;
}

/* The golf ball – it rolls across the screen */
.golf-ball {
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -200%;
  background: url('./golfball-removebg-preview.png') no-repeat center center;
  background-size: contain;
  animation: rollBall 3.5s ease forwards;
  clip-path: circle(49% at center); /* Ensures a circular shape */
  /* Optionally remove mix-blend-mode for cleaner effect with the new overlay animation */
  /* mix-blend-mode: screen; */
}

/* Keyframes for the golf ball rolling animation */
@keyframes rollBall {
  0% {
    left: -200%;
    transform: rotate(0deg);
  }
  100% {
    left: 100%;
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments for Mobile Devices */
@media (max-width: 480px) {
  .logo {
    width: 200px;
  }
  .enter-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .disclaimer {
    font-size: 0.9rem;
    margin: 0 10px;
  }
  .contact-info {
    font-size: 0.8rem;
  }
  .golf-ball {
    width: 350%;
  }
}
