/* I444registration - Solitaire Reverse Official Site */
/* White background, clean and premium design */

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #0f3460;
  --gold: #e94560;
  --gold-light: #ff6b81;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans Bengali', 'Segoe UI', 'Arial', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--white);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 10px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3) !important;
  color: var(--white) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--white) 0%, var(--off-white) 50%, #f0f2f5 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--white);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--white);
  box-shadow: 0 8px 30px rgba(233, 69, 96, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.35);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid rgba(15, 52, 96, 0.15);
}

.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.hero-card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

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

.card-symbols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.card-symbol {
  background: var(--off-white);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-size: 1.6rem;
  transition: var(--transition);
}

.card-symbol:hover {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--white);
  transform: translateY(-4px);
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header .brand-inline {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== GAME INTRO SECTION ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-image {
  background: linear-gradient(135deg, var(--off-white), #eef1f5);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
}

.intro-features {
  display: grid;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--off-white);
  transform: translateX(8px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
}

.feature-text h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 2px;
}

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

/* ===== HOW TO PLAY ===== */
.how-to-play {
  background: var(--off-white);
  padding: 100px 24px;
}

.how-to-play .section {
  padding: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

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

/* ===== RULES SECTION ===== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rule-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  border-left: 4px solid var(--accent);
}

.rule-card:nth-child(even) {
  border-left-color: var(--gold);
}

.rule-card:hover {
  background: linear-gradient(135deg, var(--off-white), #eef1f5);
  transform: translateX(4px);
}

.rule-card h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

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

/* ===== DOWNLOAD SECTION ===== */
.download-section {
  background: linear-gradient(160deg, var(--primary), var(--secondary));
  padding: 100px 24px;
}

.download-section .section-header h2 {
  color: var(--white);
}

.download-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.download-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.download-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-card .btn {
  width: 100%;
  justify-content: center;
}

/* ===== LOGIN SECTION ===== */
.login-section {
  padding: 100px 24px;
  background: var(--white);
}

.login-container {
  max-width: 480px;
  margin: 0 auto;
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .login-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.login-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.08);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  cursor: pointer;
}

.form-options a {
  color: var(--accent);
  text-decoration: none;
}

.form-options a:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 16px;
  justify-content: center;
  font-size: 1.05rem;
}

.signup-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.signup-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--off-white);
  padding: 100px 24px;
}

.faq-section .section {
  padding: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: inherit;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: var(--transition);
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===== FEATURES SECTION (extra) ===== */
.features-showcase {
  padding: 100px 24px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.showcase-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.showcase-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.showcase-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.showcase-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}

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

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--off-white);
  padding: 100px 24px;
}

.testimonials .section {
  padding: 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.testimonial-stars {
  color: #f1c40f;
  font-size: 1rem;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author h4 {
  font-size: 0.9rem;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-color: transparent;
  color: var(--white);
}

/* ===== PAGE SPECIFIC ===== */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  background: linear-gradient(160deg, var(--white), var(--off-white));
}

.page-hero h1 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .intro-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .login-container {
    padding: 32px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 60px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 16px;
  }

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