/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  color: #ffffff;
}

body {
  background: #0e0f1f;
  color: #d1d1d1;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.logo {
  text-decoration: none;
  position: relative;
  display: inline-block;
  font-weight: 600;
  overflow: hidden;
}

/* Logo Text */
.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  position: relative;
  color: transparent; /* Make the text color transparent so the gradient shows through */
  background: linear-gradient(50deg, #e843c6, #28f7d8);
  -webkit-background-clip: text; /* Use the background clip effect to clip the gradient to the text */
  background-clip: text;
  transition: all 0.4s ease;
}

/* Underline Animation */
.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(50deg, #e843c6, #28f7d8);
  transition: width 0.4s ease;
}

.logo:hover h1 {
  color: transparent; /* Keep text color transparent to show the gradient */
}

.logo:hover::after {
  width: 100%; /* Full underline on hover */
}

/* Navigation Styles */
.nav-links {
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* General Navigation Styles */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #d1d1d1; /* Initial text color */
  font-size: 1rem;
  position: relative;
  transition: color 0.3s;
}

/* Hover effect for the links */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%; /* Start from the middle */
  transform: translateX(-50%); /* Offset by half its width to center it */
  background: linear-gradient(135deg, #e843c6, #28f7d8);
  transition: width 0.3s ease;
}

/* Change text color and fill the gradient on hover */
.nav-links a:hover {
  color: transparent; /* Make text color transparent so the gradient can show */
  background: linear-gradient(
    50deg,
    #e843c6,
    #28f7d8
  ); /* Gradient background */
  -webkit-background-clip: text; /* Apply the gradient to the text */
  background-clip: text; /* Same for non-WebKit browsers */
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #e843c6, #28f7d8);
  color: #ffffff;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.contact-us-button {
  position: relative;
  padding: 0.5rem 1.5rem;
  border: none;
  background: transparent;
  color: #28f7d8;
  border: 2px solid #28f7d8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-decoration: none;
}

.contact-us-button::before {
  content: "";
  position: absolute;
  inset: 0; /* Covers the button fully */
  border: 2px solid #28f7d8; /* Outline color */
  transform: scaleX(0); /* Start as a line at the bottom */
  transform-origin: center;
}

.contact-us-button:hover {
  color: #000;
  background: #28f7d8;
}

.cta-button {
  display: inline-block;
  position: relative; /* Needed for the pseudo-elements */
  padding: 12px 25px;
  font-size: 1em;
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7), 0 0 2px rgba(255, 255, 255, 0.5);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, #28f7d8, #e843c6);
  border-radius: 25px;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: -1; /* Positioned below the text */
}

.cta-button:hover::before {
  opacity: 0; /* Fade out the first gradient */
}

.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, #e843c6, #28f7d8);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.4s ease; /* Smooth opacity transition */
  z-index: -1; /* Positioned below the text but above the first gradient */
}

.cta-button:hover::after {
  opacity: 1; /* Fade in the reversed gradient */
}

/* Pop-Out Effect */
.cta-button:hover {
  transform: scale(1.05); /* Enlarges the entire button slightly */
}

/* Sharper Outline on Hover */
.cta-button:hover {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6),
    /* Subtle shadow remains for depth */ 0 0 3px rgba(50, 50, 50, 0.6),
    /* Glow effect in gray */ 0 0 10px rgba(50, 50, 50, 0.4),
    /* Slightly extended for softness */ 0 0 1px #0000006b; /* Sharp 1px black outline to define text better */
}

/* Features Section */
.features {
  padding: 50px 10%;
  background: #15162b;
  text-align: center;
}

.features h2 {
  margin-bottom: 20px;
  color: #28f7d8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  background: #202844;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.feature-item h3 {
  color: #dfdfdf;
  margin-bottom: 10px;
}

.feature-item p {
  color: #c2c2c2;
}

.feature-item:hover {
  transform: translateY(-5px);
}

/* Call-to-Action Section */
.call-to-action {
  padding: 50px 10%;
  text-align: center;
  background: linear-gradient(135deg, #28f7d8, #e843c6);
}

.call-to-action h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.call-to-action p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.call-to-action .cta-button {
  color: #ffffff;
  background: #0e0f1f;
}

/* Responsiveness */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }
}

/* Footer */
footer {
  background-color: #0d0d0d;
  color: #d1d1d1;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: #4caf50;
}

