/*
 * Tradyard website styles
 *
 * These styles create a clean, modern look inspired by professional
 * e‑commerce platforms. The layout is fully responsive, adapting
 * gracefully from large monitors to mobile screens. Feel free to
 * adjust the color variables below to match your company’s brand.
 */

/* Color palette */
:root {
  /*
   * Updated color palette using light blue theme as requested.
   * Primary color drives buttons, accents and icons. Secondary color
   * complements the primary with a softer hue. Adjust these values
   * to fine‑tune the overall look.
   */
  --primary-color: #1e90ff;    /* light blue primary color */
  --secondary-color: #00b4d8;  /* turquoise secondary color */
  --background-color: #f0f8ff; /* very light blue page background */
  --text-color: #1f2937;       /* dark gray for base text */
  --heading-color: #0f3057;    /* darker blue for headings */
  --border-color: #dbeafe;     /* light blue border for cards and dividers */
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*
 * Global typography
 * Ensure that every textual element across the site uses the same
 * Poppins typeface for a cohesive look. This includes headings,
 * paragraphs, links, form elements and buttons. Without this rule,
 * some pages may fall back to the browser default font and look
 * inconsistent.
 */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea, label {
  font-family: 'Poppins', sans-serif;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Increase the top and bottom padding of the header to accommodate the larger logo */
  padding: 1.2rem 0;
}
.logo {
  display: flex;
  align-items: center;
}

/* Logo image styling */
.logo-img {
  /* Further increase the logo height to give the brand more prominence */
  height: 140px;
  width: auto;
  display: block;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-list a:hover {
  color: var(--primary-color);
}

.auth-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.btn-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}
.btn-link:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn.primary {
  /* Use a gradient background for a modern look */
  background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  background-size: 200% 100%;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn.secondary {
  /* Secondary buttons also receive a subtle gradient */
  background-image: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  background-size: 200% 100%;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn.secondary:hover {
  background-position: 100% 0;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn.large {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: 0.5rem;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Animated gradient that gently shifts between the primary and secondary hues */
  background: linear-gradient(135deg, rgba(30,144,255,0.8), rgba(0,180,216,0.8));
  animation: gradientShift 15s infinite;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content h1 {
  /* Even larger hero heading for maximum impact on the landing page */
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.hero-content .subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #e0f2fe;
}
.reveal {
  /* Elements with this class will animate into view when scrolled into the viewport */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Search bar within hero section */
.hero-search {
  display: flex;
  max-width: 600px;
  margin: 1.5rem auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.hero-search .search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
  background: transparent;
}
.hero-search .search-button {
  padding: 0 1.5rem;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

/* Stats section styling enhancements */
.stats-section {
  background-color: #f0f8ff;
  padding: 4rem 0;
}
.stats-grid .stat-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-grid .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Categories section styling enhancements */
.categories-section {
  background-color: #f8fbff;
  padding: 4rem 0;
}
.category-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* News & Resources section */
.news-section {
  background-color: #ffffff;
  padding: 4rem 0;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.news-card {
  background-color: #f8fbff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-card .news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card .news-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}
.news-card .news-excerpt {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.news-card .news-link {
  align-self: flex-start;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}
.news-card .news-link:hover {
  color: var(--secondary-color);
}

/* Newsletter section */
.newsletter-section {
  background-color: #f0f8ff;
  padding: 4rem 0;
  text-align: center;
}
.newsletter-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--heading-color);
}
.newsletter-form {
  max-width: 500px;
  margin: 0.5rem auto;
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 1rem;
  outline: none;
}
.newsletter-form button {
  background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-position 0.4s ease;
  background-size: 200% 100%;
}
.newsletter-form button:hover {
  background-position: 100% 0;
}
.newsletter-success {
  margin-top: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Video section styling improvements */
.video-section {
  padding: 4rem 0;
}

/* Page hero styling for sign in/register/about pages */
.page-hero {
  padding: 4rem 0;
  text-align: center;
  background-image: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(0, 180, 216, 0.15));
  color: var(--heading-color);
}

/* Authentication and contact forms */
/* Shared section padding */
.contact-section,
.auth-section {
  padding: 4rem 0;
}

/* Default contact form card */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--text-color);
  background-color: #fff;
}
.contact-form button {
  display: block;
  width: 100%;
}

/* Auth switch link styling */
.auth-switch {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-color);
}
.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* Enhanced auth card styling */
.auth-section {
  background-color: #f0f8ff;
}
.auth-card {
  max-width: 500px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 2.5rem;
  animation: fadeUp 0.8s ease-out both;
  text-align: center;
}
.auth-card h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--heading-color);
}
.auth-card p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-color);
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.auth-card input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--text-color);
  background-color: #f8fbff;
}
.auth-card button {
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
}

