:root{
  --tb-bg1:#0b0b0c;
  --tb-text:#ffffff;
  --tb-border:rgba(255,255,255,.10);
  --tb-accent:#e11b22;

  --page-bg:#f5f6f8;
  --text:#111;
}

/* ===== Reset / Body ===== */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--page-bg);
  color:var(--text);
  line-height:1.5;
}
.container{width:min(1100px,100%);margin:0 auto}
a{text-decoration:none;color:inherit}

/* ===== Header Sticky ===== */
.tb-header{
  position:sticky;
  top:0;
  z-index:9999;
  color:var(--tb-text);
}

/* ===== Top Row ===== */
.tb-top{
  background:linear-gradient(180deg,var(--tb-bg1),#101012);
  border-bottom:1px solid var(--tb-border);
}
.tb-top__inner{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 0;
}

/* Logo */
.tb-brand{
  display:flex;
  align-items:baseline;
  font-weight:900;
  letter-spacing:.6px;
  user-select:none;
  white-space:nowrap;
}
.tb-brand__tech{font-size:24px;line-height:1}
.tb-brand__bigs{font-size:24px;line-height:1;color:var(--tb-accent);margin-left:2px}

/* Search (responsive width) */
.tb-search{
  flex:1;
  max-width:560px;          /* desktop width */
  display:flex;
  align-items:center;
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  margin:0 auto;
}
.tb-search input{
  width:100%;
  border:0;
  outline:none;
  padding:8px 12px;         /* height kam */
  font-size:14px;
}
.tb-search button{
  border:0;
  background:#fff;
  padding:0 10px;
  height:34px;
  cursor:pointer;
}
.tb-search__icon{font-size:18px;color:#222}

/* Right side (language + menu button) */
.tb-right{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

/* Language (optional) */
.tb-lang{position:relative}
.tb-lang__btn{
  display:flex;
  align-items:center;
  gap:8px;
  background:transparent;
  border:1px solid var(--tb-border);
  color:var(--tb-text);
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
  font-weight:800;
  white-space:nowrap;
}
.tb-lang__drop{display:none} /* dropdown styling aap baad me add kr sakte ho */

/* Mobile menu button (if you use it) */
.tb-menuBtn{
  display:none;
  background:transparent;
  border:1px solid var(--tb-border);
  border-radius:10px;
  padding:9px 10px;
  cursor:pointer;
}
.tb-menuBtn span{
  display:block;
  width:22px;height:2px;
  background:#fff;
  margin:4px 0;
}

/* ===== Nav Row ===== */
.tb-navwrap{
  background:linear-gradient(180deg,#2c2c2f,#1f1f22);
  border-bottom:1px solid var(--tb-border);
  padding:2px 0;
}
.tb-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.tb-nav a{
  flex:1;
  padding:10px 10px;
  color:#fff;
  font-weight:800;
  text-transform:uppercase;
  font-size:15px;
  white-space:nowrap;
  text-align:left;
}
.tb-nav a:hover{background:rgba(255,255,255,.06)}
.tb-nav a.active{background:rgba(255,255,255,.08)}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */

/* Tablet */
@media (max-width: 980px){
  .tb-top__inner{flex-wrap:wrap}
  .tb-search{
    order:3;               /* search neeche chala jaye */
    width:100%;
    max-width:100%;
    margin:8px 0 0;
  }
  .tb-right{margin-left:auto}
  .tb-brand__tech,.tb-brand__bigs{font-size:22px}
}

/* Mobile */
@media (max-width: 760px){
  .tb-top__inner{gap:10px}

  /* Show menu button */
  .tb-menuBtn{display:inline-block}

  /* Nav becomes stacked (when .show added via JS) */
  .tb-nav{
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:6px 0;
  }
  .tb-nav.show{display:flex}

  .tb-nav a{
    flex:unset;
    font-size:14px;
    padding:12px 12px;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .tb-nav a:first-child{border-top:0}

  /* language button compact */
  .tb-lang__btn{padding:7px 9px;font-size:14px}
}

/* Very small phones */
@media (max-width: 420px){
  .tb-brand__tech,.tb-brand__bigs{font-size:20px}
  .tb-search input{font-size:13px;padding:8px 10px}
}





/* ================= HERO (FIXED) ================= */

.hero{
  position:relative;
  min-height:420px;            /* height fixed ki jagah min-height better */
  padding:60px 0;              /* content ko space do */
  background:url("https://happymod.in.net/wp-content/uploads/2026/02/HappyMod-APK-Download-v3.2.7-Latest-Version-2026-Official-scaled.webp")
    center/cover no-repeat;
  display:flex;
  align-items:center;
  color:#fff;
  overflow:hidden;             /* overlay/overlap clean */
}

/* overlay always on top of bg, below content */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to right, rgba(0,0,0,.78), rgba(0,0,0,.35));
  z-index:1;
}

/* content container */
.hero__content{
  position:relative;
  z-index:2;
  max-width:650px;
  padding:0 16px;              /* mobile padding */
}

.hero h1{
  font-size:42px;
  font-weight:900;
  line-height:1.15;
  margin-bottom:14px;
  text-shadow:0 6px 18px rgba(0,0,0,.35);  /* readability */
}

.hero p{
  font-size:17px;
  opacity:.95;
  margin-bottom:22px;
  text-shadow:0 6px 18px rgba(0,0,0,.28);
}

/* buttons */
.hero__buttons{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:10px;
  font-weight:800;
  font-size:15px;
  transition:transform .2s, background .2s;
  border:1px solid transparent;
}

.hero-btn.primary{
  background:var(--tb-accent);
  color:#fff;
}
.hero-btn.primary:hover{
  background:#c8141a;
  transform:translateY(-2px);
}

.hero-btn.secondary{
  background:#fff;
  color:#111;
  border-color:rgba(0,0,0,.08);
}
.hero-btn.secondary:hover{
  background:#e5e7eb;
  transform:translateY(-2px);
}

/* Tablet */
@media (max-width:980px){
  .hero{min-height:360px;padding:52px 0}
  .hero h1{font-size:34px}
  .hero p{font-size:16px}
}

/* Mobile */
@media (max-width:760px){
  .hero{
    min-height:320px;
    text-align:center;
    padding:46px 0 70px; /* stats overlap ke liye niche extra */
  }
  .hero__content{max-width:100%}
  .hero h1{font-size:28px}
  .hero p{font-size:15px}
  .hero__buttons{justify-content:center}
}

/* Small phones */
@media (max-width:420px){
  .hero{min-height:300px;padding:42px 0 70px}
  .hero h1{font-size:24px}
}


/* ============ STATS SECTION (FIXED) ============ */
.stats{
  margin-top:-38px;   /* overlap */
  padding:0 0 18px;
  position:relative;
  z-index:5;          /* hero ke upar visible rahe */
}

.stats__grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}

.stat{
  background:#fff;
  border:1px solid #e7e9f0;
  border-radius:14px;
  padding:16px 14px;
  text-align:center;
  box-shadow:0 10px 28px rgba(16,24,40,.08);
}

.stat__num{
  font-size:28px;
  font-weight:900;
  color:#111;
  line-height:1.1;
}

.stat__label{
  margin-top:6px;
  font-size:13px;
  font-weight:800;
  color:#5b6472;
  text-transform:uppercase;
  letter-spacing:.4px;
}

@media (max-width:980px){
  .stats__grid{grid-template-columns:repeat(2, 1fr)}
  .stats{margin-top:-28px}
}

@media (max-width:520px){
  .stats__grid{grid-template-columns:1fr}
  .stats{margin-top:-22px}
  .stat__num{font-size:26px}
}





/* ========== NEW GAMES SECTION ========== */
.games-sec{
  padding: 10px 0 20px;
}

.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 12px;
}

.sec-head h2{
  font-size:18px;
  font-weight:900;
  color:#111;
}

.sec-link{
  font-weight:900;
  color:#2563eb;
}
.sec-link:hover{ text-decoration:underline; }

.games-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.game-card{
  display:flex;
  gap:12px;
  background:#fff;
  border:1px solid #e7e9f0;
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 28px rgba(16,24,40,.08);
  transition:.2s;
}

.game-card:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 32px rgba(16,24,40,.12);
}

