:root {
  --soft-white: #f5f5f5;
  --deep-teal: #1a5f7a;
  --warm-coral: #ff6f61;
  --charcoal-gray: #333;
  --light-gray: #d3d3d3;
  --cream: #fff8e1;
  --spacing: 10px;
}

* {
  margin: 0; 
  padding: 0;
  font-size: 16px;
}

body {
  background-color: var(--soft-white);
  font-family: "Poppins", Arial, sans-seif;
}

/******************/
/* Navigation Bar */
/******************/

.nav {
  background-color: var(--deep-teal);
  padding: 1.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  background-color: var(--deep-teal);
  max-width: 1500px;
  margin: 0 auto;
}

.nav-logo {
  background-color: var(--deep-teal);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  background-color: var(--deep-teal);
  gap: 1em;
}

.nav-links a{
  text-decoration: none;
  font-weight: 700;
  color: var(--cream); /* 4.6:1 contrast ratio*/
  background-color: var(--deep-teal);
  text-align: center;
  margin: auto;
  font-size: 1.2em;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--warm-coral);
}

/*******************/
/* Landing Section */
/*******************/
.home {
  width: 100%;
}

.home-container {
  background-color: var(--soft-white);
  height: 23rem;
  overflow: hidden;
}

.home-subcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  max-width: 1500px;
}

.home-imgbox {
  background-color:#4e4b4b;
  flex-basis: 50%;
  max-width: 600px;
  height: auto;
  margin-right: 25px;
  border-radius: 8px;
  overflow: hidden;
}

.home-imgbox img{
  object-fit: cover;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
  width: 100%;
}

.home-text {
  flex-basis: 50%;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.home-text h3{
  color: var(--deep-teal);
  font-size: 1.8em;
  text-align: center;
}

.home-text p {
  text-align: center;
}

/********************/
/* Scrolling photos */
/********************/
.photoline {
  width: 100%;
  background-color: white;
  padding: var(--spacing) 0;
  margin: 2em 0em;
}

.photoline-container {
  height: 30vh;
  margin-top: 5vh;
  background-color: white;
  padding: var(--spacing) 0;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.photoline-scroll-container {
  display: flex;
  height: calc(30vh - 2 * var(--spacing));
  gap: calc(2 * var(--spacing));
  animation: continuous-scroll 40s linear infinite;
  width: max-content;
}

.photoline-card {
  height: 100%;
  flex: 0 0 auto;
  aspect-ratio: 16/9;
  margin: 0 var(--spacing);
  overflow: hidden;
  border-radius: 8px;
}

.photoline-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: inline-block;
}

@keyframes continuous-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

.photoline-container:hover .photoline-scroll-container {
  animation-play-state: paused;
}

/**********************/
/* Why choose section */
/**********************/
.whychoose {
  width: 100%;
  height: 100%;
}

.whychoose-container {
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1500px;
  margin: 2em auto;
  height: 20vh;
}

.whychoose-main-text {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.whychoose-main-text {
  text-align: center;
}

.whychoose-main-text-title {
  font-size: 1.8em;
  color : var(--deep-teal);
}

.whychoose-list-container {
  flex-basis: 1;
}

.whychoose-main-text p{
  margin-top: 10px;
}

.whychoose-list {
  list-style: none;
  font-weight: bold;
}

.whychoose-list li:before{
  content: "→";
  margin-right: 5px;
  color: var(--warm-coral);
}

/*********************/
/* testimony section */
/*********************/
.review {
  width: 100%;
  padding: 4rem 0;
  background-color: white;
}

.review-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
}

.review-title {
  color: var(--deep-teal);
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 2rem;
}

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

.review-card {
  background-color: var(--soft-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-10px);
}

.review-customer {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.review-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.review-name {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 0.2rem;
}

.review-role {
  color: #666;
  font-size: 0.9em;
}

.review-stars {
  display: flex;
  margin-bottom: 1rem;
  color: var(--warm-coral);
}

.star {
  font-size: 1.2em;
  margin-right: 3px;
}

.review-text {
  font-style: italic;
  line-height: 1.6;
}

/*******************/
/* Gallery Section */
/****************(**/

.gallery {
  padding: 4rem 1rem;
}

.gallery-title {
  margin-bottom: 1rem;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-subtitle {
  margin-bottom: 2rem;
  color: #666;
  max-width: 1500px;
  margin: 1em auto;
  margin-top: 0.5em;
}

.gallery-grid {
  margin: 5vh 0px;
  display: grid;
  grid-template-columns: repeate(5, 1fr);
  grid-template-rows: repeat(8, 150px);
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto;
  grid-template-areas:
    "a a b b f"
    "a a b b f"
    "c c e e f"
    "c c e e i"
    "d d g k i"
    "h j g k i"
    "h j g l l"
    "h j g l l";
}

.a {
  grid-area: a;
}
.b {
  grid-area: b;
}
.c {
  grid-area: c;
}
.d {
  grid-area: d;
}
.e {
  grid-area: e;
}
.f {
  grid-area: f;
}
.g {
  grid-area: g;
}
.h {
  grid-area: h;
}
.i {
  grid-area: i;
}
.j {
  grid-area: j;
}
.k {
  grid-area: k;
}
.l {
  grid-area: l;
}


.gallery-item {
  background-color: #e0e0e0;
  border-radius: 8px;
  font-size: 24px;
  color: #666;
  position: relative;
}

.gallery-item::after {
  content: "Download";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/******************/
/* Footer Section */
/******************/
.footer {
  background-color: var(--deep-teal);
  color: var(--soft-white);
  padding: 3rem 0 1rem;
  width: 100%;
}

.footer-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9em;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.footer-social a {
  text-decoration: none;
  color: var(--cream);
}

.footer-social a:hover .social-icon {
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--warm-coral);
  font-size: 1.2em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9em;
}

.footer-menu a:hover {
  color: var(--warm-coral);
}

.footer-newsletter p {
  margin-bottom: 1rem;
  font-size: 0.9em;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-input {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-button {
  background-color: var(--warm-coral);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-button:hover {
  background-color: #e56559;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-legal a:hover {
  opacity: 1;
}

/*********************/
/* Responsive Design */
/*********************/

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .home-subcontainer {
    flex-direction: column;
    height: auto;
    gap: 2rem;
  }

  .home-imgbox {
    margin: 0 auto;
  }


  .photoline {
    transform: translateY(2em)
  }
  .photoline-container {
    padding-top: 2em;
    padding-bottom: 3em;
    max-width: 1500px;
  }

  .whychoose {
    margin-bottom: 9em;
  }

  .whychoose-container {
    display: block;
    padding-bottom: 4em;
    margin-bottom: 2rem;
  }

  .whychoose-main-text {
    text-align: left;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    margin-bottom: 1.5rem;
  }

  .gallery-grid {
    display: block;
  }

  .gallery-item{
    margin-bottom: 1rem;
    height: 600px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}




