:root {
  --primary: #6200ea;
  --primary-light: #f3e5f5;
  --secondary: #03dac6;
  --surface: #ffffff;
  --background: #f5f5f5;
  --on-primary: #ffffff;
  --on-secondary: #000000;
  --on-surface: #000000;
  --error: #b00020;
  --success: #00c853;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--background);
  color: #333333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7c4dff 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Cards */
.language-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.language-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

.language-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 1rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Blog Cards */
.blog-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.blog-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features */
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c4dff 100%);
  color: white;
}

/* Buttons */
.btn {
  border-radius: 28px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #4a00c7;
  border-color: #4a00c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-light {
  background-color: white;
  color: var(--primary);
  border: none;
}

.btn-light:hover {
  background-color: #f8f9fa;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  border-radius: 16px;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.section-title.text-start:after {
  left: 0;
  transform: none;
}

/* Footer */
footer {
  background-color: #2e2e2e;
  color: white;
  padding: 3rem 0 1.5rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

footer a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* Content Section */
.content-section {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.5rem 0;
  }

  .display-4 {
    font-size: 2.2rem;
  }

  section {
    padding: 3rem 0;
  }

  .content-section {
    padding: 1.5rem;
  }
}
/* Back to Top Button Styling */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056d2);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

/* When visible */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover effect */
.back-to-top:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #0056d2, #003f9a);
}
