body {
  min-height: 200vh;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #01162e 25%,
    #000000 50%,
    #01162e 75%,
    #000000 100%
  );
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400 !important; /* default weight for body text */
}

.navbar {
  background-color: transparent !important;
  transition: all 0.4s ease !important;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Design tokens / variables used across pages */
:root {
  --bg-gradient-1: #000000;
  --bg-gradient-2: #01162e;
  --accent: #7dc0ff;
  --accent-2: #60a5fa;
  --muted-divider: #5a6c7d;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  --glass-backdrop: blur(8px);
}

/* Shared glass button */
.btn.glass-btn {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  background: var(--glass-bg) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease !important;
}

.btn.glass-btn:hover {
  background: rgba(59, 130, 246, 0.18) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.25);
}

/* Shared small section dividers (used in hero/projects/contact) */
.section-divider,
.projects-divider,
.hero-divider {
  width: 100px;
  height: 4px;
  background: var(--muted-divider);
  border-radius: 2px;
  margin: 0 auto 1.5rem auto;
}

/* Shared card styles */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.navbar-brand {
  color: white !important;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-icons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nav-icons a:link,
.nav-icons a:visited {
  color: white; /* same as default */
  text-decoration: none;
}

.nav-icons a:hover {
  color: #60a5fa; /* hover effect */
}

.email-link:link,
.email-link:visited {
  color: white;
  text-decoration: none;
}

.email-link {
  font-size: 1rem;
  font-weight: 200;
}

/* Hide email below 768px (Bootstrap "md" breakpoint) */
@media (max-width: 768px) {
  .email-link {
    display: none;
  }
}

.dropdown-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.3rem;
  padding: 0.6rem;
  border-radius: 10px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.dropdown-menu {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 0.5rem 0 !important;
  min-width: 180px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.7rem 1.2rem !important;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  font-size: 1rem;
  font-weight: 500;
}

.dropdown-item i {
  width: 20px;
  margin-right: 0.8rem;
  font-size: 1.1rem;
  color: #60a5fa;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.15) !important;
  color: white !important;
}

/* ===== Back to Top Button ===== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(14, 238, 255, 0.15);
  color: #0ef;
  font-size: 18px;
  cursor: pointer;
  display: none; /* hidden until scroll */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  z-index: 999;
}

#backToTop:hover {
  background: rgba(14, 238, 255, 0.35);
  box-shadow: 0 0 15px rgba(14, 238, 255, 0.4);
  transform: translateY(-3px);
}

html {
  scroll-behavior: smooth;
}

/*LOADING*/

/* Slide-down + fade-in animation */
@keyframes slideDownFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden by default */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When element becomes visible */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
