* {
  box-sizing: border-box;
}
body{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* Nav Bar */
.header {
    position: fixed;
    top: 0;
    right: 0;
    height: 13vh;
    width: 100%;
    background: linear-gradient(90deg, rgb(228, 222, 228), #6a1b9a, #8e24aa);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* When page is scrolled add blur */
.header.scrolled {
    /* preserve original gradient but make it translucent */
    background: linear-gradient(90deg,
        rgba(228, 222, 228, 0.55),
        rgba(106, 27, 154, 0.55),
        rgba(142, 36, 170, 0.55)
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
/* Change nav link colors when header is scrolled */
.header.scrolled .nav-links a {
    color: #f3e5f5; /* lighter lavender to contrast the scrolled background */
}
.header.scrolled .nav-links a:hover {
    color: #ffffff;
}
.header.scrolled .nav-links a.active {
    color: #fff7ff;
}
.container.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    height: 68%;
    width: 11%; /* Adjust as needed */
    /* border: 1px solid white; */
    background-image: url(../PICTURES/hplogoo-removebg-preview.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 15px;
}
.nav-links {
    display: flex;
}
.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    padding: 35px;
      transition: transform 0.3s ease;
}
.nav-links a:hover {
    /* background-color: #4a148c; */
    transform: scale(1.1);
    color: #e1bee7;
}
/* Burger toggle styles */
.nav-toggle{
    display:none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 12px;
}
.nav-toggle .hamburger{
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after{
    content: '';
    position: absolute;
    left: 0;
    width: 26px;
    height: 2px;
    background: #fff;
}
.nav-toggle .hamburger::before{ top: -8px; }
.nav-toggle .hamburger::after{ top: 8px; }

@media (max-width: 900px){
    .nav-toggle{ display: inline-flex; align-items: center; }
    .nav-links{ display: none; }
    .nav-links.open{ display: flex; position: absolute; top: 13vh; left: 0; right: 0; background: linear-gradient(90deg, rgba(74,20,140,0.95), rgba(142,36,170,0.95)); flex-direction: column; align-items: center; padding: 12px 0; z-index: 999; }
    .nav-links.open a{ padding: 12px 8px; color: #fff; }
}
/* end of nav bar */
/* Main Content */

 .swiper {
      width: 100%;
      height: 110vh;
      margin-top: 13vh;
}

 .swiper-slide {
     position: relative;
     text-align: center;
     font-size: 18px;
     background: #444;
     display: flex;
     justify-content: center;
     align-items: center;
     overflow: hidden;
 }

        /* Slides now use background images (fixed-to-viewport) instead of <img> elements */
        .swiper-slide {
            /* make background cover the slide and remain fixed relative to viewport */
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            display: flex;
            justify-content: center;
            align-items: center;

            
        }

        /* per-slide background images */
        .slide-1 {
            background-attachment: fixed;
            background-image: linear-gradient(
            rgba(74,20,140,0.7),
            rgba(74,20,140,0.7)
    ),
             url("../PICTURES/Male social worker taking care of an old woman _ Free Photo.jpg");
        }
        .slide-2 {
            background-attachment: fixed;
                        background-image: linear-gradient(
            rgba(74,20,140,0.7),
            rgba(74,20,140,0.7)
    ),
             url("../PICTURES/How\ to\ Bathe\ Your\ Newborn\ Baby.jpg");
        }
        .slide-3 {
            background-attachment: fixed;
            background-image:
            linear-gradient(
            rgba(74,20,140,0.7),
            rgba(74,20,140,0.7)
    ),
             url("../PICTURES/vitaly-gariev-Y3vDCL7_das-unsplash.jpg");
        }

        /* Overlay content centered on the slide */
        .slide-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            max-width: 720px;
            padding: 25px 29px;
            color: rgba(255,255,255,0.95);
            text-align: center;
            border: 1px solid rgba(255,255,255,0.18);
            margin: auto;
            box-shadow: 0 8px 24px rgba(0,0,0,0.32);
            margin-top: 150px;
            border-radius: 10px;
            background-attachment: fixed;
        }

        /* Heading: slightly finer (lighter) and tighter */
        .slide-content h2 {
            font-size: 2rem;
            margin: 0 0 10px 0;
            font-weight: 500;
            letter-spacing: 0.6px;
            text-shadow: 0 4px 18px rgba(0,0,0,0.45);
        }

        /* Paragraph: finer weight, increased line-height for readability */
        .slide-content p {
            font-size: 1rem;
            margin: 0 0 18px 0;
            max-width: 680px;
            font-weight: 300;
            line-height: 1.7;
            letter-spacing: 0.2px;
            text-shadow: 0 3px 12px rgba(0,0,0,0.36);
        }

        .slide-btn {
            display: inline-block;
            padding: 12px 26px;
            background: #fff;
            color: #6a1b9a;
            font-weight: 700;
            border-radius: 6px;
            text-decoration: none;
            box-shadow: 0 6px 18px rgba(106,27,154,0.18);
            transition: transform 160ms ease, box-shadow 160ms ease;
        }

        .slide-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(106,27,154,0.22);
        }
    
    /* .welcome{
      height: 70vh;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      
    } */
    .welcome{
    height: 50vh;
    /* border: 1px solid red; */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* color: white; */
    /* font-size: 2rem; */
    /* font-weight: 600; */
    /* color: white; */
    background: linear-gradient(
        rgba(74,20,140,0.7),
        rgba(74,20,140,0.7)
    ),
    /* border: 1px solid black; */
 }
 .fw{
    width: 45%;
    /* border: 1px dashed black; */
    height: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center; 
    /* color: white; */
}
.fw h2{
    /* margin-bottom: 15px;         */
    font-size: 2rem;
 }

 .sw{
    width: 55%;
    /* border: 1px dashed black; */
    height: 100%;
    float: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    text-align: center; 
    /* color: white; */

    background: linear-gradient(
        rgba(74,20,140,0.7),
        rgba(74,20,140,0.7)
    ),
 }
    .sw p{
        font-size: 1.125rem;
        line-height: 1.6;
        text-align: justify;
        margin-bottom: 12px;
    }
 .wwd{
    padding: 50px 20px;
    text-align: center;
    /* border: 1px solid purple; */
 }
/* Make headings inside the "what we do" section a bit larger */
.wwd h2{
    font-size: 2.25rem;
    margin: 0 0 12px;
}
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    /* border: 1px solid green; */
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 10px 25px rgba(0,0,0,0.08); */
    /* border: 1px solid rgb(233, 116, 7); */
}

/* Hover effect for service cards */
.service-card {
    transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms ease, filter 220ms ease;
    cursor: default;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    filter: saturate(1.03);
    cursor: pointer;
}

.service-card img {
    transition: transform 300ms ease;
}
.service-card:hover img {
    transform: scale(1.03);
}

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

.service-card div {
    padding: 25px;
}
.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.service-card p {
    color: #555;
    line-height: 1.6;
}
.yh{
    height: 50vh;
    /* border: 1px solid blue; */
    background-color: #712a9e;
}
.yh h2{
    color: white;
    text-align: center;
    padding-top: 50px;
    font-size: 2.5rem;
}
.yh .btn{
    display: block;
    width: 200px;
    margin: 30px auto;
    padding: 15px;
    text-align: center;
    background-color: white;
    color: #712a9e;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.yh .btn:hover{
    background-color: #4a148c;
    color: white;
}
/* Footer */
footer {
    background: linear-gradient(90deg, #4a148c, #6a1b9a);
    color: white;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Left block (copyright) */
.lf{
    flex: 1 1 250px;
    text-align: left;
    padding: 6px 0;
}

/* Right block (icons) */
.rf{
    display: flex;
    gap: 12px;
    align-items: center;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Footer icon buttons */
footer .rf a{
    display: inline-flex;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #6a1b9a;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
footer .rf a .fa{
    font-size: 1.1rem;
}
footer .rf a:hover{
    transform: translateY(-4px) scale(1.03);
    background: #6a1b9a;
    color: #fff;
    box-shadow: 0 10px 28px rgba(106,27,154,0.22);
}


@media (max-width: 600px){
    footer{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .rf{ justify-content: center; }
}

/* Floating WhatsApp button */
#whatsapp-link{
    position: fixed;
    right: 20px;
    /* place above the footer so it doesn't overlap footer icons */
    bottom: calc(18px + 56px + 12px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,211,102,0.18);
    z-index: 2000;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
#whatsapp-link .fa{
    font-size: 1.25rem;
}
#whatsapp-link:hover{
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(37,211,102,0.28);
}

@media (max-width: 600px){
    /* on narrow screens give a slightly larger gap from footer */
    #whatsapp-link{ right: 14px; bottom: calc(18px + 56px + 10px); width: 50px; height: 50px; }
}


@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: linear-gradient(90deg, #6a1b9a, #8e24aa);
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        border-radius: 8px;
        overflow: hidden;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        font-size: 14px;
    }

    .nav-toggle {
        display: block;
    }
}

/* Responsive team cards */
@media (max-width: 768px){
    .team-card {
        max-width: 90%;
    }
}

/* WhatsApp button */
@media (max-width: 600px){
    #whatsapp-link{
        right: 14px; 
        bottom: calc(18px + 50px + 10px); 
        width: 50px; 
        height: 50px;
    }
}


  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 900px) {
  .swiper {
    height: 90vh;
    margin-top: 80px;
  }

  .slide-content {
    margin-top: 0;
    padding: 20px;
    max-width: 90%;
  }

  .slide-content h2 {
    font-size: 1.6rem;
  }

  .slide-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .slide-content h2 {
    font-size: 1.4rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .slide-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
@media (max-width: 800px) {
  .welcome {
    flex-direction: column;
    height: auto;
    padding: 40px 0;
  }

  .fw, .sw {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .fw h2 {
    font-size: 1.6rem;
  }

  .sw p {
    text-align: center;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  .services {
    gap: 20px;
  }

  .service-card img {
    height: 200px;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .yh {
    height: auto;
    padding: 40px 20px;
  }

  .yh h2 {
    font-size: 1.7rem;
    padding-top: 0;
  }

  .yh .btn {
    width: 180px;
    padding: 12px;
  }
}
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 25px 15px;
  }

  .lf, .rf {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  #whatsapp-link {
    width: 48px;
    height: 48px;
    right: 12px;
    bottom: 90px;
  }
}
