  :root {
    --muted: #f6f6f8;
    --muted-foreground: #717182;
    --accent-color: #4F46E5;
    --radius: 10px;
    --white: #fff;
    --black: #000;
    --title: #555;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: Inter, sans-serif;
    background: var(--white);
    color: var(--title);
    line-height: 1.4;
  }
 
  body p {
    color: var(--muted-foreground);
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  img {
    max-width: 100%;
    display: block;
  }

  .hollow {
    color: transparent;
    -webkit-text-stroke: 1px black;
    transition: all 0.3s ease;
  }

  .hollow2 {
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
  }

  .navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .logo {
      padding: 20px;
    }

     .navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 2px 2px 4px var(--muted-foreground);
  }

  .navbar-title {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 1px;
    position: absolute;
    top: 20px;
    left: 80px;
    color: var(--black)
  }

   li {
      list-style-type: none;
    }

    .nav-links {
      display: flex;
      gap: 20px;
      position: absolute;
      top: 0;
      right: 0;
      padding: 20px;
    }

     .nav-links li a.active-tab{
      color: var(--accent-color);
    }

    .nav-links li a.active-tab .hollow {
  -webkit-text-stroke: 1px var(--accent-color); 
}

    li>a:hover {
     background: linear-gradient(to right, blue, purple);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      transition: all 0.3s ease; 
    }

 .navbar-plan-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin-left: 12px;
    margin-top: -5px;
  }

  .navbar-plan-btn:hover {
    background: linear-gradient(to right, var(--accent-color), purple);
    scale: 1.02;
  }

  /* Hamburger button hidden on desktop */
  .navbar-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }

  /* Turn into an X */
  .navbar-toggle.active {
    transform: rotate(90deg);
  }

  .welcome-section {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
  }

  .welcome {
    text-align: center;
  }

  .welcome h1 {
    font-size: 80px;
    color: var(--white);
    font-weight: 600;
    margin: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .welcome h1:hover {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
    transition: 0.5s ease-in-out;
  }

  .welcome-section.shift-down .welcome {
    transform: translateY(20px);
    opacity: 0.9;
  }

  .welcome p {
    color: var(--white);
    font-size: clamp(16px, 3vw, 20px);
    max-width: 600px;
    margin: 20px auto 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .welcome-section.shift-down .welcome p {
    transform: translateY(10px);
    opacity: 0.9;
  }

  .welcome button {
    text-decoration: none;
    display: inline-block;
    color: black;
    font-size: clamp(12px, 2.5vw, 16px);
    border: 1px solid var(--white);
    padding: clamp(8px, 1.5vw, 10px) clamp(30px, 5vw, 50px);
    border-radius: 50px;
    margin-top: 40px;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .welcome button:hover {
    opacity: 0.7;
    transform: translateY(-2px);
  }

  .welcome-section.shift-down button {
    transform: translateY(10px);
    opacity: 0.9;
  }

  .back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
  }

  /* Sections */
  .section-title {
    font-size: 2rem;
    color: #111827;
  }

  /* Contact Form & Info */
  .grid {
    display: grid;
    gap: 2rem;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: start;
  }

  .contact-form {
    max-width: 80%;
    margin: 0 0 0 70px;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .form-group {
    display: flex;
    position: relative;
    flex-direction: column;
  }

  input,
  select,
  textarea {
    width: 100%;
    padding: 1.25rem 0.8rem 0.5rem;
    font-size: 0.80rem;
    background: none;
    outline: none;
    transition: border-color 0.3s ease;
    border: none;
    border-bottom: 2px solid var(--muted);
    border-radius: 0;
  }

  label {
    position: absolute;
    top: 35%;
    left: 0.8rem;
    transform: translateY(-50%);
    padding: 0 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.80rem;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  input:focus+label,
  input:not(:placeholder-shown)+label,
  textarea:focus+label,
  textarea:not(:placeholder-shown)+label,
  select:focus+label,
  select:not([value=""])+label {
    top: -0.6rem;
    left: 0.6rem;
    font-size: 0.75rem;
    color: var(--black);
    transform: translateY(0);
    background: var(--muted);
    padding: 0 0.25rem;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--accent-color);
  }

  .full-width {
    grid-column: span 2;
  }

  .send-message {
    padding: 0.9rem;
    border: none;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .send-message:hover {
    background: var(--accent-color);
  }

  .contact-card {
    background: var(--muted);
    padding: 1.5rem;
    border-radius: 0.9rem;
  }

  .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .contact-item i {
    font-size: 1.25rem;
    min-width: 1.5rem;
  }

  .service-times p {
    display: flex;
    justify-content: space-between;
  }

  .service-times span {
    margin-left: auto;
  }

  /* Map Section */
  .map-container {
    background: var(--muted);
    border-radius: 0.5rem;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-weight: bold;
  }

  iframe {
    width: 100%;
    height: 24rem;
  }

  .getting-here-section {
    padding: 4rem 1.5rem;
    background-color: var(--muted);
  }

  .getting-here-section .section-title {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 1rem;
  }

  .getting-here-section h4 {
    color: var(--title);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .getting-here-section p {
    color: #6b7280;
    line-height: 1.6;
  }

  .getting-here-section .btn {
    margin-top: 1.5rem;
  }

  /* Prayer Section */
  .prayer {
    background: var(--black);
    color: var(--muted-foreground);
    text-align: center;
    height: 11rem;
    margin-top: 10px;
  }


  /* Buttons  */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: 0.3s;
  }

  .btn-primary {
    color: var(--black);
    padding: 0.5rem 1rem;
    width: 30%;
    margin-left: 200px;
  }

  .btn-primary:hover {
    background-color: var(--black);
    color: var(--white);
    scale: 1.05;
    border: 1px solid;
  }

  .btn-secondary {
    color: var(--black);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
  }

  .btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
    scale: 1.05;
    border: 1px solid;
  }

  .btn-outline {
    border: 1px solid var(--black);
    color: var(--black);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
  }

  .btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
    scale: 1.05;
    border: 1px solid;
  }

  /* Footer */
  footer {
    margin-top: 80px;
    background-color: var(--muted);
    padding: 40px 20px 20px 20px;
    color: var(--title);
    font-family: Inter, sans-serif;
  }

  .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--black);
  }

  .footer-column p,
  .footer-column a {
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
    color: var(--title);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-column a:hover {
    color: var(--accent-color);
  }

  /* Social icons inside footer */
  .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }

  .social-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
  }

  .social-icons a {
    background: var(--muted);
    padding: 0.5rem;
    border-radius: 50%;
    transition: 0.3s;
    margin-top: -20px;
  }

  .social-icons a:hover {
    opacity: 0.6;
  }

  .social-icon:hover {
    transform: scale(1.2);
  }

  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--title);
  }

  /* media queries */
  /* for the back video to maintain aspect ratio  */
  @media (min-aspect-ratio: 16/9) {
    .back-video {
      width: 100%;
      height: auto;
    }
  }

  /* fallback for very small screens */
  @media (max-width: 400px) {
    .welcome .button-group {
      flex-direction: column;
      gap: 10px;
    }

    .welcome .button-group a {
      width: 80%;
      margin: 0 auto;
    }
  }

  /* Stack buttons vertically on small screens */
  @media (max-width: 600px) {
    .welcome a {
      display: block;
      width: 70%;
      margin: 10px auto;
      padding: 10px 0;
      font-size: 18px;
    }
  }

  @media (max-width: 700px) {
    .featured {
      flex-direction: column;
    }

    .service-times {
      flex-direction: column;
    }

    .navbar {
      flex-direction: column;
      height: auto;
      padding: 16px;
    }
  }

  /* Small screens */
  @media (max-width: 900px) {
    .navbar {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      height: 70px;
      padding: 0 16px;
      background-color: var(--black);
    }

    .navbar-logo {
      position: absolute;
      top: 15px;
      left: 15px;
    }

    .navbar-title {
      color: var(--white);
      position: absolute;
      top: 20px;
      left: 60px;
    }

    .navbar-toggle {
      display: block;
      font-size: 28px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .navbar-toggle.open i {
      transform: rotate(90deg);
    }

    .navbar-center {
      display: flex;
      flex-direction: column;
      background-color: var(--black);
      position: absolute;
      top: 70px;
      width: 100%;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .navbar-center.active {
      max-height: 500px;
      opacity: 1;
    }

    .nav-links {
      position: static;
      flex-direction: column;
    }

    .nav-links li a {
      color: var(--white);
      padding: 12px 20px;
      display: block;
    }

    .nav-links li a:hover {
      color: transparent;
    }

    .fas,
    .far {
      color: var(--white);
    }

    .navbar-plan-btn {
      margin: 15px auto;
      width: 80%;
      background-color: var(--white);
      color: var(--black);
    }

    .navbar-center .nav-links li {
      opacity: 0;
      transform: translateY(-10px);
      transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .navbar-center.active .nav-links li {
      opacity: 1;
      transform: translateY(0);
    }

    .navbar-center.active .nav-links li:nth-child(1) {
      transition-delay: 0.05s;
    }

    .navbar-center.active .nav-links li:nth-child(2) {
      transition-delay: 0.1s;
    }

    .navbar-center.active .nav-links li:nth-child(3) {
      transition-delay: 0.15s;
    }

    .navbar-center.active .nav-links li:nth-child(4) {
      transition-delay: 0.2s;
    }

    .navbar-center.active .nav-links li:nth-child(5) {
      transition-delay: 0.25s;
    }

    .navbar-center.active .nav-links li:nth-child(6) {
      transition-delay: 0.30s;
    }

    /* Push welcome-section down when menu is open */
    .welcome-section.shift-down {
      margin-top: 500px;
      transition: margin-top 0.4s ease;
    }

    .welcome-section {
      transition: margin-top 0.4s ease;
    }

    .footer-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .grid-2 {
      grid-template-columns: 1fr;
    }

    .directions-info,
    .map-info {
      text-align: center;
    }

    .btn {
      width: 80%;
      margin: 1rem auto 0 auto;
    }

    .prayer {
      height: 14rem;
    }

    .btn {
      width: 30%;
      text-align: center;
    }
  }

   @media (max-width: 950px){
     .navbar {
      flex-direction: row;
      justify-content: space-between;
      height: 70px;
      font-size: 13px;
    }

    .navbar-logo {
      position: absolute;
      top: 15px;
      left: 10px;
    }

    .navbar-title {
      position: absolute;
      top: 20px;
      left: 60px;
    }

    .navbar-plan-btn{
      padding: 8px;
      font-size: 13px;
    }
  }

  @media (max-width: 1100px){
     .navbar {
      flex-direction: row;
      justify-content: space-between;
      height: 70px;
      padding: 0 10px;
      font-size: 13px;
    }

    .navbar-logo {
      position: absolute;
      top: 15px;
      left: 10px;
    }

    .navbar-title {
      position: absolute;
      top: 20px;
      left: 60px;
    }

    .navbar-plan-btn{
      padding: 8px;
      font-size: 14px;
    }
  }

  #contactForm {
    scroll-margin-top: 100px;
  }

  #contactForm:target {
    animation: fadeHighlight 4s;
  }

  @keyframes fadeHighlight {

    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
      border-color: transparent;
    }

    50% {
      box-shadow: 0 0 15px 5px rgba(0, 123, 255, 0.6);
      border-color: var(--accent-color);
    }
  }