.game-icon{
  width:60px;
  height:60px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid #eef0f5;
  flex: 0 0 auto;
}

.game-info h3{
  font-size:15px;
  font-weight:900;
  margin-bottom:4px;
  color:#111;
}

.game-meta{
  font-size:12.5px;
  color:#5b6472;
  font-weight:800;
  margin-bottom:6px;
}

.game-desc{
  font-size:13.5px;
  color:#2a3240;
}

/* Responsive */
@media (max-width:980px){
  .games-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:520px){
  .games-grid{ grid-template-columns: 1fr; }
  .game-card{ padding:12px; }
  .game-icon{ width:56px; height:56px; border-radius:12px; }
}



/* ============ APPS SECTION ============ */
.apps-sec{
  padding:10px 0 25px;
}

.apps-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.app-card{
  display:flex;
  gap:12px;
  background:#fff;
  border:1px solid #e7e9f0;
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 28px rgba(16,24,40,.08);
  transition:.2s;
}

.app-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(16,24,40,.12);
}

.app-icon{
  width:60px;
  height:60px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid #eef0f5;
  flex-shrink:0;
}

.app-info h3{
  font-size:15px;
  font-weight:900;
  margin-bottom:4px;
  color:#111;
}

.app-meta{
  font-size:12.5px;
  color:#5b6472;
  font-weight:800;
  margin-bottom:6px;
}

.app-desc{
  font-size:13.5px;
  color:#2a3240;
}

/* Responsive */
@media (max-width:980px){
  .apps-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:520px){
  .apps-grid{grid-template-columns:1fr}
}



/* ============ TOOLS SECTION ============ */
.tools-sec{
  padding:10px 0 25px;
}

