* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

span { color: #2563eb; }

body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.6;

  /* NEW: smooth page entrance */
  animation: pageLoad 0.8s ease-in-out;
}

/* WRAPPER */
.pageWrapper {
  max-width: 2800px;
  margin: 5px auto;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;

  /* NEW */
  animation: fadeUp 1s ease both;
  transition: transform 0.3s ease;
}

.pageWrapper:hover {
  transform: translateY(-2px);
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;

  /* NEW */
  animation: fadeDown 1s ease both;
}

.logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 10px;

  /* NEW */
  animation: floatLogo 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.08) rotate(2deg);
}

.logo h1 {
  font-size: 56px;
  font-family: Georgia, serif;

  /* NEW */
  animation: fadeUp 1.2s ease both;
}

/* NAV */
.navLinks {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px;
  text-align: center;

  /* NEW */
  animation: slideDown 0.8s ease both;
}

.navLinks ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navLinks a {
  text-decoration: none;
  color: #2563eb;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);

  /* NEW */
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.navLinks a:hover {
  color: white;
  background: rgba(37,99,235,0.2);
  transform: translateY(-2px) scale(1.05);
}

/* CONTENT */
.content, .image, .footerBox {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;

  /* NEW */
  animation: fadeUp 1s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover,
.image:hover,
.footerBox:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* CARDS */
.imageRow, .grid5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;

  /* NEW */
  animation: fadeUp 1.2s ease both;
}

.imgCard, .cardBox {
  width: 180px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  text-align: center;

  /* NEW */
  transition: all 0.3s ease;
  transform-origin: center;
}

.imgCard:hover, .cardBox:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* FOOTER */
.footerBox h3 {
  color: #2563eb;
  font-size: 32px;
  font-family: Georgia, serif;

  /* NEW */
  animation: glowText 2s ease-in-out infinite alternate;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo h1 { font-size: 28px; }
  .imgCard, .cardBox { width: 100%; }
}

/* ================= KEYFRAMES (NEW SECTION) ================= */

@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes glowText {
  from { text-shadow: 0 0 5px rgba(37,99,235,0.3); }
  to { text-shadow: 0 0 15px rgba(37,99,235,0.8); }
}


/* ================= JS ANIMATION SUPPORT ================= */

/* hidden before scroll reveal */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* shown when in view */
.show {
  opacity: 1;
  transform: translateY(0);
}

/* active nav link */
.navLinks a.active {
  background: rgba(37,99,235,0.35);
  color: #fff;
}

/* ripple effect */
a, .cardBox {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(20);
    opacity: 0;
  }
}

/* page loaded state */
body.loaded {
  opacity: 1;
}