/* Root Variables */
:root {
    --primary-navy-blue: hsl(210, 50%, 25%);
    --accent-sky-blue: hsl(200, 70%, 50%);
    --accent-warm-yellow: hsl(45, 100%, 50%);
    --background-white: hsl(0, 0%, 100%);
    --background-light-gray: hsl(0, 0%, 95%);
    --text-dark-gray: hsl(0, 0%, 20%);
    --text-light-gray: hsla(0, 2%, 39%, 0.308);

    --footer-background: #f9f9f9;
    --black-next-prev-arrow:hsl(0, 0%, 0%);
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body Styling */
body {
    font-family: "Lato", sans-serif;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-dark-gray);
    background-color: var(--background-light-gray);
}

/* Header */
.header {
    background: var(--background-white);
    color: var(--background-white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  padding: 5px;
  background: linear-gradient(to right, var(--text-dark-gray), var(--accent-sky-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative; 
  text-decoration: none; 
}

.logo::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-sky-blue);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


/* Navigation */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: var(--text-dark-gray);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    position: relative;  
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--accent-sky-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav a:hover {
    color: var(--accent-sky-blue);
}

.nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light-gray);
    transition: transform 0.3s ease;
}


/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 90vh;
    background: var(--background-light-gray);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 300%;
}

.carousel-item {
    position: relative;
    flex: 1 0 100%;
    height: 100%;
}

.carousel-item img {
    
    width: 1600px;
    height: 800px;
    object-fit: cover;
}

/* black overlay */
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.carousel-info {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: var(--background-white);
  padding: 20px;
  margin: 50px auto;
  border-radius: 8px;
  max-width: 300px;
  z-index: 2; 
}

.carousel-info h2 {
    font-size: 14px;
    margin-bottom: 10px;
}

.carousel-info p {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 10px;
}


span.address{
    color:var(--accent-sky-blue);
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    /* background: var(--accent-sky-blue); */
    border-color: var(--accent-sky-blue);
    color: var(--background-white);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--accent-sky-blue);
    border-radius: 25px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-sky-blue);
}

