@media (max-width: 1024px) {
  nav span {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
  nav span a {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
  }
}
@media (max-width: 1024px) {
  nav span {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  nav span a {
    margin-right: 0.5rem;
  }
}
/* Floating social icons */
.social-float {
  position: fixed;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}
.social-icon img {
  transition: transform 0.2s;
}
.social-icon:hover img {
  transform: scale(1.15);
  box-shadow: 0 2px 12px rgba(126,249,255,0.2);
}
/* Hamburger menu styles */
.hamburger {
  display: none;
}

@media (max-width: 1024px) {
  .hamburger {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    z-index: 200;
  }
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70vw;
    max-width: 320px;
    background: rgba(10,10,15,0.98);
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start !important;
    padding: 4rem 2rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    gap: 1.5rem;
  }
  nav.open {
    transform: translateX(0);
  }
  nav a {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    width: 100%;
  }
  header {
    position: relative;
  }
}
/* About cards grid: 3 columns, 2 rows; center on mobile */
.about-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .about-cards {
    grid-template-columns: 1fr 1fr;
  }
}
/* Blog grid (reuse about cards layout) */
.blog-grid {
  display: grid !important;
  /* three columns with a sensible minimum so columns don't shrink too small */
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Pricing cards: use an auto-fit card grid and center the group
   This allows the cards to sit side-by-side on most screens while
   remaining responsive and stacking only on very narrow viewports. */
.pricing-cards {
  display: grid !important;
  /* default to an auto‑fitting layout so multiple cards can sit next to each other */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-content: center; /* center the row of cards as a group */
  justify-items: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* responsive behavior already handled, no additional media query required */

@media (max-width: 600px) {
  .about-cards {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
/* Two-up layout for standalone pricing cards (race-ready + add-ons) */
.pricing-two {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-top: 2rem;
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .pricing-two {
    grid-template-columns: 1fr;
  }
}
/* Allow line breaks in hero subheadline on mobile */
.hero-content p.visible {
  white-space: normal;
}
/* Center hero section content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: #0a0a0f;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 100;
  max-width: 100vw;
  box-sizing: border-box;
}

header h1 {
  font-weight: 600;
  letter-spacing: 1px;
  color: #7ef9ff;
  transition: transform 0.3s ease;
  margin: 0;
  padding: 0;
}

header h1 img {
  display: block;
  margin: 0;
  padding: 0;
  height: 2.2rem;
}

header h1:hover {
  transform: scale(1.05) rotate(-2deg);
}

nav a {
  margin: 0 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #7ef9ff;
  transform: translateY(-2px);
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  background: linear-gradient(to right, #030712, #111827);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #7ef9ff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero h2.visible {
  transform: translateY(0) scale(1.05);
  opacity: 1;
}

.hero p {
  max-width: 700px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.2rem;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hero p.visible {
  transform: translateY(0);
  opacity: 1;
}

.button {
  background: linear-gradient(90deg, #7ef9ff, #a855f7);
  color: #0a0a0f;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease, transform 0.3s ease;
}

.button:hover {
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 0 25px rgba(126, 249, 255, 0.5);
}

h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #7ef9ff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

h3.visible {
  transform: scale(1.05);
  opacity: 1;
}

.section-content {
  max-width: 1280px;
  color: #d1d5db;
  line-height: 1.7;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.section-content.visible {
  transform: translateY(0);
  opacity: 1;
}

footer {
  padding: 2rem;
  text-align: center;
  background: #030712;
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h2 { font-size: 2.2rem; }
  header h1 { font-size: 1.2rem; }
  header {
    padding: 1rem 0.5rem;
  }
  nav {
    overflow-x: auto;
    max-width: 100vw;
    display: flex;
    flex-wrap: nowrap;
  }
  nav a {
    margin: 0 0.5rem;
  }
}

.blog-card {
  background: #18181b;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: none;
  box-shadow: 0 6px 30px rgba(0,0,0,0.28);
  color: #d1d5db;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  min-height: 520px;
}

.blog-card img {
  width: 100%;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  object-fit: cover;
  height: 240px; /* keeps all cards uniform */
}


.blog-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #fff;
}

.blog-card .post-date {
  margin: 0 0 0.75rem 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.blog-card p {
  font-size: 0.95rem;
}

.blog-card .read-more {
  color: #7ef9ff;
  text-decoration: none;
  font-weight: 600;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(126,249,255,0.25);
}

/* Ensure the CTA sits below the date and has breathing room */
.blog-card .card-rest {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-card .card-rest .button {
  margin-top: 1rem !important;
  align-self: center !important;
}

/* Make pricing cards visually match about cards exactly */
.pricing-card {
  /* match about-card appearance */
  background: #18181b !important;
  border-radius: 1rem !important;
  padding: 2rem !important;
  box-shadow: 0 4px 25px rgba(0,0,0,0.25) !important;
  color: #d1d5db !important;
  text-align: left !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important; /* keeps buttons at the bottom */
}

.pricing-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 8px 35px rgba(126,249,255,0.25) !important;
}

.pricing-card h4 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.pricing-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
}

.pricing-card li {
  margin-bottom: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important; /* keep each option on a single line */
}

/* Ensure the call-to-action button sits visually like a card footer */
.pricing-card .button {
  margin-top: 1rem !important;
  align-self: center !important;
}

/* Card body so price can be anchored consistently */
.pricing-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Price element: consistent size and anchored position within the card body */
.pricing-card .price {
  font-size: 1.3rem !important;
  margin: 1rem 0 !important;
  color: #a855f7 !important;
  text-align: left !important;
  /* push price toward bottom of body so prices line up */
  margin-top: auto !important;
}

/* Enforce percentage layout inside each pricing card
  - header: top 10%
  - description: next ~20% (10-30%)
  - price: next ~20% (30-50%)
  - rest: bottom ~50% */

.pricing-card .card-header {
  flex: 0 0 10% !important;
  display: flex !important;
  align-items: center !important;
}

.pricing-card .card-description {
  /*flex: 0 0 25% !important; /* 10-30% */
  /* overflow: auto !important; */
}

.pricing-card .card-price {
  flex: 0 0 10% !important; /* 30-50% */
  display: flex !important;
  align-items: center !important;
}

.pricing-card .card-rest {
  flex: 1 1 50% !important; /* bottom 50% */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.pricing-card .card-rest .button {
  margin-top: 1rem !important;
  align-self: center !important;
}

/* ribbon styling (keeps pre-existing look) */

.menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
  display: block;
}
