/* ============================================================
   AdsFlow Media - Shared Component Styles
   Extracted from inline <style> blocks that were duplicated
   across every HTML page. Now loaded once via header.php.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #111827; background: #ffffff; overflow-x: hidden; }

/* ---- PREMIUM LOADER ---- */
.page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #ffffff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.loader-logo span:first-child { color: #1E5EFF; }
.loader-logo span:last-child { color: #111827; }
.loader-spinner {
  width: 48px; height: 48px;
  border: 4px solid #e0e7ff;
  border-top-color: #1E5EFF;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 10001;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, #1E5EFF, #4F7DFF, #0B63F6);
  transition: width .1s linear;
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot, .cursor-outline { pointer-events: none; position: fixed; z-index: 99998; border-radius: 50%; transition: transform .12s ease; }
.cursor-dot {
  width: 8px; height: 8px; background: #1E5EFF;
  transform: translate(-50%, -50%);
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 2px solid rgba(30,94,255,.45);
  transform: translate(-50%, -50%);
}

/* ---- NAVBAR ---- */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 1rem 0;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.main-nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 32px rgba(0,0,0,.07);
  padding: .55rem 0;
}
.nav-logo { text-decoration: none; font-size: 1.5rem; font-weight: 800; }
.nav-logo .brand-blue { color: #1E5EFF; }
.nav-logo .brand-dark { color: #111827; font-weight: 500; }
.nav-links { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: #111827; font-weight: 500; font-size: .95rem;
  position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: #1E5EFF; transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: #1E5EFF; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  display: inline-block; padding: .6rem 1.6rem;
  background: linear-gradient(135deg, #1E5EFF, #0B63F6);
  color: #fff !important; border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; border: none;
  box-shadow: 0 4px 20px rgba(30,94,255,.35);
  transition: transform .3s, box-shadow .3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(30,94,255,.5); }
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 3px; background: #111827; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* Mobile overlay */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.45); opacity: 0; visibility: hidden;
  transition: .35s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: #fff; z-index: 9999; padding: 2rem 1.5rem;
  box-shadow: -4px 0 30px rgba(0,0,0,.12);
  transition: right .35s ease;
}
.mobile-nav.active { right: 0; }
.mobile-nav .close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; float: right; }
.mobile-nav ul { list-style: none; padding: 2.5rem 0 0; margin: 0; }
.mobile-nav ul li { margin-bottom: 1.1rem; }
.mobile-nav ul li a { text-decoration: none; color: #111827; font-size: 1.1rem; font-weight: 500; }
.mobile-nav ul li a:hover { color: #1E5EFF; }
.mobile-nav .nav-cta { display: block; text-align: center; margin-top: 1.5rem; }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1E5EFF, #0B63F6);
  position: relative; overflow: hidden; text-align: center;
}
.cta-section::before, .cta-section::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-section::before { width: 300px; height: 300px; top: -80px; left: -60px; }
.cta-section::after { width: 200px; height: 200px; bottom: -60px; right: -40px; }
.cta-section h2 { font-size: 2.4rem; font-weight: 800; color: #fff; margin-bottom: .6rem; position: relative; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; position: relative; }
.btn-cta-white {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.4rem; background: #fff;
  color: #1E5EFF; border-radius: 50px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; border: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  transition: background .3s, transform .3s;
  position: relative;
}
.btn-cta-white:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); color: #1E5EFF; }

/* ---- FOOTER ---- */
.main-footer {
  background: #0F172A; padding: 4rem 0 0; color: #94a3b8;
}
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-col p { font-size: .88rem; line-height: 1.7; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: .88rem; transition: color .25s; }
.footer-col ul li a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: .5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.07); display: flex; align-items: center;
  justify-content: center; color: #94a3b8; font-size: .95rem;
  transition: background .3s, color .3s;
}
.footer-social a:hover { background: #1E5EFF; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.3rem 0; margin-top: 3rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #64748b;
}
.footer-bottom a { color: #ef4444; text-decoration: none; }

/* ---- WHATSAPP BTN ---- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  text-decoration: none;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.65); }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 92px; right: 24px; z-index: 9990;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #1E5EFF, #0B63F6);
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, visibility .35s, transform .35s;
  box-shadow: 0 4px 16px rgba(30,94,255,.35);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---- SUCCESS MODAL ---- */
.modal-overlay-success {
  position: fixed; inset: 0; z-index: 99997;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .35s;
}
.modal-overlay-success.active { opacity: 1; visibility: visible; }
.modal-box-success {
  background: #fff; border-radius: 20px; padding: 3rem 2.5rem;
  max-width: 440px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  transform: scale(.9); transition: transform .35s;
}
.modal-overlay-success.active .modal-box-success { transform: scale(1); }
.checkmark-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: #EBF1FF; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #1E5EFF;
  animation: popIn .5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); }
}
.modal-box-success h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .6rem; }
.modal-box-success p { color: #6B7280; font-size: .92rem; line-height: 1.7; margin-bottom: 1.5rem; }
.modal-box-success .btn-thank-you {
  display: inline-block; padding: .7rem 2rem;
  background: linear-gradient(135deg, #1E5EFF, #0B63F6);
  color: #fff; border-radius: 50px; font-weight: 600;
  text-decoration: none; border: none;
  transition: transform .3s;
}
.modal-box-success .btn-thank-you:hover { transform: translateY(-2px); color: #fff; }

/* ---- SECTION TAGS (shared) ---- */
.section-tag {
  display: inline-block; padding: .35rem 1rem; border-radius: 50px;
  background: #EBF1FF; color: #1E5EFF; font-size: .78rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: .8rem;
}
.section-title { font-size: 2.4rem; font-weight: 800; margin-bottom: .8rem; }
.section-subtitle { color: #6B7280; font-size: 1rem; max-width: 560px; margin: 0 auto 3rem; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
