/* ==========================================================================
   CF Maurina Egara - Modern UI Stylesheet (Mobile-First Responsive)
   Stack: Bootstrap 5.3 + Custom CSS Variables + Google Fonts + FontAwesome
   Created by JP Enterprise - Copyright 2026
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --club-green: #198754;
  --club-green-hover: #157347;
  --club-green-light: #2ecc71;
  --club-green-glow: rgba(25, 135, 84, 0.45);
  --club-gold: #f59e0b;
  --club-gold-glow: rgba(245, 158, 11, 0.35);
  
  --bg-dark: #080d1a;
  --bg-dark-elevated: #1e293b;
  --bg-card: #1e293b;
  --bg-card-border: #334155;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-secondary: #e2e8f0;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Form Placeholders in Brand Azure Blue */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #38bdf8 !important;
  opacity: 0.9 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: #38bdf8 !important;
  opacity: 0.9 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder,
.form-control::-moz-placeholder {
  color: #38bdf8 !important;
  opacity: 0.9 !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder,
.form-control:-ms-input-placeholder {
  color: #38bdf8 !important;
  opacity: 0.9 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Background Atmosphere Glow (Responsive Radial Lights) */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  right: -10vw;
  width: clamp(280px, 50vw, 600px);
  height: clamp(280px, 50vw, 600px);
  background: radial-gradient(circle, rgba(25, 135, 84, 0.18) 0%, rgba(8, 13, 26, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10vw;
  left: -10vw;
  width: clamp(280px, 50vw, 600px);
  height: clamp(280px, 50vw, 600px);
  background: radial-gradient(circle, rgba(15, 43, 70, 0.25) 0%, rgba(8, 13, 26, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Navigation Bar (Mobile-Optimized)
   ========================================================================== */
.navbar-custom {
  background: rgba(8, 13, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-card-border);
  transition: var(--transition-smooth);
  padding: 0.65rem 0;
  z-index: 1030;
}

.navbar-brand-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: var(--transition-smooth);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--club-green-light);
  font-weight: 600;
  text-transform: uppercase;
}

.text-muted {
  color: var(--text-muted) !important;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2a3447;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #475569;
  transition: var(--transition-smooth);
}

.nav-social-link:hover {
  background: #3b4961;
  border-color: #64748b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-nav-login {
  background: #2a3447;
  color: #ffffff;
  border: 1px solid #475569;
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-nav-login:hover {
  background: #3b4961;
  border-color: #64748b;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section & 3D Stage (Responsive)
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem 0;
  position: relative;
}

.badge-tagline {
  background: rgba(25, 135, 84, 0.15);
  border: 1px solid rgba(25, 135, 84, 0.35);
  color: #4ade80;
  font-weight: 700;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(1.85rem, 6.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title .text-gradient-green {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.95rem, 2.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.6;
}

/* 3D Canvas Stage */
.stage-3d-wrapper {
  position: relative;
  width: 100%;
  height: clamp(300px, 50vh, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y; /* Allows vertical page scrolling on touch devices */
}

#shield-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
}

#shield-3d-canvas:active {
  cursor: grabbing;
}

.stage-3d-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

/* ==========================================================================
   Store Download Buttons (Thumb-Friendly Touch Targets)
   ========================================================================== */
.app-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  min-height: 54px; /* Accessible 48px+ touch target */
}

.btn-store-google {
  background: linear-gradient(145deg, #16a34a, #15803d);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px var(--club-green-glow);
}

.btn-store-google:hover,
.btn-store-google:focus {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(25, 135, 84, 0.55);
}

.btn-store-apple {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-store-apple:hover,
.btn-store-apple:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.08);
}

.btn-store .store-icon {
  font-size: 1.85rem;
  line-height: 1;
}

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

.btn-store .store-meta-small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  line-height: 1.2;
}

.btn-store .store-meta-big {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-store .badge-coming-soon {
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  background: var(--club-gold);
  color: #000000;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Feature Check Pills */
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Social Media Showcase Cards (Mobile-Ready)
   ========================================================================== */
.social-card {
  background: #1e293b;
  border: 1px solid #334155;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: block;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.social-card-instagram:hover::before {
  background: linear-gradient(90deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-card-facebook:hover::before {
  background: #1877f2;
}

.social-card:hover {
  background: #243247;
  transform: translateY(-4px);
  border-color: #475569;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.social-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: var(--transition-smooth);
}

.icon-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.icon-facebook {
  background: #1877f2;
  color: #ffffff;
}

.social-card-title {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.social-card-handle {
  color: #4ade80;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.social-card-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.social-card-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.social-card:hover .social-card-action {
  gap: 0.7rem;
  color: var(--club-green-light);
}

/* ==========================================================================
   Footer (Mobile Friendly)
   ========================================================================== */
.footer-custom {
  background: #050811;
  border-top: 1px solid var(--bg-card-border);
  padding: 2.5rem 0 2rem 0;
  margin-top: 3.5rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-credit {
  font-size: 0.82rem;
  color: #64748b;
}

.footer-credit strong {
  color: #cbd5e1;
}

/* ==========================================================================
   Responsive Breakpoints Adjustments
   ========================================================================== */

/* Tablet & Mobile (< 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 2.25rem 0 1.5rem 0;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .app-download-buttons {
    justify-content: center;
  }
  
  .stage-3d-wrapper {
    height: 360px;
    margin-top: 1rem;
  }
}

/* Small Smartphone (< 576px) */
@media (max-width: 575.98px) {
  .navbar-brand-img {
    height: 36px;
  }
  
  .brand-title {
    font-size: 0.98rem;
  }

  .btn-nav-login {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-section {
    padding: 1.75rem 0 1rem 0;
  }

  .btn-store {
    width: 100%;
    min-width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .stage-3d-wrapper {
    height: 300px;
  }

  .stage-3d-hint {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
  }

  .social-card {
    padding: 1.25rem;
  }

  .footer-custom {
    margin-top: 2.5rem;
    padding: 2rem 0 1.5rem 0;
  }
}

/* Extra small devices (< 380px) */
@media (max-width: 379.98px) {
  .brand-title {
    font-size: 0.88rem;
  }
  
  .stage-3d-wrapper {
    height: 270px;
  }
}
