/* ==========================================================
   CrossMigrateDB Website
   Shared Stylesheet
   File: styles.css
   ========================================================== */
   
   /* ==========================================================
   DARK MODE PALETTE
   Applied when <html class="dark">
   ========================================================== */

html.dark {
  --primary: #3b9dff;
  --primary-light: #4fb4ff;
  --cyan: #22d3ee;
  --indigo: #6366f1;

  --text: #e6edf6;
  --text-light: #b6c2d2;
  --muted: #8a97a8;

  --white: #1a1f2b;      /* "white" surfaces become dark surfaces */
  --bg: #0b0f17;
  --bg-soft: #131926;

  --border: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}

:root {
  --primary: #0078ff;
  --primary-light: #00a8ff;
  --cyan: #00d4ff;
  --indigo: #4f46e5;

  --text: #0f172a;
  --text-light: #475569;
  --muted: #64748b;

  --white: #ffffff;
  --bg: #f8fbff;
  --bg-soft: #eef6ff;

  --border: rgba(15, 23, 42, 0.08);

  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 15px 35px rgba(0, 120, 255, 0.12);
  --shadow-lg: 0 25px 60px rgba(0, 120, 255, 0.18);

  --radius: 18px;
  --radius-lg: 28px;

  --container: 1400px;

  --transition: 0.9s ease;
}

/* ==========================================================
   RESET
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    Inter,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;    
}

ul.guide-list {
  list-style-type:disc;
  /* font-size: 16px; */
  margin-bottom: 155px;  
  padding-left: 40px;
}

/* ==========================================================
   BACKGROUND EFFECTS
   ========================================================== */

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 60%;
  filter: blur(120px);
  z-index: -2;
}

body::before {
  width: 800px;
  height: 600px;
  background: rgba(0, 168, 255, 0.35);
  top: -150px;
  left: -100px;
}

body::after {
  width: 800px;
  height: 800px;
  background: rgba(86, 81, 231, 0.12);
  bottom: -250px;
  right: -150px;
}

/* ==========================================================
   UTILITIES
   ========================================================== */

.container {
  width: min(var(--container), 92%);
  margin: auto;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.18rem;
  text-align: center;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 60px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
   
   /* Theme toggle button */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 16px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .theme-toggle {
    margin-left: auto;       /* push to the right, before hamburger */
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 28px;
  border-radius: 14px;

  font-weight: 700;
  cursor: pointer;

  transition: var(--transition);
}

.btn-primary {
  /* Updated gradient to match the overall blue palette but with a softer tone */
  background: linear-gradient(
    135deg,
    #71e375, /* slightly darker primary */
    #0099ff  /* lighter accent */
  );
  color: white;
  border: 1.5px solid #94a7be;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  /* Harmonized outline button to use the same blue scheme */
  border: 1.5px solid #94a7be;/*#0066e0*/
  color: white; /*#f19812*/
  background: #ec745f/*transparent*/;
}

.btn-outline:hover {
  background: #f53607;/*#5fa059*/
  /*color: white;*/
}

/* ==========================================================
   HEADER
   ========================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar {
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 1.5rem;
  font-weight: 800;
}

.logo-icon {
  width: 144px;
  height: 63px;

  border-radius: 2px;

  background: linear-gradient(
    135deg,
    var(--primary),
    var(--cyan)
  );
}

.nav-links {
  font-size: 1.2rem;
  display: flex;
  gap: 32px;
  /* Center the navigation links within the navbar */
  margin-left: auto;
  margin-right: auto;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: var(--transition);
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */

.mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  padding: 120px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.0rem);
  line-height: 1.05;
  margin-bottom: 25px;
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  margin-bottom: 35px;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.database-card {
  position: absolute;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(15px);

  padding: 20px;
  border-radius: 20px;

  box-shadow: var(--shadow-md);
}

.card-a {
  top: 50px;
  left: 30px;
}

.card-b {
  top: 180px;
  right: 0;
}

.card-c {
  bottom: 40px;
  left: 100px;
}

.card-d {
  top: 220px;
  left: 30px;
}

.card-e {
  top: 10px;
  left: 210px;
}

.card-f {
  top: 340px;
  left: 350px;
}

.card-g {
  top: 50px;
  left: 350px;
}

