/* ═══════════════════════════════════════════════
   BASTORIANS TECH AND SOLUTIONS — Global Styles
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --bg-dark:       #000000;
  --bg-dark2:      #0d1117;
  --bg-card-dark:  #1a1f2e;
  --bg-light:      #f5f5f5;
  --bg-white:      #ffffff;
  --blue:          #2563eb;
  --blue-hover:    #3b82f6;
  --blue-light-bg: #eff6ff;
  --text-white:    #ffffff;
  --text-dark:     #111111;
  --text-muted:    #6b7280;
  --border-dark:   rgba(255,255,255,0.1);
  --border-light:  #e5e7eb;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-pill:   999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
.hero-h1   { font-size: clamp(40px, 6vw, 80px); font-weight: 800; line-height: 1.05; letter-spacing: -2px; }
.section-h2{ font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.15; }
.card-h3   { font-size: 22px; font-weight: 600; }
.body-text { font-size: 16px; font-weight: 400; line-height: 1.75; }
.label-text{ font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.blue-accent { color: var(--blue); }
.section-label { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 18px 0;
  transition: all 0.4s ease;
}
#navbar.dark-nav { background: transparent; }
#navbar.dark-nav.scrolled {
  backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.88);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
}
#navbar.light-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
#navbar.light-nav .nav-link-item { color: var(--text-dark); }
#navbar.light-nav .logo-text     { color: var(--text-dark); }
#navbar.dark-nav  .nav-link-item { color: rgba(255,255,255,0.8); }
#navbar.dark-nav  .logo-text     { color: var(--text-white); }
#navbar.dark-nav.scrolled .nav-link-item { color: rgba(255,255,255,0.85); }

.logo-text  { font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; transition: color 0.2s; }
.logo-dot   { color: var(--blue); }
.nav-link-item { text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; padding: 6px 14px; }
.nav-link-item:hover { color: var(--blue) !important; }
.nav-link-item.active-link { color: var(--blue) !important; font-weight: 700; }

/* ─── BUTTONS ─── */
.btn-cta {
  background: var(--blue); color: #fff !important; border: none;
  border-radius: var(--radius-pill); padding: 10px 22px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
}
.btn-cta:hover { background: var(--blue-hover); box-shadow: 0 0 0 8px rgba(37,99,235,0.15); }

.btn-primary-blue {
  background: var(--blue); color: #fff !important; border: none;
  border-radius: var(--radius-pill); padding: 14px 32px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-primary-blue:hover { background: var(--blue-hover); color: #fff; box-shadow: 0 0 0 12px rgba(37,99,235,0.1); }

.btn-secondary-dark {
  background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-pill); padding: 14px 32px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-secondary-dark:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-white-dark {
  background: #fff; color: var(--text-dark) !important;
  border-radius: var(--radius-pill); padding: 14px 32px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; text-decoration: none; display: inline-block; border: none;
}
.btn-white-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-outline-blue {
  background: transparent; color: var(--blue) !important;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill); padding: 12px 28px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.3s; text-decoration: none; display: inline-block;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff !important; }

/* ─── HAMBURGER ─── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; margin: 5px 0; transition: all 0.3s; }
#navbar.dark-nav  .hamburger span { background: #fff; }
#navbar.light-nav .hamburger span { background: var(--text-dark); }

/* Mobile overlay */
#mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: #000; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
#mobile-menu.open { display: flex; opacity: 1; }
.mobile-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }
.mobile-nav-link { color: #fff; text-decoration: none; font-size: 30px; font-weight: 700; margin: 10px 0; transition: color 0.2s; }
.mobile-nav-link:hover { color: var(--blue); }
.mobile-nav-link.active-link { color: var(--blue); }

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.s1 { transition-delay: 0.10s !important; }
.s2 { transition-delay: 0.20s !important; }
.s3 { transition-delay: 0.30s !important; }
.s4 { transition-delay: 0.40s !important; }
.s5 { transition-delay: 0.50s !important; }
.s6 { transition-delay: 0.60s !important; }

/* ─── TICKER ─── */
.ticker-wrap { background: var(--bg-dark2); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); padding: 14px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { white-space: nowrap; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; letter-spacing: 0.05em; padding: 0 36px; display: flex; align-items: center; gap: 10px; }
.ticker-dot  { width: 4px; height: 4px; background: var(--blue); border-radius: 50%; flex-shrink: 0; }

/* ─── HERO WORD STAGGER ─── */
.hero-word { display: inline-block; opacity: 0; transform: translateY(24px); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.hero-word.in { opacity: 1; transform: translateY(0); }

/* ─── HERO ─── */
.page-hero {
  min-height: 68vh; display: flex; align-items: center;
  background: #000;
  background-image: radial-gradient(ellipse 80% 55% at 50% 0%, #0d1117 0%, #000 70%);
  overflow: hidden; position: relative;
}
.page-hero-full {
  min-height: 100vh; display: flex; align-items: center;
  background: #000;
  background-image: radial-gradient(ellipse 80% 55% at 50% 0%, #0d1117 0%, #000 70%);
  overflow: hidden; position: relative;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── SECTION PADS ─── */
.section-pad    { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.section-pad-xs { padding: 48px 0; }
.dark-section   { background: var(--bg-dark);      color: var(--text-white); }
.dark2-section  { background: var(--bg-dark2);     color: var(--text-white); }
.light-section  { background: var(--bg-light); }
.white-section  { background: var(--bg-white); }

/* ─── CARDS ─── */
.service-card { background: var(--bg-light); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 32px; transition: all 0.3s ease; }
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37,99,235,0.1); }
.service-icon { width: 44px; height: 44px; margin-bottom: 20px; color: var(--blue); }

.dark-card { background: var(--bg-card-dark); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); }

.why-dark-card { background: var(--bg-dark2); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border-dark); height: 100%; }

.testimonial-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.testimonial-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.stars { color: var(--blue); font-size: 17px; margin-bottom: 12px; }
.client-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0; }

/* ─── FEATURE ROWS ─── */
.feature-row { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.feature-icon { width: 36px; height: 36px; background: var(--blue-light-bg); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue); }

/* ─── PROCESS STEPS ─── */
.step-number { width: 56px; height: 56px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.process-step { text-align: center; }

/* ─── STAT COUNTERS ─── */
.stat-counter  { text-align: center; padding: 40px 20px; }
.stat-number   { font-size: clamp(44px, 5vw, 64px); font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label    { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-top: 8px; letter-spacing: 0.05em; }

/* ─── INDUSTRY CARDS ─── */
.industry-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 28px; transition: all 0.3s; cursor: pointer; }
.industry-card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(37,99,235,0.1); transform: translateY(-3px); }
.industry-card.featured { border: 2px solid var(--blue); }
.featured-badge { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); display: inline-block; margin-bottom: 12px; }
.industry-link { color: var(--blue); font-size: 13px; font-weight: 600; text-decoration: none; }
.industry-link:hover { color: var(--blue-hover); }

