:root {
    --bg-dark: #0f1f1c;
    --bg-light: #f4f7f6;
    --accent-green: #00c896;
    --accent-dark: #009f7a;
    --card-bg: #173f39;
    --text-light: #f0f0f0;
    --text-secondary: #b7d0cb;
    --shadow-light: rgba(0, 0, 0, 0.2);
}

/* ===== Basic Reset ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:"Poppins",sans-serif;
  color:var(--text-light);
  background:var(--bg-dark);
  overflow-x:hidden;
  position: relative;
}

/* ===== Premium FortuneX Blurred Gold Background ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("https://images.unsplash.com/photo-1602524816830-648ad1f90a3e?auto=format&fit=crop&w=1600&q=80")
              center/cover no-repeat;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.03);
  opacity: 0.55;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,200,150,0.08), rgba(0,159,122,0.08));
  mix-blend-mode: overlay;
  pointer-events: none;
}

a{text-decoration:none;transition:0.3s ease}

/* ===== Transparent Blurry Header ===== */
.mil-top-panel{
  position:fixed;
  top:0;left:0;right:0;
  z-index:9999;
  background:rgba(15,31,28,0.25);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
  box-shadow:0 5px 15px var(--shadow-light);
}

.mil-top-panel .container{
  max-width:1200px;
  margin:auto;
  padding:10px 18px; /* slightly compact */
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* logo sizes: default small, even smaller on narrow screens */
.mil-logo img{
  height:24px;
  display:block;
}

/* ===== Desktop Nav ===== */
.mil-top-menu ul{
  list-style:none;
  display:flex;
  gap:24px;
  align-items:center;
  margin:0;
  padding:0;
}

.mil-top-menu ul li a{
  color:var(--text-light);
  font-weight:500;
  font-size:0.95rem;
  opacity:0.95;
}

.mil-top-menu ul li a:hover{
  color:var(--accent-green);
}

.mil-top-menu .mil-active>a{
  color:var(--accent-green);
  font-weight:600;
}

/* ===== Menu Buttons ===== */
.mil-menu-buttons{
  display:flex;
  align-items:center;
  gap:10px;
}

/* slightly smaller, tighter hamburger style */
.mil-menu-btn{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(6px);
  transition:all 0.22s ease;
  font-size:20px;
  color:var(--text-light);
  font-weight:700;
  user-select:none;
}

.mil-menu-btn:hover{
  background:rgba(255,255,255,0.14);
  box-shadow:0 6px 18px rgba(0,200,150,0.12);
  transform:scale(1.03);
}

/* ===== Hide mobile button on desktop / hide desktop nav on mobile ===== */
@media (min-width: 993px){
  .mil-menu-buttons{display:none;}
}

@media (max-width: 992px){
  .mil-top-menu{display:none !important;}
  .mil-top-panel .container{padding-left:12px;padding-right:12px;}
  .mil-logo img{height:18px;} /* smaller on mobile */
  .mil-menu-btn{width:36px;height:36px;font-size:18px;border-radius:8px;}
}

/* ===== Mobile Overlay Menu ===== */
.mil-mobile-menu{
  position:fixed;
  inset:0;
  z-index:10010;
  display:none;
  background:rgba(15,31,28,0.98);
  color:var(--text-light);
  padding:22px 18px;
  overflow-y:auto;
}

.mil-mobile-menu.open{display:block}
.body-menu-open{overflow:hidden}

.mil-mobile-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.mil-mobile-top img{height:36px}

.mil-mobile-nav ul{list-style:none;margin:0;padding:0}
.mil-mobile-nav ul li{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.04)}
.mil-mobile-nav ul li a{color:var(--text-light);font-size:1.02rem;font-weight:600;display:flex;justify-content:space-between;align-items:center}

.mil-mobile-nav .mil-active>a{color:var(--accent-green)}

/* submenu handling */
.mil-submenu{max-height:0;overflow:hidden;transition:max-height 0.28s ease;padding-left:14px}
.mil-has-children.open .mil-submenu{max-height:420px}
.mil-submenu li a{font-size:0.95rem;font-weight:500;color:var(--text-secondary)}

/* mobile CTA buttons */
.mil-mobile-cta{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}
.mil-cta-btn{padding:12px 20px;border-radius:8px;font-weight:700;text-align:center;display:inline-block}
.mil-cta-primary{background:var(--accent-green);color:#fff}
.mil-cta-outline{border:1px solid rgba(255,255,255,0.14);color:var(--text-light);background:transparent}

/* ===== Banner (Now with blurred background image) ===== */
.tapify-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,var(--accent-green) 0%,var(--accent-dark) 100%);
  padding: 120px 0 80px;
  margin-top: 70px;
  z-index: 1;
}

/* optional: ensure banner has blurred image layer via pseudo (if used elsewhere) */
.tapify-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/images/Headerbg.jpg') center/cover no-repeat;
  filter: blur(9px);
  opacity: 0.33;
}

/* The blurred background layer */
.tapify-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/images/Headerbg.jpg') center/cover no-repeat;
  filter: blur(9px);
  opacity: 0.33;
  z-index: -1;
}

.container{max-width:1200px;margin:auto;padding:0 20px}
.row{display:flex;flex-wrap:wrap;align-items:center}
.col-xl-6{flex:0 0 50%;max-width:50%;padding:10px}
.tapify-banner-text{color:var(--text-light)}
.tapify-banner-text h1{font-size:2.8rem;font-weight:700;margin-bottom:20px;line-height:1.2}
.tapify-banner-text p{margin-bottom:15px;font-size:1rem}
.tapify-banner-text a{background:var(--text-light);color:var(--accent-green);padding:12px 28px;border-radius:6px;font-weight:600;display:inline-block}
.tapify-banner-text a:hover{background:var(--bg-light)}
.tapify-banner img{max-width:100%;border-radius:10px;height:auto}

/* ===== Responsive ===== */
@media(max-width:992px){
  .mil-top-menu ul{display:none}
  .col-xl-6{flex:0 0 100%;max-width:100%;text-align:center}
  .tapify-banner{padding:90px 0 60px}
}

/* Optional: Reduce blur on mobile for performance */
@media (max-width: 720px){
  body::before {
    filter: blur(8px) saturate(1.02);
    opacity: 0.5;
  }
}

/* ===== Body background image (replace path and tweak blur/opacity) ===== */
:root{
  --fx-bg-img: url("/logo3.png"); /* <- REPLACE this */
  --fx-bg-blur: 14px;     /* blur strength: change to taste */
  --fx-bg-opacity: 0.55;  /* how visible the image is */
}

/* keep layout stable */
html, body { height: 100%; }

/* blurred image layer (covers viewport) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9999; /* behind everything */
  background: var(--fx-bg-img) center/cover no-repeat;
  filter: blur(var(--fx-bg-blur)) saturate(1.05);
  transform: scale(1.03);   /* hides sharp edges when blurred */
  opacity: var(--fx-bg-opacity);
  pointer-events: none;
}

/* ensure wrappers do not hide the background (override inline solid backgrounds) */
#smooth-wrapper, .mil-wrapper, #smooth-content {
  background: transparent !important;
}

/* Reduce blur & opacity on small devices for performance */
@media (max-width: 720px) {
  :root { --fx-bg-blur: 8px; --fx-bg-opacity: 0.45; }
  body::before { filter: blur(var(--fx-bg-blur)) saturate(1.02); }
}