:root {
  --primary: #1E3A8A;   /* Royal Blue */
  --secondary: #10B981; /* Emerald */
  --accent: #FACC15;    /* Gold */
  --dark: #0F172A;      /* Midnight Black */
  --light: #F8FAFC;
  --card-bg: #1E293B;
  --gradient: linear-gradient(135deg, #1E3A8A, #10B981);
}

/* Body */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: #E5E7EB;
  padding: 12px 6%;
}

/* Headings */
h1, h2, h3 {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  padding: 15px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
}

nav a {
  color: #E5E7EB;
  margin-left: 25px;
  text-decoration: none;
  transition: 0.3s;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: var(--gradient);
  color: white;
}

.hero h2 {
  font-size: 48px;
  font-weight: 700;
}

.hero p {
  color: #F8FAFC;
  font-size: 18px;
}

/* Buttons */
/* Base button style */
.btn {
  position: relative;
  overflow: hidden; /* keeps ripple inside */
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

/* Ripple element */
.btn::after {
  content: "";
  position: absolute;
  background: rgba(250, 204, 21, 0.4); /* golden ripple */
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Trigger ripple on click */
.btn:active::after {
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.6s ease, opacity 0.8s ease;
}

/* Hover effect (applies to all buttons) */
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
}

/* Primary button */
.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), #facc15);
}

/* Secondary button */
.btn-secondary {
  background: #374151; /* dark gray */
  color: #fff;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #374151, #6b7280);
}

/* Cards */
/* Cards container */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  color: #E5E7EB;
  width: 100%;
  max-width: 320px;
}

.card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 50px rgba(250, 204, 21, 0.4); /* golden glow */
  border: 1px solid var(--accent);
}


/* Highlight Box */
.highlight {
  margin-top: 25px;
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-left: 4px solid var(--accent);
  color: #E5E7EB;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.highlight strong {
  color: var(--accent);
  font-size: 18px;
}

/* Footer */
footer {
  background: #020617;
  padding: 25px;
  text-align: center;
  color: #9CA3AF;
  border-top: 1px solid rgba(250, 204, 21, 0.2);
}

/* ===== FADE-IN ANIMATION WITH SCALE ===== */
@keyframes fadeInUpScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUpScale 0.8s ease forwards;
}

/* Staggered delays for cards */
.card.fade-in:nth-child(1) { animation-delay: 0.1s; }
.card.fade-in:nth-child(2) { animation-delay: 0.2s; }
.card.fade-in:nth-child(3) { animation-delay: 0.3s; }
.card.fade-in:nth-child(4) { animation-delay: 0.4s; }
.card.fade-in:nth-child(5) { animation-delay: 0.5s; }
.card.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Staggered delays for section content */
.section.fade-in h2 { animation-delay: 0.1s; }
.section.fade-in p { animation-delay: 0.2s; }
.section.fade-in p:nth-of-type(2) { animation-delay: 0.3s; }
.section.fade-in p:nth-of-type(3) { animation-delay: 0.4s; }

/* ===== SECTION BACKGROUND GRADIENT ANIMATION ===== */
.section {
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  padding: 60px 20px;
  border-radius: 20px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 992px) {
  .hero h2 {
    font-size: 36px;
  }

  .section {
    padding: 60px 5%;
  }

  .card {
    width: 45%;
  }
}

/* Mobile */
@media (max-width: 600px) {

  /* Header */
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  /* Hero */
  .hero {
    padding: 80px 15px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero p {
    font-size: 14px;
  }

  /* Cards */
  .card {
    width: 100%;
  }

  /* Section */
  .section {
    padding: 50px 20px;
  }
}
