/* styles.css */

/* Reset default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styles */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #FFFFFF;
  color: #333333;
}

/* Header styles */
header {
  background-color: #193a65;
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 20px;
  position: relative;
}

nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #FFCC00;
  bottom rodents: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Banner Section */
.banner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-image: url('s1.jpg');
  background-size: 100% 100%;
  background-position: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  text-align: center;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.banner-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  margin-bottom: 10px;
}

.banner-text p {
  font-size: 18px;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* Hero Section */
.hero {
  background-color: #193a65;
  color: #FFFFFF;
  padding: 40px 20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  background-color: #FFCC00;
  color: #003366;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
  background-color: #E6B800;
  transform: scale(1.05);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #FFCC00;
  color: #FFCC00;
}

.btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: scale(1.05);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 50px 0;
  background-color: #FFFFFF;
}

.why-choose-us h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-choose-card {
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-choose-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-choose-card i {
  font-size: 48px;
  color: #336699;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.why-choose-card i:hover {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.why-choose-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.why-choose-card p {
  font-size: 16px;
  line-height: 1.5;
}

.center-button {
  text-align: center;
  margin-top: 30px; /* Moved from inline style */
}

/* Mission & Vision section styles */
.mission-vision {
  padding: 50px 0;
  background-color: #F0F0F0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mission-vision.visible {
  opacity: 1;
  transform: translateY(0);
}

.mission-vision h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.mission-vision-card {
  text-align: center;
}

.mission-vision-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  margin-bottom: 15px;
}

.mission-vision-card p {
  font-size: 16px;
  line-height: 1.5;
}

.core-values-heading {
  text-align: center;
  margin-bottom: 15px; /* Moved from inline style */
}

.core-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.core-values span {
  background-color: #336699;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.core-values span:hover {
  transform: scale(1.1);
  background-color: #FFCC00;
  color: #003366;
}

/* Tax Tips Section */
.tax-tips {
  padding: 50px 0;
  background-color: #FFFFFF;
}

.tax-tips h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.tax-tips ul {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.tax-tips li {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease;
}

.tax-tips li.visible {
  opacity: 1;
  transform: translateX(0);
}

.tax-tips li:hover {
  background-color: #F0F0F0;
}

.tax-tips li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #336699;
}

/* Testimonials section styles */
.testimonials {
  background-color: #F0F0F0;
  padding: 50px 0;
  position: relative;
}

.testimonials h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #336699;
}

/* Contact section styles */
.contact {
  padding: 50px 0;
  background-color: #FFFFFF;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  background-color: #F0F0F0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #336699;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.contact-info a {
  color: #336699;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info a:hover i {
  transform: scale(1.2);
}

.contact-form-container {
  background-color: #F0F0F0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-size: 16px;
  font-weight: bold;
  color: #003366;
  text-align: left;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #336699;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
  color: #333333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #FFCC00;
  box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.rating-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-container input[type="radio"] {
  display: none;
}

.rating-container label {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.rating-container input[type="radio"]:checked ~ label,
.rating-container label:hover,
.rating-container label:hover ~ label {
  color: #FFCC00;
}

.contact-form button {
  background-color: #FFCC00;
  color: #003366;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #E6B800;
}

.contact-form button.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #003366;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #336699;
  color: #FFFFFF;
  padding: 15px;
  text-align: center;
  border-radius: 10px 10px 0 0;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.success-message.visible {
  transform: translateY(0);
}

/* Footer styles */
footer {
  background-color: #193a65;
  color: #FFFFFF;
  padding: 20px;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
}

.social-links li {
  margin: 0 10px;
}

.social-links a {
  color: #FFFFFF;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: #FFCC00;
}

/* Container for centering content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
}

/* Responsive design */
@media (max-width: 768px) {
  .banner {
    padding-top: 75%;
  }

  .banner-text h1 {
    font-size: 32px;
  }

  .banner-text p {
    font-size: 16px;
  }

  .hero {
    padding: 30px 20px;
    min-height: 250px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
  }

  .logo-img {
    height: 40px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .core-values {
    flex-direction: column;
    align-items: center;
  }

  .tax-tips li {
    font-size: 14px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 20px;
  }

  .contact-form label {
    font-size: 14px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 14px;
  }

  .contact-form button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .rating-container label {
    font-size: 20px;
  }
}