/* Tap! iOS App Theme - Matching Styles */
:root {
  --primary-green: #00ff88;
  --secondary-green: #00d4aa;
  --primary-blue: #0099ff;
  --secondary-blue: #0066cc;
  --accent-yellow: #ffd700;
  --accent-cyan: #00ffff;
  --text-white: #ffffff;
  --text-shadow: rgba(0, 0, 0, 0.3);
  --shadow-green: rgba(0, 255, 136, 0.2);
  --shadow-blue: rgba(0, 153, 255, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display",
    "Helvetica Neue", sans-serif;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.9),
    rgba(0, 153, 255, 0.9)
  );
  color: var(--text-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header Styles - Matching iOS HeaderView */
header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 3rem;
  font-weight: 900;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: var(--text-white);
  text-shadow: 0 4px 8px var(--text-shadow);
  letter-spacing: -0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  display: inline-block;
  min-width: fit-content;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 127px; /* Account for sticky header height */
}

section h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px var(--text-shadow);
  letter-spacing: -0.02em;
}

section h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-yellow);
  text-shadow: 0 2px 4px var(--text-shadow);
}

section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* Hero Section - Matching iOS ContentView gradient */
#hero {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.9),
    rgba(0, 153, 255, 0.9)
  );
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  border-radius: 32px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../Icons/Icons/v2/TapIcon-1024x1024-Light-v2-iOS-Default-1024x1024@1x.png")
    center/contain no-repeat;
  opacity: 0.1;
  z-index: 1;
}

#hero > * {
  position: relative;
  z-index: 2;
}

#hero h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

#hero p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

/* Features Section - Matching iOS styling */
#features {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  margin: 2rem auto;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

#features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

#features li {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

#features li h3 {
  text-align: center;
  margin-bottom: 1rem;
}

#features li p {
  font-size: 1.1rem;
  margin-bottom: 0;
  text-align: center;
}

#features li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Gameplay Section - New section matching iOS app style */
#gameplay {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  margin: 2rem auto;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

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

.gameplay-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.gameplay-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gameplay-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.gameplay-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.gameplay-item p {
  font-size: 1.1rem;
  margin-bottom: 0;
  opacity: 0.9;
}

/* CTA Button - Matching iOS button styling */
.cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-green)
  );
  color: var(--text-white);
  border-radius: 32px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px var(--shadow-green);
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px var(--text-shadow);
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--shadow-green);
  background: linear-gradient(
    135deg,
    var(--secondary-green),
    var(--primary-green)
  );
}

/* Download Section */
#download {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  margin: 2rem auto;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-info p {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--accent-yellow);
  font-weight: 600;
}

/* Privacy Policy Section */
#privacy {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  margin: 2rem auto;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 1200px;
}

#privacy h2 {
  text-align: center;
}

.privacy-content {
  padding: 0 2rem;
}

.privacy-section {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.privacy-section:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.privacy-section h3 {
  color: var(--accent-cyan);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px var(--text-shadow);
}

.privacy-section h4 {
  color: var(--accent-yellow);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem 0;
  text-shadow: 0 2px 4px var(--text-shadow);
}

.privacy-section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.95;
  line-height: 1.7;
}

.privacy-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacy-section li {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  opacity: 0.9;
  line-height: 1.6;
}

.privacy-section strong {
  color: var(--accent-yellow);
  font-weight: 600;
}

.privacy-section a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.privacy-section a:hover {
  color: var(--primary-green);
  text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

.privacy-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  text-align: center;
}

.privacy-footer p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-white);
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-green);
  text-shadow: 0 2px 4px rgba(0, 255, 136, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  header h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  nav ul {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-block;
    min-width: fit-content;
  }

  section {
    padding: 3rem 1rem;
    scroll-margin-top: 200px; /* Increased for mobile header */
  }

  section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  section h3 {
    font-size: 1.4rem;
  }

  section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  #hero {
    padding: 4rem 1rem;
    margin-top: 1rem;
  }

  #hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  #hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  #features ul {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  #features li {
    padding: 1.5rem;
  }

  .gameplay-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .gameplay-item {
    padding: 1.5rem;
  }

  .gameplay-icon {
    font-size: 2.5rem;
  }

  .cta {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  /* Privacy Policy Mobile Styles */
  #privacy {
    margin: 1rem auto;
    border-radius: 20px;
  }

  .privacy-content {
    padding: 0 1rem;
  }

  .privacy-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }

  .privacy-section h3 {
    font-size: 1.4rem;
  }

  .privacy-section h4 {
    font-size: 1.2rem;
  }

  .privacy-section p {
    font-size: 1rem;
  }

  .privacy-section li {
    font-size: 1rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  header {
    padding: 1rem 0.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 0.3rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-block;
    min-width: fit-content;
  }

  section {
    padding: 2rem 0.5rem;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section h3 {
    font-size: 1.2rem;
  }

  section p {
    font-size: 1rem;
  }

  #hero {
    padding: 3rem 0.5rem;
  }

  #hero h2 {
    font-size: 1.8rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  #features li,
  .gameplay-item {
    padding: 1rem;
  }

  .gameplay-icon {
    font-size: 2rem;
  }

  .cta {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  /* Privacy Policy Extra Small Mobile Styles */
  #privacy {
    margin: 0.5rem auto;
    border-radius: 16px;
  }

  .privacy-content {
    padding: 0 0.5rem;
  }

  .privacy-section {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }

  .privacy-section h3 {
    font-size: 1.2rem;
  }

  .privacy-section h4 {
    font-size: 1.1rem;
  }

  .privacy-section p {
    font-size: 0.9rem;
  }

  .privacy-section li {
    font-size: 0.9rem;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
