@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #eaeaea;
  color: #222;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 8%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 25px;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.navbar a {
  display: inline-block;
  font-size: 18px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  margin: 0 20px;
  transition: .3s;
  opacity: 0;
  animation: slideTop .5s ease forwards;
  animation-delay: calc(.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
  color: #1743e3;
}

.social-media {
  display: flex;
  justify-content: space-between;
  width: 150px;
  height: 40px;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid transparent;
  text-decoration: none;
  transform: rotate(45deg);
  transition: .5s;
  opacity: 0;
  animation: slideSci .5s ease forwards;
  animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
  border-color: blue;
}

.social-media a i {
  font-size: 24px;
  color: #1743e3;
  transform: rotate(-45deg);
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 8% 0;
  overflow: hidden;
}

.home-content {
  max-width: 630px;
}

.home-content h1 {
  font-size: 50px;
  line-height: 1.2;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 1s;
}

.home-content h3 {
  font-size: 40px;
  color: #1743e3;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1.3s;
}

.home-content p {
  font-size: 16px;
  margin: 15px 0 30px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.6s;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  background: #1743e3;
  border: 2px solid #1743e3;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  color: #eaeaea;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  transition: .5s;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
}

.btn:hover {
  background: transparent;
  color: #1743e3;
}

.home-img {
  position: relative;
  right: -7%;
  width: 450px;
  height: 450px;
  transform: rotate(45deg);
}

.home-img .rhombus {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #eaeaea;
  border: 25px solid #1743e3;
  box-shadow: -15px 15px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: zoomOut 1s ease forwards;
  animation-delay: 1.6s;
}

.home-img .rhombus img {
  position: absolute;
  top: 110px;
  left: -250px;
  max-width: 750px;
  transform: rotate(-45deg);
  opacity: 0;
  animation: car 1s ease forwards;
  animation-delay: 2s;
}

.home .rhombus2 {
  position: absolute;
  top: -25%;
  right: -25%;
  width: 700px;
  height: 700px;
  background: #1743e3;
  transform: rotate(45deg);
  z-index: -1;
  opacity: 0;
  animation: rhombus2 1s ease forwards;
}

/* Added new sections styles */

/* Services Section */
.services {
  padding: 80px 8%;
  background: #fff;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 15px;
  color: #222;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #f8f9fa;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(23, 67, 227, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: #1743e3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 40px;
  color: #fff;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #222;
}

.service-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Benefits Section */
.benefits {
  padding: 80px 8%;
  background: linear-gradient(135deg, #1743e3 0%, #0d2a8f 100%);
  color: #fff;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits .section-title {
  color: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.benefit-item {
  text-align: center;
}

.benefit-number {
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.benefit-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Testimonials Section */
.testimonials {
  padding: 80px 8%;
  background: #f8f9fa;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(30px);
}

.testimonial-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.testimonial-rating {
  margin-bottom: 20px;
}

.testimonial-rating i {
  color: #ffc107;
  font-size: 20px;
  margin-right: 3px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  font-size: 18px;
  color: #222;
  margin-bottom: 5px;
}

.testimonial-author span {
  font-size: 14px;
  color: #999;
}

/* CTA Section */
.cta {
  padding: 80px 8%;
  background: #fff;
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #222;
}

.cta p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1743e3;
  color: #fff;
  border: 2px solid #1743e3;
}

.btn-primary:hover {
  background: transparent;
  color: #1743e3;
}

.btn-secondary {
  background: transparent;
  color: #1743e3;
  border: 2px solid #1743e3;
}

.btn-secondary:hover {
  background: #1743e3;
  color: #fff;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  padding: 50px 8% 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1743e3;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-section p i {
  margin-right: 10px;
  color: #1743e3;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #1743e3;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.footer-bottom p {
  font-size: 14px;
  color: #999;
}

/* Improved mobile menu toggle visibility */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
}

/* KEYFRAMES ANIMATION */
@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes slideSci {
  0% {
    transform: translateX(100px) rotate(45deg);
    opacity: 0;
  }

  100% {
    transform: translateX(0px) rotate(45deg);
    opacity: 1;
  }
}

@keyframes zoomOut {
  0% {
    transform: scale(1.1);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes car {
  0% {
    transform: translate(300px, -300px) scale(0) rotate(-45deg);
    opacity: 0;
  }

  100% {
    transform: translate(0, 0) scale(1) rotate(-45deg);
    opacity: 1;
  }
}

@keyframes rhombus2 {
  0% {
    right: -40%;
    opacity: 0;
  }

  100% {
    right: -25%;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced responsive design for mobile and tablets */
@media screen and (max-width: 1024px) {
  .home-img {
    width: 350px;
    height: 350px;
  }

  .home-img .rhombus img {
    top: 80px;
    left: -200px;
    max-width: 600px;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 20px 5%;
  }

  .logo {
    font-size: 22px;
  }

  /* Show menu toggle on mobile */
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 20px 0;
  }

  .navbar.active {
    display: flex;
    opacity: 1;
  }

  .navbar a {
    margin: 10px 0;
    font-size: 16px;
  }

  .social-media {
    display: none;
  }

  .home {
    flex-direction: column;
    padding: 120px 5% 50px;
    min-height: auto;
  }

  .home-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 50px;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .home-content h3 {
    font-size: 28px;
  }

  .home-content p {
    font-size: 15px;
  }

  .home-img {
    position: relative;
    right: 0;
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .home-img .rhombus {
    border-width: 15px;
  }

  .home-img .rhombus img {
    top: 50px;
    left: -150px;
    max-width: 450px;
  }

  .home .rhombus2 {
    width: 400px;
    height: 400px;
    top: -15%;
    right: -30%;
  }

  /* Responsive sections */
  .services,
  .benefits,
  .testimonials,
  .cta {
    padding: 50px 5%;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .cta p {
    font-size: 16px;
  }

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

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  footer {
    padding: 40px 5% 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 480px) {
  .home-content h1 {
    font-size: 28px;
  }

  .home-content h3 {
    font-size: 22px;
  }

  .home-img {
    width: 220px;
    height: 220px;
  }

  .home-img .rhombus img {
    top: 40px;
    left: -120px;
    max-width: 350px;
  }

  .section-title {
    font-size: 26px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i {
    font-size: 30px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .benefit-number {
    font-size: 36px;
  }

  .cta h2 {
    font-size: 26px;
  }
}
