@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");

/* Global Styles */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Sora", sans-serif;
  transition: background 0.3s, color 0.3s;
}
body {
  background: #f9fbff;
  color: #222;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0f387d;
}
nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
nav li a {
  font-weight: 500;
  transition: color 0.3s;
}
nav li a:hover {
  color: #416bff;
}
.toggle-btn {
  border: none;
  background: #0f387d;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}
.toggle-btn:hover {
  background: #416bff;
}

/* Hero Section */
header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  background: linear-gradient(120deg, #0f387d, #416bff);
  color: #fff;
}
header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
header .cta-btn {
  background: #fff;
  color: #0f387d;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}
header .cta-btn:hover {
  background: #eaf0ff;
}

/* Scroll Down Arrow */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-down a {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(-45deg) translateY(0);
  }
  40% {
    transform: rotate(-45deg) translateY(10px);
  }
  60% {
    transform: rotate(-45deg) translateY(5px);
  }
}

/* Sections */
section {
  padding: 5rem 10% 5rem 10%;
}
section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: #0f387d;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.feature-card {
  position: relative;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease; /* smooth zoom */
}

/* Animated gradient overlay */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 56, 125, 0.8),
    rgba(65, 107, 255, 0.7)
  );
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
  z-index: 1;
}

/* Text above overlay */
.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 2;
}

/* Hover effects */
.feature-card:hover {
  transform: scale(1.05); /* zoom in */
}

.feature-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(65, 107, 255, 0.9),
    rgba(15, 56, 125, 0.9)
  );
  transition: background 0.5s ease;
}

/* Gradient animation */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Screenshots */
.screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.screenshots img {
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.screenshots img:hover {
  transform: scale(1.05);
}

/* Pricing */

#pricing {
  padding: 80px 20px;
  text-align: center;
  background: #111;
  color: #fff;
}

#pricing h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}

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

.plan {
  flex: 1 1 280px;
  max-width: 320px;
  padding: 40px 25px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animated Dark Grey Background */
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2b2b2b, #1c1c1c, #2b2b2b);
  background-size: 300% 300%;
  animation: gradientMove 6s ease infinite;
  z-index: 0;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Put content above animated background */
.plan * {
  position: relative;
  z-index: 1;
}

.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.plan .price {
  font-size: 2rem;
  font-weight: bold;
  margin: 15px 0;
  color: #4cafef;
}

.plan button {
  margin-top: 20px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: #4cafef;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.plan button:hover {
  background: #349edb;
}

.plan:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Contact */
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact input,
.contact textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.contact button {
  padding: 0.8rem;
  border-radius: 25px;
  border: none;
  background: #0f387d;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
.contact button:hover {
  background: #416bff;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #0f387d;
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #0f387d; /* adjust to your brand color */
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
  z-index: 1000;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #416bff; /* hover color */
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Dark Mode */
body.dark {
  background: #121212;
  color: #eaeaea;
}
body.dark nav {
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
body.dark nav .logo {
  color: #fff;
}
body.dark section h2 {
  color: #fff;
}
body.dark .feature-card,
body.dark .plan {
  background: #1e1e1e;
  color: #eaeaea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
body.dark .plan h3 {
  color: #7aa2ff;
}
body.dark .feature-card h3 {
  color: #7aa2ff;
}
body.dark footer {
  background: #1e1e1e;
}
