body {
    margin: 0;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Navigation Bar */
.navbar {
    background-color: white;
    border-top: 30px solid #555;;
    padding: 0px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    height: 200px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: black; /* Adjusted for contrast */
}

.logo img {
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 100px; /* Increased spacing */
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 40px; /* Increased font size */
    font-weight: bold; /* Optional: Makes text stand out */
}

        /* Hover Effect */
.nav-links a:hover {
    color: #3FA9F5; /* Adjust to desired hover color */
    cursor: pointer;
}

.nav-links li {
    display: inline;
}

/* hero section */
.hero {
    position: relative;
    text-align: center;
    height: 50vh; /* Sets height to one-third of the screen */
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%; /* Ensures it fully fits within the hero section */
    object-fit: cover; /* Maintains aspect ratio while covering the area */
    object-position: top; /* Keeps the top part visible, cropping only the bottom */
    opacity: 0.4; /* Reduced opacity for a darker effect */
    transition: opacity 0.8s ease-in-out; /* Smooth fade effect */
}

/* Add a dark overlay for better contrast */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black overlay */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 100px;
    cursor: pointer;
}

.left {
    left: 100px;
}

.right {
    right: 100px;
}

/* Centered Hero Text */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.hero-text p:first-child, 
.hero-text p:last-child {
    font-size: 50px; /* Smaller size for first and third line */
}

.hero-text p:nth-of-type(2) {
    font-size: 125px; /* Larger size for middle line */
    font-weight: bold; /* Make it stand out */
    margin: 50px;
}

/* Thin Line Divider */
.hero-text hr {
    width: 100%;
    border: 0;
    height: 1px;
    background-color: white;
    margin: 10px auto;
}

/* Centered Hero Text */
.hero-text-contactus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-size: 50px;
}

/* About Me Section */
.about-me {
    min-height: 1250px;
    background-color: white;
    padding: 40px 60px;
    /* border: 5px solid #3FA9F5; */
    box-shadow: 0 4px 8px rgba(0.7,0.7,0.7,0.7);
    max-width: 60%;
    margin: 60px auto; /* Centers it horizontally */
    text-align: center;
    font-size: 30px;
    position: relative; /* or remove this line */
    line-height: 1.5;
}

.about-me hr {
    width: 90%;
    border: 0;
    height: 1px;
    background-color: #555;
    opacity: 0.4;
    margin: 10px auto;
}

.about-me i{
  color: #3FA9F5;
  padding-right: 10px;
  margin: 20px;
}
.about-me p{
  text-align: left;
  max-width: 75%;
  padding-left: 10%;
}


/* Footer */
.footer {
    background-color: #555;
    color: white;
    text-align: center;
    position: fixed;
    padding: 10px;
    width: 100%;
    font-size: 30px;
    position: relative;
}

