/* --- Global Base & Animated Gradient --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f5f7fa;
  overflow-x: hidden;
}

/* --- Smooth Fade-In for Sections --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Header & Navigation --- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}
header .logo img {
  height: 2.5rem;
  transition: transform 0.3s ease;
}
header .logo img:hover {
  transform: scale(1.1);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}
nav a:hover {
  background: rgba(100, 95, 245, 0.1);
  transform: translateY(-2px);
}

/* --- Main Container --- */
main {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
section {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }

/* --- Typography & Lists --- */
h1, h2, h3, h4 {
  margin-bottom: 1rem;
  color: #1f2937;
}
p, ul, ol, dl {
  color: #4b5563;
  line-height: 1.75;
}
ul, ol {
  padding-left: 1.25rem;
}
ul li, ol li, dl dt, dl dd {
  margin-bottom: 0.75rem;
}

/* --- Button Styles --- */
.btn {
  display: inline-block;
  background: linear-gradient(45deg, #6c4ff5, #3079ff);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(48,121,255,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(48,121,255,0.4);
}

/* --- Grid Utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 2rem; }

/* --- Card Components --- */
.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}

/* --- Images --- */
img {
  max-width: 100%;
  border-radius: 1rem;
  display: block;
  margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
footer p {
  color: #6b7280;
  margin: 0;
}
