body {
  background-color: whitesmoke;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif; /* revert to previous setting */
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center; /* center nav links */
  align-items: center;
  background: #fff;
  padding: 10px 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  height: 70px;
}

/* Logo */
.logo {
  position: absolute;
  left: 40px;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500; /* keep as before */
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: blue;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  position: absolute;
  right: 40px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sign In hidden on desktop */
.signin-btn {
  display: none;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -250px;
    flex-direction: column;
    background: #fff;
    width: 250px;
    height: calc(100vh - 70px);
    padding: 20px;
    gap: 15px;
    transition: right 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    right: 0;
  }

  /* Show Sign In in mobile menu */
  .signin-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
  }

  .signin-btn:hover {
    background: #0056b3;
  }
}

/* Desktop Sign In */
.signin-btn-desktop {
  position: absolute;
  right: 40px;
  background: #007BFF;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  display: block;
}

.signin-btn-desktop:hover {
  background: #0056b3;
}

/* Hide desktop button on mobile */
@media screen and (max-width: 768px) {
  .signin-btn-desktop {
    display: none;
  }
}



/* Greeting box */
.greeting-box {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #01070e;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Services Section */
.services {
  padding: 80px 20px;
  background: linear-gradient(270deg, #0056D2, #0096FF, #00C6FF);
  background-size: 600% 600%;
  animation: gradientMove 12s ease infinite;
  text-align: center;
  color: #fff;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.3);
}

.service-icon {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 15px;
}

/* Responsive: small screens */
@media screen and (max-width: 768px) {
  .navbar {
    height: 70px; /* fixed height to prevent shrinking */
    padding: 10px 20px;
  }

  .logo img {
    height: 35px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px; /* below navbar */
    right: -250px;
    flex-direction: column;
    background: #fff;
    width: 250px;
    height: calc(100vh - 70px); /* full height minus navbar */
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }
}

.resources .carousel-inner {
  padding: 20px 0;
}

.resource-card {
  min-width: 250px;
  max-width: 300px;
  margin: 0 auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.resource-icon {
  font-size: 2.25rem;
  color: #007BFF;
  margin-bottom: 12px;
}

.resource-link {
  display: inline-block;
  margin-top: 12px;
  color: #007BFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.resource-link:hover {
  color: #0056b3;
}


/* Testimonials Section */
.testimonials {
  padding: 80px 20px;
  background: linear-gradient(270deg, #e0f0ff, #c0e0ff, #a0d0ff); /* subtle gradient */
  background-size: 600% 600%;
  animation: gradientMove 15s ease infinite; /* slower animation for subtlety */
  text-align: center;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.testimonials h2 {
  font-size: 2.25rem;
  margin-bottom: 10px;
  color: #007BFF; /* bright, readable */
}

.testimonials .section-subtitle {
  color: #0056b3; /* darker shade for contrast */
  margin-bottom: 40px;
}

.testimonial-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #333; /* keep readable on light gradient */
}

.testimonial-card h5 {
  font-weight: 600;
  color: #007BFF;
}

/* CTA Section */
.cta-section {
  padding: 80px 20px;
  background: linear-gradient(90deg, #007BFF, #00C6FF); /* bold gradient */
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0f7ff;
}

.cta-section .btn {
  margin: 5px;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  background: #0056b3;
}

.cta-section .btn-outline-secondary:hover {
  background: #fff;
  color: #007BFF;
  border-color: #007BFF;
}

.footer {
  background: #01070e;
  color: #fff;
  padding: 60px 20px 20px;
  font-family: sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-left h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #00C6FF;
}

.footer-left p {
  color: #ccc;
  line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 15px;
  color: #00C6FF;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #00C6FF;
}

.footer-contact p {
  margin-bottom: 10px;
  color: #ccc;
}

.footer-socials a {
  color: #ccc;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #00C6FF;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #222;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}
/* Newsletter Modal */
.newsletter-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeInModal 0.5s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.newsletter-modal .modal-content {
  background: #fff;
  padding: 35px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  position: relative;
}

.newsletter-modal .close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s;
}

.newsletter-modal .close-btn:hover {
  color: #007BFF;
}

.newsletter-modal h2 {
  margin-bottom: 12px;
  font-size: 1.75rem;
  color: #007BFF;
}

.newsletter-modal p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.newsletter-modal form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-modal form input[type="email"] {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-modal form input[type="email"]:focus {
  border-color: #007BFF;
}

.newsletter-modal form button {
  padding: 10px 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  background: #007BFF;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-modal form button:hover {
  background: #0056b3;
}
