/* ========== ROOT VARIABLES ========== */
:root {
  --btn: #2596be;
  --primary: #2a599f;
  --dark-bg: #1f3e74;
  --neutral: #3d3d3d;
  --white: #ffffff;
  --muted: #9fb0c8;
  --page-padding: 90px;
}

/* ========== BASE STYLES ========== */
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--neutral);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--dark-bg);
  margin-bottom: 0.6rem;
}

/* ========== NAVBAR BASE ========== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all .3s ease;
  padding: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 125;
}

.navbar-brand img {
  height: 130px;
  width: auto;
  object-fit: scale-down;
  transition: all .2s ease;
}

.navbar-toggler { filter: invert(1); }

.nav-link {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-left: 12px;
  position: relative;
  transition: color .2s ease, transform .15s ease;
  padding-bottom: 6px;
  text-decoration: none !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--btn);
  transition: width .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: var(--btn); }
.nav-link:focus { outline: none; box-shadow: none; }

/* Responsive navbar brand */
@media (max-width: 991px) {
  .navbar-brand img { height: 80px; }
  .navbar-collapse {
    background: rgba(11,32,64,0.95);
    border-radius: 8px;
    padding: 12px;
  }
}

/* ========== SECTIONS & COMPONENTS ========== */
section { padding: var(--page-padding) 0; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-sub { text-align: center; color: var(--muted); max-width: 840px; margin: 0 auto 28px; }

.product-card {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(6,18,40,0.06);
  padding: 18px;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(6,18,40,0.12);
}
.product-card img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

.chip {
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg,#f8fafc,#ffffff);
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 24px rgba(6,18,40,0.03);
  text-align: center;
}

.why-grid .item {
  background: linear-gradient(180deg,rgba(41,64,122,0.03),rgba(41,64,122,0.02));
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(6,18,40,0.04);
}
.why-grid .item strong { color: var(--primary); display: block; margin-bottom: 8px; }

.proj-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(6,18,40,0.04);
}
.proj-card img { width: 100%; height: 200px; object-fit: cover; }

.blog-card {
  border-radius: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(6,18,40,0.04);
}

.contact-cta {
  background: linear-gradient(90deg,rgba(37,149,190,0.06),rgba(42,89,159,0.04));
  padding: 26px;
  border-radius: 12px;
  border: 1px solid rgba(6,18,40,0.04);
}

/* CTA Buttons */
.btn-primary-custom {
  background: var(--btn);
  color: var(--white);
  border: none;
  padding: 10px 26px;
  border-radius: 40px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(37,150,190,0.12);
  transition: all .3s ease;
}
.btn-primary-custom:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.hero .cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hero .cta-buttons .btn { flex: 1 1 auto; min-width: 160px; }
@media (max-width: 576px) { .hero .cta-buttons .btn { width: 100%; max-width: 320px; } }

/* Footer styles */
footer {
  background: linear-gradient(180deg,#0a2a54,#061833);
  color: #fff;
  padding: 36px 0;
}
footer h5, footer h6 { color: var(--btn); font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links a { color: #fff; text-decoration: none; display: block; padding: 4px 0; transition: all .3s ease; }
.footer-links a:hover { color: var(--btn) !important; text-decoration: underline; padding-left: 5px; }
footer p { margin-bottom: 8px; font-size: .95rem; }
hr.border-secondary { border-color: var(--btn) !important; opacity: 1; }
footer .small { font-size: .85rem; color: rgba(255,255,255,0.8); }
.footer-bottom { background: rgba(0,0,0,0.2); text-align: center; padding: 12px 0; font-size: .85rem; color: rgba(255,255,255,0.8); }

/* Contact buttons (general) */
.contact-buttons .btn {
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.contact-buttons .btn-outline-info {
  color: var(--btn);
  border-color: var(--btn);
}
.contact-buttons .btn-outline-info:hover {
  background-color: var(--btn);
  color: #fff;
  transform: translateY(-2px);
}
.contact-buttons .btn-outline-light {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.6);
}
.contact-buttons .btn-outline-light:hover {
  background-color: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}
@media (max-width: 576px) { .contact-buttons .btn { display: block; width: 100%; margin-bottom: 8px; } }

/* Misc hover links */
.hover-link:hover { color: var(--btn) !important; text-decoration: underline; transition: all 0.3s ease; }

/* Tabs */
.nav-tabs .nav-link { color: #333 !important; background: #f7f7f7; border-radius: 6px 6px 0 0; margin-right: 4px; }
.nav-tabs .nav-link.active { background: #ffffff !important; border-bottom: 2px solid #0d6efd; font-weight: 600; }

/* Paragraph spacing */
.product-description p { margin-bottom: 8px !important; }

/* Responsive overrides */
@media (max-width: 767px) {
  footer { text-align: center; }
  .footer-links a { padding: 6px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero p.lead { font-size: .95rem; }
  .product-card img { height: 180px; }
  section { padding: 48px 0; }
}
