section {
  position: relative;
  overflow: visible;
}

/* Full-width decorative line ABOVE each section */
section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw; /* spans the entire viewport width */
  height: 5px;
  background: linear-gradient(to right, var(--clr-blue-light), var(--clr-purple-light));
  opacity: 0.08; /* subtle and classy */
  transform: translateX(-50%); /* keeps it centered even inside constrained layouts */
  pointer-events: none;
  z-index: 2;
}

/* Optional: remove from the first section (like your hero) */
section:first-of-type::before {
  content: none;
}
/* VARIABLES */
:root {
  --clr-blue: #234E86; 
  --clr-blue-light: #2A5D9F;
  --clr-purple: #5A1A8A;
  --clr-purple-light: #6A1B9A;
  --bg-white: #FFFFFF;
  --bg-light: #F9F9F9;
  --bg-lighter: #F7F7F7;
  --txt-main: #222222;
  --txt-secondary: #333333;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
  --trans: 0.28s ease;
}
/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; min-height: 100%;background-color: #f9f9f9; } 
body {
  background-color: #F9F9F9;
  font-family: 'Open Sans', sans-serif;
  color: var(--txt-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 2000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid #fff;
}

/* TYPOGRAPHY*/
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--clr-blue);
}
p { font-size: 18px; color: var(--txt-secondary); }
/* LINKS & BUTTONS*/
a {
  text-decoration: none;
  transition: color var(--trans);
  color: var(--clr-blue-light);
}
a:hover, a:focus-visible { color: var(--clr-purple-light); }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  background: var(--clr-blue-light);
  color: #FFF;
  font-weight: 600;
  transition: background var(--trans);
}
.btn-blue {
  background: var(--clr-blue-light);
}
.btn-blue:hover {
  background: var(--clr-purple-light);
  color: #fff;
  transform: translateY(-2px);
}
.btn-purple {
  background: var(--clr-purple-light);
}
.btn-purple:hover {
  background: var(--clr-blue-light);
  color: #fff;
  transform: translateY(-2px);
}
/* HEADER / NAVBAR */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(0, 0, 0, 0.7);   /* semi-transparent black */
  backdrop-filter: blur(10px);       /* glass effect */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  white-space: nowrap;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.nav-links li a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}
.nav-links li a:hover {
  color: var(--clr-purple-light);   
  transform: translateY(-2px);
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  font-size: 28px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}
.hamburger:hover {
  transform: scale(1.1);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background: var(--bg-lighter);
  min-width: 100px;
  list-style: none;
  text-align: center;
  z-index: 1000;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 6px 12px;
  color: var(--clr-blue-light);
  font-weight: 500;
}
.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--clr-purple-light);
}
/* HERO SECTION*/
.hero {
  height: 60vh;
  min-height:400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 70px;
}
.hero .hero-content { padding: 50px 20px; }
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  color: #F9F9F9;
}
.hero p {
  font-size: 24px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  color: #FFF;
}
.hero .hero-buttons .btn {
  padding: 12px 25px;
  margin: 5px;
  border-radius: 25px;
  background: var(--clr-blue-light);
}
.hero .hero-buttons .btn:hover { background: var(--clr-purple-light); }
/* Hero Backgrounds per Page */
#hero-index { background-image: url('images/heroindex.jpg'); }
#hero-dogs { background-image: url('images/herodogs.jpg'); }
#hero-contact { background-image: url('images/herocontact.jpg'); }
#hero-adopt { background-image: url('images/heroadopt.jpg'); }
#hero-surrender { background-image: url('images/surrender.jpg'); }
#hero-about { background-image: url('images/heroabout.jpg'); }
#hero-support { background-image: url('images/herosupport.jpg'); }
#hero-news { background-image: url('images/heronews.jpg'); }
#hero-volunteer {background-image: url('images/hero-volunteer.jpg') }
#hero-foster { background-image: url('images/herofoster.jpg'); }
#hero-success { background-image: url('images/herosuccess.jpg'); }

