/* =========================================================
   THE HELPING HEROS – CLEAN STABLE REDESIGN
   ========================================================= */

/* ================= ROOT ================= */
:root {
  --royal: #1e3cff;
  --royal-dark: #1428b8;
  --gold: #ffd700;
  --text-light: #eef1ff;
  --text-dark: #0d1b2a;
}

/* ================= GLOBAL ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;

  color: var(--text-light);
  padding-top: 90px; /* required for fixed header */
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,215,0,0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, #1e3cff 0%, #1428b8 100%);
}

/* ================= HEADER ================= */
.thh-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.02); /* transparent look */
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); /* visible even before scroll */
  transition: all 0.35s ease;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.thh-header.scrolled {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Header inner layout */
.thh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}
.thh-links {
    display: flex;
    align-items: center;      /* 👈 KEY FIX */
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.thh-links li {
    display: flex;
    align-items: center;      /* 👈 ensures text + icon align */
}

.thh-links li a {
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;           /* prevents vertical drift */
    font-weight: 600;
}

/* Brand */
.thh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Georgia, serif;
  padding: 6px 08px;
}

.thh-brand img {
  width: 42px;
}

.thh-brand span {
  font-size: 14px;
  letter-spacing: 1px;
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Menu container */
.thh-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Links */
.thh-links,
.thh-actions {
  display: flex;
  list-style: none;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.thh-links a,
.thh-actions a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Scroll color switch */
.thh-header.scrolled .thh-links a,
.thh-header.scrolled .thh-actions a,
.thh-header.scrolled .thh-brand span {
  color: var(--text-dark);
}

/* Button */
.edit-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 18px;
  color: white;
  transition: background 0.3s ease, color 0.3s ease;
}

.thh-header.scrolled .edit-btn {
  background: #1976d2;
  color: #ffffff;
}

.edit-btn:hover {
  background: rgba(255,255,255,0.35);
}

/* Toggle (mobile) */
.thh-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ================= MOBILE HEADER ================= */
@media (max-width: 991px) {

  .thh-toggle {
    display: block;
  }

  .thh-menu {
    position: fixed;
    top: 100%; /* attaches to header */
    left: 0;
    width: 100%;
    height: calc(100vh - 180px);

    background: linear-gradient(160deg, #1e3cff, #1428b8);
    flex-direction: column;
    justify-content: center;

    transform: translateY(-120%);
    transition: transform 0.4s ease;
    border-radius: 24px;
    z-index: 2000;
    
    border-top: 1px solid rgba(255, 215, 0, 0.50);
    border-bottom: 1px solid rgba(255, 215, 0, 0.50);


  }
  .thh-menu.menu-scrolled {
    background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  }

  .thh-menu.open {
    transform: translateY(0);
  }

  .thh-links,
  .thh-actions {
    flex-direction: column;
    align-items: center;
  }

  .thh-links a,
  .thh-actions a {
    font-size: 18px;
  }
}

/* Toggle color switch on scroll */
.thh-header.scrolled .thh-toggle {
  color: #0d1b2a; /* dark blue */
}
/* Golden glow hover for menu links */
.thh-links a,
.thh-actions a {
  position: relative;
}

.thh-links a:hover,
.thh-actions a:hover {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}
/* Blue underline animation */
.thh-links a::after,
.thh-actions a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #1e3cff;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.thh-links a:hover::after,
.thh-actions a:hover::after {
  width: 100%;
}
.thh-header.scrolled .thh-links a::after,
.thh-header.scrolled .thh-actions a::after {
  background: #1428b8;
}

/* HOME ICON – PURE WHITE */
/* HOME ICON – TRUE WHITE SVG */
.thh-links .home-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

/* HOME ICON DEFAULT (BLUE HEADER) */
.thh-links .home-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff; /* white on blue */
    transition: fill 0.25s ease, transform 0.2s ease;
}
/* WHEN HEADER SCROLLS (WHITE HEADER) */
header.scrolled .thh-links .home-icon svg {
    fill: #0b2cff; /* theme blue */
}

.thh-links .home-icon a:hover svg {
    transform: scale(1.15);
}


/* ================= HERO ================= */
.hero {
  padding: 110px 0 130px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17px;
  opacity: 0.9;
  max-width: 420px;
}


.hero h1 span {
  color: var(--gold);
}
/* ================= HERO FLEX LAYOUT ================= */
.hero .container.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* Flip columns for desktop */
@media (min-width: 992px) {
  .hero .col-md-6:first-child {
    order: 2; /* text on the right */
  }
  .hero .col-md-6:last-child {
    order: 1; /* signup form on the left */
  }

  .signup-card {
    margin-left: 0;
    margin-right: auto;
  }
}

/* Ensure mobile stacking still works */
@media (max-width: 991px) {
  .hero .col-md-6 {
    order: unset;
    text-align: center;
  }
}
.hero .col-md-6 {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center content */
}
@media (max-width: 768px) {
  .hero {
    padding-top: calc(10px + env(safe-area-inset-top));
  }
}

/* Signup Card */
/* ================= GLASS SIGN-UP CARD ================= */

.signup-card {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-radius: 20px;
  padding: 28px;
  max-width: 360px;
  margin-left: auto;
  margin-right: 100px;


  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 20px 45px rgba(0,0,0,0.35),
    0 0 30px rgba(255,215,0,0.15);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.signup-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.45),
    0 0 45px rgba(255,215,0,0.45);
}

