/* TryLuck Main Stylesheet - Modern Responsive Design */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 90px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #7f53ac 0%, #43cea2 100%);
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0;
  max-width: 1200px; margin: 0 auto;
}
.nav-logo a, .logo { color: #fff; text-decoration: none; font-size: 2rem; font-weight: 700; display: flex; align-items: center; }
.nav-logo span, .logo span { color: #43cea2; }
.nav-links, .nav-menu {
  display: flex; list-style: none; gap: 2rem;
}
.nav-link, .nav-links a {
  color: #fff; text-decoration: none; font-weight: 500; position: relative; transition: color 0.3s;
}
.nav-link:hover, .nav-links a:hover { color: #43cea2; }
.nav-link::after, .nav-links a::after {
  content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: #43cea2; transition: width 0.3s;
}
.nav-link:hover::after, .nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.bar { width: 25px; height: 3px; background: #fff; margin: 3px 0; }

/* Modern Hero Section Redesign */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #7f53ac 0%, #43cea2 100%);
  color: #fff;
  border-radius: 32px;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(67,206,162,0.12);
  padding: 4rem 3rem 4rem 3rem;
  min-height: 60vh;
  overflow: hidden;
}
.hero-content {
  max-width: 540px;
  margin-right: 2.5rem;
  z-index: 2;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: -2px;
  line-height: 1.1;
}
.hero-content h1 span {
  color: #ffd700;
  text-shadow: 0 2px 16px rgba(255,215,0,0.18);
}
.hero-content .hero-subtitle {
  font-size: 1.35rem;
  margin-bottom: 2.2rem;
  opacity: 0.95;
  color: #f3f3f3;
}
.hero .btn-primary {
  font-size: 1.15rem;
  padding: 14px 38px;
  border-radius: 50px;
  background: linear-gradient(90deg, #ffd700 0%, #43cea2 100%);
  color: #333;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(67,206,162,0.12);
  border: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #43cea2;
  box-shadow: 0 8px 32px rgba(67,206,162,0.18);
}
.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-img {
  border-radius: 32px;
  box-shadow: 0 12px 40px rgba(67,206,162,0.22);
  max-width: 340px;
  width: 100%;
  height: auto;
  animation: floatHeroImg 3.5s ease-in-out infinite alternate;
}
@keyframes floatHeroImg {
  0% { transform: translateY(0); }
  100% { transform: translateY(-18px); }
}
.hero-accent {
  position: absolute;
  right: -120px;
  top: 40px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 60% 40%, #ffd70055 0%, #43cea2 80%, transparent 100%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(8px);
  opacity: 0.7;
}

/* Section Header */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 2.2rem; color: #7f53ac; margin-bottom: 0.5rem; }
.section-header p { color: #555; font-size: 1.1rem; }

/* Features, Testimonials, Leaderboard, etc. */
.features-list, .testimonials-list, .values-grid, .team-grid, .steps, .faq-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem;
}
.feature, .testimonial, .value-card, .team-member, .step, .faq-item {
  background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(67,206,162,0.08);
  padding: 2rem 1.5rem; text-align: center;
}
.feature img, .testimonial img, .value-card img, .team-member img, .step img {
  width: 64px; height: 64px; object-fit: contain; margin-bottom: 1rem;
}
.leaderboard-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
}
.leaderboard-table th, .leaderboard-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid #eee; text-align: center;
}
.leaderboard-table th { background: #7f53ac; color: #fff; }
.leaderboard-table tr:nth-child(even) { background: #f3f3f3; }
.leaderboard-note { color: #888; font-size: 0.95rem; text-align: right; }

/* Contact, About, Policy, Terms, etc. */
.contact-grid, .story-content, .content-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.contact-info, .story-text, .policy-content { text-align: left; }
.contact-form-container, .story-image, .table-of-contents { text-align: left; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.75rem; border-radius: 8px; border: 1px solid #ccc; margin-bottom: 1rem; font-size: 1rem;
}
.contact-form .submit-btn {
  background: #7f53ac; color: #fff; border: none; font-weight: 600; border-radius: 8px; padding: 0.75rem 2rem; cursor: pointer; transition: background 0.2s;
}
.contact-form .submit-btn:hover { background: #43cea2; color: #fff; }
.faq-question { background: none; border: none; color: #7f53ac; font-weight: 600; font-size: 1.1rem; cursor: pointer; margin-bottom: 0.5rem; }
.faq-answer { display: none; color: #333; font-size: 1rem; margin-bottom: 1rem; }
.faq-item.active .faq-answer { display: block; }

/* Footer */
.footer {
  background: linear-gradient(135deg, #7f53ac 0%, #43cea2 100%);
  color: #fff;
  padding: 3rem 0 1rem 0;
  margin-top: 3rem;
}
.footer-content {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; align-items: flex-start;
  margin-bottom: 2rem;
}
.footer-logo h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-logo span { color: #ffd700; }
.footer-logo p { font-size: 1rem; color: #e0e0e0; }
.social-links { margin-top: 1rem; }
.social-links a { color: #fff; margin-right: 1rem; font-size: 1.3rem; transition: color 0.2s; }
.social-links a:hover { color: #ffd700; }
.footer-section h4 { font-size: 1.1rem; margin-bottom: 1rem; color: #ffd700; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer-section ul li a:hover { color: #ffd700; }
.footer-section ul li i { margin-right: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; text-align: center; font-size: 1rem; color: #e0e0e0;
}
.footer-bottom i { color: #ffd700; margin: 0 0.2rem; }
.footer-legal { margin-top: 0.5rem; }
.footer-legal a { color: #fff; margin: 0 0.5rem; text-decoration: underline; }
.footer-legal a:hover { color: #ffd700; }
.footer-legal span { color: #fff; margin: 0 0.5rem; }

/* Privacy and Terms Hero Sections */
.privacy-hero, .terms-hero {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(67,206,162,0.06);
  padding: 2.5rem 1rem;
  margin-bottom: 2.5rem;
}

/* Privacy and Terms Content Sections */
.privacy-content, .terms-content {
  background: #f8f9fa;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(127,83,172,0.06);
  padding: 2.5rem 1rem;
  margin-bottom: 2.5rem;
}

/* Table of Contents Box */
.table-of-contents {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(67,206,162,0.08);
  padding: 1.5rem;
}

/* Policy Content Wrapper */
.policy-content {
  max-width: 700px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 3rem 1.2rem 3rem 1.2rem;
    min-height: 50vh;
  }
  .hero-content {
    margin-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }
  .hero-image {
    justify-content: center;
  }
  .hero-accent {
    right: -80px;
    top: 80px;
    width: 220px;
    height: 220px;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-container, .contact-grid, .story-content, .content-wrapper, .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 2rem 0.5rem 2rem 0.5rem;
    min-height: 40vh;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-accent {
    display: none;
  }
}
