/* ============================================
   EUTECH TECHNOLOGIES — Constra Format Style
   ============================================ */

:root {
  --primary: #1e5631;
  --secondary: #2FA4D7;
  --dark: #1a1a2e;
  --light: #f5f9f6;
  --white: #ffffff;
  --muted: #6c757d;
  --border: rgba(30, 86, 49, 0.15);
  --font-sans: 'Roboto', sans-serif;
  --font-display: 'Playfair Display', serif;
}

/* Bootstrap primary/secondary overrides */
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background-color: var(--secondary) !important; border-color: var(--secondary) !important; }
.btn-secondary { background-color: var(--secondary) !important; border-color: var(--secondary) !important; color: #fff !important; }
.btn-secondary:hover { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }

/* ===== SPINNER ===== */
#spinner {
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s;
  z-index: 99999;
}
#spinner.show {
  transition: opacity .5s ease-out, visibility 0s linear 0s;
  visibility: visible; opacity: 1;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; right: 30px; bottom: 30px;
  transition: 0.5s; z-index: 99; display: none;
}

/* ===== TOPBAR ===== */
.topbar {
  padding: 8px 20px;
  background: var(--primary);
}
.topbar a { color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; transition: .3s; }
.topbar a:hover { color: var(--secondary); }

/* ===== NAVBAR ===== */
.sticky-top { transition: 1s; }

.navbar { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.navbar .navbar-brand h1 {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
}
.navbar .navbar-nav .nav-link {
  position: relative; padding: 10px 14px;
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 16px; color: #333; transition: .5s; z-index: 99;
}
.navbar .navbar-nav .nav-item { margin: 0 4px; position: relative; }
.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
  content: ""; width: 0; height: 0; position: absolute;
  border: 2px solid var(--secondary); opacity: 0; transition: 0.5s; z-index: 2;
}
.navbar .navbar-nav .nav-item::before { top: 0; left: 0; border-bottom: 0; border-right: 0; }
.navbar .navbar-nav .nav-item::after { bottom: 0; right: 0; border-top: 0; border-left: 0; }
.navbar .navbar-nav .nav-item:hover::after,
.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item.active::after,
.navbar .navbar-nav .nav-item.active::before { width: 50%; height: 50%; opacity: 1; }
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: var(--secondary) !important; }
.navbar .navbar-toggler { padding: 8px 15px; color: #fff; background: var(--secondary); border: none; }
.dropdown .dropdown-menu .dropdown-item:hover,
.dropdown .dropdown-menu .dropdown-item.active { background: var(--secondary); color: #fff; }
@media (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block; visibility: hidden; top: 100%;
    margin-top: 15% !important; transform: rotateX(-75deg);
    transform-origin: 0 0; border: 0; transition: .5s; opacity: 0; z-index: 9;
  }
  .navbar .nav-item:hover .dropdown-menu { transform: rotateX(0); visibility: visible; opacity: 1; }
}
@media (max-width: 991px) {
  .navbar .navbar-nav .nav-item::after,
  .navbar .navbar-nav .nav-item::before { display: none; }
  .navbar .navbar-nav .nav-link { padding: 12px 0; }
  .navbar .navbar-nav .nav-item { margin: 0; }
}

/* ===== PAGE HERO (breadcrumb) ===== */
.bg-breadcrumb {
  position: relative; overflow: hidden;
  background: linear-gradient(rgba(0,18,72,.7), rgba(0,18,72,.7)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80');
  background-position: center; background-size: cover;
  padding: 80px 0;
}
.bg-breadcrumb .breadcrumb-item a { color: #fff; text-decoration: none; }
.bg-breadcrumb .breadcrumb-item.active { color: var(--secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.6); }

/* ===== HERO CAROUSEL (index only) ===== */
.carousel .carousel-inner .carousel-item { position: relative; overflow: hidden; height: 100vh; }
@media (min-width: 992px) { .carousel .carousel-inner .carousel-item img { height: 100%; object-fit: cover; } }
@media (max-width: 991px) { .carousel .carousel-inner .carousel-item, .carousel .carousel-inner .carousel-item img { height: 700px; object-fit: cover; } }
@media (max-width: 576px) { .carousel-item .carousel-caption h1 { font-size: 28px; } }
.carousel .carousel-inner .carousel-item::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,.55); z-index: 1;
}
.carousel .carousel-inner .carousel-item .carousel-caption {
  height: 100%; display: flex; flex-direction: column;
  justify-content: center; z-index: 2;
}
.carousel .carousel-indicators { margin-bottom: 40px; z-index: 5; }
.carousel .carousel-indicators li {
  margin-right: 30px !important; width: 10px; height: 10px;
  border: 6px solid var(--secondary); background: #fff; transition: 0.5s;
}
.carousel .carousel-indicators li.active { border: 10px solid var(--primary); }
.carousel .carousel-control-prev .carousel-control-prev-icon { position: absolute; left: 0; padding: 25px 30px; background: var(--primary); }
.carousel .carousel-control-next .carousel-control-next-icon { position: absolute; right: 0; padding: 25px 30px; background: var(--primary); }
.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover { background: var(--secondary); }

/* ===== SECTIONS ===== */
.section-heading { font-family: var(--font-display); }
.section-tag { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 8px; }

/* ===== ABOUT ===== */
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 4px; }
.about-icon-box { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; flex-shrink: 0; }