.footer-logo p {
  font-size: 0.9rem;
  color: #b3b3b3;
}
/* General Footer Navigation Styles */
.footer-links h3,
.footer-contact h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 0.5rem 0;
}

/* Footer Page Links with Underline Hover */
.footer-links a {
  color: #d1d1d1; /* Initial text color */
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover effect for the footer links */
.footer-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px; /* Position for underline */
  left: 50%; /* Start from the middle */
  transform: translateX(-50%); /* Offset by half its width to center it */
  background: linear-gradient(
    135deg,
    #e843c6,
    #28f7d8
  ); /* Gradient background */
  transition: width 0.3s ease;
}

/* Change text color and apply gradient to text on hover */
.footer-links a:hover {
  color: transparent; /* Make text color transparent so the gradient can show */
  background: linear-gradient(
    50deg,
    #e843c6,
    #28f7d8
  ); /* Gradient background */
  -webkit-background-clip: text; /* Apply the gradient to the text */
  background-clip: text; /* Same for non-WebKit browsers */
}

.footer-links a:hover::after {
  width: 100%; /* Expand the gradient underline on hover */
}

.footer-links a.current-page {
  background: linear-gradient(
    50deg,
    #e843c6,
    #28f7d8
  ); /* Gradient background */
  -webkit-background-clip: text; /* Apply the gradient to the text */
  background-clip: text; /* Same for non-WebKit browsers */
  color: transparent; /* Make the text transparent to show the gradient */
  pointer-events: none; /* Disable clickability */
  opacity: 0.6; /* Slightly grayed out effect */
}

.footer-links a.current-page::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%); /* Offset by half its width to center it */
  width: 100%; /* Full underline for the current page */
  height: 2px;
  background: linear-gradient(
    135deg,
    #e843c6,
    #28f7d8
  ); /* Gradient underline */
  opacity: 0.6; /* Slightly grayed out effect on the underline */
}

/* Footer Contact Links */
.footer-contact a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #d1d1d1; /* Neutral default color */
  text-decoration: none;
  position: relative;
  transition: background-size 0.3s ease, color 0.3s ease;
  background: linear-gradient(135deg, #e843c6, #28f7d8);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  color: #d1d1d1; /* Initial color */
}

/* Professional Hover Effect */
.footer-contact a:hover {
  background-size: 100% 100%; /* Fills the text with gradient on hover */
  color: transparent; /* Removes the solid color, showing only the gradient */
}

.footer-socials {
  cursor: default;
  user-select: none; /* Disables text selection */
  outline: none; /* Removes focus outline when hovered or focused */
}

/* Footer Social Links */
.footer-socials a {
  font-size: 1.5rem; /* Icon size */
  margin-right: 15px; /* Spacing between icons */
  color: #d1d1d1; /* Default icon color */
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition */
  display: inline-block; /* Make the link behave like a block */
  text-decoration: none;
  line-height: 1; /* Prevent extra spacing */
  padding: 0; /* Remove any padding */
}

/* Style for the icon itself */
.footer-socials a i {
  display: block; /* Make the icon a block element */
  font-size: 1.5rem; /* Initial icon size */
  width: 100%; /* Make icon take up full width */
  height: 100%; /* Make icon take up full height */
  color: inherit; /* Inherit the color from the parent */
  transition: transform 0.3s ease, background 0.3s ease; /* Smooth scaling and color transition */
  line-height: 1; /* Prevent stretching */
  background-size: 400% 400%; /* Make the gradient cover a large area */
  transform-origin: center center; /* Set the origin of the rotation to the center */
}

/* Hover Effect: Rainbow gradient on the icon */
.footer-socials a:hover i {
  color: transparent; /* Hide the default icon color */
  transform: scale(1.1) rotate(360deg); /* Slight zoom and rotation */

  /* Apply the gradient background */
  background-image: linear-gradient(
    90deg,
    #ff0000,
    #ff9900,
    #ffee00,
    #00ff00,
    #0099ff,
    #6600ff,
    #ff0099
  );
  -webkit-background-clip: text; /* Clip gradient to the text */
  background-clip: text; /* Clip gradient to the text */

  animation: rainbowMove 6s linear infinite; /* Animate the gradient */
}

/* Animation for smooth, continuous color movement */
@keyframes rainbowMove {
  0% {
    background-position: 100% center; /* Start from the far right */
  }
  100% {
    background-position: -100% center; /* End at the far left */
  }
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #7a7a7a;
  border-top: 1px solid #2a2a2a;
  padding-top: 1rem;
}
