/* Reset and base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: black;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f9f9f9;
  overflow-x: hidden; /* prevent horizontal scroll on page */
}

/* Header styles */
header {
  background: #ffffff;
  padding: 20px;  
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: black;
  border-radius: 2px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:hover span:nth-child(1) {
  transform: translateX(3px) scaleX(1.1);
}
.hamburger:hover span:nth-child(2) {
  transform: scaleX(1.1);
}
.hamburger:hover span:nth-child(3) {
  transform: translateX(-3px) scaleX(1.1);
}

.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);
}

.logo video {
  width: 139px;
  transform: scale(1.29);
  transform-origin: left center;
  border-radius: 8px;
  display: block;
  background-color: #ffffff;
}

nav {
  display: flex;
  gap: 20px;
  position: relative;
  z-index: 1000;
}

nav a {
  position: relative;
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 25px;
  transition: color 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
}

/* Active nav underline and color */
nav a.active {
  color: transparent;
  background: linear-gradient(90deg, #00b0f0, #00b0f0);
  -webkit-background-clip: text;
  background-clip: text;
}

nav a.active::after {
  width: 100%;
}

nav.slide-up a {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

nav.slide-up.slide-up-active a {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: calc(var(--i) * 0.15s);
}

nav.slide-up.slide-up-active a:nth-child(1) { --i: 0; }
nav.slide-up.slide-up-active a:nth-child(2) { --i: 1; }
nav.slide-up.slide-up-active a:nth-child(3) { --i: 2; }
nav.slide-up.slide-up-active a:nth-child(4) { --i: 3; }
nav.slide-up.slide-up-active a:nth-child(5) { --i: 4; }
nav.slide-up.slide-up-active a:nth-child(6) { --i: 5; }

nav a:hover {
  color: transparent;
  background: linear-gradient(90deg, #00b0f0, #00b0f0);
  -webkit-background-clip: text;
  background-clip: text;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #00b0f0, #00b0f0);
  transition: width 0.4s ease;
  border-radius: 2px;
}

nav a:hover::after {
  width: 100%;
}

menu_index {
  flex: 1;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-image {
  display: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  margin-left: 10px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-text .btn {
  background-color: black;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-text .btn:hover {
  background-color: #00b0f0 ;
  transform: translateY(5px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text {
  animation: slideInLeft 1s ease-out forwards;
  opacity: 0; /* So it starts hidden before animation */
}

/* Contact form styles */
.contact-main {
  flex: 1;
  width: 85%;
  margin: 50px auto;
  padding: 30px;
  background-color: transparent;
  color: #111;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.contact_container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact_container form {
  width: 100%;
  max-width: 600px;
}

.contact_container h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

.contact_container input,
.contact_container textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

.contact_container textarea {
  min-height: 120px;
}

.contact_container button {
  background-color: black;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact_container button:hover {
  background-color: #00b0f0;
}

.contact_container p {
  font-size: 1.1rem;
  color: green;
  margin-top: 15px;
  text-align: center;
}

footer {
  background: #ffffff;
  padding: 10px;
  text-align: center;
}

/* Services section */
.hero-text1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.service {
  background: white;
  flex: 1 1 calc(30% - 20px);
  box-sizing: border-box;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.service img {
  width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  align-self: center;
}

.service h3 {
  font-size: 1.25rem;
  margin: 0;
  color: #000;
  width: 100%;
}

.service p {
  font-size: 1rem;
  color: #333;
  margin: 0;
  line-height: 1.5;
  width: 100%;
}

.service h3,
.service p,
.service img {
  pointer-events: none;
}

/* Hero buttons */
.hero .btn {
  background-color: black;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background-color: #00b0f0 ;
  transform: translateY(5px);
}

.book-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  background-color: black;
  color: white;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: all;
}

.book-link:hover {
  background-color: #00b0f0;
}
@media (max-width: 768px) {
  .contact-top-right {
    font-size: 12px;
  }

  .contact-top-right span {
    font-size: 12px;
  }
}
/* Responsive styles for mobile devices (max-width 600px) */
@media (max-width: 600px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo video {
    width: 80px !important;
  }

  nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 80px;
    right: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 200px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 15px 10px;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    text-align: left;
    opacity: 1;
    animation: none;
    transform: none;
    pointer-events: auto;
  }

  nav a:last-child {
    border-bottom: none;
  }

  nav.active a {
    opacity: 0;
    animation-name: navLinkFadeIn;
    animation-fill-mode: forwards;
    animation-duration: 0.4s;
    animation-timing-function: ease;
  }

  nav.active a:nth-child(1) {
    animation-delay: 0.1s;
  }
  nav.active a:nth-child(2) {
    animation-delay: 0.3s;
  }
  nav.active a:nth-child(3) {
    animation-delay: 0.5s;
  }
  nav.active a:nth-child(4) {
    animation-delay: 0.7s;
  }
  nav.active a:nth-child(5) {
    animation-delay: 0.9s;
  }
  nav.active a:nth-child(6) {
    animation-delay: 1.1s;
  }

  .hamburger {
    display: flex;
  }

  /* Adjust hero text and image on small screen */
  .hero-text, .hero-image {
    min-width: 100%;
    margin-left: 0;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  nav a {
    font-size: 20px;
  }
  
  .service {
    flex: 1 1 100%;
    padding: 15px;
  }
  
  .service img {
    width: 130px;
  }
  
  .hero-text1 {
    margin: 20px;
    flex-direction: column;
  }
}

/* Responsive styles for tablets (between 601px and 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .header-container {
    gap: 15px;
  }

  .logo video {
    width: 110px !important;
    transform: scale(1.1);
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 22px;
  }

  /* Hero section */
  .hero-content {
    gap: 30px;
  }

  .hero-text {
    font-size: 1.2rem;
    margin-left: 5px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-image {
    min-width: 320px;
    max-width: 45%;
  }

  /* Services section */
  .service {
    flex: 1 1 calc(45% - 20px);
    padding: 18px;
  }

  .service img {
    width: 120px;
  }

  /* Contact form */
  .contact-main {
    width: 90%;
    padding: 25px;
  }

  .contact_container form {
    max-width: 100%;
  }
}

.main_about {
  max-width: 85%;
  margin: 50px auto;
  padding: 30px;
  background-color: transparent;
  color: #111;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Animation for nav links on mobile */
@keyframes navLinkFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