/* FOOTER */
.footer {
  background: rgba(0, 0, 0, 0.7);
  color: #FFF;
  padding: 40px 10px;
  text-align: center;
  flex-shrink: 0;
  margin-top: auto;
}
.footer a { color: #FFF; text-decoration: underline; }
.footer a:hover { color: var(--clr-purple-light); }
.footer .footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.social-icons img {
  width: 100px;
  height: 100px;
  transition: transform 0.2s ease;
}
.social-icons img:hover { transform: scale(1.1); }
/* LAYOUT UTILITIES */
section { padding: 60px 30px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }


/* -------------------------
   Mobile Landscape / Tablet
--------------------------- */
@media (max-width: 768px) {
  html, body {
    background:var(--bg-lighter) ;
  }

  /* Hamburger Menu */
  .hamburger {
    display: block;
  }

 .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    gap: 30px;
    background: rgba(0, 0, 0, 0.85);   /* dark glass */
    backdrop-filter: blur(12px);       /* glass effect */
    padding-top: 6rem;
    padding-left: 1.5rem;
    transition: right 0.35s ease-in-out;
    z-index: 999;
    border-left: 1px solid rgba(255,255,255,0.1); /* subtle line */
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li a {
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 10px 0;
    display: block;
    transition: color 0.25s, transform 0.25s;
  }

  .nav-links li a:hover {
    color: #4ade80;  /* bright green accent */
    transform: translateX(5px); /* smooth hover movement */
  }

  /* Optional: Add small dividers for elegance */
  .nav-links li::after {
    content: "";
    display: block;
    height: 1px;
    width: 80%;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
  }
  .nav-links {
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
}

.nav-links.open {
  transform: translateX(0);
}
.hamburger {
  transition: all 0.3s ease;
}

.hamburger.open {
  transform: rotate(90deg);
  color: #4ade80; /* optional color change */
}
.nav-links {
  overflow-y: auto;       /* enables vertical scroll */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  max-height: 100vh;      /* restrict height to viewport */
  padding-bottom: 2rem;   /* optional: space at bottom */
}
  /* Hero Section */
  .hero {
    height: 35vh;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 24px; /* readable heading */
    margin: 0 0 12px;
  }

  .hero p {
    font-size: 14px; /* readable paragraph */
    margin: 0 0 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .hero .btn {
    font-size: 14px; /* readable button text */
    padding: 10px 20px;
    width: 80%;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Social Icons */
  .social-icons {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 12px;
  }

  .social-icons img {
    width: 70px;
    height: 70px;
  }

  /* Slideshow */
  .slideshow-container {
    max-width: 100%;
    margin: 20px auto;
    padding-bottom: 20px;
  }

  .slide img {
    width: 100%;
    height: auto;
    max-height: 250px;
  }

  .slide .btn {
    display: block;
    width: 80%;
    margin: 10px auto 0;
    padding: 10px 24px;
  }
}

/* -------------------------
   Mobile Portrait
--------------------------- */
@media (max-width: 480px) {
    html, body {
    background:var(--bg-lighter) ;
  }

  .hero {
    height: 35vh;
    padding: 30px 16px;
  }

  .hero h1 {
    font-size: 20px;  /* readable heading */
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 12px;  /* readable paragraph */
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .hero-buttons {
    gap: 6px;
  }

  .hero .btn {
    width: 85%;
    font-size: 13px; /* readable button text */
    padding: 8px 16px;
    margin: 4px auto;
  }

  .nav-links li {
    font-size: 13px; /* improved readability for menu links */
  }
}


/* -------------------------
   Section Divider
--------------------------- */
.section-divider {
  width: 100vw;
  height: 5px;
  background: linear-gradient(to right, var(--clr-blue-light), var(--clr-purple-light));
  opacity: 0.15;
  margin: 0;
  transform: translateX(calc(-50vw + 50%));
}





section:nth-of-type(odd) {
  background-color: var(--bg-white) !important;
    width: 100%;
}

section:nth-of-type(even) {
  background-color: var(--bg-light) !important;
    width: 100%;
}

.hero::before,
section:first-of-type::before {
  content: none !important;
}
section.no-line::before {
  display: none; /* removes the line */
}
section.no-line::after {
  display: none; /* removes the line */
}
/* ==========================
   UNIVERSAL FADE-IN EFFECT
========================== */

/* Base class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards ease-in-out;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Mobile font size for the text next to the logo */
@media (max-width: 768px) {

  .header .logo span {
    font-size: 1.1rem;   /* make this as small as you want */
  }
}
@media (max-width: 480px) {
  .header .logo span {
    font-size: 0.90rem;
  }
}

