/* Basic reset and styling */
body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px; /* Padding around the header */
  background-color: #232323; /* Optional: Background color for the header */
  flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
}

.header img {
  max-width: 100px; /* Set a maximum width for the logo */
  height: auto; /* Maintain aspect ratio */
}

nav ul {
  list-style-type: none;
  padding: 0;
  font-size: 18px;
  margin: 0;
  display: flex; /* Arrange navigation items horizontally */
  justify-content: flex-end; /* Align navigation items to the right */
  flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
}

nav ul li {
  margin-left: 20px; /* Space between navigation items */
}
nav ul li {
  padding: 10px 15px;
  transition: transform 0.3s ease;
}

nav ul li:hover {
  transform: scale(1.2); /* Scale up on hover */
}

nav ul li a {
  text-decoration: none;
  color: rgb(237, 228, 228); /* Navigation link color */
  font-weight: bold; /* Optional: Make text bold */
}

/* Content Section 1 */
.section1 {
  width: 100%; /* Set width to 100% for responsiveness */
  max-width: 100%; /* Ensure the section does not exceed the viewport width */
  margin: 0 auto; /* Center the section horizontally */
  padding: 1em; /* Add some padding inside the section */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  background: linear-gradient(
    to right,
    #161616,
    #1a1919 /* A medium dark gray for a subtle, balanced look */
  );
}

.container-section1 {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Center items vertically */
  flex-wrap: nowrap; /* Keep items in a single row */
  padding: 2rem;
  overflow: hidden; /* Ensure no content spills out */
}

.container-section1 img {
  max-width: 230px;
  height: auto;
  border-radius: 50%;
  margin-right: 2rem; /* Adjust spacing between image and text */
  border: 10px solid #8bcf03; /* Border with color */
}

.content .greeting-span {
  color: rgb(216, 216, 15);
  font-size: 1.8rem;
  font-weight: 600;
}

.content .greeting-p {
  font-size: 1.8rem;
  font-weight: 600;
  color: #8bcf03;
  overflow: hidden; /* Ensures text is hidden until animated */
  white-space: nowrap; /* Keeps text on one line */
  border-right: 0.15em solid rgb(0, 102, 255); /* Creates a blinking cursor effect */
  animation: typing 7s steps(30, end), blink-caret 0.75s both;
}

/* Animation for greetings */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}

.content h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; /* Bold for impact */
  font-size: 2.5rem !important;
  color: #fff !important;
}

.content h3 {
  color: #6c757d !important;
  font-weight: 700 !important;
}

.section1-p {
  color: gainsboro; /* Change paragraph color to white */
  margin-top: 40px;
  margin-bottom: 1rem;
}

.location-span .icon {
  margin-top: 1rem;
  font-size: 1.3rem;
  color: #00a1ac;
}

.icon {
  display: inline-block; /* Ensure the icon is treated as a block-level element */
  animation: spin 4s linear infinite; /* Apply the animation */
}

.location-text .char-color {
  color: #38e208;
  font-weight: 900;
}

.container-section1 .location-text {
  color: gainsboro;
  font-size: 1.1rem;
  justify-content: space-around;
}

/* Icon animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.scroll-down {
  justify-content: center;
  align-items: center;
  align-content: center;
  text-align: center;
}

.scroll-down img {
  max-width: 60px;
}
/* Ensure the .scroll-down container spans both sections */
.scroll-down {
  position: absolute; /* Fix it in the viewport */
  bottom: 20px; /* Adjust this value to control the vertical offset */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center the image */
  z-index: 10; /* Make sure it's on top of other content */
}

.scroll-down img {
  width: 50px; /* Adjust width as needed */
  height: auto; /* Maintain aspect ratio */
  animation: moveUpDown 2s ease-in-out infinite; /* Apply animation */
}

@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-60px); /* Adjust movement distance */
  }
  100% {
    transform: translateY(0);
  }
}

/* css style for section 2*/
.section-2 {
  width: 100%; /* Set width to 100% for responsiveness */
  max-width: 100%; /* Ensure the section does not exceed the viewport width */
  margin: 0 auto; /* Center the section horizontally */
  padding: 1em; /* Add some padding inside the section */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  background: linear-gradient(
    to right,
    #110d0d,
    #0a0813 /* A medium dark gray for a subtle, balanced look */
  );
}
.section2-container {
  padding: 1rem;
  color: rgb(236, 233, 228);
  justify-content: center;
  display: flex;
  gap: 80px;
}
.section-2 h1 {
  color: rgb(255, 248, 248);
  text-align: center;
  padding: 2.1rem;
}

