/* ===========================
   CONSTRUCTION ROADMAP CSS
   cPanel Ready · Bengali Site
   =========================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a5c;
  --primary-light: #2d6a9f;
  --accent: #f0a500;
  --accent-dark: #c88a00;
  --white: #ffffff;
  --light: #f5f7fa;
  --light2: #eef1f6;
  --text: #1a1a2e;
  --text2: #4a5568;
  --text3: #718096;
  --border: #e2e8f0;
  --success: #38a169;
  --warning: #d69e2e;
  --danger: #e53e3e;
  --blue: #3182ce;
  --card-shadow: 0 2px 12px rgba(26,58,92,0.08);
  --card-shadow-hover: 0 8px 30px rgba(26,58,92,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===========================
   LOADER
   =========================== */
.loader {
  position: fixed; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-icon { font-size: 48px; margin-bottom: 20px; animation: bounce 0.8s ease infinite; }
.loader-bar {
  width: 200px; height: 4px; background: rgba(255,255,255,0.2);
  border-radius: 2px; overflow: hidden; margin: 0 auto 12px;
}
.loader-fill {
  height: 100%; width: 0; background: var(--accent);
  border-radius: 2px; animation: fillBar 1.5s ease forwards;
}
.loader-text { color: rgba(255,255,255,0.8); font-size: 14px; }

@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes fillBar { to { width: 100%; } }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; color: var(--primary);
}
.logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text2);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--light2); color: var(--primary);
}
.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 var(--transition);
}
.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); }

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  position: relative;
  background: var(--primary);
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg { position: absolute; inset: 0; }
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.2);
  color: var(--accent);
  border: 1px solid rgba(240,165,0,0.4);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700; line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px; line-height: 1.8;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 36px;
}
.hstat { text-align: center; padding: 8px 24px; }
.hstat-num {
  display: block; font-size: 26px; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.hstat-lbl { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hstat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--primary);
  padding: 14px 32px; border-radius: 8px;
  font-size: 16px; font-weight: 600;
  transition: all var(--transition);
}
.cta-btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(240,165,0,0.3); }
.btn-arrow { transition: transform var(--transition); }
.cta-btn:hover .btn-arrow { transform: translateY(3px); }
.hero-scroll-hint {
  position: absolute; bottom: 24px;
  font-size: 12px; color: rgba(255,255,255,0.4);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ===========================
   SECTIONS
   =========================== */
.section { padding: 80px 0; position: relative; }
.phase-section { background: var(--light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  color: var(--primary); line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--text2);
  max-width: 600px; margin-bottom: 40px;
}
.phase-badge {
  position: absolute; top: 24px; right: 24px;
  background: var(--primary); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 20px;
}
.phase-badge-2 { background: var(--primary-light); }
.phase-badge-3 { background: var(--accent); color: var(--primary); }

/* ===========================
   BIZ CARDS (Overview)
   =========================== */
.biz-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
  opacity: 0; transform: translateY(20px);
}
.biz-card.visible { opacity: 1; transform: translateY(0); }
.biz-card:hover { border-color: var(--primary-light); box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.biz-num {
  font-size: 48px; font-weight: 700;
  color: var(--light2); position: absolute; top: 16px; right: 20px;
  line-height: 1; user-select: none;
}
.biz-icon { font-size: 32px; margin-bottom: 14px; }
.biz-card h3 { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.biz-card p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.biz-tag {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(26,58,92,0.08); color: var(--primary);
}

/* Timeline bar */
.timeline-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tbar-item { text-align: center; cursor: pointer; }
.tbar-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border); margin: 0 auto 8px;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.tbar-item.active .tbar-dot, .tbar-item:hover .tbar-dot {
  background: var(--primary-light); border-color: var(--primary-light);
  transform: scale(1.3);
}
.tbar-label { font-size: 14px; font-weight: 600; color: var(--text); }
.tbar-period { font-size: 12px; color: var(--text3); }
.tbar-line { flex: 1; height: 2px; background: var(--border); max-width: 80px; }

/* ===========================
   METRICS ROW
   =========================== */
.metrics-row {
  display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap;
}
.metric-card {
  flex: 1; min-width: 160px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  text-align: center;
}
.m-val { font-size: 24px; font-weight: 700; color: var(--primary); }
.m-lbl { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ===========================
   STEPS GRID
   =========================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.step-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
}
.step-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--primary-light); }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.step-num {
  font-size: 28px; font-weight: 700; color: var(--light2);
  line-height: 1; flex-shrink: 0; min-width: 40px;
}
.step-info h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 2px 10px; border-radius: 12px;
}
.badge-red { background: #fff5f5; color: var(--danger); }
.badge-amber { background: #fffbeb; color: var(--warning); }
.badge-blue { background: #ebf8ff; color: var(--blue); }
.badge-green { background: #f0fff4; color: var(--success); }
.step-list li {
  font-size: 13px; color: var(--text2); padding: 5px 0;
  border-bottom: 1px solid var(--light2);
  padding-left: 16px; position: relative;
}
.step-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--accent-dark); font-size: 12px;
}
.step-list li:last-child { border-bottom: none; }

/* ===========================
   TIP BOX
   =========================== */
.tip-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fffbeb; border: 1px solid #f6e05e;
  border-radius: var(--radius-sm); padding: 16px 20px;
  margin: 20px 0;
}
.tip-icon { font-size: 20px; flex-shrink: 0; }
.tip-text { font-size: 14px; color: var(--text2); line-height: 1.7; }
.tip-text strong { color: var(--primary); }

/* ===========================
   LAUNCH GRID (Phase 2)
   =========================== */
.launch-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.launch-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
}
.launch-block:hover { box-shadow: var(--card-shadow-hover); }
.lb-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--primary); color: var(--white);
}
.lb-icon { font-size: 22px; }
.lb-header h3 { font-size: 15px; font-weight: 600; }
.lb-body { padding: 16px 20px; }
.lb-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--light2);
  font-size: 13px; color: var(--text2);
}
.lb-item:last-child { border-bottom: none; }
.lb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
}

