@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
  --primary: #00f2ff;
  --primary-glow: rgba(0, 242, 255, 0.5);
  --secondary: #7000ff;
  --secondary-glow: rgba(112, 0, 255, 0.5);
  --bg-dark: #0a0b1e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-light: #f8f9ff;
  --text-main: #ffffff;
  --text-muted: #a0a0c0;
  --text-dark: #1a1a2e;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
}

.logo span {
  color: white;
  -webkit-text-fill-color: white;
  margin: 0 2px;
}

/* Updated Table Layout */
.reward-table-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}

.table-text {
  text-align: left;
}

.table-text h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: white;
}

.table-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Global Button Style */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
  color: white;
  box-shadow: 0 10px 30px var(--secondary-glow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--secondary-glow);
}

.btn-primary {
  /* Keeping for backward compat if needed */
  background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.btn-outline {
  background: transparent;
  border: 2px solid #ffd700;
  /* color: #ffd700; */
  color: #ffd700 !important; /* Force color */
  box-shadow: none;
  background-clip: border-box; /* Fix for text fill color issues */
  -webkit-text-fill-color: #ffd700;
}

.btn-outline:hover {
  background: #ffd700;
  color: var(--bg-dark) !important;
  -webkit-text-fill-color: var(--bg-dark);
}

.glass-table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed; /* Ensures equal widths */
}

th {
  width: 33.333%; /* Force equal width */
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  vertical-align: middle;
}

td {
  padding: 1.5rem 1rem;
  font-weight: 600;
  color: white;
  text-align: center;
  vertical-align: middle;
}

/* Highlight the specific column (2nd column) */
th:nth-child(2),
td:nth-child(2) {
  border-left: 2px solid #ffd700;
  border-right: 2px solid #ffd700;
  background: rgba(255, 215, 0, 0.02);
  position: relative;
}

