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

html {
  scroll-behavior: smooth;

}

body {
  font-family: 'Segoe UI';
  background-color: #C5D5EA;
  width: 100%;
}

html,
body {
  overflow-x: hidden;
}

.header {
  background-color: #021454;
  height: 100px;
  border-radius: 10px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0 0 30px #753cfb;
  position: sticky;
  top: 10px;
  z-index: 1000;
}

.logo img {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 120px;
}

.start {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

#part1 img {
  height: 60px;
  width: auto;
  position: absolute;
  top: 45px;
  right: 60px;
}

#part2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

#part2 h1 {
  color: #753cfb;
  text-align: center;
  font-size: 3rem;
  font-family: 'Segoe UI';
  font-weight: 500;
  margin-top: 45px;
  margin-bottom: 80px;
  pointer-events: none;
  display: inline-block;
}

#upper-text,
#lower-text {
  font-size: 4rem; 
  font-weight: 700;
  margin: 0 auto;
  line-height: 1.2;
  color: #875bfb;
  text-align: center;
}


.tagline {
  color: rgb(0, 0, 0, 0.5);
  font-size: 1.5rem;
  margin-top: 10px;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 66%;
}

.header a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: 'Segoe UI';
  font-weight: 500;
  margin: 20px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.underline {
  position: relative;
  text-decoration: none;
  color: white;
}

.underline::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: -5px;
  left: 50%;
  transition: width 0.4s ease, left 0.4s ease;
}

.underline:hover::before {
  width: 100%;
  left: 0;
}

#services h2 {
  font-size: 4rem;
  color: #021454;
  text-align: center;
  margin-top: 10rem;
  font-family: 'Segoe UI';
  font-weight: 500;
  margin-bottom: 2rem;
}


.flip-card {
  background-color: transparent;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin: 15px;

}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.flip-card-front {
  background-color: #eb79ff;
  color: black;
  font-size: 1.3rem;
}

.flip-card-back {
  background-color: #1e3a8a;
  color: white;
  transform: rotateY(180deg);
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI';
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 10rem;
}

h3,
h4 {
  margin: 10px 0;
}

p {
  font-size: 14px;
  text-align: center;
}

.flip-card-front img {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #021454;
}

.pricing-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: #875bfb;
  margin-bottom: 2rem;
}

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 8rem;
}

.price-card {
  background: linear-gradient(145deg, #101d3b, #273950);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  width: 350px;
  height: 440px;
  margin: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 20px;
  font-size: 18px;
  font-family: 'Segoe UI', sans-serif;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px #3b82f6;
  transition: all 0.3s ease-in-out;
}

.popular-badge {
  background: #7f5af0;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}


.price-card button {
  background: linear-gradient(to right, #a855f7, #3b82f6);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 6px 12px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.2s;
}

.price-card button:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #9333ea, #2563eb);
}

.feature ul li {
  list-style: none;
  margin-bottom: 10px;
}

.phead {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  font-family: 'Segoe UI';
  font-weight: 500;
}

.price-card p span {
  font-size: 3rem;
  color: #fff;
  font-weight: bold;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding-bottom: 10px;
  text-align: center;
  width: 100%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);

}

.feature-list li:last-child {
  border-bottom: none;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  background-color: var(--bg-dark);
  border-top: 2px solid #ddd;
  margin-top: 40px;
}

.contact-left {
  flex: 1;
  margin-right: 20px;
}

.contact-left h2 {
  font-size: 2rem;
  color: #eb79ff;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 2.5rem;
}

.contact-left p {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: left;
}

.contact-left ul {
  list-style: none;
  padding: 0;
}

.contact-left ul li {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.contact-right {
  flex: 1;
}

.contact-right form {
  display: flex;
  flex-direction: column;
}

.contact-right label {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 5px;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  color: black;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-right input:focus,
.contact-right textarea:focus {
  outline: none;
  border-color: #021454;
  box-shadow: 0 0 5px rgba(2, 20, 84, 0.5);
}

.contact-right textarea {
  resize: none;
}

.send-button {
  background: linear-gradient(90deg, #a259e6 0%, #7d4ce1 100%);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(125, 76, 225, 0.15);
  transition: all 0.3s;
}

.send-button:hover {
  background: #fff;
  color: #7d4ce1;
  border: 2px solid #7d4ce1;
}

.send-button {
  background-color: #fff;
  color: black;
  border: none;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 5px;
  transition: all 0.7s ease-in-out;
}

.send-button:hover {
  background-color: #7d4ce1;
  color: white;
  transform: translateY(-2px);
}

.menu {
  height: 50px;
  width: 70px;
  position: absolute;
  top: 45px;
  right: 65px;
  transition: height 0.3s ease-in-out;
  z-index: 9999;
}

.menu-item {
  height: 50px;
  font-size: 30px;
  cursor: pointer;
  position: relative;
}

.sub-menu {
  font-size: 19px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 120px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 8px;
  z-index: 10000;
}


.sub-menu a:hover {
  margin-top: 10px;
  background-color: #fff;
  color: #021454;
  width: 70%;
}

body:not(.dark-mode) .sub-menu a:hover {
  background-color: #021454;
  color: #fff;
}

.sub-menu a {
  text-decoration: none;
  display: block;
  padding: 8px 16px;
  color: #2756ff;
  transition: background 0.2s, color 0.2s;
}

.menu-item:hover .sub-menu {
  height: 90px;
  overflow: visible;
}

.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: 'Segoe UI';
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s ease;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

#toggle-label {
  font-size: 1.2rem;
  color: #021454;
}


:root {
  --bg-light: #ffffff;
  --bg-dark: #0f172a;
  --text-light: #000000;
  --text-dark: #ffffff;
}

body {
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: all 0.4s ease;
}

.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

.mode-toggle {
  display: flex;
  align-items: center;
  background-color: #753cfb;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Segoe UI';
  position: absolute;
  right: 180px;
  top: 58px;
  z-index: 999;
}

.mode-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-right: 10px;
}

.mode-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mode-slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.mode-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  background-color: white;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.mode-slider {
  background-color: #2196f3;
}

input:checked+.mode-slider:before {
  transform: translateX(24px);
}


.faq-item {
  margin-bottom: 1rem;
}

body,
.price-card,
.toggle-container,
.feature-list,
.menu {
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
  .pricing-container {
    flex-direction: column;
    align-items: center;
  }

  .price-card {
    width: 90%;
    margin-bottom: 20px;
  }

  .toggle-container {
    flex-direction: column;
    gap: 10px;
  }

  .start {
    flex-direction: column;
    align-items: center;
  }
}


#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  width: 50px;
  left: 30px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background-color: #3beffc;
  color: #333;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}


@media screen and (max-width: 400px) {
  .logo img {
    left: 5px;
    height: 80px;
  }

  .menu {
    right: 10px;
    top: 40px;
    height: 30px;
    width: 50px;
  }

  .mode-toggle {
    display: none;
  }

  #part2 h1 {
    font-size: 2.5rem;
    margin-top: -10px;
    margin-left: 10px;
  }

  #upper-text,
  #lower-text {
    font-size: 2.5rem;
  }

  #services h2 {
    font-size: 2.7rem;
  }

  .pricing-title {
    font-size: 2rem;
  }
  .pricing-subtitle {
    font-size: 1rem;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-right {
    width: 100%;
  }

  .header {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

}