/* reset */
* {
  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; }
/* end of nav bar */

/* ===== HERO SECTION ===== */
.about{
    margin-top: 13vh;
    height: 60vh;
    background:
        linear-gradient(rgba(14,2,29,0.7), rgba(72,25,128,0.7)),
        url("../PICTURES/cdc-jjrXvzbqC5E-unsplash.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.about h3{
    font-size: 3rem;
}
.about p{
    font-size: 1.2rem;
}
.about a{
    color: #fff;
    text-decoration: none;
}

/* ===== CONTACT SECTION ===== */
.contact{
    width: 90%;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* left */
.contact-info{
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
.contact-info h2{
    color: #6a1b9a;
    margin-bottom: 10px;
}
.contact-info p{
    color: #4b5563;
    margin-bottom: 30px;
}

.info-item{
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.info-item .fa{
    color: #6a1b9a;
    font-size: 1.1rem;
}

.socials{
    margin-top: 25px;
}
.socials a{
    display: inline-flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #6a1b9a;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}
.socials a:hover{
    background: #4a148c;
}

/* right */
.contact-form{
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
.contact-form h2{
    color: #6a1b9a;
    margin-bottom: 20px;
}
.contact-form form{
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea{
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}
.contact-form button{
    padding: 14px;
    background: #6a1b9a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}
.contact-form button:hover{
    background: #4a148c;
}

/* ===== FOOTER ===== */
/* 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);
}



/* 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);
}

/* ============================= */
/* RESPONSIVE FIXES (FINAL) */
/* ============================= */

/* Use a stable navbar height */
:root {
  --nav-height: 88px;
}

/* Navbar height consistency */
.header {
  height: var(--nav-height);
}

.about {
  margin-top: var(--nav-height);
}

/* Mobile menu position fix */
.nav-links.open {
  top: var(--nav-height);
}

/* ============================= */
/* TABLET (≤ 900px) */
/* ============================= */
/* ============================= */
/* ACCESSIBILITY (IMPORTANT) */
/* ============================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #e1bee7;
  outline-offset: 3px;
}

@media (max-width: 900px) {

  /* NAVBAR */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    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;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
    padding: 10px 0;
  }

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

  .logo {
    width: 20%;
  }

  /* CONTACT */
  .contact {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
@media (max-width: 600px) {

  /* NAVBAR */
  :root {
    --nav-height: 72px;
  }

  .header {
    height: var(--nav-height);
  }

  .logo {
    width: 35%;
    height: 55%;
    margin-left: 10px;
  }

  /* HERO */
  .about {
    height: 45vh;
    padding: 0 16px;
  }

  .about h3 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }

  /* CONTACT */
  .contact {
    width: 95%;
    margin: 30px auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info,
  .contact-form {
    padding: 20px;
  }

  /* FOOTER */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .rf {
    justify-content: center;
  }

  /* WHATSAPP BUTTON */
  #whatsapp-link {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 90px;
  }
}



/* Responsive navbar */
@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;
    }
}