.video-cover {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.video-cover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}
.video-cover:hover::after {
  background: rgba(0, 0, 0, 0.5);
}
.video-cover .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.video-cover .play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}
.video-cover .play-button::before {
  content: '';
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--primary-color);
  display: block;
  margin-left: 5px;
}
.hero-search .search-button:hover {
  background-color: var(--secondary-color);
}

/* Stats section styling */
.stats-section {
  background-color: #ffffff;
  padding: 3rem 0;
  /* Apply fade-up animation when section enters viewport */
  animation: fadeUp 0.8s ease-out both;
}
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}
.stat-card {
  flex: 1 1 150px;
  max-width: 200px;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.stat-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--heading-color);
}

/* Categories section styling */
.categories-section {
  background-color: #f9fafb;
  padding: 3rem 0;
  animation: fadeUp 0.8s ease-out both;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.category-card {
  background-color: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.category-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
}
.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

/* Keyframes for animated gradient in hero overlay */
@keyframes gradientShift {
  0% {
    background: linear-gradient(135deg, rgba(30,144,255,0.8), rgba(0,180,216,0.8));
  }
  50% {
    background: linear-gradient(135deg, rgba(0,180,216,0.8), rgba(30,144,255,0.8));
  }
  100% {
    background: linear-gradient(135deg, rgba(30,144,255,0.8), rgba(0,180,216,0.8));
  }
}

/* Features section */
.features-section {
  padding: 4rem 0;
  background-color: #ffffff;
  animation: fadeUp 0.8s ease-out both;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 2rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.feature-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.icon-wrapper {
  margin-bottom: 1rem;
}
.icon-wrapper img {
  /* Make feature icons slightly bigger for better visual balance */
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: invert(34%) sepia(27%) saturate(608%) hue-rotate(141deg) brightness(92%) contrast(90%);
}
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

/* How it works */
.how-it-works-section {
  padding: 4rem 0;
  background-color: #f9fafb;
  animation: fadeUp 0.8s ease-out both;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}
.step-number {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.step h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.25rem;
  color: var(--heading-color);
}
.step p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

/* About section */
.about-section {
  padding: 4rem 0;
  background-color: #ffffff;
  animation: fadeUp 0.8s ease-out both;
}
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-text {
  flex: 1 1 55%;
  min-width: 280px;
}
.about-text h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--heading-color);
}
.about-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.about-illustration {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}
.about-illustration img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Contact section */
.contact-section {
  padding: 4rem 0;
  background-color: #f9fafb;
  text-align: center;
  animation: fadeUp 0.8s ease-out both;
}
.contact-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--heading-color);
}

/* Daily Deals section */
.deals-section {
  padding: 4rem 0;
  background-color: #ffffff;
  animation: fadeUp 0.8s ease-out both;
}
.deals-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.deal-card {
  background-color: #f8fbff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.deal-image {
  width: 100%;
  /* Increase card image height for a more immersive product display */
  height: 220px;
  object-fit: cover;
}
.deal-info {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.deal-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--heading-color);
  font-weight: 600;
}
.deal-price {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}
.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.contact-section p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-color);
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: var(--primary-color);
}

/* ------------------------------------------------------------
 * Additional components for multi‑page site
 *
 * These styles support the Daily Deals page, About page, and
 * Contact page. They extend the existing design language with
 * search bars, category filters, page hero banners, and a
 * contact form while retaining the light blue color palette.
 */

