body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  letter-spacing: 0.15em;
}

footer { 
  padding: 1.25rem 0; 
  color: #6c757d; 
}

    .navbar {
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.95) !important;
    }

    .brand-text {
      font-family: 'Prata', serif;
      font-size: 1.3rem;
      font-weight: 400;
      letter-spacing: 2px;
      color: #2c2c2c;
      transition: all 0.3s ease;
      white-space: nowrap;
      margin: 0 3rem;
    }

.navbar-brand:hover .brand-text {
  color: #666;
}

    .custom-nav-link {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      text-transform: uppercase;
      font-weight: 300;
      letter-spacing: 0.15em;
      color: #333 !important;
      transition: all 0.3s ease;
      padding: 0.6rem 0.9rem;
    }

    .custom-nav-link:hover {
      color: #666 !important;
      transform: translateY(-2px);
    }

    .dropdown-menu {
      border: none;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      border-radius: 10px;
      padding: 0.5rem 0;
    }

    .dropdown-item {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.85rem;
      text-transform: uppercase;
      font-weight: 300;
      letter-spacing: 0.1em;
      padding: 0.6rem 1.5rem;
      transition: all 0.3s ease;
    }

    .dropdown-item:hover {
      background: #f8f9fa;
      color: #2c2c2c;
      padding-left: 2rem;
    }


    /* Desktop Layout */
    @media (min-width: 992px) {
      .navbar .container {
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .navbar-nav {
        display: flex;
        flex-direction: row;
        gap: 1.75rem;
      }

      .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }

      .navbar-collapse {
        display: flex !important;
        justify-content: space-evenly;
        width: 100%;
      }
      
      
    }

    /* Mobile Styles */
    @media (max-width: 991.98px) {
      .navbar-toggler {
        border: none;
        padding: 0.5rem;
      }

      .navbar-toggler:focus {
        box-shadow: none;
      }

      .navbar-toggler-icon {
        width: 25px;
        height: 2px;
        background-color: #333;
        display: block;
        position: relative;
        transition: all 0.3s ease;
      }

      .navbar-toggler-icon::before,
      .navbar-toggler-icon::after {
        content: '';
        width: 25px;
        height: 2px;
        background-color: #333;
        display: block;
        position: absolute;
        transition: all 0.3s ease;
      }

      .navbar-toggler-icon::before {
        top: -8px;
      }

      .navbar-toggler-icon::after {
        top: 8px;
      }

      .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-color: transparent;
      }

      .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
      }

      .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
      }

      .navbar-collapse {
        text-align: center;
        padding: 1rem 0;
      }

      .navbar-nav {
        gap: 0.5rem;
      }

      .custom-nav-link {
        padding: 0.75rem 1rem;
        display: block;
      }

      .brand-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        margin: 0.5rem 0;
      }
      
      footer {
        padding: 1rem 0;
        font-size: 0.85rem;
      }
    }

    @media (max-width: 575.98px) {
      #logo {
        width: 35px;
        height: 35px;
      }

      .custom-nav-link {
        font-size: 0.85rem;
        padding: 0.65rem 0.8rem;
      }

      .brand-text {
        font-size: 0.95rem;
        letter-spacing: 1px;
      }
    }


    .loading-screen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height for mobile */
      background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      transition: opacity 0.8s ease, visibility 0.8s ease;
      overflow: hidden;
      padding: 20px;
      box-sizing: border-box;
    }

    .loading-screen.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    .loading-logo {
      font-family: 'Prata', serif;
      font-size: 2.5rem;
      font-weight: 400;
      letter-spacing: 3px;
      color: #2c2c2c;
      margin-bottom: 2rem;
      animation: fadeInDown 1s ease;
    }

    .loading-spinner {
      position: relative;
      width: 80px;
      height: 80px;
    }

    .loading-spinner::before,
    .loading-spinner::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      border: 2px solid transparent;
      border-top-color: #2c2c2c;
      animation: spin 1.5s linear infinite;
    }

    .loading-spinner::before {
      width: 80px;
      height: 80px;
      top: 0;
      left: 0;
    }

    .loading-spinner::after {
      width: 60px;
      height: 60px;
      top: 10px;
      left: 10px;
      border-top-color: #666;
      animation-duration: 2s;
      animation-direction: reverse;
    }

    .loading-text {
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      font-weight: 300;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #666;
      margin-top: 2rem;
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes pulse {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    /* Mobile responsive */
    @media (max-width: 767.98px) {
      .loading-logo {
        font-size: 2rem;
        letter-spacing: 2px;
      }

      .loading-spinner::before {
        width: 60px;
        height: 60px;
      }

      .loading-spinner::after {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
      }

      .loading-text {
        font-size: 0.8rem;
      }
    }

    @media (max-width: 575.98px) {
      .loading-logo {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
      }

      .loading-spinner::before {
        width: 50px;
        height: 50px;
      }

      .loading-spinner::after {
        width: 38px;
        height: 38px;
        top: 6px;
        left: 6px;
      }
    }