/* ─── CASE STUDY ─── */
.tag-pill { background: rgba(37,99,235,0.15); color: var(--blue); border-radius: var(--radius-pill); padding: 6px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: inline-block; }
.big-metric-card { background: var(--bg-card-dark); border-radius: var(--radius-lg); padding: 40px 56px; border: 1px solid var(--border-dark); }
.metric-number { font-size: clamp(60px, 8vw, 96px); font-weight: 800; color: var(--blue); line-height: 1; }
.small-stat-card { background: var(--bg-card-dark); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border-dark); text-align: center; }
.play-btn-wrap { background: var(--bg-card-dark); border-radius: var(--radius-lg); padding: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--border-dark); min-height: 220px; background-image: linear-gradient(135deg, var(--bg-card-dark) 0%, #0d1117 100%); }
.play-circle { width: 72px; height: 72px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.play-circle:hover { box-shadow: 0 0 0 16px rgba(37,99,235,0.1); transform: scale(1.05); }
.timeline-wrap { border-left: 2px solid rgba(37,99,235,0.3); padding-left: 32px; }
.timeline-entry { position: relative; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: -39px; top: 20px; width: 14px; height: 14px; background: var(--blue); border-radius: 50%; border: 3px solid #000; }
.timeline-card { background: var(--bg-card-dark); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border-dark); }
.timeline-card.featured-month { border-color: var(--blue); }
.month-header { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.metric-pill { background: rgba(37,99,235,0.15); color: var(--blue); padding: 4px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; display: inline-block; margin: 3px; }

/* ─── CONTACT ─── */
.contact-form-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.form-field { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-dark); transition: border-color 0.2s; outline: none; background: #fff; resize: vertical; }
.form-field:focus { border-color: var(--blue); }
.form-field.error { border-color: #ef4444; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; display: block; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 44px; height: 44px; background: var(--blue-light-bg); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.social-icon { width: 40px; height: 40px; background: var(--bg-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: all 0.2s; text-decoration: none; }
.social-icon:hover { background: var(--blue); color: #fff; }
.success-msg { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: var(--radius-md); padding: 20px; text-align: center; color: #166534; font-weight: 600; display: none; }
.success-msg.show { display: block; }

/* ─── ABOUT VALUES ─── */
.value-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border-light); }
.value-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }

/* ─── BOTTOM CTA BAND ─── */
.cta-band { background: var(--blue); padding: 80px 0; text-align: center; }

/* ─── BACK LINK ─── */
.back-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; transition: color 0.2s; }
.back-link:hover { color: #fff; }

/* ─── FOOTER ─── */
footer { background: #000; color: rgba(255,255,255,0.55); padding: 64px 0 0; }
.footer-logo { color: #fff; font-size: 20px; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; }
.footer-col h5 { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 18px; }
.footer-link { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; margin-top: 48px; }
.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s; margin-right: 8px; }
.footer-social:hover { background: var(--blue); color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .desktop-nav { display: none !important; }
  .hero-h1 { font-size: 36px; letter-spacing: -1px; }
  .section-h2 { font-size: 26px; }
  .section-pad { padding: 60px 0; }
  .big-metric-card { padding: 28px 20px; }
  .why-dark-card { padding: 28px; }
  .contact-form-card { padding: 24px; }
}

/* ═══════════════════════════════════════════════
   DARK / LIGHT MODE THEME SYSTEM
   ═══════════════════════════════════════════════ */

/* ── Theme toggle button ── */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.theme-toggle:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
#navbar.light-nav .theme-toggle {
  border-color: var(--border-light);
  background: var(--bg-light);
  color: var(--text-dark);
}
#navbar.light-nav .theme-toggle:hover { background: var(--border-light); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── Light mode (default body) ── */
body {
  --page-bg:       #ffffff;
  --page-bg2:      #f5f5f5;
  --page-card-bg:  #ffffff;
  --page-text:     #111111;
  --page-text-sub: #6b7280;
  --page-border:   #e5e7eb;
  --page-card-hover-shadow: rgba(37,99,235,0.1);
  transition: background 0.35s, color 0.35s;
  background: var(--page-bg);
  color: var(--page-text);
}

/* ── Dark mode overrides ── */
body.dark-mode {
  --page-bg:       #0d1117;
  --page-bg2:      #161b22;
  --page-card-bg:  #1a1f2e;
  --page-text:     #e6edf3;
  --page-text-sub: #8b949e;
  --page-border:   rgba(255,255,255,0.1);
  --page-card-hover-shadow: rgba(37,99,235,0.2);
  --bg-white:      #0d1117;
  --bg-light:      #161b22;
  --text-dark:     #e6edf3;
  --text-muted:    #8b949e;
  --border-light:  rgba(255,255,255,0.1);
  --blue-light-bg: rgba(37,99,235,0.15);
  background: var(--page-bg);
  color: var(--page-text);
}

/* Dark mode: show sun, hide moon */
body.dark-mode .theme-toggle .icon-sun  { display: block; }
body.dark-mode .theme-toggle .icon-moon { display: none; }

/* Dark mode nav overrides */
body.dark-mode #navbar.light-nav {
  background: rgba(13,17,23,0.95) !important;
  border-bottom-color: rgba(255,255,255,0.08) !important;
}
body.dark-mode #navbar.light-nav .nav-link-item { color: rgba(255,255,255,0.8) !important; }
body.dark-mode #navbar.light-nav .logo-text     { color: #fff !important; }
body.dark-mode #navbar.light-nav .hamburger span { background: #fff !important; }
body.dark-mode #navbar.light-nav .theme-toggle {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Dark mode: white/light sections flip */
body.dark-mode .white-section  { background: var(--page-bg)  !important; }
body.dark-mode .light-section  { background: var(--page-bg2) !important; }

/* Dark mode: cards */
body.dark-mode .service-card,
body.dark-mode .service-detail-card {
  background: var(--page-card-bg) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .service-card:hover,
body.dark-mode .service-detail-card:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 12px 40px var(--page-card-hover-shadow) !important;
}
body.dark-mode .testimonial-card {
  background: var(--page-card-bg) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .value-card {
  background: var(--page-card-bg) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .value-card h4 { color: #e6edf3 !important; }
body.dark-mode .industry-card {
  background: var(--page-card-bg) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .industry-card.featured { border-color: var(--blue) !important; }
body.dark-mode .contact-form-card {
  background: var(--page-card-bg) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
body.dark-mode .form-field {
  background: var(--page-bg2) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #e6edf3 !important;
}
body.dark-mode .form-field::placeholder { color: #8b949e; }
body.dark-mode .form-label { color: #e6edf3 !important; }
body.dark-mode .social-icon { background: var(--page-card-bg) !important; color: #e6edf3 !important; }
body.dark-mode .social-icon:hover { background: var(--blue) !important; color: #fff !important; }
body.dark-mode .contact-icon { background: rgba(37,99,235,0.2) !important; }
body.dark-mode .feature-icon { background: rgba(37,99,235,0.2) !important; }
body.dark-mode .why-dark-card { background: #161b22 !important; }
body.dark-mode .card-h3 { color: #e6edf3; }
body.dark-mode h3, body.dark-mode h4 { color: #e6edf3; }
body.dark-mode .section-h2 { color: #e6edf3; }

/* Dark mode: accordion */
body.dark-mode .accordion-item  { background: var(--page-card-bg) !important; border-color: rgba(255,255,255,0.1) !important; }
body.dark-mode .accordion-button { background: var(--page-card-bg) !important; color: #e6edf3 !important; }
body.dark-mode .accordion-button:not(.collapsed) { background: var(--page-card-bg) !important; color: var(--blue) !important; box-shadow: none; }
body.dark-mode .accordion-body  { background: var(--page-card-bg) !important; }

/* Smooth transitions on all themed elements */
.service-card, .service-detail-card, .testimonial-card, .value-card,
.industry-card, .contact-form-card, .form-field, .accordion-item,
.accordion-button, section, nav, footer {
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

/* Dark mode footer */
body.dark-mode footer { background: #060a10 !important; }
