/* ===================================================
   Bouncing Ball Creations — Global Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #07091a;
  color: #d4e4ff;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Header / Hero --- */
.site-header {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.site-header img.header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #07091a);
  pointer-events: none;
}

/* ===================================================
   NAVIGATION — Desktop
   =================================================== */
nav {
  background: rgba(5, 8, 30, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(100, 150, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

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

nav ul li a {
  display: block;
  padding: 18px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0c4ff;
  transition: color 0.25s, background 0.25s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #ffffff;
  background: rgba(100, 150, 255, 0.12);
}

/* ===================================================
   HAMBURGER BUTTON — hidden on desktop
   =================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  z-index: 210;
  transition: border-color 0.2s;
}

.hamburger:hover {
  border-color: rgba(100, 150, 255, 0.7);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a0c4ff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================
   NAVIGATION — Mobile
   =================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-inner {
    justify-content: flex-start;
    padding: 10px 16px;
  }

  /* Collapsed menu — hidden off-screen */
  nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(5, 8, 30, 0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(100, 150, 255, 0.2);
    padding: 80px 0 40px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 205;
    box-shadow: -8px 0 32px rgba(0, 0, 10, 0.6);
  }

  /* Open state */
  nav ul.nav-open {
    right: 0;
  }

  nav ul li a {
    padding: 16px 28px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(100, 150, 255, 0.08);
  }

  nav ul li:last-child a {
    border-bottom: none;
  }
}

/* Dark overlay behind open menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 20, 0.6);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* ===================================================
   Page Wrapper
   =================================================== */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #c8daff;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.section-subtitle {
  text-align: center;
  color: #7899cc;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* --- App Cards --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.app-card {
  background: linear-gradient(135deg, rgba(16, 24, 60, 0.9), rgba(8, 14, 40, 0.95));
  border: 1px solid rgba(100, 150, 255, 0.25);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(80, 130, 255, 0.2);
}

.app-card .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #2a4fff, #7b3ff2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.app-card h3 {
  font-size: 1.3rem;
  color: #e0ecff;
  margin-bottom: 10px;
}

.app-card p {
  color: #6e90bb;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --- App Store Buttons --- */
.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-store:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.btn-store.google {
  background: #1a1a2e;
  border: 1px solid rgba(100, 200, 100, 0.4);
  color: #90ee90;
}

.btn-store.apple {
  background: #1a1a2e;
  border: 1px solid rgba(200, 200, 255, 0.4);
  color: #d0d0ff;
}

.btn-store svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-store .btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store .btn-text span:first-child {
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-store .btn-text span:last-child {
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid rgba(100, 150, 255, 0.15);
  margin: 48px 0;
}

/* --- Contact Form --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  color: #c8daff;
  margin-bottom: 16px;
}

.contact-info p {
  color: #6e90bb;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8ab0e0;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #5588cc;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8aacdb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(16, 24, 60, 0.8);
  border: 1px solid rgba(100, 150, 255, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  color: #d4e4ff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(100, 150, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 130, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #3a5070;
}

/* reCAPTCHA wrapper */
.recaptcha-wrapper {
  display: flex;
  justify-content: flex-start;
}

/* Scale down reCAPTCHA on very small screens */
@media (max-width: 360px) {
  .recaptcha-wrapper {
    transform: scale(0.88);
    transform-origin: left top;
  }
}

.btn-submit {
  background: linear-gradient(135deg, #2a4fff, #7b3ff2);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: 0.04em;
  margin-top: 4px;
  width: 100%;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 28px 20px;
  background: rgba(5, 8, 30, 0.7);
  border-top: 1px solid rgba(100, 150, 255, 0.12);
  color: #3a5070;
  font-size: 0.85rem;
}

footer a {
  color: #5588cc;
}

footer a:hover {
  color: #88bbff;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Tablet */
@media (max-width: 768px) {
  .site-header {
    height: 260px;
  }

  .page-content {
    padding: 40px 20px 60px;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-header {
    height: 200px;
  }

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

  .section-subtitle {
    font-size: 0.95rem;
  }

  .page-content {
    padding: 32px 16px 48px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-card {
    padding: 28px 20px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-store {
    width: 100%;
    max-width: 240px;
    justify-content: center;
  }

  footer {
    font-size: 0.8rem;
    line-height: 1.8;
  }
}
