:root {
  /* 🎨 Color Palette */
  --primary-blue: #2d2dff;
  --dark-blue: #1a1a7a;
  --light-blue: #e6e6ff;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --accent-green: #4CAF50;

  /* 💫 Utility */
  --gradient: linear-gradient(to right, #6a11cb, #2575fc);
  --navbar-gradient: linear-gradient(to right, #4b0ca8, #1c4baf);
--light-primary-blue: #4c6fff; /* Slightly darker than before, still soft */

  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 🔄 Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--light-gray);
  color: var(--dark-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* 🔷 Navigation */


nav {
  background: var(--gradient); /* now using your existing gradient variable */
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}




.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-menu li a:hover {
  background-color: var(--dark-blue);
}

/* 🌟 Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
}

/* 📦 Sections */
.section {
  padding: 2rem 1rem;
  background-color: var(--light-blue);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

/* 🃏 Cards */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
/*card color*/
.card {
  background: linear-gradient(135deg, #dbe5ff, #eef5ff); /* Soft blue, just slightly darker */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  cursor: pointer;
  min-width: 0;
  border: 1px solid #c8d4ff;
}


/*color shade*/




/*color of the problems*/
.card h4 {
  color: var(--light-primary-blue); /* ✅ Now using lighter blue */
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1.1rem;
}


.card p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--primary-blue);
}

/* 📌 Footer */
footer {
  background-color: var(--dark-blue);
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 🧾 Custom Footer Layout */



.custom-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  background: var(--navbar-gradient); /* match the navbar */
  color: white;
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}









.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
}

.footer-text p {
  margin: 0;
  line-height: 1.3;
}

.footer-text a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.8rem;
}

.footer-right {
  text-align: right;
}

.social-icons a {
  margin-left: 8px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.05);
}

/* 📱 Mobile Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: var(--primary-blue);
    width: 100%;
    height: calc(100vh - 70px);
    padding: 2rem 0;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    padding: 1rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-container {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  .card-container {
    grid-template-columns: 1fr;
  }

  .custom-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .footer-right {
    text-align: center;
    margin-top: 0.5rem;
  }
}
/*color change on the button on the increment and the decrement*/
.rev-btn {
  border: none;
  padding: 4px 10px;
  margin-left: 6px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
}

.rev-btn.increment {
  background-color: #4CAF50; /* Green */
  color: white;
}

.rev-btn.increment:hover {
  background-color: #388e3c;
}

.rev-btn.decrement {
  background-color: #f44336; /* Red */
  color: white;
}

.rev-btn.decrement:hover {
  background-color: #c62828;
}
