/*!
 * agency.css (FULL - Your original + fixes at end)
 * - Keeps everything you had
 * - Adds overrides to fix spacing + carousel sizing + contact form contrast
 */

/* Base */
body {
  overflow-x: hidden;
  font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

p { line-height: 1.75; }

a { color: #d6dbe2; }
a:hover { color: #084cb8; }

.text-primary { color: #0a6bff !important; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.page-section { padding: 100px 0; }
.page-section h2.section-heading {
  font-size: 40px;
  margin: 0 0 15px;
}
.page-section h3.section-subheading {
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 75px;
  text-transform: none;
  font-family: 'Roboto Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (min-width: 768px) {
  section { padding: 150px 0; }
}

/* Selection */
::selection { background: #fed136; text-shadow: none; }
img::selection { background: transparent; }

/* Buttons */
.btn {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
}
.btn-xl { font-size: 18px; padding: 20px 40px; }

.btn-primary {
  background: linear-gradient(180deg, #0a6bff, #084cb8);
  border: none;
}
.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  filter: brightness(0.97);
  color: #e9f1ff;
}
.btn-primary:active, .btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(10, 107, 255, 0.35) !important;
}

/* Navbar (modern) */
#mainNav {
  background: rgba(15, 26, 44, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mainNav .navbar-toggler {
  font-size: 12px;
  padding: 13px;
  text-transform: uppercase;
  color: white;
  border: 0;
  background-color: #0a6bff;
}
#mainNav .navbar-brand {
  color: #0a6bff;
  font-weight: 800;
  letter-spacing: 0.5px;
}
#mainNav .navbar-brand:hover { color: #084cb8; }

#mainNav .navbar-nav .nav-item .nav-link {
  font-size: 90%;
  font-weight: 600;
  padding: 0.75em 0;
  letter-spacing: 1px;
  color: white;
}
#mainNav .navbar-nav .nav-item .nav-link.active,
#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #0a6bff;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 18px;
    padding-bottom: 18px;
    transition: padding-top 0.3s, padding-bottom 0.3s;
  }
  #mainNav .navbar-nav .nav-item .nav-link {
    padding: 1.0em 1em !important;
  }
  #mainNav.navbar-shrink {
    padding-top: 0;
    padding-bottom: 0;
    background: rgba(15, 26, 44, 0.95);
  }
}

/* Hero */
header.masthead {
  color: white;
  background: radial-gradient(140% 120% at 20% 20%, #ffffff 0%, #096be2 40%, #0f1a2c 100%);
  background-position: center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
header.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,26,44,0.70) 0%, rgba(15,26,44,0.25) 60%, rgba(15,26,44,0.05) 100%);
  pointer-events: none;
}
header.masthead .container { position: relative; z-index: 2; }

header.masthead .intro-text { padding-top: 90px; padding-bottom: 70px; }
.hero-badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.60);
  color: #ffd75a;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 15px;
}
header.masthead .intro-text .intro-lead-in {
  font-size: 18px;
  font-style: normal;
  margin-bottom: 25px;
  opacity: 0.95;
}
header.masthead .intro-text .intro-heading {
  font-size: 46px;
  line-height: 1.10;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.hero-cta .btn { margin: 6px 8px; }
.hero-cta .btn-outline-light {
  border: 2px solid rgba(255,255,255,0.85);
}
.hero-cta .btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (min-width: 768px) {
  header.masthead .intro-text { padding-top: 190px; padding-bottom: 140px; }
  header.masthead .intro-text .intro-heading { font-size: 68px; }
  header.masthead .intro-text .intro-lead-in { font-size: 20px; }
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.trust-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* Hero Carousel */
.hero-carousel {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
/* Hero Carousel - FIX Bootstrap behaviour */
.hero-carousel .carousel-item {
  height: 360px;
  background: #0f1a2c;
  display: none;              /* let Bootstrap control visibility */
  align-items: center;
  justify-content: center;
}

.hero-carousel .carousel-item.active,
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev {
  display: flex;              /* only flex when Bootstrap shows/animates */
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1a2c;
}
.hero-carousel .carousel-caption {
  background: rgba(15, 26, 44, 0.60);
  border-radius: 10px;
  padding: 12px 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

/* Portfolio (Products) */
#portfolio .portfolio-item { margin: 0 0 20px; }
#portfolio .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  max-width: 420px;
  margin: 0 auto;
  cursor: pointer;
  height: 260px;
  overflow: hidden;
  border-radius: 14px;
}
#portfolio .portfolio-item .portfolio-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all ease 0.35s;
  opacity: 0;
  background: rgba(254, 209, 54, 0.9);
}
#portfolio .portfolio-item .portfolio-link:hover .portfolio-hover { opacity: 1; }
#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
  font-size: 20px;
  position: absolute;
  top: 50%;
  width: 100%;
  margin-top: -12px;
  text-align: center;
  color: #fff;
}

#portfolio .portfolio-item .portfolio-caption {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px;
  text-align: center;
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}
#portfolio .portfolio-item .portfolio-caption p {
  font-size: 15px;
  font-style: italic;
  margin: 0;
  color: #6c757d;
}

