/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body */
body {
 background: rgb(0, 8, 44);
  color: #d9eaff;
  overflow-x: hidden;
  z-index: 0;
}

/* Floating particles */
body::before, body::after {
    z-index: -1;
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0,170,255,0.8) 2px, transparent 3px) 0 0,
              radial-gradient(circle, rgba(0,120,255,0.5) 2px, transparent 3px) 50px 80px,
              radial-gradient(circle, rgba(0,200,255,0.6) 2px, transparent 3px) 120px 200px;
  background-size: 200px 200px;
  animation: floatParticles 18s linear infinite;
  opacity: 0.4;
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-200px) translateX(-200px); }
}

/* Header */
.header {
  text-align: center;
  padding: 70px 20px 40px;
}

.header .title {
  font-size: 52px;
  font-weight: 700;
  color: #bfe7ff;
  text-shadow: 0 0 10px #008cff;
}

.header .subtitle {
  font-size: 20px;
  margin-top: 12px;
  color: #88d0ff;
  text-shadow: 0 0 10px #0077cc;
}
.hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.9s ease;
}


/* Hero */
.hero {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.hero-box {
  max-width: 700px;
  text-align: center;
  background: rgba(0, 51, 102, 0.2);
  padding: 45px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 170, 255, 0.4);
  box-shadow:
      0 0 25px rgba(0, 170, 255, 0.4),
      inset 0 0 20px rgba(0, 140, 255, 0.3);
  animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
  0%   { box-shadow: 0 0 25px rgba(0,170,255,0.35), inset 0 0 20px rgba(0,140,255,0.25); }
  50%  { box-shadow: 0 0 40px rgba(0,170,255,0.55), inset 0 0 30px rgba(0,140,255,0.35); }
  100% { box-shadow: 0 0 25px rgba(0,170,255,0.35), inset 0 0 20px rgba(0,140,255,0.25); }
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #bfe7ff;
  text-shadow: 0 0 10px #008cff;
}

.hero p {
  font-size: 19px;
  line-height: 1.7;
  color: #cfeaff;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 38px;
  background: #00aaff;
  color: #001926;
  text-decoration: none;
  font-size: 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 20px #0099ff;
  transition: 0.25s ease;
}

.btn:hover {
  background: #33c7ff;
  box-shadow: 0 0 30px #00c6ff;
  transform: translateY(-3px);
}

/* BOOK SECTION */
.books {
  padding: 80px 20px;
  text-align: center;
  color: #d9eaff;
}

.books h2 {
  font-size: 42px;
  margin-bottom: 40px;
  text-shadow: 0 0 20px #00c8ff;
  color: #7ddaff;
}

/* BOOK LIST LAYOUT */
.book-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* INDIVIDUAL BOOK CARD */
.book {
  background: rgba(0, 20, 50, 0.6);
  border: 1px solid rgba(0, 140, 255, 0.4);
  border-radius: 15px;
  padding: 25px;
  width: 260px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px #001b33, inset 0 0 20px #003d66;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
   
}

/* HOVER EFFECT */
.book:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px #00aaff, inset 0 0 40px #005f99;
}

/* BOOK IMAGE */
.book-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px #0095ff;
  transition: 0.3s ease;
}

.book-image:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px #00e5ff;
}

/* BOOK TITLE */
.book-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #00b8ff;
}

/* BOOK DESCRIPTION */
.book-desc {
  font-size: 15px;
  color: #b8dfff;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* BUTTON */
.book-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  background: #00eaff;
  box-shadow: 0 0 15px #00d5ff, 0 0 30px #006688 inset;
  transition: 0.3s ease;
}

.book-btn:hover {
  background: #7af2ff;
  box-shadow: 0 0 30px #00f7ff, 0 0 40px #003b5c inset;
}


/* Footer */
footer {
  text-align: center;
  padding: 25px;
  margin-top: 70px;
  font-size: 15px;
  color: #8ec9ff;
  text-shadow: 0 0 10px #0066bb;
}


/* PRODUCT SECTION */
.product {
  max-width: 500px;
  margin: 60px auto;
  padding: 40px 25px;
  background: rgba(0, 30, 60, 0.5); /* semi-transparent neon background */
  border: 1px solid rgba(0, 170, 255, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 
      0 0 25px rgba(0,170,255,0.4),
      inset 0 0 20px rgba(0,140,255,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 
      0 0 45px rgba(0,200,255,0.6),
      inset 0 0 30px rgba(0,160,255,0.4);
}

/* PRODUCT IMAGE */
.product .book-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 0 25px #00aaff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product .book-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px #00e5ff;
}

/* PRODUCT TITLE */
.product h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #bfe7ff;
  text-shadow: 0 0 12px #00aaff;
}

/* PRODUCT DESCRIPTION */
.product p {
  font-size: 16px;
  color: #cfeaff;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* PRODUCT BUTTON */
.product .btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  background: #00aaff;
  color: #001926;
  text-decoration: none;
  box-shadow: 0 0 20px #0099ff;
  transition: 0.3s ease;
}

.product .btn:hover {
  background: #33c7ff;
  box-shadow: 0 0 35px #00c6ff;
  transform: translateY(-3px);
}

/* CONTACT / NETLIFY FORM */
.contact {
  max-width: 500px;
  margin: 80px auto;
  padding: 40px 25px;
  text-align: center;
  background: rgba(0, 30, 60, 0.5);
  border-radius: 20px;
  border: 1px solid rgba(0,170,255,0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,170,255,0.5);
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #bfe7ff;
  text-shadow: 0 0 15px #00aaff;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact input,
.contact textarea {
  background: rgba(0, 10, 25, 0.8);
  border: 1px solid rgba(0,170,255,0.4);
  border-radius: 10px;
  padding: 12px 15px;
  color: #d9eaff;
  font-size: 15px;
  outline: none;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #88cfff;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #00eaff;
  box-shadow: 0 0 12px #00c6ff;
}

.contact button {
  margin-top: 15px;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #00aaff;
  color: #001926;
  box-shadow: 0 0 20px #0099ff;
  transition: 0.3s ease;
}

.contact button:hover {
  background: #33c7ff;
  box-shadow: 0 0 35px #00c6ff;
  transform: translateY(-2px);
}
/* BASE STYLE FOR ALL FORM FIELDS */
input,
textarea {
  background: rgba(0, 10, 25, 0.85);
  border: 1px solid rgba(0,170,255,0.4);
  border-radius: 10px;
  padding: 12px 15px;
  color: #d9eaff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* PLACEHOLDER COLOR */
input::placeholder,
textarea::placeholder {
  color: #88cfff;
}

/* INVALID → RED */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ff3b3b;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.8);
}

/* VALID → GREEN */
input:valid,
textarea:valid {
  border-color: #00ffb3;
  box-shadow: 0 0 12px rgba(0, 255, 179, 0.8);
}

/* FOCUS (neutral neon blue) */
input:focus,
textarea:focus {
  border-color: #00eaff;
  box-shadow: 0 0 15px rgba(0, 230, 255, 0.9);
}
/* FORM LABELS */
label {
  text-align: left;
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #9ad9ff;
  text-shadow: 0 0 6px rgba(0,170,255,0.6);
  display: block;
}

/* Space between fields */
form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/*energy cursor*/
.energy-cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(0,220,255,0.9),
    rgba(0,120,255,0.4),
    transparent 70%);
  box-shadow: 0 0 30px rgba(0,200,255,0.8);
  transform: translate(-50%, -50%);
  z-index: 99999;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
