/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #2A2A2A;
    line-height: 1.6;
    padding-top: 0; /* Remove default padding since navbar will be transparent initially */
}

/* Navigation */

.navbar {
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 5%;
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    background: rgba(42, 42, 42,0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#logo-link{
    text-decoration: none;
}

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

#logo-text{
    color: #ffffff;
    -webkit-text-stroke: #22119d;
    -webkit-text-stroke-width: 1px;
}

.logo img {
    height: 40px;
    color:#22119d;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: #ffffff;
}

.nav-links a:not(.address a):hover {
    color: #FF6B6B;
}

.nav-links a:not(.address a, .social-links a)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #FF6B6B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:not(.address a, .social-links a):hover::after {
    width: 100%;
}

.social-links a {
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar.scrolled .social-links a {
    color: #ffffff;
}

.address a {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.navbar.scrolled .address a {
    color: #FF6B6B;
}

.address a:hover {
    color: #ff8585;
    transform: translateX(5px);
    display: inline-block;
}

.address i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.address a:hover i {
    transform: scale(1.2);
}

.address{
    display: flex;
    flex-direction: column;
}

.address i{
    font-size: 13px;
}

.address a{
    color: #FF6B6B;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Increased opacity from 0.5 to 0.7 for darker overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-content .primary-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-content .primary-btn:hover {
    background-color: #ff8585;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    padding: 5rem 0;
    text-align: center;
}

.services h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

/* hide description by default */
.service-card .card-description {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 220ms ease, transform 220ms ease;
  margin: 0;
  color: #444;
  font-size: 0.95rem;
}

/* style for the details button */
.service-card .more-btn {
  align-self:center;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 2px solid #FF6B6B;
  color: #FF6B6B;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  font-family: 'Poppins', sans-serif;
}

/* hover/focus visual */
.service-card .more-btn:hover,
.service-card .more-btn:focus {
  background: #FF6B6B;
  color: #fff;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 6px 18px rgba(255,107,107,0.12);
}

/* reveal description when the button is hovered or focused (immediately following p) */
.service-card .more-btn:hover + .card-description,
.service-card .more-btn:focus + .card-description {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

/* also reveal description if user hovers the card (improved discoverability) */
.service-card:hover .card-description {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0);
}

/* accessible focus-visible */
.service-card .more-btn:focus-visible {
  outline: 3px solid rgba(255,107,107,0.18);
}

/* small screens adjustments */
@media (max-width: 768px) {
  .service-card img { height: 140px; }
  .service-card .card-description { font-size: 0.9rem; }
  .service-card .more-btn { padding: 0.45rem 0.7rem; }
}

/* Products Section */
.top-products {
    padding: 5rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.top-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 auto;
    width: 250px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2A2A2A;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

@media (max-width: 768px) {
    .top-products {
        padding: 2rem 5%;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .product-card {
        width: 200px;
    }

    .product-card img {
        height: 130px;
    }

    .product-info {
        padding: 0.8rem;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .top-products {
        padding: 1.5rem 5%;
    }

    .carousel-container {
        padding: 0 5px;
    }

    .product-card {
        width: 160px;
    }

    .product-card img {
        height: 100px;
    }

    .product-info {
        padding: 0.6rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.step {
    padding: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 5%;
    background-color: #FFF5F0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.subscribe-btn {
    padding: 1rem 2rem;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #2A2A2A;
    color: white;
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
}

.footer-section ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom a{
    color: #FF6B6B;
    font-style: none;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons{
        justify-content: center;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        color: white;
    }

    .nav-links {
        position: fixed;
        top: 90px; /* Adjust based on your navbar height */
        left: 100%;
        width: 100%;
        height: calc(100vh);
        background-color: #000;
        overflow-y: scroll;
        padding: 0px 0;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .nav-links li {
        margin: 10px 0;
    }

    

    .nav-links .address {
        margin-top: 30px;
        padding: 0px;
        border: none;
    }

    .nav-links .social-links {
        display: flex;
        justify-content: center;
    }

    .nav-links .social-links a {
        font-size: 1rem;
        color: #fff;
        transition: color 0.3s;
    }

    .nav-links .social-links a:hover {
        color: #FF6B6B;
    }
}

/* Hamburger Menu */
/* Base styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

.phone-numbers{
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.contact-nav{
    padding-right: 10px;
    border-right: 1.5px white dotted;
    font-size: 0.9rem;
}

/* Phone mode */
@media (max-width: 768px) {
  /* Show hamburger icon on mobile */
  .hamburger {
    display: flex;
  }
  
  /* Hide desktop nav initially */
  .nav-links {
    position: fixed;
    top: 90px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: rgba(42, 42, 42, 1);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    transition: left 0.3s ease-in-out;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 999;
    overflow-y: auto;
  }

  /* When active, slide in the nav menu */
  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 16px 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links li:nth-child(6) { transition-delay: 0.6s; }
  .nav-links li:nth-child(7) { transition-delay: 0.7s; }
  .nav-links li:nth-child(8) { transition-delay: 0.8s; }
  
  .nav-links .social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.9s;
  }

  .contact-nav{
    border: none;
  }

  .nav-links.active .social-links {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links .social-links a {
    font-size: 1.5rem;
    color: #fff;
    transition: color 0.3s;
  }

  .nav-links .social-links a:hover {
    color: #FF6B6B;
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Path Container Styles */
.path-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}

.circle-path {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
}

.circle-item {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 2px dashed #FF6B6B;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    z-index: 2;
}

.circle-item:hover {
    transform: scale(1.1);
    border-style: solid;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.2);
}

.circle-item h3 {
    color: #FF6B6B;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.circle-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.circle-item.first {
    left: 15%;
    top: 30%;
    transform: translateY(-50%);
}

.circle-item.second {
    left: 30%;
    top: 60%;
    transform: translateY(-50%);
}

.circle-item.third {
    left: 45%;
    top: 30%;
    transform: translateY(-50%);
}

.circle-item.logo {
    right: 5%;
    top: 60%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border: none;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-icon {
    margin-bottom: 15px;
}

.logo-icon img {
    width: 200px;
    height: 180px;
    background-size: cover;
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin: 3px 0;
    color: #FF6B6B;
    font-size: 0.85rem;
}

.contact-info .phone1,
.contact-info .phone2 {
    color: #FF6B6B;
    font-weight: 500;
}

.contact-info .address,
.contact-info .city {
    color: #666;
}

.connecting-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connecting-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: none;
    border: none;
    border-top: 2px dashed #FF6B6B;
    clip-path: path('M 80,150 Q 250,350 450,150 T 900,250');
}

@media (max-width: 768px) {
    .path-container {
        height: auto;
        padding: 20px;
        margin: 20px 0;
    }

    .circle-path {
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
    }

    /* Hide all circles except logo */
    .circle-item.first,
    .circle-item.second,
    .circle-item.third,
    .connecting-path {
        display: none !important;
    }

    /* Center and style the logo circle */
    .circle-item.logo {
        position: relative;
        top: unset;
        right: unset;
        width: 220px;
        height: 220px;
        margin: 0 auto;
        padding: 20px;
        transform: none;
    }

    .circle-item.logo img {
        width: 140px;
        height: auto;
        margin-bottom: 15px;
    }

    .contact-info p {
        font-size: 0.9rem;
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    .circle-item.logo {
        width: 180px;
        height: 180px;
        padding: 15px;
    }

    .circle-item.logo img {
        width: 120px;
    }

    .contact-info p {
        font-size: 0.8rem;
        margin: 3px 0;
    }
}

#call-button{
    padding: 1rem 2rem;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: ease-in-out 0.2s;
    text-transform: uppercase;
}

#call-button:hover{
    background-color: hsl(5, 100%, 71%);
    color:white;
    transform: scale(1.05);
}

/* Logo Slider */
.testimonials {
    padding: 5rem 0;
    background-color: #fff;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2A2A2A;
}

.logo-slider {
    position: relative;
    width: 100%;
    height: 150px; /* Increased height */
    padding: 20px 0;
    background: white;
    overflow: hidden;
}

.logo-slide-track {
    display: flex;
    width: calc(300px * 22); /* Increased width per slide * number of slides (11 * 2) */
    animation: scroll 40s linear infinite; /* Slowed down animation */
}

.logo-slide {
    width: 300px; /* Increased width */
    height: 150px; /* Increased height */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-width: 100%;
    max-height: 110px; /* Increased max height */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 11)); /* Half of total width */
    }
}

/* Add gradient overlay to create fade effect */
.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px; /* Increased width of fade */
    height: 100%;
    z-index: 2;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

@media (max-width: 768px) {
    .logo-slider {
        height: 120px;
    }

    .logo-slide {
        width: 220px;
        height: 120px;
        padding: 15px;
    }

    .logo-slide img {
        max-height: 90px;
    }

    .logo-slide-track {
        width: calc(220px * 22);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-220px * 11));
        }
    }

    .logo-slider::before,
    .logo-slider::after {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .logo-slider {
        height: 100px;
    }

    .logo-slide {
        width: 180px;
        height: 100px;
        padding: 10px;
    }

    .logo-slide img {
        max-height: 80px;
    }

    .logo-slide-track {
        width: calc(180px * 22);
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-180px * 11));
        }
    }

    .logo-slider::before,
    .logo-slider::after {
        width: 60px;
    }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Section spacing */
section {
    scroll-margin-top: 100px; /* Adjust based on your navbar height */
    padding: 5rem 0;
}

/* Services section specific spacing */
.services {
    padding: 5rem 0;
}

/* Products section specific spacing */
.top-products {
    padding: 5rem 0;
}

/* How it works section specific spacing */
.how-it-works {
    padding: 5rem 0;
}

/* Testimonials section specific spacing */
.testimonials {
    padding: 5rem 0;
}

/* Contact section specific spacing */
#contact {
    padding: 5rem 0;
}

/* Client Logos Grid */
.client-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  justify-content: center;
  padding: 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.client-logos-grid img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.8);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.client-logos-grid img:hover {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
  transform: scale(1.07);
}


.card-description{
    display: none;
}

.phone-mode-contact{
    display: none;
}

/* Media query for screens smaller than 768px */
@media (max-width: 768px) {
    .phone-mode-contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 5px;
        color: #ff8585;
        font-weight: bold;
    }

    .phone-mode-contact a{
        color: #ff8585;
        text-decoration: none;
    }

    .phone-mode-contact a:hover{
        text-decoration: underline;
    }
    .card-description{
        display: block;
    }
}