/* Heading */
.signup-card h3 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

/* Inputs */
.signup-card input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.signup-card input::placeholder {
  color: #e6e6e6;
}

.signup-card input:focus {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,215,0,0.35),
    0 0 18px rgba(255,215,0,0.45);
}

/* Button */
.signup-card button {
  width: 100%;
  background: linear-gradient(135deg, #1e3cff, #1428b8);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 22px;
  font-weight: 800;
  letter-spacing: 0.6px;

  box-shadow:
    0 8px 22px rgba(30,60,255,0.45),
    0 0 18px rgba(255,215,0,0.25);

  transition: all 0.35s ease;
}

.signup-card button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(30,60,255,0.6),
    0 0 35px rgba(255,215,0,0.55);
}

/* Sign-in link */
.signup-card p,
.signup-card a {
  color: #ffffff;
}

.signup-card a:hover {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255,215,0,0.7);
}
.signup-card {
  position: relative;
  top: -10px;
}
/* ================= THEMED DROPDOWN & OTHER INPUT ================= */
.signup-card select,
.signup-card #custom_profession {
    width: 100%;
    padding: 14px 16px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.5); /* subtle border like other inputs */
    background: #2a2aeb;  /* dark theme background */
    color: inherit;        /* inherit text color from form */
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

/* Hover and focus styling */
.signup-card select:hover,
.signup-card select:focus,
.signup-card #custom_profession:hover,
.signup-card #custom_profession:focus {
    outline: none;
    border-color: #FFD700; /* subtle glow on focus */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Placeholder text for Other input */
.signup-card #custom_profession::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Dropdown arrow */
.signup-card select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2 5l5 5 5-5"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px 14px;
}

/* Other input hidden by default */
#custom_profession {
    display: none; /* JS will toggle */
}

@media (min-width: 992px) {
  .signup-card {
    margin-right: 80px;
  }
}
.signup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255,215,0,0.35),
    rgba(30,60,255,0.35),
    rgba(255,215,0,0.35)
  );
  opacity: 0.35;
  filter: blur(18px);
  z-index: -1;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero h1,
.hero p {
  animation: fadeUp 0.8s ease both;
}

.signup-card {
  animation: fadeUp 1s ease both;
}

/* ================= LOGIN ACTIONS (BUTTON + FORGOT) ================= */

#login .login-actions {
  margin-top: 6px;
}

#login .login-helper {
  margin-top: 14px;
  text-align: center; /* 👈 change to right if you want */
}

/* Forgot password link */
#login .forgot-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.25s ease;
  display: inline-block;
}

/* Hover effect */
#login .forgot-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  text-decoration: none;
}
#login .login-helper::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 12px;
}



/* ================= FOOTER ================= */

footer.thh-footer {
  /* Soft white – not solid, not icy */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f6f8ff 100%
  );

  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 34px 0;
  text-align: center;
  margin-top: 70px;

  /* depth without glass blur */
  box-shadow:
    0 -14px 30px rgba(30, 60, 255, 0.18),
    0 -1px 0 rgba(255,255,255,0.9) inset;
    
}



/* Footer text */
footer.thh-footer p {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #1428b8; /* dark royal blue */
  transition: color 0.3s ease;
}

/* Slight hover elegance */
footer.thh-footer p:hover {
  color: #1e3cff;
}

/* ================= SOCIAL ICONS ================= */
.footer-social {
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-social a {
  display: inline-block;
  margin: 0 10px;
}

.footer-social img {
  width: 26px;
  transition: 
    transform 0.3s ease,
    filter 0.3s ease,
    box-shadow 0.3s ease;
}

/* Golden glow hover */
.footer-social img:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.15);
  box-shadow: 
    0 0 6px rgba(255, 215, 0, 0.6),
    0 0 14px rgba(255, 215, 0, 0.5),
    0 0 26px rgba(255, 215, 0, 0.35);
}


