:root {
  --primary-bg: #ffffff; /* White for main background */
  --primary-text: #0b3981; /* Rich blue for primary text */
  --accent: #0b3981; /* Deep blue for accent elements */
  --secondary-text: #d9d9d9; /* Neutral dark gray for secondary text */
  --hover-accent: #4a78b7; /* Lighter blue for hover effects */
  --hero-bg: #f5f5f5; /* Light gray for hero sections */
  --error-text: #ff4c4c; /* Bright red for errors */
  --card-bg: #ffffff; /* White for cards and containers */
  --border-color: #dddddd; /* Light gray for subtle borders */
  --button-bg: #0b3981; /* Deep blue for buttons */
  --button-hover: #12509b; /* Lighter blue for button hover */
}

* {
  transition: all ease 300ms;
}

/* ==================================================
   Header and Navbar
================================================== */
/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1100px;
  margin: auto;
  position: relative;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.logo {
  margin-left: -20px;
  height: 50px;
  max-width: auto;
  object-fit: contain;
  user-select: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  list-style: none;
}

.navbar.active {
  display: flex;
}

.navbar a {
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.5rem 1.5rem;
  color: var(--primary-text);
  border: 3px solid var(--accent);
  border-radius: 1.2rem;
  cursor: pointer;
  background-color: var(--secondary-text);
  font-weight: 700;
}

.navbar a:hover {
  color: var(--hover-accent);
}

/* Dropdown Menu */
.navbar li {
  position: relative;
}

.dropdown {
  list-style: none;
  display: none;
  position: absolute;
  background-color: var(--hero-bg);
  margin: 0;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown li {
  padding: 0.5rem 1rem;
}

.dropdown a {
  color: var(--primary-text);
}

.dropdown a:hover {
  color: var(--accent);
}

.navbar li:hover .dropdown {
  display: block;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-text);
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle:focus {
  outline: none;
}

/* Blur overlay styles */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 998; /* Place it above the content but below the header */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blur-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Blur effect on main content when overlay is active */
.blur-active .main-content {
  filter: blur(1px);
}

/* Blur effect applied to everything except the header */
.blur-active *:not(header):not(header *) {
  filter: blur(5px); /* Adjust blur intensity */
  pointer-events: none; /* Disable interactions with blurred elements */
}

/* ================================================
   Footer
================================================ */
footer {
  text-align: center;
  font-weight: 700;
  padding: 0.5rem;
  background-color: var(--primary-text); /* Dark background color */
  color: var(--primary-bg); /* Light text color */
  border-top: 1px solid #444; /* Slightly lighter border */
  box-shadow: rgba(0, 0, 0, 0.1) 0px -5px 10px, rgba(0, 0, 0, 0.15) 0px 4px 6px; /* Subtle shadow */
}

footer p {
  font-size: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Reduced gap between icons */
  margin-top: 1rem;
}

.social-links a {
  color: #f2f2f2;
  font-size: 1.5rem; /* Moderate icon size */
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1); /* Slight zoom on hover */
  color: #00aced; /* Default hover color */
}

/* Custom colors for each icon */
.social-links a:hover .fa-telegram-plane {
  color: #0088cc; /* Telegram blue */
}

.social-links a:hover .fa-github {
  color: #333; /* GitHub black */
}

.social-links i {
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover .fa-github {
  color: #333; /* GitHub black */
}

@media (max-width: 768px) {
  .logo {
    height: 50px;
    margin-left: -20px;
    max-width: auto;
    object-fit: contain;
    user-select: none;
  }
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    padding: 0.5rem;
    z-index: 1000;
    margin: 0;
    border: 3px solid var(--accent);
    border-radius: 2rem;
    border-top-right-radius: 0rem;
    margin: 0 10px 0 10px;
  }

  .navbar.active {
    display: flex;
    gap: 0;
    align-items: center;
  }

  .navbar li {
    padding: 0.5rem 1rem;
    margin: 3px;
  }

  .dropdown {
    position: static;
    box-shadow: none;
  }
}
