/* Nav bar */
.navbar { 
  position: sticky; 
  width: auto;
  color: white;
  z-index: 1000; 
}

.navbar::after { 
  content: "";
  position: absolute;
  
  left: 0;
  bottom: 0;

  width: 100%;
  height: 3px; 

  background: linear-gradient(135deg, #2e2e2e 0%, #fcefef 100%);
  border-radius: 3px;
}

.navbar-container {
  padding-bottom: 15px; 
}

.social-links {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 7px; 
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  margin-left: 20px;
  font-weight: bold;

  position: relative;
  margin-left: 0; 
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(207, 201, 181, 0.2); 
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 0;
}

.social-links a:hover::before {
  width: 200%;
  height: 200%;
}

.social-links a:hover {
  color: #000000;
  text-decoration: none;
  box-shadow: 0 4px 15px rgb(255, 255, 255); 
  transform: translateY(-2px) scale(1.05); 
  z-index: 1;
}

.social-links a i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.social-links a:hover i {
  transform: rotate(10deg) scale(1.2);
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2e2e2e 0%, #fcefef 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.social-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:hover, nav a.active {
  color: #58a6ff;
  text-decoration: underline;
}

/* DROPDOWN MENU  */
.dropdown {
  position: absolute;
  display: inline-block;
  z-index: 10001;
}

.dropbtn {
  background-color: transparent;
  color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 15px;
  transition: all 0.3s;
  border-radius: 8px;
  position: sticky;
  overflow: hidden;
}

.dropbtn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(207, 201, 181, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 0;
}

.dropbtn:hover {
  color: #000000;
  box-shadow: 0 4px 15px rgb(255, 255, 255);
  transform: translateY(-2px) scale(1.05);
  z-index: 1;
}

.dropbtn:hover::before {
  width: 200%;
  height: 200%;
}

.menu-text {
  display: inline;
}

.dropdown.active { 
  display: block;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(1);
  pointer-events: auto;

  box-shadow: 0 4px 20px rgba(220, 200, 255, 0.3);
}

.dropdown-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #2e2e2e 0%, #fcefef 100%);
}

.dropbtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2e2e2e 0%, #fcefef 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.dropbtn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* DROPDOWN PANEL */
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background: #0d0d0d;
  min-width: 180px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(220, 200, 255, 0.3);
  border: 1px solid #2e2e2e;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.active .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* STYLING FOR MENU ITEMS */
.dropdown-content a {
  display: block;
  color: white;
  padding: 12px 15px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

/* ripple effect for menu items */
.dropdown-content a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(207, 201, 181, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 0;
}

.dropdown-content a:hover::before {
  width: 200%;
  height: 200%;
}

.dropdown-content a:hover {
  color: #000;
  transform: translateX(3px);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #2e2e2e 0%, #fcefef 100%);
}