/* mini specs */
.mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.mini-specs span {
  background: #f7f7f7;
  border: 1px solid #eee;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
}

/* Blog cards */
.blog-grid { margin-top: 30px; }
.blog-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.blog-card h4 { font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.blog-card .meta { color: #6c757d; font-size: 14px; margin-bottom: 10px; }
.blog-card p { flex: 1; margin-bottom: 10px; }
.blog-card .tag {
  display: inline-block;
  background: #fde7a6;
  color: #8a5b00;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Contact cards */
.contact-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.contact-list li { padding: 6px 0; }

/* Featured thumbs */
.featured-thumb{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:12px;
}

/* Modals */
.portfolio-modal .modal-dialog { margin: 1rem; max-width: 100vw; }
.portfolio-modal .modal-content { padding: 90px 0; text-align: center; }
.portfolio-modal .modal-content h2 { font-size: 2.4em; margin-bottom: 10px; }
.portfolio-modal .modal-content p.item-intro {
  font-size: 16px;
  font-style: italic;
  margin: 12px 0 26px;
  color: #6c757d;
}
.portfolio-modal .modal-content img { margin-bottom: 20px; border-radius: 12px; }
.portfolio-modal .close-modal {
  position: absolute; top: 25px; right: 25px;
  width: 75px; height: 75px; cursor: pointer; background-color: transparent;
}
.portfolio-modal .close-modal:hover { opacity: 0.3; }
.portfolio-modal .close-modal .lr {
  z-index: 1051; width: 1px; height: 75px; margin-left: 35px;
  transform: rotate(45deg); background-color: #212529;
}
.portfolio-modal .close-modal .lr .rl {
  z-index: 1052; width: 1px; height: 75px;
  transform: rotate(90deg); background-color: #212529;
}

/* Spec grid inside modal */
.spec-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0 26px;
}
@media(min-width: 768px){
  .spec-grid{ grid-template-columns: 1fr 1fr; }
}
.spec-card{
  text-align:left;
  background:#ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.spec-card h3{ font-size: 18px; margin-bottom: 10px; }
.spec-card ul{ padding-left: 18px; margin-bottom: 0; }
.spec-card li{ margin: 6px 0; }

/* Timeline (from Agency) */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline:before {
  position: absolute;
  top: 0; bottom: 0; left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: '';
  background-color: #e9ecef;
}
.timeline > li { position: relative; min-height: 50px; margin-bottom: 50px; }
.timeline > li:after, .timeline > li:before { display: table; content: ' '; }
.timeline > li:after { clear: both; }
.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: left;
}
.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  text-align: center;
  color: white;
  border: 7px solid #e9ecef;
  border-radius: 100%;
  background-color: #fed136;
}
.timeline > li .timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.timeline > li .timeline-image h4 { font-size: 12px; line-height: 16px; margin-top: 18px; }

@media (min-width: 768px) {
  .timeline:before { left: 50%; }
  .timeline > li { min-height: 100px; margin-bottom: 100px; }
  .timeline > li .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: right;
  }
  .timeline > li .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: left;
  }
}

/* Contact section background (premium) */
section#contact {
  background: radial-gradient(120% 120% at 10% 0%, #22304a 0%, #0b1220 60%, #050913 100%);
  background-repeat: no-repeat;
  background-position: center;
}
section#contact .section-heading { color: #fff; }
section#contact .section-subheading { color: rgba(255,255,255,0.70); }

section#contact label { color: #e9ecef; font-weight: 800; }
section#contact .form-control {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
}
section#contact .form-control:focus {
  border-color: #fed136;
  box-shadow: none;
}