.liquid-blob {
  position: absolute;
  inset: 0;
  margin: auto;

  width: 650px;
  height: 350px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--cyan)
    );

  filter: blur(40px);
  opacity: .2;
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid var(--border);

  background: var(--white);
  color: var(--text);

  font-family: inherit;
  font-size: 1rem;

  transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-status {
  margin-top: 10px;
  text-align: center;
  font-size: 0.98rem;
  min-height: 1.4em;
}
.form-status.success { color: #16a34a; }
.form-status.error   { color: #dc2626; }

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================================
   CARDS
   ========================================================== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================
   FEATURE HEAD (image + heading side by side for .grid-3)
   ========================================================== */

.feature-head {
  display: flex;
  align-items: center;     /* vertically center image with heading */
  gap: 20px;               /* space between image and heading */
  margin-bottom: 15px;     /* space between heading row and paragraph */
}

.feature-head h3 {
  margin: 0;               /* remove default heading margin */
}

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 12px;
}

.container-card-reveal {
  display: flex;
  flex-direction: column;    /* Flips the visual order of items */
  justify-content: flex-end;      /* Aligns them back to the start */
  align-items: center;
}

/* ==========================================================
   FEATURE ICONS
   ========================================================== */

.icon-box {
  width: 60px;
  height: 60px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--cyan)
    );

  color: white;
  font-size: 1.5rem;

  margin-bottom: 18px;
}

.icon-box1 {
  width: 115px;
  height: 115px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--cyan)
    );

  color: white;
  font-size: 1.5rem;

  margin-bottom: 18px;
}

/* ==========================================================
   CTA
   ========================================================== */

.cta {
  padding: 90px 50px;
  border-radius: 40px;

  color: white;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--indigo)
    );

  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-buttons {
  margin-top: 30px;

  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* ==========================================================
   PRICING
   ========================================================== */

.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: -15px;
  right: 25px;

  padding: 8px 16px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--cyan)
    );

  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 20px 0;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* ==========================================================
   FAQ
   ========================================================== */

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer-content {
  padding: 0 20px 20px;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ==========================================================
   SEARCH BAR
   ========================================================== */

.search-box {
  max-width: 800px;
  margin: auto;
}

.search-box input {
  width: 100%;
  padding: 20px;

  border-radius: 18px;
  border: 1px solid var(--border);

  font-size: 1rem;
}

/* ==========================================================
   BLOG
   ========================================================== */

.blog-card h4 {
  margin-bottom: 10px;
}

.blog-date {
  color: var(--primary);
  font-size: .9rem;
  margin-bottom: 15px;
}

/* ==========================================================
   CHAT PLACEHOLDER
   ========================================================== */

.chat-placeholder {
  background: white;
  border-radius: 30px;

  padding: 40px;
  text-align: center;

  box-shadow: var(--shadow-md);
}

/* ==========================================================
   FOOTER
   ========================================================== */

footer {
  margin-top: 100px;

  background: #0f172a;
  color: white;

  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);

  margin-top: 40px;
  padding-top: 30px;

  text-align: center;
  color: #94a3b8;
}

/* ==========================================================
   REVEAL ANIMATION
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
    display: flex;
    align-items: center; /* Aligns text and image vertically */
    gap: 5px;           /* Adds space between the text and the logo */
}
.reveal-card-text {
    font-weight: bold;
    font-size: 1.2rem;
    align-items: start; /* Aligns text and image vertically */
    gap: 10px;           /* Adds space between the text and the logo */
}
.card reveal {
    display: flex;
    align-items: center; 
    gap: 5px;           
}

/* ==========================================================
   BACK TO TOP
   ========================================================== */

.back-to-top {
  position: fixed;

  right: 25px;
  bottom: 25px;

  width: 52px;
  height: 52px;

  border: none;
  border-radius: 50%;

  color: white;
  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--cyan)
    );

  cursor: pointer;

  display: none;

  z-index: 999;
}

.back-to-top.show {
  display: block;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 400px;
  }
}

@media (max-width: 768px) {

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 90px 0;
  }

  .card {
    padding: 24px;
  }

  .cta {
    padding: 60px 25px;
  }
}

@media (max-width: 480px) {

  .navbar {
    height: 70px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* ==========================================================
GUIDE PAGE
========================================================== */

.guide-timeline {
max-width: 1000px;
margin: 0 auto;
position: relative;
}

.guide-timeline::before {
content: "";
position: absolute;
left: 40px;
top: 0;
bottom: 0;
width: 4px;

background: linear-gradient(
180deg,
var(--primary),
var(--cyan)
);

border-radius: 999px;
}

.guide-step {
position: relative;
margin-bottom: 50px;
padding-left: 100px;
}

.guide-step-number {
position: absolute;
left: 0;
top: 10px;

width: 80px;
height: 80px;

border-radius: 50%;

background: linear-gradient(
135deg,
var(--primary),
var(--cyan)
);

color: white;

display: flex;
align-items: center;
justify-content: center;

font-size: 1.8rem;
font-weight: 800;

box-shadow: var(--shadow-md);
}

.guide-step .card ul {
margin-top: 15px;
}

.guide-step .card li {
padding: 6px 0;
}

.guide-step .card li::before {
content: "✓";
color: var(--primary);
font-weight: bold;
margin-right: 10px;
}

@media (max-width: 768px) {

.guide-timeline::before {
left: 25px;
}

.guide-step {
padding-left: 70px;
}

.guide-step-number {
width: 50px;
height: 50px;
font-size: 1.2rem;
}
}
/* ==========================================================
GUIDE PAGE_guide-row
========================================================== */

.guide-step-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin: 30px 0;
}

.guide-step-text {
    flex: 1;
    margin-top: 15px;
	font-size: 1.18rem;  
    color: var(--muted);
	font-weight: 500;
}

.guide-step-sub {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1rem 0;
  /*display: block; /* Use if targeting inline elements like <a> or <span> */
}

.guide-step-image {
    flex: 1;
}

.guide-step-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .guide-step-row {
        flex-direction: column;
    }
}

