/* ===== Base styles from stylesheets.css ===== */

:root {
  --primary-light: #a0c8ff;
  --primary: #0040ff;
  --background: #ffffff;
  --text: #1f2937;
  --gray: #6b7280;
  --light: #f3f4f6;
  --dark: #111827;
  --glass: rgba(255, 255, 255, 0.1);
  --backdrop-blur: blur(15px);
  --neon-shadow: 0 0 20px rgba(0, 64, 255, 0.5);
}
[data-theme="dark"] {
  --background: #0f172a;
  --text: #f9fafb;
  --gray: #94a3b8;
  --light: #1e293b;
  --dark: #ffffff;
}
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
        overflow-x: hidden;
      }
      body {
        font-family: 'Inter', sans-serif;
        background: var(--background);
        color: var(--text);
        transition: background 0.3s ease, color 0.3s ease;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        overflow-x: hidden;
      }

      main {
        flex: 1;
      }
      header {
        padding: 4rem 2rem 2rem;
        text-align: center;
        background: #ffffff;
      }
      header h1 {
        font-size: 3rem;
        font-weight: 700;
        background: linear-gradient(to right, var(--primary-light), var(--primary));
        -webkit-background-clip: text;
        color: transparent;
        background-clip: text;
      }
      header p {
        font-size: 1.25rem;
        color: var(--gray);
        max-width: 800px;
        margin: 1rem auto;
      }
      .contact-btn, .theme-toggle {
        margin-top: 1.5rem;
        padding: 0.75rem 2rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50px;
        font-weight: bold;
        font-size: 1rem;
        text-decoration: none;
        box-shadow: 0 0 20px rgba(127, 90, 240, 0.3);
        transition: transform 0.2s ease;
        cursor: pointer;
      }
      .contact-btn:hover, .theme-toggle:hover {
        transform: scale(1.05);
      }
      .theme-toggle {
        margin-left: 1rem;
      }
      section.features,
      section.help,

      section.faq,
      section.blog
      section.product-link
      section.phrase1
      section.products{
        padding: 4rem 2rem;
        margin: auto;
      }
      .phrase{
        background-color: var(--light);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
      }



      .features {
        background-color: var(--light);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      }

      .feature-card {
        background: var(--glass);
        padding: 2rem;
        border-radius: 1rem;
        backdrop-filter: var(--backdrop-blur);
        box-shadow: var(--neon-shadow);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        height: 25rem;
        margin: 1.2rem;
      }

      .feature-card img.feature-image {
        height: 150px;
        object-fit: cover;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        transition: transform 0.3s ease;
      }

      .feature-card:hover img.feature-image {
        transform: scale(1.05);
      }
      .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(127, 90, 240, 0.2);
      }
      .feature-card h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        color: var(--dark);
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      .feature-card p {
        font-size: 1rem;
        color: var(--gray);
      }
      .feature-card .details {
        margin-top: 1rem;
        font-size: 0.95rem;
        color: var(--text);
        display: none;
        transition: all 0.3s ease;
      }
      .feature-card.active .details {
        display: block;
      }

      .productDetails {
          max-width: 1200px;
          margin: 0 auto;
          padding: 2rem;
        }

      .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        background-color: var(--light);
      }

      .product-card {
          background: var(--glass);
          padding: 2rem;
          border-radius: 1rem;
          backdrop-filter: var(--backdrop-blur);
          box-shadow: var(--neon-shadow);
          transition: transform 0.3s ease, box-shadow 0.3s ease;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          height: 20rem;
          margin: 1.2rem;
        }

        .product-card img.product-image {
          height: 150px;
          object-fit: cover;
          border-radius: 0.5rem;
          margin-bottom: 1rem;
          transition: transform 0.3s ease;
        }

        .product-card:hover img.product-image {
          transform: scale(1.05);
        }
        .product-card:hover {
          transform: translateY(-6px);
          box-shadow: 0 8px 30px rgba(127, 90, 240, 0.2);
        }
        .product-card h3 {
          font-size: 1.25rem;
          margin-bottom: 1.5rem;
          color: var(--dark);
          display: flex;
          align-items: center;
          gap: 0.5rem;
        }
        .product-card p {
          font-size: 1rem;
          color: var(--gray);
        }
        .product-card .details {
          margin-top: 1rem;
          font-size: 0.95rem;
          color: var(--text);
          display: none;
          transition: all 0.3s ease;
        }
        .product-card.active .details {
          display: block;
        }

      section.help h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 2rem;
        color: var(--dark);
      }
      .help-content {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
      }
      .help-box {
        flex: 1;
        min-width: 250px;
        background: var(--background);
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        text-align: center;
        transition: transform 0.3s ease;
      }
      .help-box:hover {
        transform: translateY(-4px);
      }
      section.about p {
        text-align: center;
        color: var(--gray);
        font-size: 1rem;
        max-width: 800px;
        margin: auto;
      }
      section.about h2,
      section.faq h2,
      section.blog h2 {
        text-align: center;
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--dark);
      }
      .faq-list {
        max-width: 800px;
        margin: auto;
      }
      .faq-item {
        margin-bottom: 1rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        padding: 0.5rem 1rem;
        background: var(--background);
      }
      .blog-posts {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
      }
      .blog-post {
        background: var(--background);
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      }
      section.pricing {
        padding: 4rem 2rem;
        text-align: center;
      }
      .pricing-cards {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
      }
      .price-card {
        background: var(--background);
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        min-width: 180px;
      }
      .price {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary);
        margin-top: 0.5rem;
      }

      .fade-in {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      }
      .fade-in.visible {
        opacity: 1;
        transform: none;
      }

        .carousel-container {
          position: relative;
          padding: 100px:
          overflow: hidden;
        }

        .carousel-track {
          display: flex;
          transition: transform 0.4s ease-in-out;
          will-change: transform;
        }

        .carousel-card {
          flex: 0 0 33.33%;
          padding: 20px;
          background: white;
          border: 10px solid white;
          text-align: center;
          font-size: 1rem;
          box-shadow: 0 4px 8px rgba(0,0,0,0.05);
          margin: 10px
        }

        .carousel-btn {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
          background: #007bff;
          color: white;
          border: none;
          font-size: 2rem;
          padding: 10px;
          cursor: pointer;
          z-index: 10;
        }

        .carousel-btn.prev {
          left: 0;
        }
        .carousel-btn.next {
          right: 0;
        }

      section.contact {
        padding: 4rem 2rem;
        background: #e5e5e5;
        text-align: center;
        margin-top: 100px;
      }
      .contact h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--dark);

      }
      .contact p {
        margin-bottom: 2rem;
        color: var(--gray);
        font-size: 1rem;
      }
      .contact form {
        max-width: 600px;
        margin: 0 auto;
        display: grid;
        gap: 1rem;
      }
      .contact input {
        padding: 1rem;
        border-radius: 0.5rem;
        border: 1px solid #d1d5db;
        font-size: 1rem;
      }
      .contact button {
        padding: 1rem;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s ease;
      }
      .contact button:hover {
        transform: scale(1.05);
      }
      .social-links {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 3.5rem;
      }
      .social-links a {
        color: var(--primary);
        font-size: 1.5rem;
        transition: color 0.2s ease;
      }
      .social-links a:hover {
        color: var(--dark);
      }
      footer {
        text-align: center;
        padding: 2rem;
        font-size: 0.875rem;
        color: var(--gray);
        background-color: var(--background);
        border-top: 1px solid #e5e7eb;
        margin-top: auto;
      }
      @media (max-width: 768px) {
        header h1 {
          font-size: 2rem;
        }
        header p {
          font-size: 1rem;
        }
        .contact-btn, .theme-toggle {
          width: 100%;
          margin: 0.5rem 0;
        }
        .nav-container {
          flex-wrap: wrap;
          padding: 10px 20px;
        }
        .menu-toggle {
          display: block;
        }
        .nav-right {
          width: 100%;
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
        .nav-center {
          width: 100%;
        }
        .nav-center .nav-links {
          display: none;
          flex-direction: column;
          gap: 1rem;
          align-items: flex-start;
          width: 100%;
          margin-top: 1rem;
          background: var(--background);
          padding: 1rem 0;
        }
        .nav-center .nav-links.show {
          display: flex;
        }
      }

/* ===== Additional and overriding styles from newStyle.css ===== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  background: #fff;
}


/* NAVBAR inside hero */
.nav-container {
  width: 100%;
  padding: 20px 60px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  background: transparent;
}

.logo-img {
  width: clamp(200px, 10vw, 400px);
  height: auto;
}

.nav-left .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #cceaff;
}

