/* Global reset */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  background-color: #fff;
}

/* adding this 2/2 */
body{
  overflow-x:hidden;
}
/* Main page container */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Headers */
h1, h2, h3 {
  margin-bottom: 20px;
}

#home h2 {
  font-size: 2rem;
  margin-top: 40px;    /* space after logo */
  margin-bottom: 30px; /* space before carousel */
  text-align: center;  /* center the heading */
}

#home h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: red;
  margin: 12px auto 0;
}


/* Images */
img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  /* border-radius: 50%; */
}

.logo {
  width: 420px;      /* try 280–350px */
  max-width: 90%;
  height: auto;
  display:block;
  margin: 10px auto 8px;
}


/* Paragraphs */
p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Return home button */
.return-home {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: black;
  color: red;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  z-index: 1000;
}

.return-home:hover {
  background-color: red;
  color: white;
}

/* Contact section */
#contact {
  padding: 40px 20px;
}

/* Push title down from fixed button */
#contact h2 {
  margin-top: 50px;
  margin-bottom: 30px;
}

/* Form layout */
#contact form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* Inputs and textarea */
#contact input,
#contact textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Submit button */
#contact button {
  background-color: red;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

#contact button:hover {
  background-color: darkred;
}

.comparison-section {
    padding: 50px 20px;
    text-align: center;
}

.comparison-section h2 {
    margin-bottom: 40px;
}

.comparison-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.comparison-column {
    background-color: #f8f8f8;  /* light background for clarity */
    border: 2px solid red;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    box-sizing: border-box;
    text-align: left;
}

.comparison-column h3 {
    color: black;
    text-align: center;
    margin-bottom: 15px;
}

.comparison-column ul {
    list-style-type: none;
    padding: 0;
}

.comparison-column li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  margin-bottom:40px;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  text-align: center;
}

.slide-blurb{
  max-width:90%;
  margin:0 auto;
}

.slide img {
  display: block;
  margin: 0 auto 15px;
  max-width: 250px;
  height: auto;
  border-radius: 10px;
}



.slide-button {
  display: inline-block;
  margin-top: 10px;
  background-color: red;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: black;
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }


.hero-subtitle {
  font-size: 1.25rem;
  max-width: 760px;
  margin: 10px auto 18px;
  line-height: 1.6;
  color: #333;
}

.services-cards {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.service-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 40px 30px 50px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.slide-blurb {
  max-width: 500px;
  margin: 10px auto 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

#contact {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.contact-intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.consultation-card {
  background-color: #f8f8f8;
  border: 2px solid red;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 40px;
  text-align: left;
}

.consultation-card h3 {
  text-align: center;
  margin-bottom: 15px;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact input,
#contact textarea {
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#contact button {
  background-color: red;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

#contact button:hover {
  background-color: darkred;
}

.app-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.app-card {
  max-width: 260px;
  text-align: center;
}

.phone-video {
  width: 100%;
  max-height: 520px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#home {
  padding-top: 30px;
}

.hero-subtitle {
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.primary-cta {
  background: red;
  color: white;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.primary-cta:hover { transform: translateY(-2px); }

.secondary-cta {
  border: 2px solid black;
  color: black;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
}

.hero-trust {
  color: #555;
  font-size: 0.95rem;
  margin-top: 12px;
}

header {
  position: sticky;
  top: 0;
  background: white;
  padding: 14px 24px;
  border-bottom: 1px solid #eee;
  z-index: 999;
}

#nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

#nav-menu a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

#nav-menu a:hover {
  color: red;
}

#home {
  padding: 40px 20px 0;
}

.hero-wrap {
  background: #f8f8f8;
  border-radius: 18px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.primary-cta {
  background: red;
  color: white;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-cta:hover {
  background: darkred;
  transform: translateY(-2px);
}

.secondary-cta {
  border: 2px solid black;
  color: black;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.secondary-cta:hover {
  border-color: red;
  color: red;
}

#services {
  margin-top: 70px;
  font-size: 2rem;
}

#services::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: red;
  margin: 14px auto 0;
  border-radius: 999px;
}

footer {
  padding: 30px 20px;
  border-top: 1px solid #eee;
  margin-top: 80px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  color: #333;
  text-decoration: none;
}

.footer-links a:hover {
  color: red;
}
.why-me {
  margin: 70px auto 80px;
  padding: 50px 20px;
  max-width: 1100px;
  background: #f8f8f8;
  border-radius: 18px;
  text-align: center;
}

.why-me h2 {
  margin-bottom: 35px;
  font-size: 2rem;
}

.why-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.why-card {
  background: white;
  border-radius: 14px;
  padding: 24px 22px;
  max-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.why-card h3 {
  margin-bottom: 10px;
  color: black;
}

.why-card p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.dashboard-preview {
  max-width: 1100px;   /* makes it feel substantial */
  margin: 40px auto;
}

.dashboard-preview img {
  width: 100%;         /* fills container */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sql-preview {
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
}

.sql-preview h3 {
  margin-bottom: 30px;
}

.sql-images {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.sql-images img {
  width: 100%;
  max-width: 520px;   /* makes them readable */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.thankyou {
  max-width: 850px;
  margin: 80px auto;
  padding: 60px 25px;
  text-align: center;
  background: #f8f8f8;
  border-radius: 18px;
}

.thankyou h1 {
  margin-bottom: 18px;
  font-size: 2.2rem;
}

.thankyou p {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.6;
  color: #333;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}

.thankyou-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: #555;
}


/* ✅ Mobile Fix for Carousel (REWRITE) */
@media (max-width: 768px) {

  body { overflow-x: hidden; }

  /* reduce card padding so carousel has room */
  .service-card {
    padding: 18px 12px 22px;
  }

  /* IMPORTANT: don’t pad the container when overflow is hidden */
  .carousel-container {
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 0;              /* was clipping */
    overflow: hidden;
    position: relative;
  }

  /* keep the track aligned properly */
  .carousel-slides {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
  }

  /* each slide fills the viewport width inside the container */
  .slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 54px;      /* room for arrows */
    text-align: center;
  }

  .slide img {
    width: min(220px, 70vw);
    height: auto;
    margin: 0 auto 12px;
    display: block;
    border-radius: 12px;
  }

  .slide h3 {
    font-size: 1.25rem;
    margin: 8px 0 10px;
  }

  .slide-blurb {
    max-width: 340px;
    margin: 0 auto 14px;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0;
  }

  .prev, .next {
    width: 36px;
    height: 36px;
    font-size: 18px;
    padding: 0;
    top: 50%;
  }

  .prev { left: 8px; }
  .next { right: 8px; }
}