/* ===== SERVICES / CARDS ===== */
.svc-card-bs {
  background: #fff; border-radius: 8px; padding: 36px 28px;
  border: 1px solid var(--border); transition: .4s;
  box-shadow: 0 2px 16px rgba(0,0,0,.05); height: 100%;
}
.svc-card-bs:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(30,86,49,.15); border-color: var(--secondary); }
.svc-card-bs .svc-icon-bs { width: 60px; height: 60px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), #2d7d46); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; margin-bottom: 20px; }
.svc-tag-pill { font-size: .72rem; padding: 3px 10px; border-radius: 50px; background: #e8f5ec; color: var(--primary); margin: 3px 2px; display: inline-block; }

/* ===== PORTFOLIO / PROJECT CARDS ===== */
.proj-card-bs { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: .4s; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.proj-card-bs:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.12); }
.proj-thumb-bs { height: 180px; background: linear-gradient(135deg, var(--primary), #2d7d46); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.proj-thumb-bs .proj-overlay-bs { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: .3s; }
.proj-card-bs:hover .proj-overlay-bs { opacity: 1; }
.proj-body-bs { padding: 20px 22px; }
.stack-tag-bs { font-size: .7rem; padding: 2px 8px; border-radius: 50px; background: #f0f4f1; color: #444; margin: 2px; display: inline-block; }

/* ===== BLOG CARDS ===== */
.blog-card-bs { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); transition: .4s; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.blog-card-bs:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.blog-thumb-bs { height: 160px; background: linear-gradient(135deg, var(--primary), #155724); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,.35); position: relative; }
.blog-cat-badge { position: absolute; top: 12px; left: 12px; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; background: var(--secondary); color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.blog-body-bs { padding: 20px 22px; }
.blog-meta-bs { font-size: .78rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

/* ===== CONTACT FORM ===== */
.contact-form .form-control, .contact-form select, .contact-form textarea { border: 1px solid #dee2e6; border-radius: 6px; padding: 12px 16px; font-size: .9rem; transition: .3s; }
.contact-form .form-control:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,86,49,.12); outline: none; }
.contact-info-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }

/* ===== FILTER BUTTONS ===== */
.filter-btn { border: 1px solid var(--border); background: #fff; padding: 8px 20px; border-radius: 50px; font-size: .85rem; cursor: pointer; transition: .3s; color: #555; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== NEWSLETTER ===== */
.newsletter-wrap { background: linear-gradient(135deg, var(--primary), #155724); border-radius: 12px; padding: 56px 48px; color: #fff; }

/* ===== TIMELINE ===== */
.tl-item-bs { padding-left: 28px; padding-bottom: 32px; border-left: 2px solid var(--border); position: relative; }
.tl-item-bs:last-child { border-left-color: transparent; }
.tl-item-bs::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--secondary); position: absolute; left: -7px; top: 4px; }

/* ===== SKILL BARS ===== */
.skill-track-bs { height: 8px; background: #e9ecef; border-radius: 50px; overflow: hidden; margin-bottom: 18px; }
.skill-fill-bs { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 50px; width: 0; transition: width 1.2s ease; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(rgba(0,18,72,.92), rgba(0,18,72,1)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=60');
  background-position: center; background-size: cover;
}
.footer .footer-item a { line-height: 35px; color: rgba(255,255,255,.75); transition: .5s; text-decoration: none; display: block; }
.footer .footer-item p { line-height: 35px; color: rgba(255,255,255,.75); }
.footer .footer-item a:hover { letter-spacing: 1px; color: var(--secondary); }
.footer .footer-btn a { transition: .5s; }
.footer .footer-btn a:hover { background: #fff !important; }
.footer .footer-btn a:hover i { color: var(--primary) !important; }

/* ===== COPYRIGHT ===== */
.copyright { border-top: 1px solid rgba(255,255,255,.08); background: #0d1117; }
.copyright a { color: rgba(255,255,255,.8); text-decoration: none; transition: .3s; }
.copyright a:hover { color: var(--secondary); }

/* ===== CHAT FAB ===== */
.chat-fab { position: fixed; bottom: 90px; right: 30px; z-index: 1000; }
.chat-fab-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--secondary); border: none; color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 20px rgba(47,164,215,.4); transition: .3s; display: flex; align-items: center; justify-content: center; }
.chat-fab-btn:hover { transform: scale(1.1); background: var(--primary); }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; position: absolute; top: 2px; right: 2px; border: 2px solid #fff; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{transform:scale(1)}50%{transform:scale(1.3)} }

/* ===== UTILITY ===== */
.wow { visibility: hidden; }
.btn-square, .btn-sm-square, .btn-md-square, .btn-lg-square { display: flex; align-items: center; justify-content: center; font-weight: normal; }
.btn-square { width: 32px; height: 32px; padding: 0; }
.btn-md-square { width: 44px; height: 44px; padding: 0; }
.btn-lg-square { width: 56px; height: 56px; padding: 0; }

/* Hero on homepage */
.hero-gradient { background: linear-gradient(135deg, #0d2818 0%, #1e5631 50%, #155724 100%); min-height: 85vh; display: flex; align-items: center; }
.typed-cursor-bs { opacity: 1; animation: blink .7s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }

/* stats counter */
.stat-box { text-align: center; padding: 32px 16px; }
.stat-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.stat-lbl { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: 8px; }

/* page section spacing */
section { padding: 80px 0; }
.section-alt { background: #f8faf9; }

/* Team avatar */
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.4rem; }

/* FAQ accordion */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 22px 26px; margin-bottom: 14px; }
.faq-item h5 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; color: #1a1a1a; }
.faq-item p { font-size: .85rem; color: var(--muted); margin: 0; }

/* Process steps */
.process-step { text-align: center; padding: 36px 24px; background: #fff; border: 1px solid var(--border); border-radius: 8px; transition: .4s; height: 100%; }
.process-step:hover { box-shadow: 0 8px 32px rgba(30,86,49,.12); transform: translateY(-4px); }
.process-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: #e9ecef; line-height: 1; margin-bottom: 12px; }

/* ===== MOBILE RESPONSIVENESS ===== */

/* --- Small tablets and large phones (≤768px) --- */
@media (max-width: 768px) {
  /* Sections */
  section { padding: 56px 0; }

  /* Newsletter */
  .newsletter-wrap { padding: 36px 24px; }

  /* Hero carousel — reduce height, scale down headings */
  .carousel .carousel-inner .carousel-item,
  .carousel .carousel-inner .carousel-item img { height: 560px; object-fit: cover; }
  .carousel-item .carousel-caption h1 { font-size: 1.9rem; line-height: 1.25; }
  .carousel-item .carousel-caption p { font-size: 0.95rem; margin-bottom: 1.5rem !important; }
  .carousel-item .carousel-caption .btn { padding: 10px 22px; font-size: 0.88rem; }
  .carousel-item .carousel-caption .d-flex { flex-direction: column; align-items: center; gap: 10px !important; }

  /* Topbar — hide social links on very small screens */
  .topbar .d-flex.gap-3 { gap: 8px !important; }

  /* Stats */
  .stat-num { font-size: 2.2rem; }

  /* Section headings */
  .section-heading { font-size: 1.65rem; }

  /* About overlay image */
  .about-img-wrap .position-absolute { display: none; }

  /* Cards spacing */
  .svc-card-bs { padding: 28px 20px; }

  /* Newsletter input + button stacking */
  .newsletter-wrap .input-group { flex-direction: column; gap: 10px; }
  .newsletter-wrap .input-group .form-control,
  .newsletter-wrap .input-group .btn { width: 100%; border-radius: 6px !important; }

  /* Footer columns */
  .footer .col-md-6 { margin-bottom: 24px; }

  /* Back-to-top + Chat FAB collision avoidance */
  .back-to-top { right: 20px; bottom: 80px; }
  .chat-fab { right: 20px; bottom: 140px; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
}

/* --- Small phones (≤576px) --- */
@media (max-width: 576px) {
  /* Carousel */
  .carousel .carousel-inner .carousel-item,
  .carousel .carousel-inner .carousel-item img { height: 480px; object-fit: cover; }
  .carousel-item .carousel-caption h1 { font-size: 1.5rem; }
  .carousel-item .carousel-caption { padding-bottom: 40px; }
  .carousel-item .carousel-caption p.fs-5 { font-size: 0.88rem !important; }

  /* Topbar — stack on very small screens */
  .topbar .row > div { text-align: center !important; justify-content: center !important; margin-bottom: 4px; }

  /* Navbar brand text */
  .navbar .navbar-brand h1 { font-size: 1.35rem; }

  /* Page breadcrumb hero */
  .bg-breadcrumb { padding: 50px 0; }
  .bg-breadcrumb h1 { font-size: 1.6rem; }

  /* Stat boxes */
  .stat-box { padding: 20px 10px; }
  .stat-num { font-size: 1.9rem; }

  /* Filter buttons — wrap nicely */
  .filter-btn { padding: 6px 14px; font-size: 0.8rem; }

  /* Process steps */
  .process-step { padding: 24px 16px; }
  .process-num { font-size: 2.2rem; }

  /* Blog / portfolio card grids — force single column */
  .col-md-6.col-lg-4 { width: 100%; }

  /* Contact info icon row */
  .contact-info-icon { width: 40px; height: 40px; font-size: 0.95rem; flex-shrink: 0; }

  /* Section heading sizing */
  .section-heading { font-size: 1.4rem; }

  /* Chat FAB position adjustment */
  .chat-fab { bottom: 130px; right: 14px; }
  .back-to-top { right: 14px; bottom: 70px; }

  /* Footer */
  .footer .footer-btn { text-align: center; }
  .copyright .d-flex { flex-direction: column; text-align: center; gap: 8px; }
}
