body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #0b0f19, #020617);
  color: #f1f5f9;
}

/* Header */
.main-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}
.logo {
  display: flex; align-items: center; gap: 10px;
}
.logo img {
  width: 35px; height: 35px;
}
.logo h2 {
  color: #5364f0;
  font-size: 1.3rem;
}

/* Overall Navbar Styling */
nav {
  background: linear-gradient(90deg, #111827, #1e293b); /* dark gradient background */
  padding: 16px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 2px solid #3b82f6; /* soft blue accent border */
  display: flex;
  justify-content: center;
}

/* Navbar Links Layout */
nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links Style */
nav ul li a {
  text-decoration: none;
  color: #f8fafc;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Remove Default Underline + Add Custom Hover Effect */
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #60a5fa; /* bright blue underline */
  transition: width 0.3s ease;
}

/* Hover Effects */
nav ul li a:hover {
  color: #93c5fd;
  transform: translateY(-2px);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Active Link */
nav ul li a.active {
  color: #bfdbfe;
}

nav ul li a.active::after {
  width: 100%;
}


.login-btn {
  border: 1px solid #5364f0;
  background: transparent;
  color: #5364f0;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.3s;
}
.login-btn:hover {
  background: #5364f0;
  color: #0b0f19;
}

.hero {
  text-align: center;
  margin-top: -5px;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero h1 span {
  color: #5364f0;
}
.hero p {
  color: #94a3b8;
  margin-top: 8px;
}
.search-box {
  margin-top: 30px;
  width: 60%;
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 0 10px rgba(0,255,240,0.2);
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}
.tabs button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}
.tabs button.active,
.tabs button:hover {
  color: #94a3b8;
  border-color: #5364f0;
}

/* Language Cards */
.languages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  padding: 0 10%;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  text-align: center;
  padding: 24px;
  transition: 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(39, 7, 141, 0.3);
}
.card img {
  width: 48px;
  height: 48px;
}
.card h3 {
  color: #5364f0;
  margin-top: 12px;
}

/* Footer */
footer {
  text-align: center;
  margin: 50px 0 20px;
  color: #94a3b8;
}
footer a {
  color: #5364f0;
  text-decoration: none;
}