.card1 img {
  width: 100%; /* Full width of the card */
  height: 60%; /* Height of the image relative to the card */
  object-fit: cover; /* Ensure the image covers the card area */
}

.card1:hover {
  opacity: 0.4; /* Set initial opacity */
  transition: opacity 0.3s ease; /* Smooth transition for hover effect */
}

.card1 h2 {
  padding: 10px;
  text-align: center;
  background-color: #0a9786b0;
  font-size: 14px;
  box-shadow: #00a1ac;
}

/* css style for section 3*/
.contact {
  width: 100%; /* Set width to 100% for responsiveness */
  max-width: 100%; /* Ensure the section does not exceed the viewport width */
  margin: 0 auto; /* Center the section horizontally */
  padding: 3rem; /* Add some padding inside the section */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  background: linear-gradient(
    to right,
    #051c20,
    #0a0813 /* A medium dark gray for a subtle, balanced look */
  );
}
.contact h1 {
  justify-content: center;
  text-align: center;
  color: #ffffff;
}
.contact-container {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 250px;
  justify-content: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
}
.content-section3 {
  display: flex;
  flex-direction: row;
  gap: 15px;
}
.content-section3 h3 {
  padding: 0.6rem;
  color: #ebebe7;
  font-weight: 800px;
}

.content-section3 .fas {
  margin-top: 1.5rem;
  color: #e2a407e5;
  font-size: 1.5rem;
}
.content-section3 input {
  width: 50%;
  max-height: 20%;
}
.content-section3 p {
  display: block;
  color: #6c757d !important;
  margin-top: 4rem;
  margin-left: -4.9rem;
}
.icons {
  padding-top: 1.6rem;
  display: flex;
  gap: 20px;
}
.fab:hover {
  font-size: 30px;
  background-color: transparent;
  transform: scale(1.2) rotate(15deg); /* Scale up and rotate slightly */
}
.fa-facebook {
  color: #4267b2;
  font-size: 25px;
}
.fa-twitter {
  color: #1da1f2;
  font-size: 25px;
}
.fa-instagram {
  color: #c13584;
  font-size: 25px;
}
.fa-linkedin {
  color: #0e76a8;
  font-size: 25px;
}

.iconA {
  display: inline-block; /* Make the icon inline with other elements */
  font-size: 20px; /* Set a default font size for the icon */
  color: #3b5998; /* Facebook color */
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for animation */
}

.icons {
  text-align: center;
}
/* Hover animation */

/* Optional: Add a keyframes animation for a bounce effect */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.iconA:hover {
  animation: bounce 0.6s;
}