th:nth-child(2) {
  border-top: 2px solid #ffd700;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  color: #ffd700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

tr:last-child td:nth-child(2) {
  border-bottom: 2px solid #ffd700;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

td:nth-child(2) {
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

/* Fix adjacent borders */
th:nth-child(1),
th:nth-child(3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
td:nth-child(1),
td:nth-child(3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-col {
  color: #ffd700;
}

/* Deals Love Section */
.deals-header {
  text-align: center;
  margin-bottom: 4rem;
}

.icon-heart {
  margin-bottom: 1.5rem;
  color: var(--primary);
  animation: float 3s ease-in-out infinite;
}

.deals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.deals-grid p {
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  background:
    linear-gradient(to bottom, rgba(10, 11, 30, 0.5), var(--bg-dark)),
    url("assets/hero.png");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Process Section - Side by Side */
.process {
  position: relative;
  background: #e6fbc4;
  padding: 7rem 0;
  overflow: hidden;
}

/* Center container */
.process-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

/* Center text block */
.process-center {
  max-width: 740px;
  text-align: center;
  z-index: 2;
}

.process-center h2 {
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #111;
}

.process-center .description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 2rem;
}

.process-center .sub-description {
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 2.5rem;
}

/* Button */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  background: #1e6be3;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 107, 227, 0.35);
}

/* Side images */
.process-side {
  position: absolute;
  top: 10%;
  transform: translateY(-50%);
  pointer-events: none;
}

.process-side img {
  width: 520px;
  height: auto;
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.18));
}

/* Left image */
.process-side.left {
  left: -260px;
  opacity: 0;
  transform: translateX(-100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.process-side.left.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-side.left img {
  transform: rotate(75deg);
}

/* Right image */
.process-side.right {
  right: -270px;
  opacity: 0;
  transform: translateX(100px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.process-side.right.visible {
  opacity: 1;
  transform: translateX(0);
}

.process-side.right img {
  transform: rotate(100deg);
}

/* Table Section with Blur BG */
.rewards-table-section {
  padding: 8rem 2rem;
  position: relative;
  background: var(--bg-dark);
  background: url("assets/hero.png") no-repeat center center;
  background-size: cover;
}

.rewards-table-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 30, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1;
}

/* Footer */
/* Footer */
footer {
  background-color: #050510; /* Slightly darker/richer than main bg */
  color: #7a7a9a;
  padding: 5rem 2rem 3rem;
  position: relative;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Top Border Effect */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  opacity: 0.5;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footnotes {
  font-size: 0.75rem;
  color: #ffffff;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.8;
  text-align: justify;
}

.footnotes p {
  margin-bottom: 1rem;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: rem;
  padding: 0;
}

.footnotes a {
  color: #7000ff !important;
}
.footer-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.footer-nav a:hover {
  color: white;
  text-shadow: 0 0 10px var(--primary-glow);
  transform: translateY(-2px);
}

.footer-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Copyright & Legal Links */
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #ffffff;
  padding-top: 2rem;
}

.copyright p {
  margin-bottom: 0.8rem;
}

.copyright a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.8rem;
  transition: color 0.2s;
  position: relative;
}

.copyright a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footnotes {
    text-align: left;
  }
}
/* Info Section */
.info-section {
  padding: 8rem 2rem;
  background: white;
  color: var(--text-dark);
}

.info-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-image-container {
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.info-image {
  width: 100%;
  border-radius: 30px;
}

@media (max-width: 768px) {
  .reward-table-layout,
  .deals-grid,
  .info-content,
  .process-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .table-text {
    text-align: center;
  }
  .hero {
    height: 75vh;
    min-height: 700px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .process-side {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  .process {
    padding: 5rem 1rem;
    flex-direction: column;
  }

  .process-container {
    flex-direction: column;
  }
  .process-side img {
    width: 330px;
    height: auto;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.18));
  }
  .process-side.right {
    right: -210px;
  }
  .process-side.left {
    left: -210px;
  }
  .process-side.left img {
    transform: rotate(75deg); /* Slight rotation on mobile */
  }
  .process-side.right img {
    transform: rotate(100deg);
    margin-top: 60%;
  }

  .process-center {
    width: 100%;
    padding: 0;
    position: absolute;
    top: 10px;
  }
  .process-center h2 {
    font-size: 2rem;
  }
  .process-center .description {
    max-width: 340px;
    font-size: 1rem;
    text-align: left;
    padding-left: 7rem;
  }
  .process-center .sub-description {
    font-size: 1rem;
    max-width: 250px;
    margin-top: 60%;
    font-weight: 400;
    padding-left: 2rem;
    text-align: left;
  }
}

/* Program Info Bar */
.program-info-bar {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.program-info-bar:hover {
  transform: translateX(-50%) translateY(-5px);
}

.info-bar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tap-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
}

.close-bar {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  padding: 0 0.5rem;
  position: absolute;
  right: 1.5rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-container {
  position: relative;
  width: 70%;
  max-width: 600px;
  background: white;
  border-radius: 20px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.modal-header h2 {
  color: #1a1a2e;
  font-size: 1.8rem;
  font-weight: 600;
}

.close-modal {
  position: absolute;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: #333;
}

.modal-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-icon {
  flex-shrink: 0;
  color: #1e6be3;
  margin-top: 5px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #111;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.modal-table-section {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.table-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.mini-table table {
  width: 100%;
  border-collapse: collapse;
}

.mini-table th {
  background: #f8f9ff;
  color: #666;
  font-size: 0.75rem;
  padding: 1rem 0.5rem;
  border: none;
  text-align: center;
}

.mini-table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  color: #111;
  font-weight: 500;
  text-align: center;
}

.mini-table .featured {
  color: #1e6be3;
}

.modal-footnotes {
  font-size: 0.75rem;
  color: #777;
  line-height: 1.6;
  margin-top: 2rem;
}

.modal-footnotes p {
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #eee;
}

.full-width {
  width: 100%;
  text-align: center;
}

/* Responsive fixes for modal */
@media (max-width: 768px) {
  .program-info-bar {
    width: 95%;
    padding: 0.8rem 1rem;
  }

  .main-text {
    font-size: 1.2rem;
  }

  .modal-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Light Page Header & Logo Styles */
.rewards-page,
.faq-page,
.legal-page,
.about-page,
.eligibility-page {
  background-color: white;
  color: #1a1a2e;
}

.rewards-page header,
.faq-page header,
.legal-page header,
.about-page header,
.eligibility-page header {
  position: relative !important;
  border-bottom: 1px solid #eee;
  padding: 1.5rem 2rem !important;
}

.rewards-page .logo,
.faq-page .logo,
.legal-page .logo,
.about-page .logo,
.eligibility-page .logo {
  background: linear-gradient(to right, #1e6be3, #7000ff);
  -webkit-background-clip: text;
  background-clip: text;
}

.rewards-page .logo span,
.faq-page .logo span,
.legal-page .logo span,
.about-page .logo span,
.eligibility-page .logo span {
  color: #333 !important;
  -webkit-text-fill-color: #333 !important;
}

.selection-container {
  max-width: 1200px;
  margin: 6rem auto;
  padding: 0 2rem;
  text-align: center;
}

.selection-container h1 {
  font-size: 2.2rem;
  margin-bottom: 4rem;
  font-weight: 700;
  color: #111;
}

.gift-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.gift-card-item {
  text-decoration: none;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.gift-card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #1e6be3;
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.gift-card-item h3 {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.rewards-page footer {
  background: #f8f9ff !important;
  border-top: 1px solid #eee;
  padding: 3rem 2rem !important;
}

.rewards-page .copyright p {
  color: #888 !important;
}

@media (max-width: 768px) {
  .selection-container {
    margin: 3rem auto;
  }
  .selection-container h1 {
    font-size: 1.8rem;
  }
  .gift-cards-grid {
    grid-template-columns: 1fr;
  }
}