/* Carousel Controls */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-sky-blue);
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  font-size: 32px;
  border-radius: 50%;
  z-index: 10;
  background: none;
  transition: color 0.3s ease;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  color: var(--background-white);
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-bar {
  width: 20px;
  height: 4px;
  background: var(--background-light-gray);
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-bar.active {
  width: 40px; 
  background: var(--accent-sky-blue);
}

/* Our Services Section */
.services {
    padding: 50px 20px;
    background: var(--background-white);    
}

.services h2 {
    text-align: center;
    color: var(--primary-navy-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    grid-column: 1 / -1; 
}

.services p {
    text-align: center;
    color: var(--text-dark-gray);
    font-size: 1rem;
    margin-bottom: 40px;
    grid-column: 1 / -1; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--background-white);
    border: 1px solid var(--background-light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
    display: flex;
    align-items: left;
    justify-content: left;
    font-size: 2.5rem;
    color: var(--accent-sky-blue);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy-blue);
    margin-bottom: 10px;
    text-align: left;
}

.service-card p {
    color: var(--text-dark-gray);
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Agents Section */
.agents {
  padding: 50px 20px;
  background: var(--background-white);
  text-align: center;
}

.agents h2 {
  color: var(--primary-navy-blue);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.agents p {
  color: var(--text-dark-gray);
  font-size: 1rem;
  margin-bottom: 40px;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.agent-card {
  background: var(--background-light-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.agent-info {
  padding: 20px;
  text-align: center;
}

.agent-info h3 {
  color: var(--primary-navy-blue);
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.agent-info p {
  color: var(--text-dark-gray);
  font-size: 1rem;
  margin-bottom: 15px;
}

.social-icons-agents {
  display: flex;
  justify-content: center;
  gap: 15px; 
}

.social-icons-agents a {
  border: solid 1px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  color: var(--primary-navy-blue);
  font-size: 14px;
  transition: color 0.3s ease;
}

.social-icons-agents a:hover {
  color: var(--accent-sky-blue);
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .agents {
    padding: 30px 10px; 
  }

  .agents h2 {
    font-size: 2rem; 
  }

  .agents p {
    font-size: 0.9rem; 
  }

  .agent-card {
    margin: 0 auto; 
  }
}

/* Testimonials Section */
.testimonials {
  text-align: center;
  padding: 50px 20px;
  background: var(--background-white);
}

.testimonials h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.testimonials p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-dark-gray);
}

.testimonial-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  gap: 20px;
  padding: 2rem;
}

.testimonial-card {
  flex: 0 0 28%; 
  max-width: 28%;
  height: 400px;
  padding: 1.5rem;
  background-color: var(--background-white);
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
  opacity: 0.5;
  transform: scale(0.9);
  filter: blur(5px);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease, box-shadow 0.5s ease;
  text-align: center;
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}

.testimonial-card p {
  font-size: 1em;
  margin-bottom: 10px;
}

.stars {
  color: var(--accent-warm-yellow);
  font-size: 1.2em;
}

.testimonial-card h4 {
  font-size: 1.1em;
  color: var(--text-dark-gray);
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(1.02); 
  filter: none;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2); 
}

.testimonial-card.blur-left,
.testimonial-card.blur-right {
  opacity: 0.7;
  filter: blur(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
}

/* dots for the testimonial section */  
.dots-container {
  position: absolute;
  bottom: 10px; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px; 
}

.dot {
  width: 12px;
  height: 12px;
  background-color: var(--background-light-gray);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active-dot {
  background-color: var(--accent-warm-yellow);
}

/* Footer Section */
.footer {
  background: var(--footer-background);
  color: var(--text-dark-gray);
  padding: 40px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 0 20px;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 200px;
  box-sizing: border-box;
}

.footer-section h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.footer .fa-solid,
.footer .fas {
  color: var(--accent-sky-blue);
}

/* Social icons row */
.social-icons-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.social-icons-footer a {
  border: 2px solid var(--background-light-gray);
  border-radius: 100px;
  border: 1px solid var(--primary-navy-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 40px;
  height: 40px;
  color: var(--primary-navy-blue);
  font-size: 14px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-icons-footer a:hover {
  color: var(--accent-sky-blue);
  border-color: var(--accent-sky-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  color: var(--text-dark-gray);
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-bottom p {
  margin: 6px 0;
}


.footer span {
  color: var(--accent-sky-blue);
  cursor: pointer;
}

.footer-bottom a {
  margin: 10px 0;
  font-size: 0.9em;
  color: var(--text-dark-gray);
  text-decoration: none;
  position: relative;  
  transition: color 0.3s ease;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: var(--accent-sky-blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-sky-blue);
}

.footer-bottom a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-section {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 0 16px;
  }

  .footer-section {
    flex: 1 1 100%;
    min-width: auto;
  }

  .footer-section h3 {
    justify-content: center;
  }

  .social-icons-footer {
    justify-content: center;
  }

  .footer-bottom {
    font-size: 0.9em;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {


    /* header and hamburger menu */
    .nav {
        display: none;
        flex-direction: column;
        background:var(--background-white);
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 5px;
        text-align: left;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }


    .nav a{
        margin-left: 20px;
        color: var(--accent-sky-blue);
    }

    .nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* hero section and carrousel section */
    .carousel-item img {
        width: 50%;
        height: 100%;
    }

    /* services section */
    .services-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .services h2 {
        font-size: 2rem; 
    }

    /* testimonial section */
    .testimonial-slider {
      gap: 0; 
    }
  
    .testimonial-card {
      flex: 0 0 85%;
      max-width: 100%;
      height: 350px;
      padding: 1rem;
    }
  
    .testimonial-card.active {
      transform: scale(1);
      box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
    }
  
    .testimonial-card:not(.active) {
      display: none; 
    }

    /* footer section */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
      .footer-section {
        margin-bottom: 20px;
      }

}
