/*
Theme Name: jontrobid
Theme URI: https://jontrobid.com
Author: jontrobid
Description: রোবটিক্স শিখুন বাংলায় - jontrobid custom WordPress theme
Version: 1.0
*/

:root {
  --primary: #174060;
  --primary-light: rgba(23,64,96,0.08);
  --accent: #fbbc05;
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e8edf2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Hind Siliguri', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.bn-mode { font-family: 'Hind Siliguri', 'Space Grotesk', sans-serif; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(23,64,96,0.07); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid var(--border);
  aspect-ratio: 1 / 1;
}
.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em;
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 8px 18px; border-radius: 6px;
  font-size: 0.85rem !important; font-weight: 700 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #1d5280 !important; transform: translateY(-1px); }

.lang-btn {
  background: var(--accent); color: var(--primary);
  border: none; cursor: pointer;
  font-family: 'Space Grotesk', 'Hind Siliguri', sans-serif;
  font-size: 0.75rem; font-weight: 800;
  padding: 6px 14px; border-radius: 20px;
  letter-spacing: 0.03em; white-space: nowrap; flex-shrink: 0;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(251,188,5,0.3);
}
.lang-btn:hover { background: #e6ac00; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary); border-radius: 2px; transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0;
  background: #fff; z-index: 99;
  padding: 20px 5%; flex-direction: column;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 13px 0; font-size: 1rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--primary); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 90px 5% 80px;
  position: relative; overflow: hidden;
  background: #ffffff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(23,64,96,0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,64,96,0.11) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 620px;
}

/* Banner image — Bengali text on transparent bg */
.hero-banner-wrap {
  margin-bottom: 28px;
}
.hero-banner-img {
  height: auto; width: 50vw; max-width: 520px; min-width: 260px;
  object-fit: contain;
  display: block;
}

.hero-motto {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600; color: var(--primary);
  margin-bottom: 18px; letter-spacing: -0.01em;
}
body.bn-mode .hero-motto { font-family: 'Hind Siliguri', sans-serif; font-weight: 700; }

.hero-desc {
  font-size: 1rem; line-height: 1.75;
  color: var(--muted); margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 16px rgba(23,64,96,0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(23,64,96,0.3); background: #1d5280; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(23,64,96,0.2);
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }

/* ── SECTIONS ── */
section { padding: 90px 5%; }

.section-label {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(251,188,5,0.1);
  padding: 4px 12px; border-radius: 4px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary); margin-bottom: 14px; line-height: 1.15;
  letter-spacing: -0.02em;
}
body.bn-mode .section-title { font-family: 'Hind Siliguri', sans-serif; font-weight: 700; letter-spacing: 0; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 480px; line-height: 1.7; }

/* ── VIDEOS ── */
.videos { background: #f7fafc; }

.videos-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.view-all {
  font-size: 0.875rem; font-weight: 700;
  color: var(--primary); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: opacity .2s;
}
.view-all:hover { opacity: .65; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.video-card {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit; display: block;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(23,64,96,0.13); }
.video-thumb {
  position: relative; aspect-ratio: 9/16;
  overflow: hidden; background: #dde4ec;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23,64,96,0); transition: background .25s;
}
.video-card:hover .play-overlay { background: rgba(23,64,96,0.28); }
.play-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.8);
  transition: opacity .25s, transform .25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.video-card:hover .play-btn { opacity: 1; transform: scale(1); }
.play-btn svg { width: 16px; fill: var(--primary); margin-left: 2px; }
.shorts-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ff0000; color: #fff;
  font-size: 0.6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 3px; letter-spacing: 0.05em;
}
.video-info { padding: 12px 12px 14px; }
.video-title { font-size: 0.82rem; font-weight: 600; line-height: 1.45; color: var(--text); }

/* ── ABOUT ── */
.about { background: var(--primary); color: #fff; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

/* LEFT: founder */
.about .section-label { color: var(--accent); background: rgba(251,188,5,0.15); }
.about .section-title { color: #fff; }
body.bn-mode .about .section-title { font-family: 'Hind Siliguri', sans-serif; }
.about .section-sub { color: rgba(255,255,255,0.6); max-width: 100%; }

.founder-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 32px;
}
.founder-photo-wrap {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.founder-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.founder-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.founder-role { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 3px; }

.medal-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 24px;
}
.medal-top { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.04em; margin-bottom: 3px; }
.medal-name { display: block; font-size: 0.8rem; font-weight: 800; color: rgba(255,255,255,0.85); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 3px; font-family: 'Space Grotesk', sans-serif; }
.medal-year { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.4); letter-spacing: 0.07em; text-transform: uppercase; }

.founder-contact { display: flex; flex-direction: column; gap: 9px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* RIGHT: mission */
.about-mission { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 4px; }
.about-mission .section-label { align-self: flex-start; }
.about-mission .section-sub { color: rgba(255,255,255,0.65); max-width: 100%; font-size: 1.05rem; line-height: 1.75; }

.about-highlight {
  margin-top: 28px; padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.05);
  border-radius: 0 10px 10px 0;
}
.about-highlight p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.8); }

/* ── SOCIAL ── */
.social-section { background: #f7fafc; }

.social-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 16px; margin-top: 44px;
}
.social-card {
  border-radius: 10px; padding: 16px 18px;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
}
.social-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(23,64,96,0.1); border-color: rgba(23,64,96,0.18); }
.social-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon svg { width: 22px; height: 22px; }
.social-name { font-weight: 700; font-size: 0.93rem; color: var(--primary); }
.social-handle { font-size: 0.78rem; color: var(--muted); }
.social-link { font-size: 0.7rem; color: var(--muted); margin-top: 1px; word-break: break-all; }
.social-arrow { font-size: 1rem; color: var(--accent); margin-left: auto; font-weight: 700; flex-shrink: 0; }

.soc-yt .social-icon { background: rgba(255,0,0,0.07); }
.soc-yt .social-icon svg { fill: #ff0000; }
.soc-fb .social-icon { background: rgba(24,119,242,0.07); }
.soc-fb .social-icon svg { fill: #1877f2; }
.soc-ig .social-icon { background: rgba(225,48,108,0.07); }
.soc-tt .social-icon { background: rgba(0,0,0,0.05); }
.soc-tt .social-icon svg { fill: #010101; }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  padding: 44px 5% 28px;
  color: rgba(255,255,255,0.55);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo-round { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); }
.footer-brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 800; color: rgba(255,255,255,0.85); }
.footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom { font-size: 0.8rem; text-align: center; color: #ffffff; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp .6s forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }
.d1{animation-delay:.05s}.d2{animation-delay:.18s}.d3{animation-delay:.32s}.d4{animation-delay:.46s}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .social-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-right { gap: 8px; }
  .hero-banner-img { width: 80vw; min-width: 0; }
  .video-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .btn-outline { display: none; }
}
@media (max-width: 400px) {
  .social-grid { grid-template-columns: 1fr 1fr; }
}