.services {
  display: flex;
  justify-content: space-between;
  flex-wrap: 1; /* pushes footer down */
  gap: 100px;
  padding: 100px;
  background: linear-gradient(to right, #a0c4ff, #ffd6a5); /* Pastel blue to pastel orange */
}

.service-box {
  flex: 1;
  height: 30vh;
  background: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  /* Center content */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertical centering */
  align-items: center;     /* Horizontal centering */
  text-align: center;
  padding: 20px;
}


.service-box:hover {
  transform: translateY(-5px);
}

.service-box h3 {
  margin-bottom: 10px;
  color: #444;
  font-size: 50px;
}

.service-box p {
  color: #666;
  margin-bottom: 15px;
  font-size: 40px;
}

.service-box a {
  text-decoration: none;
  color: #444;
  font-size: 30px;
  text-decoration: underline;
  font-weight: bold;
}

.services-icon {
  font-size: 200px; /* or any size you want */
  color: #333;
}

/* General animation override */
.animation-speed-slow {
  animation-duration: 3s !important;     /* How long the animation lasts */
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: normal;
  animation-fill-mode: both;
  animation-play-state: running;
}

/* Add a pause between animations using keyframes */
@keyframes slowSpin {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

.fa-spin.animation-speed-slow{
  animation-name: slowSpin;
  animation-duration: 5s !important; /* Total cycle time */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Custom bounce animation */
@keyframes customBounce {
  0%, 100% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(-20px);
  }
  20% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
  40% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

/* Apply to Font Awesome icon */
.fa-bounce.animation-speed-slow {
  animation-name: customBounce;
  animation-duration: 5s !important; /* Total cycle time */
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Custom beat-fade animation */
@keyframes customBeatFade {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  20% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Apply to Font Awesome icon */
.fa-beat-fade.animation-speed-slow {
  animation-name: customBeatFade;
  animation-duration: 5s !important; /* Total cycle time */
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

span {
    display: flex;
    align-items: center;
    gap: 30px; /* Adds spacing between icon and text */
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    padding-bottom: 20px;
    background: rgba(63, 169, 245, 0.2);
}

.container-services {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.curved-text {
    display: inline-block;
    transform: rotate(-10deg); /* Adjust curvature */
    font-size: 24px;
    font-weight: bold;
}

text {
    font-size: 24px;
    fill: white; /* Adjust color */
    font-weight: bold;
    text-anchor: middle;
}

.info-section {
  padding: 80px 400px 80px 400px;
  background: #f5f5f5;
  margin-top: 20px;
  font-size: 30px;
  line-height: 1.5;
}

.contact-page {
  display: flex;
  width: 80%;
  margin: 50px auto;
  gap: 30px;
}

/* Contact Info Styling */
.contact-info {
  width: 30%;
  padding: 20px;
  background: #f5f5f5;
  box-shadow: 0px 4px 10px rgba(0.3, 0.3, 0.3, 0.3);
  font-size: 30px;
}

.contact-info h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.contact-info i{
  color: #3FA9F5;
  padding-right: 20px;
}

/* Contact Form Styling */
.contact-form-container {
  width: 65%;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0px 4px 10px rgba(0.3, 0.3, 0.3, 0.3);
  font-size: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 30px;
}

.contact-form textarea {
  height: 120px;
}

.contact-form button {
  background: #3FA9F5;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  font-size: 30px;
}

.contact-form button:hover {
  background: #3FA9F5;
}

.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 200px;
  padding-bottom: 200px;;
  gap: 400px; /* Adjust spacing between images as needed */
  margin-top: 20px;
}

.image-row img {
  max-width: 100%;
  height: auto;
  width: 600px; /* Adjust image width as desired */
}

.about-me p:last-of-type {
  text-align: center;
  font-weight: bold;
  font-size: 40px;
}

@media (max-width: 768px) {

  body, .container, .container-services {
    padding: 0 20px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .nav-links a {
    font-size: 24px;
  }

  .logo img {
    max-height: 150px;
  }

  .hero {
    height: 40vh;
  }

  .hero-text p:first-child, 
  .hero-text p:last-child {
    font-size: 24px;
  }

  .hero-text p:nth-of-type(2) {
    font-size: 36px;
    margin: 20px;
  }

  .arrow {
    font-size: 40px;
    left: 20px;
    right: 20px;
  }

  .about-me {
    max-width: 100%;
    font-size: 18px;
    padding: 20px;
  }

  .about-me p {
    padding-left: 0;
    max-width: 100%;
  }

  .services {
    flex-direction: column;
    gap: 50px;
    padding: 50px 20px;
  }

  .service-box h3 {
    font-size: 28px;
  }

  .service-box p {
    font-size: 20px;
  }

  .service-box a {
    font-size: 18px;
  }

  .services-icon {
    font-size: 100px;
  }

  .footer {
    font-size: 18px;
    padding: 20px;
  }

  .info-section {
    padding: 40px 20px;
    font-size: 18px;
  }

  .contact-page {
    flex-direction: column;
    width: 100%;
  }

  .contact-info, .contact-form-container {
    width: 100%;
    font-size: 18px;
    padding: 20px;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 18px;
  }

  .image-row {
    flex-direction: column;
    gap: 50px;
    padding: 50px 0;
  }

  .image-row img {
    width: 90%;
    max-width: 300px;
  }
}
