/* ============================
   BPO Accountants - Modern Style
   Fixed with Relative URLs
   ============================ */

:root {
  --bpo-primary: #0f172a;
  --bpo-accent: #0ea5e9;
  --bpo-accent-light: #38bdf8;
  --bpo-muted: #64748b;
  --bpo-bg: #0b1024;
  --bpo-menu-btn: #0ea5e9;
}

/* Improved text readability for desktop */
body {
  font-feature-settings: "kern" 1, "liga" 1;
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
    line-height: 1.65;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 18px;
    line-height: 1.7;
  }
}

.fs-5 {
  font-size: 1.35rem !important;
}

@media (min-width: 768px) {
  .fs-5 {
    font-size: 1.45rem !important;
  }
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .lead {
    font-size: 1.3rem;
  }
}

/* Modern Mobile-First Navigation */
.navbar {
  --bs-navbar-padding-y: 0.75rem;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Enhanced Mobile Menu Button */
.navbar-toggler {
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  border: 2px solid var(--bpo-menu-btn);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bpo-menu-btn), #60a5fa);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.5);
}

.navbar-toggler:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Mobile Navigation Styles */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 16px;
    margin-top: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .navbar-nav .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--bpo-primary) !important;
  }
  
  .navbar-nav .nav-link:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(56, 189, 248, 0.1));
    color: var(--bpo-accent) !important;
    transform: translateX(8px);
  }
  
  .navbar-nav .btn {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }
}
/* Mobile optimization for About section */
.about-img img {
  max-height: 500px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-img img {
    max-height: 300px;
  }
  
  .about-title {
    font-size: 1.75rem !important;
  }
  
  .about-subtitle {
    font-size: 1.35rem !important;
  }
}
/* Desktop Navigation - Clean without separators - STRONGER SPECIFICITY */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    gap: 1rem !important;
    align-items: center !important;
  }
  
  .navbar-expand-lg .navbar-nav .nav-link {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
  }
  
  .navbar-expand-lg .navbar-nav .nav-link:hover {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0ea5e9 !important;
  }
  
  .navbar-expand-lg .navbar-nav .btn {
    font-size: 1.05rem !important;
    padding: 0.75rem 1.75rem !important;
    margin-left: 1.5rem !important;
  }
}

/* FIXED: Professional Light Gray Hero instead of Blue */
.hero {
  background: 
    radial-gradient(1200px 600px at 80% -10%, rgba(71,85,105,.08), rgba(71,85,105,0) 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(30,41,59,.06), rgba(30,41,59,0) 60%),
    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #e2e8f0 75%, #cbd5e1 100%);
  color: #1e293b;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.05'%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Ccircle cx='51' cy='9' r='2'/%3E%3Ccircle cx='9' cy='51' r='2'/%3E%3Ccircle cx='51' cy='51' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}
.hero-badge {
  background: rgba(30,41,59,.12); 
  border: 1px solid rgba(30,41,59,.25);
  backdrop-filter: blur(16px);
  border-radius: 50px;
}

.brandmark {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9, #aae3ff); 
  display: grid; 
  place-items: center; 
  color: #fff; 
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.logo-cloud img {
  opacity: .75; 
  filter: grayscale(1); 
  transition: opacity .2s ease;
}

.logo-cloud img:hover {
  opacity: 1;
}

.section-title {
  letter-spacing: .2px;
}

.card {
  border: 1px solid #eef2f7;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.check {
  width: 2rem;
  height: 2rem; 
  border-radius: 50%; 
  display: inline-grid; 
  place-items: center; 
  background: rgba(34,197,94,.1); 
  color: #16a34a;
  font-size: 1.1rem;
}

.bg-soft {
  background: #f8fafc;
}

.bg-accent {
  background: linear-gradient(180deg, #eef2ff 0, #e0e7ff 100%);
}

.list-checked li {
  padding-left: 1.75rem; 
  position: relative;
}

.list-checked li::before {
  content: "\f26e"; 
  font-family: "bootstrap-icons"; 
  position: absolute; 
  left: 0; 
  top: 0.15rem; 
  color: #16a34a;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.rounded-4 {
  border-radius: 1rem!important;
}

.footer-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}

@media (min-width:992px) {
  .footer-logo-img { 
    height: 40px; 
  }
}

html { 
  scroll-behavior: smooth; 
}

/* Modern Button Enhancements */
.btn {
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-dark {
  background: linear-gradient(135deg, var(--bpo-primary), var(--bpo-accent));
  border: none;
}

.btn-dark:hover {
  background: linear-gradient(135deg, var(--bpo-accent), var(--bpo-primary));
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* FIXED: Text Gradient for Dark Hero Background */
.text-gradient {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

/* Mobile menu auto-close fix */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link[href^="#"] {
    position: relative;
  }
}
@media (max-width: 768px) {
  .display-5 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .h1 {
    font-size: 2rem;
  }
}

/* Enhanced Image Styling */
.hero .ratio img {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FIXED: Larger Handshake Image */
.welcome-portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.08);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .welcome-portrait {
    margin: 0;
    max-width: 380px;
  }
}

.welcome-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.welcome-portrait::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, #0ea5e9, #aae3ff);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.1;
}

/* Modern section cards for services page */
.modern-section-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.modern-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #aae3ff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.modern-section-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modern-section-card:hover::before {
  transform: scaleX(1);
}

.section-image {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  color: var(--bpo-accent);
  border: 2px solid rgba(14, 165, 233, 0.1);
  transition: all 0.3s ease;
}

.modern-section-card:hover .section-image {
  background: linear-gradient(135deg, #0ea5e9, #aae3ff);
  color: white;
  transform: scale(1.1);
}

/* Parallax background */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.8));
}

.parallax .container {
  position: relative;
  z-index: 2;
}

.icon-tile {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

@media (max-width: 768px) {
  .modern-section-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .section-image {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .parallax {
    background-attachment: scroll;
  }
}

/* Modern Insights Card Styling - Fixed Version */
#insights .insight-card {
  background: white !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  transition: all 0.4s ease !important;
  position: relative !important;
  height: 100% !important;
}

#insights .insight-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

#insights .insight-image {
  position: relative !important;
  height: 200px !important;
  overflow: hidden !important;
}

#insights .insight-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}

#insights .insight-card:hover .insight-image img {
  transform: scale(1.05) !important;
}

#insights .insight-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(170, 227, 255, 0.6)) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#insights .insight-card:hover .insight-overlay {
  opacity: 1 !important;
}

#insights .insight-icon {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  color: white !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

#insights .insight-content {
  padding: 2rem !important;
}

#insights .insight-category {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #0ea5e9 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#insights .insight-content h3 {
  color: #1e293b !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

#insights .insight-content p {
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

@media (max-width: 768px) {
  #insights .insight-image {
    height: 180px !important;
  }
  
  #insights .insight-content {
    padding: 1.5rem !important;
  }
}

/* Enhanced Contact Section Styling */
.contact-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0ea5e9;
  border: 2px solid rgba(14, 165, 233, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: white;
  transform: scale(1.05);
}

.contact-item {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.contact-item:hover {
  background: rgba(14, 165, 233, 0.02);
}

.form-control-lg, .form-select-lg {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.form-control-lg:focus, .form-select-lg:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.1);
}

.btn-outline-primary {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

.btn-outline-primary:hover {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  border: none;
  border-radius: 12px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  transform: translateY(-1px);
}