/* ================= SMALL MOBILE ================= */
@media (max-width: 768px) {
  .signup-card {
    margin: 30px auto 0;
  }
}
/* ================= GLASS SIGN-IN MODAL ================= */
/* Modal header */



.modal-header h5 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Bootstrap close button FIX */


.modal-header .btn-close:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Inputs */

.modal-content .form-control::placeholder {
  color: #e6e6e6;
}

.modal-content .form-control:focus {
  background: rgba(255,255,255,0.32);
  box-shadow:
    0 0 0 2px rgba(255,215,0,0.35),
    0 0 18px rgba(255,215,0,0.45);
}

/* Login button */
.modal-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 30px rgba(30,60,255,0.6),
    0 0 28px rgba(255,215,0,0.55);
}
/* REQUIRED: hide modal by default */
.modal {
  position: fixed;
  inset: 0;
}
.modal:not(.show) {
  display: none;
}
.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}
.modal {
  z-index: 3000 !important;
}

.modal-header .btn-close:hover {
  opacity: 1;
  transform: scale(1.15);
}
/* ================= SIGN-IN MODAL STYLING ================= */

#login .modal-dialog {
    max-width: 420px;        /* controls width */
    margin: 1.75rem auto;    /* keeps it centered */
}

#login .modal-content {
    background: rgba(15, 23, 42, 0.92); /* dark glass */
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 25px 60px rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px;
}

/* Header */
#login .modal-header {
    border: none;
    padding: 18px 22px 10px;
}

#login .modal-header h5 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

/* Close (X) button */
#login .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transform: scale(1.15);
}

#login .btn-close:hover {
    opacity: 1;
    transform: scale(1.25);
}

/* Body */
#login .modal-body {
    padding: 20px 22px 26px;
}

/* Inputs */
#login .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
}

#login .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

#login .form-control:focus {
    background: rgba(255,255,255,0.12);
    border-color: #38bdf8;
    box-shadow: none;
    color: #fff;
}

/* Login Button */
#login .btn-primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
}

#login .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37,99,235,0.45);
}
/* ================= SIGN-IN MODAL – FINAL FIX ================= */

#login.modal {
  z-index: 3000;
}

/* Backdrop blur */
.modal-backdrop {
  background: rgba(10, 20, 60, 0.75) !important;
  backdrop-filter: blur(10px);
}

/* Card size */
#login .modal-dialog {
  max-width: 520px;
  margin: auto;
}

/* Card */
#login .modal-content {
  background: linear-gradient(
    160deg,
    rgba(40, 70, 255, 0.35),
    rgba(20, 30, 90, 0.95)
  );
  backdrop-filter: blur(16px);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  color: #fff;
}

/* Header */
#login .modal-header {
  border: none;
  padding: 20px 24px 12px;
  position: relative;
}

/* ---------- CUSTOM CLOSE BUTTON ---------- */
#login .btn-close {
  all: unset;
  position: absolute;
  top: 16px;
  right: 16px;

  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;

  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

#login .btn-close::before {
  content: "✕";
  font-size: 20px;
  font-weight: 600;
  color: white;
}

#login .btn-close:hover {
  background: rgba(255, 80, 80, 0.9);
  transform: rotate(90deg) scale(1.1);
  transition: all 0.3s ease;
}

/* Body */
#login .modal-body {
  padding: 18px 24px 26px;
}

/* Inputs */
#login .form-control {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: white;
}

#login .form-control::placeholder {
  color: rgba(255,255,255,0.65);
}

/* Button */
#login .btn-primary {
  background: linear-gradient(135deg, #1e3cff, #1428b8);
  border: none;
  border-radius: 24px;
  padding: 13px;
  font-weight: 700;
}

/* ======================= 
Floating WhatsApp button 
======================= */

.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* WhatsApp icon */
.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover img {
  transform: scale(1.15);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

/* Inner glow (strong, fast pulse) */
.whatsapp-glow {
  position: absolute;
  width: 100px;  /* bigger than before */
  height: 100px;
  border-radius: 50%;
  background: rgba(255,215,0,0.6); /* stronger gold */
  filter: blur(28px); /* more visible halo */
  z-index: 1;
  animation: glowPulse 1.5s infinite ease-in-out;
}

/* Outer glow (slower, bigger halo) */
.whatsapp-glow-outer {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,215,0,0.35);
  filter: blur(36px);
  z-index: 0;
  animation: glowPulseOuter 2.5s infinite ease-in-out;
}