.db-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.db-grid .card {
    width: fit-content;
    padding: 20px 24px;
    min-width: 170px;
}

/* ==========================================================
   PRODUCT CARD (Download page)
   ========================================================== */

.product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 20px 26px;
  margin: 0 auto 30px;

  /*background: var(--bg-soft);*/
  background: #DBDCFD;
  border: 1px solid var(--border);
  border-radius: var(--radius);

  text-align: left;
  flex-wrap: wrap;
}

.product-card-info {
  flex: 1;
  min-width: 220px;
}

.product-name {
  font-size: 1.40rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-meta strong {
  color: var(--text-light);
  font-weight: 600;
}

.product-sep {
  color: var(--muted);
  opacity: 0.6;
}

/* Flatten primary button inside product card */
.product-card .btn-primary {
  min-width: 160px;   
  margin-right: 50px;	
  box-shadow: var(--shadow-md);
  flex-shrink: 0;  
}

@media (max-width: 480px) {
  .product-card {
    padding: 18px;
  }
  .product-name {
    font-size: 1.15rem;
  }
  .product-card .btn-primary {
    width: 100%;
  }  
}

/* ==========================================================
   DARK MODE OVERRIDES
   Only rules that can't be handled by CSS variables above.
   ========================================================== */

/* Reduce the blue/purple background blobs so they don't glow too much */
html.dark body::before {
  background: rgba(0, 120, 255, 0.18);
}
html.dark body::after {
  background: rgba(80, 70, 220, 0.10);
}

/* Header uses a hardcoded light rgba */
html.dark header {
  background: rgba(15, 20, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Hamburger bars use --text (works already), but be safe */
html.dark .hamburger span {
  background: var(--text);
}

html.dark .product-card {
  background: #7f0bd6;
  border-top: 1px solid var(--border);
}

/* Mobile menu uses white background hardcoded */
html.dark .mobile-menu {
  background: #131926;
  border-top: 1px solid var(--border);
}
html.dark .mobile-menu a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Floating database cards in hero use hardcoded rgba white */
html.dark .database-card {
  background: rgba(30, 40, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Liquid blob — keep but dim */
html.dark .liquid-blob {
  opacity: 0.14;
}

/* FAQ items use white */
html.dark .faq-item {
  background: var(--white);
}

/* Chat placeholder uses white */
html.dark .chat-placeholder {
  background: var(--white);
}

/* Search input uses var(--border) already, but explicit for clarity */
html.dark .search-box input {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--border);
}
html.dark .search-box input::placeholder {
  color: var(--muted);
}

/* Pricing divider used hardcoded rgba black */
html.dark .pricing-features li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Outline button: light-mode colors won't look right on dark */
html.dark .btn-outline {
  border: 1.5px solid #94a7be;
  color: white;
  background: #ec745f;
}
html.dark .btn-outline:hover {
  background: #f53607;
}

/* Primary button: the bright green→blue gradient works in dark too,
   but soften it so it doesn't scream on dark bg */
html.dark .btn-primary {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Card hover radial gradient in script.js uses white fill — override */
html.dark .card {
  background-color: var(--white);
}

/* Footer is already dark (#0f172a) — deepen slightly and tone text */
html.dark footer {
  background: #070a12;
}
html.dark .footer-links a {
  color: #9fb0c4;
}
html.dark .footer-bottom {
  color: #6b7a8d;
}

/* Guide step markers + icon boxes keep their gradient — fine as-is.
   Guide step card ul li::before "✓" color already uses --primary. */

/* Images: no filter needed; your hero banner and icons already have
   transparent or dark-friendly backgrounds. */

/* Prevent layout jump / flash during initial paint */
html.dark-preload,
html.dark-preload * {
  transition: none !important;
}