/* ==========================================================================
   Teen Patti Joy APK Download - Core CSS Design System (2026 Premium Glassmorphism)
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-gradient: linear-gradient(135deg, #090d16, #111827, #070a10);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-hover: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  
  --primary-glow: linear-gradient(90deg, #00f5ff, #7c3aed);
  --btn-glow-hover: linear-gradient(90deg, #00e5ff, #6d28d9);
  --btn-accent: #00f5ff;
  --btn-accent-purple: #7c3aed;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-green: #10b981;
  --accent-warning: #f59e0b;
  --accent-red: #ef4444;

  --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
body::before {
  top: 10%;
  left: 5%;
  background: var(--btn-accent);
  animation: floatGlow1 12s infinite alternate ease-in-out;
}
body::after {
  top: 60%;
  right: 5%;
  background: var(--btn-accent-purple);
  animation: floatGlow2 15s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.2); }
}
@keyframes floatGlow2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -60px) scale(1.1); }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* --- Header / Navigation --- */
header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(9, 13, 22, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.sticky-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(7, 10, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-headings);
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-glow);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Glassmorphism UI Components --- */
.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-bounce);
}

.glass-card-hover:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 50px rgba(0, 245, 255, 0.1);
}

/* --- Buttons --- */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--primary-glow);
  color: #000;
  font-family: var(--font-headings);
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--btn-glow-hover);
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-premium:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
  color: #fff;
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:active {
  transform: scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--btn-accent);
  color: var(--btn-accent);
}

/* --- Hero Section --- */
.hero-section {
  padding: 10rem 1.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-2026 {
  align-self: flex-start;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--btn-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-meta-grid {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
}

.hero-meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.hero-meta-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--text-primary);
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone-mockup {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
  animation: phoneFloat 6s infinite ease-in-out;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-glow-back {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
}

/* --- APK Information Table --- */
.section-title-container {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--btn-accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}

.info-table-container {
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 1.5rem;
}

.apk-info-table {
  width: 100%;
  border-collapse: collapse;
}

.apk-info-table tr {
  border-bottom: 1px solid var(--glass-border);
}

.apk-info-table tr:last-child {
  border-bottom: none;
}

.apk-info-table td {
  padding: 1.25rem 1.5rem;
}

.apk-info-table td:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-headings);
  width: 40%;
}

.apk-info-table td:last-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Features Section --- */
.features-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 245, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--btn-accent);
  border: 1px solid rgba(0, 245, 255, 0.2);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Screenshots Gallery --- */
.screenshots-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.screenshots-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-hover) transparent;
}

.screenshots-container::-webkit-scrollbar {
  height: 6px;
}

.screenshots-container::-webkit-scrollbar-thumb {
  background-color: var(--glass-border-hover);
  border-radius: 10px;
}

.screenshot-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.screenshot-item:hover {
  transform: scale(1.03);
  border-color: var(--btn-accent);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Related Apps Grid --- */
.related-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.app-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.app-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-app-download {
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 30px;
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: 800px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-headings);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--btn-accent);
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.25);
}

.faq-item.active .faq-question {
  color: var(--btn-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--btn-accent-purple);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* --- Legal Subpages Content CSS --- */
.page-wrapper {
  max-width: 900px;
  margin: 8rem auto 6rem;
  padding: 0 1.5rem;
}

.legal-card {
  padding: 3rem;
}

.legal-card h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: block;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.legal-content p, .legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* --- Contact Us Form --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--btn-accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-info-text h3 {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-text p {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--btn-accent);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

/* --- Safety Check & Download CTA Box --- */
.download-cta-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
  position: relative;
  overflow: hidden;
}

.download-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-glow);
}

.safety-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.safety-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.safety-badge svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
}

/* Breadcrumbs sub-navigation */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--btn-accent);
}

.breadcrumbs span.separator {
  color: var(--text-muted);
}

/* --- Footer & 18+ Adult Warning --- */
.adult-warning {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.adult-warning-title {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.adult-warning-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

footer.site-footer {
  background: rgba(7, 10, 16, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--primary-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links-col h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--btn-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

/* --- Mobile Navigation & Responsiveness --- */
@media (max-width: 991px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 8rem;
    text-align: center;
  }
  
  .badge-2026 {
    align-self: center;
  }
  
  .hero-meta-grid {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(9, 13, 22, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .legal-card {
    padding: 1.5rem;
  }
  
  .legal-card h1 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .apk-info-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}