/* Keyframes for inner glow */
@keyframes glowPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  50%  { transform: scale(1.9); opacity: 0.35; }
  100% { transform: scale(1);   opacity: 0.7; }
}

/* Keyframes for outer glow */
@keyframes glowPulseOuter {
  0%   { transform: scale(1);   opacity: 0.5; }
  50%  { transform: scale(2.4); opacity: 0.2; }
  100% { transform: scale(1);   opacity: 0.5; }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-glow {
    width: 80px;
    height: 80px;
    filter: blur(20px);
  }
  .whatsapp-glow-outer {
    width: 100px;
    height: 100px;
    filter: blur(28px);
  }
}

/* sticky button */
/* =========================
   CONTACT US STICKY TEASER
   ========================= */

.contact-teaser-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;

    background: #ffffff;
    color: #0b3cff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;

    padding: 18px 12px;
    border-radius: 0 20px 20px 0;

    writing-mode: vertical-rl;
    text-orientation: mixed;

    text-decoration: none;
    box-shadow: 0 0 0 rgba(255, 215, 0, 0.6);
    animation: goldPulse 2s infinite;

    transition: all 0.3s ease;
}

/* Hover polish */
.contact-teaser-btn:hover {
    background: #f8faff;
    color: #002aaaff;
    padding-top: 24px;
}

/* Gold pulsing shadow */
@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 18px 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Mobile safe (no zoom, no overlap) */
@media (max-width: 768px) {
    .contact-teaser-btn {
        font-size: 12px;
        padding: 14px 10px;
    }
}

/* Twinkling Stars */
/* Golden Twinkling Stars */
#golden-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.golden-star {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #fff8dc 0%,
        #ffd700 40%,
        rgba(255, 215, 0, 0.3) 60%,
        transparent 70%
    );
    opacity: 0;
    animation: twinkle ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
}

@keyframes twinkle {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* ===========================================
=================Stats======================== 
============================================*/

/* Hero Stats Container */
.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Individual Tile */
.stat-tile {
    min-width: 160px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    text-align: center;
}

/* Digital Number */
.stat-number {
    font-family: 'Courier New', monospace;
    font-size: 34px;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    font-weight: 800;
    letter-spacing: 3px;
}

/* Label */
.stat-label {
    margin-top: 6px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #dbe9ff;
}
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .stat-tile {
        width: 90%;
        max-width: 320px;
    }

    .stat-number {
        font-size: 32px;
    }
}

/* ====================================
======== Top 10 Heros Section =========
==================================== */
/* Top Heros Section */
.top-heros-section {
    padding: 25px 0 40px; /* was 60px top */
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 26px;
    color: #ffd700;
    margin-bottom: 25px;
}

/* Strip Wrapper */
.hero-strip-wrapper {
    position: relative;
    overflow: hidden;
}

/* Moving Strip */
.hero-strip {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: hero-scroll 45s linear infinite;
    will-change: transform;
}

.hero-strip-wrapper:hover .hero-strip {
    animation-play-state: paused;
}

/* Individual Hero Card */
.hero-card {
    min-width: 180px;
    padding: 18px 14px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.15);
}

/* Profile Image */
.hero-card img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    margin-bottom: 10px;
}

/* Text */
.hero-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.hero-profession {
    font-size: 12px;
    color: #dbe9ff;
    opacity: 0.85;
}

/* Animation */
@keyframes hero-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-card {
        min-width: 150px;
    }
}

/* ====================================================
=================Video Section=========================
==================================================== */

.video-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================= SHARED TILE GLOW ================= */

.glow-tile {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,215,0,0.28);
    border-radius: 22px;

    box-shadow:
        0 12px 30px rgba(0,0,0,0.35),
        0 0 35px rgba(255,215,0,0.18);

    transition: box-shadow 0.6s ease;
}

/* ================= TEXT TILE ================= */

.video-text-tile {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center content */
}

/* Text styling */
.video-text-tile h2 {
    font-size: 38px;
    color: #ffd700;
    margin-bottom: 14px;
}

.video-text-tile p {
    color: #dbe9ff;
    font-size: 16px;
    line-height: 1.6;
}

/* ================= VIDEO TILE ================= */

.video-frame-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;

    filter: blur(6px); /* START BLURRED */
    transition: filter 2.4s ease-out;
}

.video-frame-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 1;

    transform: scale(1);
    transition:
        transform 3.2s ease-out,
        filter 2.4s ease-out;
}