/* Footer */
.footer {
  padding: 22px 0;
  text-align: center;
  background: #0b1220;
  color: rgba(255,255,255,0.78);
}
.footer span.copyright {
  font-size: 90%;
  line-height: 28px;
  text-transform: none;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
ul.social-buttons { margin-bottom: 0; }
ul.social-buttons li a {
  font-size: 20px;
  line-height: 50px;
  display: block;
  width: 50px;
  height: 50px;
  transition: all 0.3s;
  color: white;
  border-radius: 100%;
  outline: none;
  background-color: rgba(255,255,255,0.12);
}
ul.social-buttons li a:hover { background-color: #fed136; color:#0b1220; }

/* WhatsApp floating CTA */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  text-decoration: none;
}
.whatsapp-float i { font-size: 20px; }
.whatsapp-float:hover { color: #fff; filter: brightness(0.97); }

/* =========================
   FIXES + POLISH OVERRIDES
   (Added at END — does not remove anything)
========================= */

/* Stop the global 'section { padding: 150px 0; }' from overriding .page-section */
@media (min-width: 768px) {
  section { padding: 0; }
  .page-section { padding: 110px 0; }
}

/* Make hero spacing consistent */
header.masthead .intro-text {
  padding-top: 110px;
  padding-bottom: 80px;
}

/* Carousel responsive height */
.hero-carousel .carousel-item { height: 360px; }
@media (max-width: 991px) { .hero-carousel .carousel-item { height: 320px; } }
@media (max-width: 575px) { .hero-carousel .carousel-item { height: 260px; } }

/* Better caption readability */
.hero-carousel .carousel-caption h5 { margin-bottom: 6px; font-weight: 800; }
.hero-carousel .carousel-caption p { margin-bottom: 0; opacity: 0.95; }

/* Portfolio height tweak on small screens */
@media (max-width: 575px) {
  #portfolio .portfolio-item .portfolio-link { height: 220px; }
}

/* Banner gallery */
/* Banner gallery */
.banner-gallery {
  padding: 40px 0;
  background: #0f1a2c;
}

.banner-carousel {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

/* ✅ FIX: let Bootstrap control visibility */
.banner-carousel .carousel-item {
  height: 420px;
  background: #0f1a2c;
  display: none;              /* IMPORTANT */
  align-items: center;
  justify-content: center;
}

/* ✅ Only flex when Bootstrap is animating/showing */
.banner-carousel .carousel-item.active,
.banner-carousel .carousel-item-next,
.banner-carousel .carousel-item-prev {
  display: flex;
}

.banner-carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f1a2c;
}

@media (max-width: 991px) { .banner-carousel .carousel-item { height: 360px; } }
@media (max-width: 575px) { .banner-carousel .carousel-item { height: 280px; } }


/* CONTACT form contrast (dark section + cards) */
/* CONTACT form contrast (dark section + cards) - PROFESSIONAL DARK */
section#contact .contact-card {
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

/* Titles/paragraphs inside the card */
section#contact .contact-card h1,
section#contact .contact-card h2,
section#contact .contact-card h3,
section#contact .contact-card h4,
section#contact .contact-card h5,
section#contact .contact-card h6 {
  color: #ffffff;
}

section#contact .contact-card p,
section#contact .contact-card li,
section#contact .contact-card strong,
section#contact .contact-card label,
section#contact .contact-card .text-muted {
  color: rgba(255,255,255,0.88) !important;
}

/* Make text-muted readable on dark */
section#contact .contact-card .text-muted {
  color: rgba(255,255,255,0.70) !important;
}

/* Inputs */
section#contact .form-control {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
}

section#contact .form-control::placeholder {
  color: rgba(255,255,255,0.55);
}

section#contact .form-control:focus {
  background: rgba(255,255,255,0.10);
  border-color: rgba(254, 209, 54, 0.85); /* your gold */
  box-shadow: 0 0 0 0.2rem rgba(254, 209, 54, 0.18);
  color: #ffffff;
}

/* Select dropdown options readable */
section#contact select.form-control option {
  color: #111;
}

/* Links inside contact section */
section#contact a {
  color: #ffd75a;
}
section#contact a:hover {
  color: #fed136;
}


/* Select options readable */
section#contact select.form-control option { color: #111; }
section#contact .contact-list li,
section#contact .contact-list strong {
  color: #111;
}

/* WhatsApp hover polish */
.whatsapp-float { transition: transform 0.18s ease, filter 0.18s ease; }
.whatsapp-float:hover { transform: translateY(-2px); }

/* Nav brand: keep clean */
#mainNav .navbar-brand { text-transform: none; }

/* Link contrast on dark contact section */
section#contact a { color: #ffd75a; }
section#contact a:hover { color: #fed136; }
