.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: white;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  padding: 0 1rem;
  z-index: 1000;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-sm);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.logo {
  position: absolute;
  left: 20px;
  height: 100%;
  display: flex;
  align-items: center;
  order: 1;
}

.logo img {
  height: 48px;
  width: auto;
  margin-left: 15%;
  transition: var(--transition-fast);
}

.nav-links {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 1.7rem;
  margin-left: auto;
  padding-right: 0;
}

.nav-links > li,
.nav-links > a {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  padding: 0 1.5rem;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links > li > a::after,
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  margin: auto;
  height: 2px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links > li > a:hover::after,
.nav-links > a:hover::after {
  transform: scaleX(1);
}


.mobile-sidebar {
  display: none;
}

.content {
  margin-top: 80px;
}

section {
  padding: var(--section-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.btn::before,
.btn::after {
  content: '';
  position: absolute;
  left: 5%;
  width: 95%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #000000,
    green,
    #ff9900,
    #ff0000,
    #000000
  );
  transform: scaleX(0);
  transition: transform 0.5s ease-out;
  z-index: 1;
}

.btn::before {
  top: -6px;
  transform-origin: right center;
}

.btn::after {
  bottom: -6px;
  transform-origin: left center;
}

.btn:hover {
  color: black;
  background-color: transparent;
  box-shadow: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn:hover::before {
  transform: scaleX(1);
  transition-delay: 0.1s;
}

.btn:hover::after {
  transform: scaleX(1);
  transition-delay: 0.15s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .nav-links {
    gap: clamp(10px, 2vw, 32px); 
  }

  .nav-links a {
    font-size: clamp(15px, 1.3vw, 18px); 
    padding: 0 clamp(8px, 1vw, 16px);
  }

.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.dropdown-content a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--text-medium);
  transition: var(--transition-fast);
  position: relative;
  font-size: clamp(14px, 1.2vw, 18px);
}

.dropdown-content a:hover {
  color: var(--primary-blue);
  background-color: rgba(0, 0, 0, 0.02);
}

.dropdown-content a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 1.5rem;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.dropdown-content a:hover::after {
  width: calc(100% - 3rem);
}

.dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}

.dropdown-active .dropdown-content {
  display: block;
}

.dropdown-active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown .dropbtn {
  font-size: clamp(15px, 1.3vw, 19px);
  padding: 0 clamp(8px, 1vw, 16px);
}


}


@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .menu-toggle {
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    order: 2;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
    background: #1a73e8;
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
    background: #1a73e8;
  }

  .mobile-sidebar {
    display: block !important;
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: white;
    padding: 1rem 0;
    transition: right 0.3s ease-out;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-sidebar.active {
    right: 0;
  }

  .mobile-accordion {
    border-bottom: 1px solid #eee;
  }

  .accordion-btn {
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
  }

  .accordion-content {
    display: none;
    padding-left: 15px;
  }

  .mobile-accordion.active .accordion-icon {
    transform: rotate(45deg);
  }

  .mobile-accordion.active .accordion-content {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .mobile-sidebar a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .mobile-sidebar a:hover {
    background: #f5f5f5;
  }

  .mobile-sidebar a.active {
    color: #1a73e8;
    font-weight: 500;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