/* ===========================
   SCALE CARDS (Phase 3)
   =========================== */
.scale-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 48px;
}
.scale-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  transition: all var(--transition);
}
.scale-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.sc-icon { font-size: 36px; margin-bottom: 14px; }
.scale-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.scale-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* Revenue bars */
.revenue-section {
  background: var(--primary); border-radius: var(--radius);
  padding: 32px;
}
.rev-title { font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 24px; }
.rev-bar-item { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.rev-period { font-size: 14px; color: rgba(255,255,255,0.7); min-width: 90px; }
.rev-bar-wrap { flex: 1; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.rev-bar {
  width: 0; height: 38px; background: var(--accent);
  border-radius: 4px; display: flex; align-items: center;
  padding: 0 14px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.rev-bar.animated { width: var(--w); }
.rev-bar span { font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* ===========================
   TEAM GRID
   =========================== */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--primary-light); }
.team-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.team-card h4 { font-size: 15px; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.team-tasks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.team-tasks span {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: var(--light2); color: var(--text2);
}
.team-salary { font-size: 12px; color: var(--accent-dark); font-weight: 500; }

/* Subcontractors */
.subcontractor-section {
  background: var(--light2); border-radius: var(--radius); padding: 24px;
}
.subcontractor-section h3 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sub-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 10px 14px; gap: 10px;
}
.sub-role { font-size: 13px; font-weight: 500; color: var(--primary); }
.sub-rate { font-size: 12px; color: var(--text3); text-align: right; }

/* ===========================
   INCOME LIST
   =========================== */
.income-list { display: flex; flex-direction: column; gap: 16px; }
.income-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.income-item::before {
  content: attr(data-num);
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 60px; font-weight: 700; color: var(--light2);
  line-height: 1; pointer-events: none;
}
.income-item:hover { box-shadow: var(--card-shadow-hover); }
.income-meta {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; border-bottom: 1px solid var(--light2);
}
.income-icon { font-size: 28px; flex-shrink: 0; }
.income-meta h4 { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.income-badge {
  font-size: 12px; color: var(--text3); font-weight: 400;
}
.income-details { padding: 14px 24px; }
.id-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--light);
  font-size: 13px;
}
.id-row:last-child { border-bottom: none; }
.id-row span:first-child { color: var(--text2); }
.id-row span:last-child { font-weight: 500; color: var(--primary); }

/* ===========================
   LICENSE TABLE
   =========================== */
.license-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.license-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.license-table th {
  background: var(--primary); color: var(--white);
  padding: 12px 16px; text-align: left;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.license-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.license-table tr:hover td { background: var(--light); }
.license-table tr:last-child td { border-bottom: none; }
.status-badge {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 12px; white-space: nowrap;
}
.status-first { background: #fff5f5; color: var(--danger); }
.status-free { background: #f0fff4; color: var(--success); }
.status-project { background: #ebf8ff; color: var(--blue); }
.status-yearly { background: #fffbeb; color: var(--warning); }

/* ===========================
   SUCCESS TIPS
   =========================== */
.tips-section { background: var(--primary); }
.tips-section .section-label { color: var(--accent); }
.tips-section .section-title { color: var(--white); }
.tips-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.tip-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 24px 20px;
  transition: all var(--transition);
}
.tip-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.tip-n {
  font-size: 36px; font-weight: 700;
  color: var(--accent); line-height: 1;
  margin-bottom: 12px;
}
.tip-card h4 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.tip-card p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #0d1f33; padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { text-align: center; }
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; font-size: 18px; font-weight: 600;
  color: var(--white); margin-bottom: 12px;
}
.footer-text { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* Scroll top */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition);
  z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-light); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hstat-div { width: 80px; height: 1px; }
  .metrics-row { flex-direction: column; }
  .metric-card { min-width: auto; }
  .income-item::before { display: none; }
  .phase-badge { position: static; display: inline-block; margin-bottom: 12px; }
  .rev-bar-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rev-period { min-width: auto; }
  .license-table { font-size: 12px; }
  .license-table th, .license-table td { padding: 8px 10px; }
  .tips-section .section-sub { color: rgba(255,255,255,0.65); }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-title { letter-spacing: -0.5px; }
  .biz-grid, .steps-grid, .scale-cards, .team-grid, .tips-grid { grid-template-columns: 1fr; }
}