.nav-center .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-center .nav-links a {
  text-decoration: none;
  font-size: 1rem;
  color: #cceaff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-center .nav-links a:hover {
  color: #cceaff;
}

.nav-right .contact-btn {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 8px;
  color: #cceaff;
  font-weight: 500;
  border: 1px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-right .contact-btn:hover {
  background-color: #ffffff;
  color: #007BFF;
}

/* mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #cceaff;
  cursor: pointer;
}

/* Navbar style for normal pages */
.nav-page {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--background);
  z-index: 10;
}

.nav-page .nav-links a {
  color: var(--dark);
}

.nav-page .nav-links a:hover {
  color: var(--primary);
}

.nav-page .contact-btn {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.nav-page .contact-btn:hover {
  background-color: #ffffff;
  color: var(--primary);
}

/* Generic layout for simple content pages */
.content-page {
  padding: 160px 60px 80px;
  text-align: center;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.content-page p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  list-style: none;
  min-width: 180px;
  z-index: 1000;
  text-align: left;
}

.dropdown-menu li {
  padding: 8px 20px;
  white-space: nowrap;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: flex;
}

/* Hero */
.hero {
  height: 100vh;
  background: url('../images/background.png') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-text h1.typing-gradient {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #cceaff, #007BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 4s steps(40, end) forwards;
}

/* Typing and blinking animation */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

.hero-text h4{
    color: #cceaff
}
/* Content Sections */
.content-section {
  min-height: 100vh;
  background: #f5f5f5;
  /* Previously this section was set to `position: sticky`, which
     caused it to overlay the hero on page load and hide all homepage
     content on mobile. The sticky positioning and related properties
     are removed so the section flows normally beneath the hero. */
  position: relative;
}

.content-section:nth-of-type(3) {
  background: #fff;
  z-index: 3;
}

.content-section:nth-of-type(4) {
  background: #f0f0f0;
  z-index: 4;
}


/* Previously, elements with the `reveal` class were hidden until
   JavaScript scrolled them into view. This left the page blank if the
   script failed to run on mobile. Elements now render immediately to
   ensure content is always visible. */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.phrase p {
  font-size: 2.3rem;       /* large text */
  font-weight: 700;        /* bold */
  line-height: 1.4;
  color: #222;
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 1rem;
}

@media (max-width: 768px) {
  .phrase p {
    font-size: 1.8rem;     /* responsive size for tablets */
  }
}

@media (max-width: 480px) {
  .phrase p {
    font-size: 1.4rem;     /* responsive size for phones */
  }
}

/* Testimonials grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  text-align: center;
  padding: 2rem;
  border: 2px solid black;
  border-radius: 1rem;
  background: var(--background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem auto;
}

.testimonial-avatar-icon {
  font-size: 2.5rem;
  margin: 10px auto;
  text-align: center;
}


.testimonial-text {
  font-style: italic;
  color: var(--dark);
  margin-bottom: 1rem;
}

.testimonial-author {
  margin: 0;
  font-weight: 600;
  color: var(--dark);
}

/* Insights section */
#insights {
  padding: 4rem 2rem;
  background: var(--light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.insights-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.insights-text p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 1rem;
}

.insights-logo img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}
 /*----------------------------------------------------------------------------------*/


/* Animating clone styles */
.animating-clone {
    position: fixed;
    margin: 0;
    z-index: 99998;
    border-radius: 1rem;
    pointer-events: none;
    overflow: hidden;
    background: white;
    transition: top 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                left 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                width 0.6s cubic-bezier(0.4, 0.0, 0.2, 1),
                height 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.animating-clone.expand {
    top: 10vh !important;
    left: 5vw !important;
    width: 90vw !important;
    height: 80vh !important;
}

.animating-clone.fade-out-content > * {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animating-clone .product-image {
    display: none !important; /* Completely hide image during animation */
}

/* Updated modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: auto;
    transition: opacity 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-overlay.active {
    display: flex !important;
        justify-content: center;
        align-items: center;
        opacity: 1;
}

.modal-overlay.active .modal-content {
    opacity: 1 !important;
    display: block !important;
}

.modal-content {
    background: white;
        border-radius: 1rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
        padding: 2rem;

        /* Match the exact clone animation size */
        width: 90vw !important;
        height: 80vh !important;
        max-width: 90vw !important;
        max-height: 80vh !important;

        overflow-y: auto;
        position: relative;
        z-index: 100000;
        opacity: 1;
}

#modal-body {
    opacity: 1 !important;
    display: block !important;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100001;
}

.close-btn:hover {
    background-color: rgba(127, 90, 240, 0.2);
}

.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Responsive layout improvements */
img {
  max-width: 100%;
  height: auto;
}

form input,
form button {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  min-height: 44px;
}

section {
  padding: 4rem 2rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* prevent background scrolling when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    flex-wrap: nowrap;
    justify-content: space-between;
    z-index: 1000;
  }
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-right .contact-btn {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-center .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--background);
    padding: 1rem 1.5rem;
    gap: 1rem;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-center .nav-links.show {
    display: flex;
  }
  .nav-center .nav-links a {
    color: var(--dark);
  }
  .hero {
    padding: 100px 20px 0 20px;
  }

  /* allow hero heading to wrap on small screens and drop typing effect */
  .hero-text h1.typing-gradient {
    font-size: 2.5rem;
    white-space: normal;
    width: auto;
    animation: none;
  }

  .nav-page + * {
    margin-top: 80px;
  }
  .features,
  .products,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .feature-card {
    height: auto;
  }
  .product-card {
    height: auto;
  }
  .insights {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  .contact-btn {
    padding: 0.5rem 1rem;
  }
  .hero-text h1.typing-gradient {
    font-size: 2rem;
  }
}