.rowme {
  display: flex;
}
.rowme h1 {
  color: white;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.f-input input {
  width: 100%;
  padding: 0.6rem;
  background-color: rgb(48, 43, 43);
  border: 0 !important;
  color: rgb(255, 255, 255);
}
.email-input input {
  width: 100%;
  padding: 0.6rem;
  background-color: rgb(48, 43, 43);
  border: 0 !important;
  color: rgb(255, 255, 255);
}

.subject-input {
  margin-top: 1.5rem;
}
.subject-input input {
  width: 100%;
  padding: 0.6rem;
  padding: 0.6rem;
  background-color: rgb(48, 43, 43);
  border: 0 !important;
  color: rgb(255, 255, 255);
}

.m-input {
  margin-top: 1.5rem;
}
.m-input textarea {
  width: 100%;
  padding: 0.6rem;
  background-color: rgb(48, 43, 43);
  border: 0 !important;
  color: rgb(255, 255, 255);
}

.contact-button {
  margin-top: 0.7rem;
}
.contact-button button {
  background-color: #8f6e00;
  padding: 10px;
  border: 1px solid rgb(200, 212, 211);
  box-shadow: #fdfeff;
}

button:hover {
  background-color: #22676d;
}

/* footer */
.footer {
  padding: 20px; /* Add some padding for spacing */
  text-align: center; /* Center align the text */
  border-top: 1px solid #ddd; /* Optional: a border for separation */
  background: linear-gradient(
    to right,
    #162426,
    #051f1b /* A medium dark gray for a subtle, balanced look */
  );
  color: #d7ded5;
}

/* Blog Section */
.blog-section {
  width: 100%; /* Set width to 100% for responsiveness */
  max-width: 100%; /* Ensure the section does not exceed the viewport width */
  margin: 0 auto; /* Center the section horizontally */
  padding: 1em; /* Add some padding inside the section */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  background: linear-gradient(
    to right,
    #151f26,
    #1a1919 /* A medium dark gray for a subtle, balanced look */
  );
}

.blog-section h1 {
  color: white;
  text-align: center;
  padding: 2.1rem;
}

.blog-container {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  justify-content: center;
  align-items: center;
}

.box1 h1 {
  max-width: 100%; /* Ensure the section does not exceed the viewport width */
  background: #12191f; /* Slightly different background for the header */
  padding: 5px 300px 5px 0; /* Add some padding */
  font-size: 15px;
  color: aliceblue;
  border-radius: 5px; /* Rounded corners for the header */
  box-shadow: 2px 4px rgba(234, 247, 4, 0.765); /* Subtle shadow for the header */
}
.box1 h1 {
  text-align: left;
}
.box1 h1:hover {
  background: #384e61;
}
.box1 a {
  text-decoration: none;
}

/* Media Queries */
@media (min-width: 1440px) {
  nav ul {
    font-size: 25px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px; /* Adjust padding for smaller screens if needed */
  }

  .header img {
    max-width: 80px; /* Adjust logo size for smaller screens */
  }

  nav ul {
    margin: 0; /* Remove any extra margin if necessary */
    padding: 0; /* Remove any extra padding if necessary */
  }

  nav ul li {
    margin-left: 15px; /* Adjust space between navigation items */
  }

  .container-section1 {
    padding: 1rem; /* Adjust padding */
    flex-direction: row; /* Ensure items stay in a single row */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
  }

  .container-section1 img {
    max-width: 150px; /* Reduce image size on smaller screens */
    margin-right: 1rem; /* Adjust spacing between image and text */
  }

  .content .greeting-span,
  .content .greeting-p {
    font-size: 1.5rem; /* Reduce font size for smaller screens */
  }
}

@media (max-width: 480px) {
  .header img {
    max-width: 60px; /* Further reduce logo size for very small screens */
  }
  .content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 300; /* Bold for impact */
    font-size: 1rem !important;
  }
  .content h3 {
    color: #6c757d !important;
    font-weight: 200 !important;
    font-size: 0.6rem;
  }

  .blog-container {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }

  .box1 h1 {
    max-width: 100%; /* Ensure the section does not exceed the viewport width */
    background: #12191f; /* Slightly different background for the header */
    padding: 5px 200px 5px 0; /* Add some padding */
    font-size: 15px;
    color: aliceblue;
    border-radius: 5px; /* Rounded corners for the header */
    box-shadow: 2px 4px rgba(234, 247, 4, 0.765); /* Subtle shadow for the header */
  }
  .section1-p {
    color: gainsboro; /* Change paragraph color to white */
    font-size: 0.5rem;
    margin-top: 5px;
  }
  .location-text .char-color {
    color: #38e208;
    font-weight: 100;
  }
  .container-section1 .location-text {
    color: gainsboro;
    font-size: 0.7rem;
  }
  .location-span .icon {
    font-size: 1.1rem;
    color: #00a1ac;
    margin-top: 0rem;
  }
  .blog-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  nav ul li {
    margin-left: 10px; /* Further adjust space between navigation items */
  }

  .container-section1 {
    padding: 0.5rem; /* Further adjust padding */
    overflow-x: auto; /* Allow horizontal scrolling if needed */
  }

  .container-section1 img {
    max-width: 100px; /* Further reduce image size for very small screens */
    margin-right: 0.5rem; /* Further adjust spacing between image and text */
  }

  .content .greeting-span,
  .content .greeting-p {
    font-size: 1rem; /* Further reduce font size for very small screens */
  }
}

ol li {
  color: white;
}

@media (max-width: 820px) {
  .contact-container {
    margin-top: 0;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .section2-container {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 20px;
  }
  .content-section3 p {
    color: #6c757d !important;
    margin-top: 4rem;
    margin-left: -4.9rem;
    font-size: 12px;
  }
  .box1 h1 {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    display: flex;
    flex-direction: column;

    align-items: center;
    text-align: center;
  }
  .main-content {
    margin-top: 1rem;
  }
  button {
    margin-top: 10px;
  }
}
@media (max-width: 430px) {
  .main-content {
    margin-top: 1rem;
  }
  button {
    margin-top: 10px;
  }
}