.tools-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.tool-card{
  display:flex;
  gap:12px;
  background:#fff;
  border:1px solid #e7e9f0;
  border-radius:14px;
  padding:14px;
  box-shadow:0 10px 28px rgba(16,24,40,.08);
  transition:.2s;
}

.tool-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(16,24,40,.12);
}

.tool-icon{
  width:60px;
  height:60px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid #eef0f5;
  flex-shrink:0;
}

.tool-info h3{
  font-size:15px;
  font-weight:900;
  margin-bottom:4px;
  color:#111;
}

.tool-meta{
  font-size:12.5px;
  color:#5b6472;
  font-weight:800;
  margin-bottom:6px;
}

.tool-desc{
  font-size:13.5px;
  color:#2a3240;
}

/* Responsive */
@media (max-width:980px){
  .tools-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:520px){
  .tools-grid{grid-template-columns:1fr}
}





/* =========================
   HEAVY FOOTER
========================= */
.site-footer{
  margin-top:30px;
  background:#0f1115;
  color:#fff;
}

.footer-top{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap:22px;
  padding:34px 0;
}

.footer-brand{max-width:520px}

.footer-logo{
  font-weight:900;
  letter-spacing:.6px;
  font-size:28px;
  margin-bottom:10px;
  user-select:none;
}
.footer-logo__text{color:#fff}
.footer-logo__apk{color:var(--tb-accent)}

.footer-title{
  font-size:16px;
  font-weight:900;
  margin-bottom:12px;
  letter-spacing:.3px;
}

.footer-desc{
  color:#cfd6e6;
  font-size:14px;
  line-height:1.7;
  margin:10px 0 14px;
}

.footer-links{list-style:none}
.footer-links li{margin:9px 0}
.footer-links a{
  color:#cfd6e6;
  font-weight:700;
  transition:.2s;
}
.footer-links a:hover{
  color:#fff;
  transform:translateX(2px);
}

.footer-social{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.footer-social a{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:8px 10px;
  border-radius:10px;
  color:#fff;
  font-weight:800;
  font-size:13px;
}
.footer-social a:hover{
  background:rgba(255,255,255,.12);
}

/* Newsletter */
.footer-newsletter{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.footer-newsletter input{
  flex:1;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.footer-newsletter input::placeholder{color:#cfd6e6}
.footer-newsletter button{
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:var(--tb-accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.footer-newsletter button:hover{opacity:.92}

.footer-mini{
  margin-top:14px;
  color:#cfd6e6;
  font-size:13px;
  line-height:1.7;
}

/* Bottom bar */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.10);
  padding:14px 0;
}
.footer-bottom__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#cfd6e6;
  font-size:13px;
}
.footer-bottom__links{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-bottom__links a{color:#cfd6e6;font-weight:800}
.footer-bottom__links a:hover{color:#fff}

/* Responsive */
@media (max-width:980px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:620px){
  .footer-top{
    grid-template-columns: 1fr;
  }
  .footer-newsletter{
    flex-direction:column;
  }
  .footer-newsletter button{
    width:100%;
  }
}



.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.post-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.06)}
.post-thumb img{width:100%;height:180px;object-fit:cover;display:block}
.post-title{padding:12px 12px 6px;font-size:16px;line-height:1.25}
.post-title a{color:#111;text-decoration:none}
.post-btn{display:inline-block;margin:0 12px 12px;padding:10px 12px;background:#e11b22;color:#fff;border-radius:10px;text-decoration:none;font-weight:600}
@media(max-width:900px){.posts-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.posts-grid{grid-template-columns:1fr}.post-thumb img{height:200px}}





.page-sec{padding:70px 0;background:#f5f6f8}
.page-title{font-size:34px;margin-bottom:18px;font-weight:800;color:#111}
.page-subtitle{font-size:22px;margin:28px 0 12px;font-weight:750;color:#111}
.page-sec p{font-size:16px;line-height:1.75;margin-bottom:14px;color:#444}
.page-list{margin:10px 0 0 18px;color:#444}
.page-list li{margin:8px 0;line-height:1.6}

.page-note{margin-top:18px;font-size:14px;color:#666}

.alert{padding:12px 14px;border-radius:10px;margin:14px 0;font-size:15px}
.alert.success{background:#eaf7ee;border:1px solid #bfe8c9;color:#1f6b33}
.alert.error{background:#fdecec;border:1px solid #f3b6b6;color:#8b1a1a}

.contact-form{margin-top:18px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;padding:18px}
.form-row{margin-bottom:14px}
.form-row label{display:block;font-weight:700;margin-bottom:6px;color:#222}
.form-row input,.form-row textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
  outline:none;
  font-size:15px;
}
.form-row input:focus,.form-row textarea:focus{border-color:#e11b22}

.btn-primary{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  border:none;
  background:#e11b22;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.btn-primary:hover{opacity:.92}

@media(max-width:768px){
  .page-title{font-size:26px}
  .page-subtitle{font-size:19px}
  .page-sec{padding:52px 0}
  .contact-form{padding:14px}
}
