/* Basic Reset */
*, *::before , *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Roboto", Arial sans-serif;
  font-optical-sizing: auto;
  font-weight: inherit;
  font-style: normal;
  background-color: #f4f4f4;
  color: #333;
  transition: background-color 0.5s, color 0.5s;
}

/* Colors */
:root {
  --dark-navy: #070e16;
  --white: #ffffff;
  --gradient-purple: linear-gradient(90deg, #c586f3, #6f42c1);
  --gradient-navy-orange: linear-gradient(90deg, #53245b, #a95a10);
  --black: #020202 ;
}

/* Hero Section */
.hero {
  background-color: var(--white);
  color: var(--dark-navy);
  padding: 10rem 1rem 5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  margin: 1.5rem 0;
  font-size: 1.2rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  background: var(--gradient-purple);
  color: var(--white);
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-btn:hover{
  background: var(--gradient-navy-orange);
}

/* Services Section */
.services {
  padding: 3rem 1rem;
  background-color: var(--white);
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tile {
  background-color: var(--white);
  border: 2px solid var(--dark-navy);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0px 4px 8px --gradient-purple;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.tile:hover {
  transform: translateY(-5px);
}

.service-description {
  display: none;
  margin-top: 1rem;
}

.tile.active .service-description {
  display: block;
}

/* Why Choose Us Section */
.why-us {
  padding: 3rem 1rem;
  background-color: var(--dark-navy);
  color: var(--white);
  text-align: center;
  overflow-x: hidden;
}

.why-us ul {
  list-style: none;
}

.why-us li {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  height: 100%;
  background: radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.3) 32%,
        rgba(255, 255, 255, 0) 33%
      )
      0 0,
    radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 11%,
        rgba(255, 255, 255, 0.3) 13%,
        rgba(255, 255, 255, 0) 14%
      )
      0 0,
    radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 17%,
        rgba(255, 255, 255, 0.43) 19%,
        rgba(255, 255, 255, 0) 20%
      )
      0 110px,
    radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 11%,
        rgba(255, 255, 255, 0.4) 13%,
        rgba(255, 255, 255, 0) 14%
      ) -130px -170px,
    radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 11%,
        rgba(255, 255, 255, 0.4) 13%,
        rgba(255, 255, 255, 0) 14%
      )
      130px 370px,
    radial-gradient(
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 11%,
        rgba(255, 255, 255, 0.2) 13%,
        rgba(255, 255, 255, 0) 14%
      )
      0 0,
    linear-gradient(
      45deg,
      #343702 0%,
      #184500 20%,
      #187546 30%,
      #006782 40%,
      #0b1284 50%,
      #760ea1 60%,
      #83096e 70%,
      #840b2a 80%,
      #b13e12 90%,
      #e27412 100%
    );
  background-size: 470px 470px, 970px 970px, 410px 410px, 610px 610px,
    530px 530px, 730px 730px, 100% 100%;
  background-color: #840b2a;
}

.container {
  overflow-x: hidden;
}

.inside {
  padding: 20px;
  border-radius: 14px;
  max-width: 300px;
  min-width: 300px;
  overflow-x: hidden;
}

/* Contact Section */
.contact {
  padding: 3rem 1rem;
  background-color: var(--white);
  text-align: center;
}

/* Mobile Menu */
.nav {
  position: fixed;
  width: 100%;
  background-color: var(--dark-navy);
  padding: 1rem;
  color: #818181;
  z-index: 90;
  overflow-x: hidden;
}

/* Switch for Dark and Light Mode */ 
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* .switch:hover */.sun svg {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
 
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
 
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.flex-row {
  display:flex;
  flex-direction: row;
  justify-content: space-evenly;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

.nav {
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.menu-icon {
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  display: none;
}

.nav-links li {
  list-style: none;
  margin: 1rem 0;
}

.nav-links a {
  color: #818181 ;;
  text-decoration: none;
}

/* Media Queries */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-links li {
    margin: 0 auto;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }
}

.menu-container {
  position: relative;
}

.menu {
  height: 100vh;
  width: 100vw; /* Width of the sliding menu */
  position: fixed;
  top: -100vh;
  left: 0; /* Hide menu off-screen */
  background-color: var(--header-color1);
  overflow-x: hidden;
  transition: 0.3s; /* Smooth slide transition */
  padding-top: 60px;
  z-index: 99;
  background: var(--dark-navy);
}

.menu a {
  padding: 8px 16px;
  text-decoration: none;
  font-size: 25px;
  color: var(--button-color2);
  display: block;
  transition: 0.3s;
  text-align: center;
}

.menu a:hover {
  background-color: var(--button-color1);
}

.close-btn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 45px;
  margin-left: 50px;
  font-weight: 300;
}


/*list css*/

.menu ul {
  list-style-type:none;
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
  align-items:center;
  flex-wrap:nowrap;
}

.menu li a {
  margin-left:8px;
  text-decoration:none;
  color:beige;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 0 auto;
}

.logo img {
  margin:0 auto;
  padding: 0;
  border: none;
  border-radius: 50%;
}

h4 {
  padding-top: 7px;
}

.center {
  display: flex;
  margin: 0 auto;
  padding: 0 auto;
  justify-content: center;
  align-items: center;
}
/*contact form styles*/
/**/ 
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  min-width: 350px;
  background-color: var(--white);
  padding: 20px;
  border-radius: 12px;
  position: relative;
  margin: 20px auto;
}

.message {
  color: rgba(88, 87, 87, 0.822);
  font-size: 16px;
}

.flex {
  display: flex;
  width: 100%;
  gap: 6px;
}

.form label {
  position: relative;
}

.form label .input {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input + span {
  position: absolute;
  left: 10px;
  top: 15px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input:placeholder-shown + span {
  top: 15px;
  font-size: 0.9em;
}

.form label .input:focus + span,.form label .input:valid + span {
  top: 30px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input:valid + span {
  color: green;
}

.input01 {
  width: 100%;
  padding: 10px 10px 20px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 5px;
}

.form label .input01 + span {
  position: absolute;
  left: 10px;
  top: 50px;
  color: grey;
  font-size: 0.9em;
  cursor: text;
  transition: 0.3s ease;
}

.form label .input01:placeholder-shown + span {
  top: 40px;
  font-size: 0.9em;
}

.form label .input01:focus + span,.form label .input01:valid + span {
  top: 50px;
  font-size: 0.7em;
  font-weight: 600;
}

.form label .input01:valid + span {
  color: green;
}

.fancy {
  background-color: transparent;
  border: 2px solid #cacaca;
  border-radius: 0px;
  box-sizing: border-box;
  color: var(--white);
  cursor: pointer;
  display: inline-block;
  font-weight: 390;
  letter-spacing: 2px;
  margin: 0;
  outline: none;
  overflow: hidden;
  padding: 8px 30px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.7rem;
  height: 2px;
  background: #cacaca;
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform: translateX(230%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--white);
  transform: translateX(30%);
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: white;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color:#ffffff;
  background: #cacaca;
}

.fancy:hover::before {
  width: 1.5rem;
  background: white;
}

.fancy:hover .text {
  color: var(--white);
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
 .fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}

.flex-column {
  display:flex;
  flex-direction:column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.form h1, .form p {
  color: #818181 ;
}

html, body {
  overflow-x: hidden;
}

/*light and dark mode*/

body {
  background-color: var(--white);
  color: var(--black);
  transition: background-color 0.5s, color 0.5s;
}

body.dark-mode {
  background-color: var(--black);
  color: var(--white);
}