#loading-screen {
    opacity: 1;
    transition: opacity 0.5s ease;
}
  #loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* === Base Styles === */
body {
  margin: 0;
  background-image: url(../images/background.png);
  background-attachment: fixed;
  position: relative; /* Added for proper stacking context */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  z-index: -1; 
}

/* Add this new pseudo-element for the dim effect */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(71, 71, 71, 0.13); /* Adjust the alpha value (0.5) for darkness level */
  z-index: -1;
}
/* User Navigation Container */
.d-flex.gap-2.align-items-center {
  gap: 1rem !important; /* Increased gap for better spacing */
  position: relative;
  z-index: 1000;
}

/* Post Job Button - Enhanced */
.btn.post-job-btn {
  background-color: #2e7d32;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.btn.post-job-btn:hover {
  background-color: #1b5e20;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
  color: white;
}

.btn.post-job-btn:active {
  transform: translateY(0);
}

/* User Dropdown - Modern Styling */
.btn.user-dropdown-btn {
  border: 1px solid rgba(46, 125, 50, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: white;
  color: #333;
}

.btn.user-dropdown-btn:hover {
  background-color: #00b7ff;
  border-color: #00b7ff;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #1100ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Post Job Button */
.post-job-btn {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  border: none;
  color: white;
  font-weight: 600;
  margin-left: 10px;
}
.post-job-btn:hover {
  background: linear-gradient(135deg, #434190, #7b83eb);
  color: white;
  text-decoration: none
}


/* Dropdown Menu - Modern */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 200px;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0.15rem 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background-color: #f0fff4;
  color: #2e7d32;
}

.dropdown-divider {
  border-color: rgba(46, 125, 50, 0.1);
}

/* Login/Signup Buttons - Mobile */
.d-md-none .btn {
  border-radius: 8px;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.d-md-none .btn-outline-primary {
  color: #00b7ff;
}

.d-md-none .btn-outline-primary:hover {
  background-color: #00b7ff;
}

.d-md-none .btn-primary {
  background-color: #0011ff2c;
  border-color: #0804ff;
}

.d-md-none .btn-primary:hover {
  background-color: #00b7ff;
}

/* Login/Signup Buttons - Desktop */
.d-none.d-md-flex .btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.d-none.d-md-flex .btn-outline-primary {
  border-color: #00b7ff;
  color: rgb(0, 174, 255);
}

.d-none.d-md-flex .btn-outline-primary:hover {
  background-color: #00b7ff;
  color: white;
}

.d-none.d-md-flex .btn-primary {
  background-color: #00b7ff;
  border-color:#00b7ff;
}

.d-none.d-md-flex .btn-primary:hover {
  background-color: #00d9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 125, 50, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .d-flex.gap-2.align-items-center {
      gap: 0.75rem !important;
  }
  
  .btn.post-job-btn {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
  }
  
  .btn.user-dropdown-btn {
      padding: 0.5rem 0.75rem;
  }
  
  .user-avatar {
      width: 28px;
      height: 28px;
      font-size: 0.8rem;
  }
}

/* PROFILE ICON */
.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .profile-icon:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.burger-btn {
    border: none;
    background: none;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out;
  }
  
  
  .burger-btn:hover {
    background-color: #999999;
    cursor: pointer;
  }

/* === Responsive Grid === */
@media (max-width: 992px) {
    .job-cards {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .job-cards {
      grid-template-columns: 1fr;
    }
  
    .right-section {
      display: none;
    }
  
    .burger {
      display: flex;
    }
}

.glass-box {
  background: rgba(0, 153, 255, 0.459); /* Blue glass tone */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  max-width: 800px;
  width: 100%;
  color: black;
}
.glass-box h2,
.glass-box p {
  color:black;
}