/* Page hero banner used on inner pages */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  /* Soft gradient background matching the primary colors */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.page-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.page-hero p {
  font-size: 1.125rem;
  color: #e5f5ff;
}

/* Deals page filter bar */
.deals-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.search-box {
  flex: 1 1 300px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--text-color);
  background-color: #fff;
}
.search-box input::placeholder {
  color: #9ca3af;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-item {
  padding: 0.5rem 1rem;
  background-color: #f0f9ff;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
}
.category-item:hover,
.category-item.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Contact form styling */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  color: var(--text-color);
  background-color: #fff;
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form button {
  align-self: flex-start;
}

/* Auth forms (Sign In / Register) */
.auth-section .contact-form {
  max-width: 500px;
  margin: 0 auto;
}
.auth-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
}
.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-list {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .auth-links {
    margin-top: 0.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .about-container {
    flex-direction: column;
  }
  .about-illustration {
    order: -1;
  }
}

/* ------------------------------------------------------------------
 * Motion effects and video section
 *
 * These styles add subtle animations and support an embedded video on
 * the home page. The fadeUp animation brings sections into view with a
 * gentle upward motion and fade, while the video wrapper ensures
 * responsive scaling of the embedded video.
 */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video section styling */
.video-section {
  padding: 4rem 0;
  background-color: #f0f9ff;
  text-align: center;
  animation: fadeUp 0.8s ease-out both;
}
/* Video cover illustration */
.video-cover {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.video-cover-img {
  width: 100%;
  display: block;
}

/*--------------------------------------------------
  Portal (User Dashboard) Styles
  These styles support the new portal.html page which acts
  as a simple user dashboard after sign in. The layout
  mirrors the rest of the site with a hero, dashboard
  grid and tertiary buttons. Card hover effects and
  responsive grid ensure a modern look across devices.
----------------------------------------------------*/

/* Hero section specific to the portal */
.portal-hero {
  background-color: var(--section-bg-alt);
  padding: 4rem 0 3rem 0;
  text-align: center;
}

/* Dashboard container */
.dashboard-section {
  background-color: var(--section-bg);
  padding: 4rem 0;
}

/* Dashboard grid layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Individual dashboard cards */
.dashboard-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.dashboard-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.dashboard-card p {
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

/* Tertiary button used in dashboard */
.btn.tertiary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn.tertiary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* =========================================================================
 * Additional enhancements for the newsletter and other pages
 * These styles introduce new sections, animations and interactive effects to
 * enrich the experience. */

/* Benefits section */
.benefits-section {
  background-color: var(--background-color);
  padding: 4rem 0;
  text-align: center;
}
.benefits-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.benefit-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.benefit-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
}
.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.benefit-card h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  color: var(--heading-color);
}
.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 0.5rem;
}

/* Growth section */
.growth-section {
  background-color: #ffffff;
  padding: 4rem 0;
}
.growth-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.growth-text {
  flex: 1 1 320px;
  min-width: 260px;
}
.growth-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}
.growth-text p {
  font-size: 0.95rem;
  color: var(--text-color);
}
.growth-image {
  flex: 1 1 320px;
  min-width: 260px;
  text-align: center;
}
.growth-image img {
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.chart {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1rem;
  height: 160px;
  margin-top: 2rem;
}
.bar {
  width: 20%;
  background-image: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  border-radius: 0.25rem;
  animation: grow 6s ease-in-out infinite;
  transform-origin: bottom;
}
.bar1 { animation-delay: 0s; }
.bar2 { animation-delay: 0.5s; }
.bar3 { animation-delay: 1s; }

/* Insights section */
.insights-section {
  background-color: #f9fafb;
  padding: 4rem 0;
}
.insights-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 2rem;
}

/* Card hover utility used in insights section */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Floating animation for images */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
.floating {
  animation: float 6s ease-in-out infinite;
}

/* Pulse animation for call-to-action buttons */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pulse-button {
  animation: pulse 3s infinite;
}

/* Grow animation for chart bars */
@keyframes grow {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 20%; }
}