/* ===========================
   Base Reset
=========================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: linear-gradient(to bottom, #6a1b9a 0%, #ede6f5 100%);
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
a { text-decoration: none; color: inherit; }
h1 { color: #edafdd; margin-bottom: 20px;font-size:1.9em;text-align:center; }
h2 { color: #edafdd; }

/* ===========================
   Header
=========================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: transparent;
  z-index: 10;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}
.header-left img { height: 60px; width: auto; }
.header-left span { line-height: 1; }

/* ===========================
   Hero Sections
=========================== */
/* Frontpage Hero */
.hero {
  text-align: center;
  padding: 60px 20px 10px;
  background: linear-gradient(135deg, #28043d, #3a0a57, #4b166d, #35104f, #28043d);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
/* Product Pages Hero */
.hero_products {
  text-align: center;
 padding: 60px 20px 20px;
  background: linear-gradient(135deg, #6a1b9a 0%, #ede6f5 100%);
  color: #fff;
  position: relative;
 background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  color: #fff;
  position: relative;
}

/* Ensure header/menu inside product pages is readable */
.hero_products header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  z-index: 10;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #28043d, #3a0a57, #4b166d, #35104f, #28043d);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}
.hero_products header a,
.hero_products header span {
  color: #fff;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-top: 2em; margin-bottom: 2rem; opacity: 0.9; }
.card-body .flagga {
  width: 30px;
  height: auto;
  display: inline-block;
  margin-right: 8px;   /* spacing between flag and text */
  vertical-align: top; /* align flag slightly above the text */
}
.title-with-flag {
  display: flex;
  justify-content: center; /* centers the whole block horizontally */
  align-items: flex-start; /* aligns flag slightly above the title */
}
.title-with-flag h3 {
  margin: 0;
  line-height: 1.2; /* optional: tighter line spacing for better visual balance */
}
#apps {
  text-align: center;
}

#apps .grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

#apps .card {
  width: 300px;
}
#appImage {
  width: 70%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#appImage.fade-out {
  transform: scale(0.98);
}

#appImage.fade-in {
  transform: scale(1);
}
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid #a855f7;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(139, 92, 246, 0.2);
}

.appstore-btn:active {
  transform: scale(0.97);
}

.appstore-btn svg {
  margin-right: 6px;
  opacity: 0.9;
  color: #a855f7;
  transition: all 0.25s ease;
}

.appstore-btn:hover svg {
  color: #c084fc;
  transform: translateX(4px);
}

.appstore-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.appstore-text .small {
  font-size: 12px;
}

