/* ==========================================================================
   style.css — VOAL Technology
   Matched & optimized to the provided HTML (Voal Solar Bootcamp Index)
   ========================================================================== */

/* -------------------------
   Theme variables
   ------------------------- */
:root{
  --bg: #ffffff;
  --surface: #fbfdfe;
  --text: #0b2233;
  --muted: #6b7280;
  --primary: #0a7d4b;      /* VOAL green */
  --accent: #00c27a;
  --glass: rgba(255,255,255,0.72);
  --shadow: 0 10px 30px rgba(2,6,23,0.06);

  --max-width: 1200px;
  --radius: 12px;
  --gap: 20px;
  --container-pad: 20px;
  --header-height: 72px;
}

/* -------------------------
   Reset & base
   ------------------------- */
* { box-sizing: border-box; }
html,body { height:100%; }
body {
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Poppins", sans-serif;
  color:var(--text);
  background: var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.55;
  scroll-behavior: smooth;
  padding-top: var(--header-height); /* reserve space for fixed header */
}

/* Container helper */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Utility */
.hidden { display:none !important; }

/* -------------------------
   Header / Navigation
   ------------------------- */
header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--header-height);
  z-index: 1200;
  background: rgba(3,7,18,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  height: 100%;
}

.brand { display:flex; align-items:center; gap:12px; }
.logo { height:44px; width:auto; display:block; border-radius:8px; object-fit:cover; }
.brand-name { color:#fff; font-weight:700; font-size:1rem; letter-spacing:0.4px; }

nav ul {
  display:flex;
  gap:10px;
  list-style:none;
  align-items:center;
  margin:0;
  padding:0;
}

nav ul li { margin:0; }
nav ul li a {
  display:inline-block;
  padding:8px 10px;
  color: #e6f7ef;
  text-decoration: none;
  font-weight:600;
  border-radius:8px;
  transition: background .16s ease, transform .12s ease, color .12s ease;
  font-size:0.95rem;
}
nav ul li a:hover { transform: translateY(-2px); color: var(--accent); background: rgba(255,255,255,0.03); }
nav ul li a.active { color: var(--accent); background: rgba(255,255,255,0.03); }

/* Hamburger (mobile) */
.hamburger {
  display:none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 26px;
  cursor: pointer;
  margin-left: 12px;
}
.hamburger span { display:block; height:3px; border-radius:2px; background:#fff; transition: all .28s ease; width: 26px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity:0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

/* Mobile nav open state uses .show (matches JS toggle) */
@media (max-width: 768px) {
  nav ul { flex-direction: column; align-items: flex-start; position: absolute; top: calc(var(--header-height)); right: 0; background: rgba(3,7,18,0.95); width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.28s ease; padding: 0; z-index: 1199; }
  nav ul.show { max-height: 600px; padding: 12px 0; }
  nav ul li { width: 100%; }
  nav ul li a { display: block; width: 100%; padding: 12px 20px; }
  .hamburger { display: flex; }
}

/* -------------------------
   Buttons
   ------------------------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 16px; border-radius:10px; font-weight:700; cursor:pointer; text-decoration:none; border: none; transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; font-size:0.98rem; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(180deg,var(--primary), #08663d); color: #fff; box-shadow: 0 8px 26px rgba(10,125,75,0.12); }
.btn-primary:hover { opacity:0.95; transform: translateY(-3px); }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.03); }

.btn-waitlist { background-color: #10b981 !important; color: #fff !important; }
.btn-waitlist:hover { background-color: #0e9e70 !important; transform: translateY(-2px); }

/* -------------------------
   HERO
   ------------------------- */
#hero { position: relative; min-height: 72vh; display:flex; align-items:center; justify-content:center; padding: 60px 0 80px; overflow:hidden; background: linear-gradient(180deg, rgba(6,18,30,0.65), rgba(6,18,30,0.55)); color: #fff; }
.hero-media { position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero-video { width:100%; height:100%; object-fit:cover; opacity:0.18; transform: scale(1.02); pointer-events: none; }
.hero-overlay { position: relative; z-index: 2; width: 100%; max-width: 980px; padding: 36px; border-radius: 14px; text-align:center; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); backdrop-filter: blur(6px); box-shadow: var(--shadow); }
.hero-overlay h1 { margin:0 0 12px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: var(--accent); line-height:1.03; font-weight:800; }
.hero-sub { margin:0 0 12px; color: #e9fff1; font-weight:700; font-size:1rem; }
.hero-info p { margin:0 0 14px; color: rgba(255,255,255,0.95); font-size:0.98rem; }
.hero-badges { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.value-badge { background: rgba(255,255,255,0.06); padding:8px 12px; border-radius:999px; font-weight:700; color:#eafef3; font-size:0.92rem; }
.hero-cta { display:flex; gap:12px; justify-content:center; margin-top:14px; flex-wrap:wrap; }

/* -------------------------
   Event Banner
   ------------------------- */
.event-banner { padding: 48px 0; background: linear-gradient(180deg, #f7fcfb 0%, #f0fbfa 100%); }
.event-inner { display:flex; gap: 24px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.event-left { flex: 0 0 440px; max-width:440px; }
.event-art { width:100%; height:auto; border-radius: var(--radius); display:block; object-fit: cover; box-shadow: var(--shadow); background: #fff; padding:6px; }
.event-right { flex:1; min-width: 260px; }
.event-right h2 { margin-top:0; color: var(--text); font-size:1.4rem; }
.event-venue { color: var(--primary); font-weight:700; margin:8px 0; }
.event-quick { color:#333; margin-bottom:12px; }
.event-bullets { margin-left:18px; margin-bottom:14px; color:#333; }
.event-actions { display:flex; gap:12px; flex-wrap:wrap; }
.event-actions .btn { background-color: var(--primary); color: #fff; }

/* -------------------------
   Modules
   ------------------------- */
.modules { position: relative; width: 100%; min-height: 60vh; color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.modules-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.modules-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.55); z-index: 1; }
.modules-wrap { position: relative; z-index: 2; max-width: 1200px; text-align: center; padding: 24px; }
.modules h2 { font-size: 2rem; margin-bottom: 12px; font-weight: 700; color: #f59e0b; }
.modules .intro { font-size: 1.05rem; margin-bottom: 28px; color: #e5e7eb; }
.modules-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.module-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 20px; text-align: left; backdrop-filter: blur(6px); transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease; }
.module-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.12); border-color: #f59e0b; }
.module-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #10b981; }
.module-card p { font-size: 0.98rem; line-height: 1.5; color: #f3f4f6; }

/* -------------------------
   Instructor
   ------------------------- */
.instructor { padding:64px 0; background: var(--surface); }
.instructor-wrap { display:flex; gap:30px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.instructor-photo img { width:320px; max-width:100%; border-radius:12px; box-shadow: var(--shadow); display:block; }
.instructor-content { flex:1; min-width:260px; }
.instructor-content h2 { margin:0 0 8px; color:var(--text); font-size:1.4rem; }
.instructor-content .lead { color:var(--primary); font-weight:700; margin-bottom:12px; }
.story-text p { color:#333; margin-bottom:10px; }
blockquote.quote { margin:12px 0 0; padding:12px 14px; border-left:4px solid var(--primary); background:#f2fff6; border-radius:8px; color:var(--text); font-style:italic; }

/* -------------------------
   Story
   ------------------------- */
.story { padding:56px 0; background:#fffaf7; }
.story-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; margin-top:18px; }
.story-card { background:#fff; padding:20px; border-radius:10px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); transition: transform .18s ease; }
.story-card:hover { transform: translateY(-6px); }

/* -------------------------
   Testimonials
   ------------------------- */
#testimonials { padding:56px 0; background:#f7fcff; }
.testimonial-texts { max-width:900px; margin:0 auto; display:flex; flex-direction:column; gap:18px; padding:0 12px; }
.testimonial-card { padding:18px; background:#fff; border-radius:12px; box-shadow: 0 10px 28px rgba(0,0,0,0.06); }
.testimonial-card h4 { margin-top:10px; color:var(--primary); font-weight:700; }

/* -------------------------
   Upcoming Trainings
   ------------------------- */
#upcoming-trainings { padding: 4rem 1rem; background: #f9fafb; }
.training-slide { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; padding: 2rem 1rem; }
.training-left { flex: 1; min-width: 300px; }
.training-left img { width: 100%; height: auto; max-height: 400px; object-fit: contain; border-radius: 16px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); background: #fff; }
.training-right { flex: 1; min-width: 300px; color: #111; background: rgba(255,255,255,0.95); padding: 1.5rem; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.training-right h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #0b2233; }



/* -------------------------
   Gallery
   ------------------------- */
#gallery { padding:56px 0; background: #fff; }
.gallery-grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery-item img { width:100%; height:220px; object-fit:cover; border-radius:10px; box-shadow: 0 8px 22px rgba(0,0,0,0.07); transition: transform .22s ease, filter .22s ease; }
.gallery-item img:hover { transform: scale(1.03); filter: saturate(1.05); }

/* -------------------------
   Fees / Pricing
   ------------------------- */
#program-fee, #pricing { padding:56px 0; background:#f9fbf9; text-align:center; }
.fee-card, .pricing-card { max-width:780px; margin: 16px auto 0; background:#fff; padding:22px; border-radius:12px; box-shadow: var(--shadow); }
.strike { color:#e74c3c; text-decoration:line-through; margin-left:8px; }
.highlight { color:var(--primary); font-weight:800; }
.pricing-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; margin-top:18px; padding:0 12px; }
.pricing-card { padding:20px; border-radius:12px; background:#fff; box-shadow: var(--shadow); text-align:left; }
.pricing-card .price { font-size:1.4rem; color:var(--primary); font-weight:800; display:block; margin-top:12px; }

/* -------------------------
   FAQ
   ------------------------- */
#faqs { padding:56px 0; background:#fff; }
.faq-grid { display:grid; gap:18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top:18px; }
.faq-card { background:#fff; border-radius:12px; padding:18px; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

/* -------------------------
   Donation
   ------------------------- */
#donation { padding: 60px 0; background: linear-gradient(180deg, #f0fdf4 0%, #d9f0e6 100%); text-align: center; color: #111; }
.donation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 25px; justify-items: center; }
.donation-card { background: rgba(255, 255, 255, 0.3); padding: 25px 20px; border-radius: 16px; cursor: pointer; transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; text-align: center; box-shadow: 0 8px 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.donation-card i { font-size: 2rem; color: var(--primary); transition: transform 0.3s ease, color 0.3s ease; }
.donation-card strong { font-size: 1.3rem; color: #111; }
.donation-card span { font-size: 0.95rem; color: #555; }
.donation-card:hover { transform: translateY(-8px) scale(1.03); background: linear-gradient(180deg, var(--primary), #065b38); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.donation-card:hover i { color: #fff; transform: rotate(10deg) scale(1.2); }

/* -------------------------
   Registration
   ------------------------- */
#register { padding:64px 0; background:#e9f7ee; }
#regForm { max-width:760px; margin: 0 auto; }
.form-group { margin-bottom:12px; display:flex; flex-direction:column; gap:6px; }
.form-group label { font-weight:700; color:var(--text); font-size:0.95rem; }
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"], .form-group select { width:100%; padding:12px 14px; border-radius:8px; border:1px solid #d6e6df; background: #fff; outline: none; transition: box-shadow .12s ease, border-color .12s ease; font-size:0.95rem; color:var(--text); }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 6px 20px rgba(10,125,75,0.08); }
#regForm .btn-primary { width:100%; padding:12px 16px; font-size:1rem; border-radius:10px; }
#formMessage { display:block; margin-top:12px; font-weight:700; }

/* -------------------------
   Social
   ------------------------- */
#social { padding:56px 0; background:#fff; }
.social-inner { text-align:center; }
.social-links { display:flex; gap:12px; justify-content:center; align-items:center; }
.social-links a { color: var(--primary); font-weight:700; text-decoration:none; }

/* -------------------------
   Footer
   ------------------------- */
.footer { padding:40px 0 20px; background:#031018; color:#fff; }
.footer-container { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:20px; align-items:start; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--container-pad); }
.footer-logo-img { width: 120px; border-radius:8px; }
.footer-bottom { text-align:center; margin-top:20px; color: rgba(255,255,255,0.7); }

/* -------------------------
   WhatsApp float
   ------------------------- */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 1300; background: linear-gradient(180deg, var(--primary), #065b38); color: #fff; width:56px; height:56px; border-radius: 50%; display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 30px rgba(2,6,23,0.18); text-decoration:none; }
.whatsapp-float i { font-size: 1.3rem; }

/* -------------------------
   Modal (uses .open class in HTML/JS)
   ------------------------- */
.modal { display: none; position: fixed; z-index: 1400; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal.open { display: flex; }
.modal-content { background: #fff; padding: 1.5rem; border-radius: 12px; max-width: 520px; width: 95%; position: relative; }
.modal .close { position: absolute; right: 14px; top: 10px; cursor: pointer; font-size: 20px; }
.modal-content input { width: 100%; padding: 10px; margin: 8px 0; border-radius: 8px; border: 1px solid #ddd; }

/* -------------------------
   Small responsive tweaks
   ------------------------- */
@media (max-width: 992px) {
  .event-inner { flex-direction: column; }
  .instructor-wrap { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-overlay { padding: 20px; border-radius: 10px; }
  .modules-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 180px; }
}

/* -------------------------
   Minor utility helpers
   ------------------------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }

/* ==========================
   Upcoming Trainings Styling
   ========================== */
#upcoming-trainings {
  background: var(--surface);
  padding: 80px 7%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#upcoming-trainings h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 2.5rem;
  font-weight: 700;
}

.training-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.training-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 400px;
  text-align: left;
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.8s ease-out;
}

.training-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.training-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.training-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.training-card .join-waitlist {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 50px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.training-card .join-waitlist:hover {
  background: #0b2233;
  transform: scale(1.05);
}

/* subtle float animation on hover */
.training-card:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}


/* ===============================
   FOOTER STYLES — VOAL TECHNOLOGY
   =============================== */

.footer {
  background: linear-gradient(135deg, #031b4e, #062f73);
  color: #f5f7fa;
  padding: 60px 0 20px;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background: #f0a500;
  left: 0;
  bottom: -6px;
  border-radius: 4px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #dce3ef;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: #f0a500;
  padding-left: 5px;
}

.footer-contact p,
.footer-logo p {
  color: #e0e6f3;
  margin: 6px 0;
}

.footer-logo-img {
  width: 130px;
  margin-bottom: 10px;
  border-radius: 10px;
}

/* Footer Social Icons */
.footer-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-icons a {
  color: #fff;
  font-size: 22px;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  color: #f0a500;
  transform: translateY(-5px) scale(1.1);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  font-size: 14px;
  color: #bfc8d8;
}

/* Footer Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  animation: fadeInUp 1.2s ease-in-out;
}

/* -----------------------------------
   FOOTER ENHANCEMENTS — Animation Pack
   ----------------------------------- */

/* Subtle wave-style float animation when in view */
@keyframes waveRise {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.footer.reveal {
  animation: waveRise 1.2s ease-out forwards;
}

/* Animated gradient glow for icons */
.footer-icons a {
  position: relative;
  overflow: hidden;
}

.footer-icons a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(240,165,0,0.5), rgba(255,255,255,0.1));
  transition: all 0.5s ease;
}

.footer-icons a:hover::before {
  left: 100%;
}

/* -----------------------------------
   FOOTER ICONS — Continuous Soft Glow
   ----------------------------------- */

@keyframes softGlow {
  0% {
    text-shadow:
      0 0 5px rgba(255, 204, 102, 0.4),
      0 0 10px rgba(255, 204, 102, 0.3),
      0 0 15px rgba(255, 204, 102, 0.2);
    transform: scale(1);
  }
  50% {
    text-shadow:
      0 0 8px rgba(255, 204, 102, 0.8),
      0 0 20px rgba(255, 204, 102, 0.6),
      0 0 30px rgba(255, 204, 102, 0.4);
    transform: scale(1.05);
  }
  100% {
    text-shadow:
      0 0 5px rgba(255, 204, 102, 0.4),
      0 0 10px rgba(255, 204, 102, 0.3),
      0 0 15px rgba(255, 204, 102, 0.2);
    transform: scale(1);
  }
}

/* Make icons glow gently when idle */
.footer-icons a {
  color: #fff;
  animation: softGlow 3s ease-in-out infinite alternate;
  display: inline-block;
  filter: drop-shadow(0 0 2px rgba(255, 204, 102, 0.3));
}

/* Stronger glow when hovered */
.footer-icons a:hover {
  animation: none;
  color: #f0a500;
  text-shadow:
    0 0 10px rgba(240,165,0,1),
    0 0 25px rgba(240,165,0,0.8),
    0 0 40px rgba(240,165,0,0.6);
  transform: translateY(-6px) scale(1.15);
}

/* ===============================
   CERTIFICATE SECTION
   =============================== */
.certificate-section {
  background: linear-gradient(120deg, #f5f7fa, #e2ecf8);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.certificate-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(240,165,0,0.1), transparent 70%);
  animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

.certificate-section .section-title {
  font-size: 2.2rem;
  color: #031b4e;
  margin-bottom: 10px;
}

.certificate-section .section-subtitle {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #334155;
  font-size: 1rem;
}

.certificate-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 900px;
  margin: auto;
  animation: fadeUp 1.2s ease-in-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.certificate-img {
  width: 320px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(3,27,78,0.2);
}

.certificate-info h3 {
  color: #031b4e;
  font-weight: 600;
  margin-bottom: 10px;
}

.certificate-info p {
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn.btn-primary {
  background: #f0a500;
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn.btn-primary:hover {
  background: #031b4e;
  transform: scale(1.05);
}

.certificate-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(240,165,0,0.1), transparent 70%);
  animation: pulseGlow 6s infinite alternate ease-in-out;
  z-index: 0;            /* ✅ send glow layer behind */
  pointer-events: none;  /* ✅ don’t block clicks */
}

.certificate-section .container,
.certificate-card {
  position: relative;
  z-index: 1;  /* ✅ bring content (including button) above the glow */
}

.certificate-card a.btn {
  position: relative;
  z-index: 2;  /* ✅ ensure the link stays clickable */
}

/* -------------------------
   Back to Top Button
-------------------------- */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: linear-gradient(135deg, #1e90ff, #0b2233);
  color: #fff;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.6);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 10000;
}

/* Visible state */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  animation: pulseGlow 2s infinite;
}

/* Hover effect */
#backToTop:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
}

/* Glow pulse animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(30,144,255,0.5); }
  50% { box-shadow: 0 0 25px rgba(30,144,255,0.9); }
  100% { box-shadow: 0 0 10px rgba(30,144,255,0.5); }
}

/* End of file */
