/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
html, body {
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f9fafb;
  color: #1f2933;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
}

/* GLOBAL IMAGES */
img {
  max-width: 100%;
  height: auto;
  display: block;
}


.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
}

.nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #374151;
}

.nav a:hover {
  color: #2563eb;
}

.about-section {
  max-width: 800px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.about-section h1 {
  font-size: 2.6rem;
  margin-bottom: 30px;
}

.about-section p {
  font-size: 1.1rem;
  color: #4b5563;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  text-decoration: none;
  color: #374151;
  margin-left: 30px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #374151;
}

.dropdown-content a:hover {
  background-color: #f3f4f6;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:focus-within .dropdown-content {
  display: block;
}

.about-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 50px;
}

.about-text {
  max-width: 600px;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: #4b5563;
}

/* portrait */
.about-image img {
  width: 300px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


/* carousel */

.carousel-section {
  margin: 60px 0;
  overflow: hidden;

  display: flex;            
  justify-content: center;    
  align-items: center;       
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 15s linear infinite;
}

.carousel-track img {
  width: 550px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-container {
    width: 80%; 
    margin: auto;
    overflow: hidden; /* hides images outside */
    position: relative;
}

.carousel-item {
  min-width: 150px;
  height: 300px; 
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-weight: 600;
}

/* carousel animation */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}

@media (max-width: 768px) {
  .about-top {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .about-image img {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .carousel-track {
    gap: 10px;
  }

  .carousel-track img {
    width: 180px;
    height: 120px;
  }
}

/* footer */
.site-footer {
  background-color: #1f2933;
  color: #ffffff;
  padding: 20px max(5%, 40px);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* contact info */
.footer-contact p {
  margin-bottom: 8px;
}

/* links */
.footer-links a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* bottom text */
.footer-bottom {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* push footer to bottom */
.site-footer {
  margin-top: auto;
}

/*  below is 4 mobile responsiviness */
@media (max-width: 768px) {

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav a {
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-image img {
    width: 100%;
  }

  .about-top {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .about-image img {
    width: 200px;
    margin: 0 auto;
  }

  .form-section,
  .consult-box {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

.nav a,
.dropdown-content a,
.btn {
  transition: all 0.2s ease;
}