/* ================= ACTIVATED ================= */

.video-frame-wrapper.is-visible {
    filter: blur(0); /* VIDEO becomes clear */
}

.video-frame-wrapper.is-visible video {
    transform: scale(1.08); /* slow zoom-in */
}

/* ================= CONTROLS ================= */

.video-controls {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.video-controls button {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,215,0,0.4);
    color: #ffd700;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .video-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    /* FIX: text tile height */
    .video-text-tile {
        padding: 20px 18px;
        justify-content: flex-start; /* remove vertical centering */
    }

    .video-text-tile h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .video-text-tile p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Video stays clean */
    .video-frame-wrapper {
        aspect-ratio: 16 / 9;
    }

    .video-frame-wrapper video {
        transform: none;
    }
}


/* ===============================
   HOME – LATEST BLOGS SECTION
================================ */

.home-blogs-section {
  padding: 70px 20px;
  background: transparent;
}

.home-blogs-container {
  max-width: 1200px;
  margin: auto;
}

.home-blogs-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 45px;
  color: #ffffff;
}

/* Grid */
.home-blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Card */
.home-blog-card {
  display: block;
  text-decoration: none;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Glow hover */
.home-blog-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 rgba(0, 153, 255, 0);
  transition: box-shadow 0.35s ease;
}

.home-blog-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.home-blog-card:hover::after {
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.35);
}

/* Thumbnail */
.home-blog-thumb {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.home-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.home-blog-card:hover img {
  transform: scale(1.08);
}

/* Title */
.home-blog-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .home-blogs-title {
    font-size: 24px;
  }
}
/* SEO Content */
/* ================= SEO GLASS CARDS (STABLE) ================= */

.home-seo-content {
  padding: 100px 0;
  padding-left: 24px;
  padding-right: 24px;
  background: transparent; /* inherits site theme */
}


.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  overflow: visible;
}
@media (max-width: 768px) {
  .seo-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.seo-glass-card {
  padding: 28px;
  border-radius: 18px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.04)
  );

  border: 1px solid rgba(255,255,255,0.22);

  box-shadow:
    0 25px 50px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.seo-glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 35px 70px rgba(0,0,0,0.65),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.seo-glass-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.seo-glass-card p,
.seo-glass-card li {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-glass-card ul {
  padding-left: 18px;
}

/* Mobile */
@media (max-width: 768px) {
  .home-seo-content {
    padding: 70px 0;
  }
}
/* ================= SEO HOVER FLIP CARDS ================= */

.seo-flip-card {
  perspective: 1200px;
  width: 100%;
  max-width: 360px;   /* 🔥 KEY FIX */
  margin: 0 auto;     /* centers card inside column */
}

@media (max-width: 576px) {
  .seo-flip-card {
    max-width: 100%;
  }
}

.seo-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
  border-radius: 18px;
  padding: 2px;              /* invisible buffer */
  box-sizing: border-box;
}

/* Flip on hover */
.seo-flip-card:hover .seo-flip-inner {
  transform: rotateY(180deg);
}

/* Faces */
.seo-flip-front,
.seo-flip-back {
  position: absolute;
  inset: 0;
  padding: 28px;
  border-radius: 18px;
  backface-visibility: hidden;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.04)
  );

  border: 1px solid rgba(255,255,255,0.22);

  box-shadow:
    0 25px 50px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* Front */
.seo-flip-front h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.seo-flip-front p {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Back */
.seo-flip-back {
  transform: rotateY(180deg);
}

.seo-flip-back p,
.seo-flip-back li {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-flip-back ul {
  padding-left: 18px;
}

/* Disable flip on touch devices */
/* ================= SEO FLIP CARDS – MOBILE FIX ================= */
@media (max-width: 768px) {

  .seo-flip-card {
    max-width: 100%;
    perspective: none;
  }

  .seo-flip-inner {
    transform: none !important;
    min-height: auto;
    height: auto;
    padding: 0;
  }

  .seo-flip-front,
  .seo-flip-back {
    position: relative;
    transform: none;
    backface-visibility: visible;
    margin-bottom: 12px;
  }

  .seo-flip-back {
    margin-top: 12px;
  }

  /* Optional subtle divider */
  .seo-flip-back::before {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,0.12);
    margin-bottom: 12px;
  }
}
@media (max-width: 576px) {

  .seo-flip-front h3 {
    font-size: 1.1rem;
  }

  .seo-flip-front p,
  .seo-flip-back p,
  .seo-flip-back li {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .seo-flip-front,
  .seo-flip-back {
    padding: 22px;
  }
}