.appstore-text .big {
  font-size: 14px;
  font-weight: 600;
}
/* ===========================
   Back Arrow (Back Home)
=========================== */
.back-home-wrapper { display: block; margin: 20px 0 0 0; padding-left: 0; }
.back-home-bottom {
  display: inline-block;
  color: #6a11cb;
  font-size: 2.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.back-home-bottom i {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
.back-home-bottom:hover i {
  transform: translateX(-5px) scale(1.2);
  color: #3f075f;
}
.back-home-bottom:active i { transform: translateX(-2px) scale(1); }

/* ===========================
   Buttons
=========================== */
.btn,
.cta-btn {
  background: #fff;
  color: #2575fc;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}
.btn:hover,
.cta-btn:hover { background: #f1f1f1; }

/* ===========================
   CTA Section
=========================== */
.cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  color: #fff;
}
.cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta p { font-size: 1.1rem; margin-bottom: 1.5rem; opacity: 0.9; }

/* ===========================
   Products Section
=========================== */
section { width: 100%; }
#books {
  background: linear-gradient(#e4bff5, #ede6f5); padding: 4rem 1rem;
}
#plugins {
  background: linear-gradient(#ede6f5, #6a1b9a);padding: 4rem 1rem;
}
.products > .grid,
.products > p { max-width: 1200px; margin: 0 auto; }
.products h2 { text-align: center; margin-bottom: 1rem; font-size: 2rem;color:#fff; }
.products p { text-align: center; margin-bottom: 1rem; color: #fff; }
.booktext  { color: #666!important; }

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

/* Plugins Section Specific */
.plugins-section { background-color: #6a1b9a; }
.plugins-section h2,
.plugins-section .section-description { color: #ffffff; }
.plugins-section .card-body p,
.plugins-section .card-body .price { color: #666666; margin-bottom:1rem }

#plugins .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 2rem;
  max-width:900px;
  margin: 0 auto;
}
.text-purple { color: #fff!important; }

@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

/* ===========================
   Cards
=========================== */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s;
  text-align: center;
}
.card:hover { transform: translateY(-5px); }
.card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}
.card-body { padding: 1.5rem; padding-top: 0.3em; }
.card h3 { margin: 0.5rem 0; }
.price { font-weight: bold; font-size: 1.2rem; margin-top: 0.5rem; color: #222; margin-bottom:1rem}

/* PayPal Button */
.paypal-btn {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  border-radius: 12px;
  background: linear-gradient(45deg, #6a11cb, #b721ff, #ff5acd, #2575fc);
  background-size: 300% 300%;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
}
.paypal-btn:hover { background-position: 100% 0; transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.paypal-btn:active { transform: scale(0.98); box-shadow: 0 3px 10px rgba(0,0,0,0.2); }

/* ===========================
   Wide Card Section
=========================== */
.wide-card-section { display: flex; justify-content: center; padding: 4rem 2rem; background: #f3e8ff; }
.wide-card {
  max-width: 1000px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 40px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
}
.wide-card-text { flex: 1; min-width: 300px; }
.wide-card-text h1,
.wide-card-text h2 { color: #6a11cb; margin-bottom: 20px; }
.wide-card-text p { margin-bottom: 15px; line-height: 1.6; color: #333; }
.wide-card img { flex: 1; min-width: 250px; max-width: 100%; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.wide-card-content {display: flex;flex-wrap: wrap;gap: 20px;align-items: flex-start;}

.wide-card-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.wide-card-image img {
  margin-top: 50px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.section-transition {
  height: 100px;
  background: linear-gradient(#6a1b9a, #ede6f5);
}


/* ===========================
   About Section
=========================== */
.about-section {
  background: linear-gradient(#6a1b9a, #ede6f5);
  padding: 80px 20px;
}
.start-section {
  padding-bottom: 10px;
  padding-top:40px;
}
#books {
  padding-top: 1.5rem;
}
/* Container/Card with glass + pastel border */
.about-container {
  max-width: 80%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;

  /* 🌟 Soft card + frosted glass */
 
  border-radius: 16px;
  border: 2px solid rgba(218, 198, 255, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  padding: 40px 50px;

  /* Show immediately */
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* Text styling */
.about-text {
  flex: 1;
  min-width: 300px;
  color: #4b166d;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-text h2 {
  margin-top: 0;
  position: relative;
  padding-bottom: 10px;
}

/* 🌟 Thin pastel accent line under h2 */
.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6a11cb;
  margin-top: 8px;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.2em;
}

.about-text a {
  color: #6a1b9a;
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

/* Image styling */
.about-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.about-image img {
  max-width: 80%;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 15px;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ===========================
   Responsive tweaks
=========================== */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    padding: 30px 20px;
  }

  .about-image {
    margin-top: 20px;
  }
}

/* ===========================
   Testimonials Section
=========================== */
.testimonials-section {
  background-color: #ede6f5;
  padding: 4rem 2rem;
}
.testimonials-section .container { max-width: 1200px; margin: 0 auto; }
.testimonials-section h2 { color: #fff; margin-bottom: 1rem; text-align: center; }
.testimonials-section p { color: #fff; margin-bottom: 1rem; text-align: center; }

/* Slider */
.testimonial-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
}
.testimonial-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  min-width: 250px;
  max-width: 350px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card p { flex-grow: 1; color: #555; font-style: normal; }
.stars { margin-top: 1rem; color: #f5c518; font-size: 1.2rem; }
.author { margin-top: 0.5rem; color: #6a11cb; font-weight: bold; }
.role { color: #888; font-size: 0.85rem; }

/* Navigation buttons */
.testimonial-nav { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; }
.testimonial-nav button {
  background: #9f58ed;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.3s;
}
.testimonial-nav button:hover { background: #4b0f97; }

/* ===========================
   Legal Pages
=========================== */
.legal-section { max-width: 1000px; margin: 3rem auto; padding: 2rem 1rem 2rem; }
.legal-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: left;
  line-height: 1.6;
}
.legal-card h1 { color: #6a11cb; margin-bottom: 1.5rem; text-align: center; }
.legal-card h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; color: #6a11cb; font-size: 1.2rem; }
.legal-card p { color: #333; margin-bottom: 1rem; }

/* ===========================
   Footer
=========================== */
.footer {
  text-align: center;      /* center it */
  font-size: 0.85rem;      /* smaller text */
  color: #333;             /* softer color (optional but nicer) */
}

/* ===========================
   Back to the Top Button
=========================== */
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #510373;
  color: #ffffff;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.3s ease;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background-color: #6a1b9a; transform: translateY(-3px); }
.products,
#plugins,
.about-section,
.testimonials-section,
#footer-placeholder {
  background: transparent!important;
}
.ad-container {
  margin: 40px auto;
  text-align: center;
}
/* Only Apps = 4 cards */
.apps-section .grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px;
}

.apps-section .card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
/* ===========================
   TagPix Support Page + Nav Fix
=========================== */

body {
  overflow-x: hidden;
}

/* Loaded menu styling */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, #28043d, #3a0a57, #4b166d, #35104f, #28043d);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.nav-inner {
    max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 0 auto; /* pushes whole menu block to the right */
  padding: 0;
}

.site-nav ul li {
  list-style: none;
}

.site-nav ul li a {
  color: #fff;
  font-weight: 600;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  color: #d8b4fe;
}
.header-appstore {
  margin: 0;
}

.appstore-item {
  display: flex;
  align-items: center;
}

/* Burger button */
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Support page layout */
.support-page {
  padding: 50px 20px 0px;
}
.support-section {
  background: transparent;
  padding: 0;
}

.support-card {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  border-radius: 24px;
  padding: 40px 30px;
}

.section-header h1 {
  margin-bottom: 20px;
}

.support-hero {
  border-radius: 20px;
  padding: 40px 25px;
}

.support-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 24px;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 700px;
}

/* Card */
.support-list li {
  background: linear-gradient(135deg, #6a11cb, #b721ff, #ff5acd);
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* subtle glow overlay */
.privacy-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #d8b4fe;
  border-radius: 50%;
  top: 10px;
}

/* hover effect */
.support-list li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 35px rgba(0,0,0,0.25);
}

.support-list li:hover::before {
  opacity: 1;
}
/* ===========================
   Privacy List (readable)
=========================== */
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  max-width: 600px;
}

.privacy-list li {
  text-align: left;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  color: #fff;
}

/* nice subtle bullet */
.privacy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d8b4fe;
  font-size: 1.2rem;
}
/* ===========================
   Privacy Content Layout
=========================== */
.privacy-content {
  text-align: center; /* keeps headings centered */
}

/* paragraphs = readable */
.privacy-content p {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

/* headings stay centered but aligned with text width */
.privacy-content h2 {
  max-width: 700px;
  margin: 30px auto 10px;
  text-align: center;
}

/* lists inside privacy */
.privacy-content ul {
  max-width: 700px;
  margin: 10px auto 20px;
}

#scrollToTopBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: #510373;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  transform: translateY(-3px);
}

/* Mobile */
@media (max-width: 900px) {

 .nav-inner {
    justify-content: space-between;
    position: relative;
  }

  .nav-brand img {
    height: 24px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    order: 3;
  }

  .site-nav ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: auto;
    width: min(320px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    margin: 0;
    background: rgba(40, 4, 61, 0.98);
    border-radius: 18px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
  }

  .site-nav ul.open {
    display: flex;
  }

  .site-nav ul li a {
    display: block;
    padding: 14px 10px;
    text-align: center;
  }

  .appstore-item {
    justify-content: center;
    padding-top: 10px;
  }

  .support-page {
    padding: 30px 14px 60px;
  }

  .support-card {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .support-hero {
    padding: 30px 18px;
  }

  .support-hero p,
  .support-hero li {
    font-size: 1rem;
  }
   .support-list {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Responsive Adjustments
=========================== */
@media (max-width: 768px) {
  header { padding: 15px 20px; flex-direction: column; align-items: flex-start; }
  .header-left { margin-bottom: 10px; }
  .header-left a { font-size: 1rem; }
  .header-left img { height: 50px; }
  .about-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }
  .about-text {
    font-size: 1rem;
  }
  .nav-brand {
    margin-right: 0;
  }

  .nav-brand img {
    height: 36px;
  }
}