/* =============================================
   DG Electronics – Single Page Landing
   Theme: #5e8d93 (Primary) | #f2a83b (Accent)
   ============================================= */

:root {
  --primary:       #5e8d93;
  --primary-dark:  #4a717a;
  --primary-light: #7aadb3;
  --accent:        #f2a83b;
  --accent-dark:   #e09525;
  --text-dark:     #222831;
  --text-muted:    #6c757d;
  --bg-light:      #f4f8f9;
  --white:         #ffffff;
}

/* ── Reset / Base ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; }
section { scroll-margin-top: 76px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Navbar ─────────────────────────────────── */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 10px 0;
  transition: padding .3s, box-shadow .3s;
}
.navbar.scrolled { padding: 5px 0; box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.navbar-brand img { height: 100px; width: auto; transition: transform .3s; }
.navbar-brand img:hover { transform: scale(1.05); }

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: .93rem;
  padding: 8px 13px !important;
  position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border-color: var(--primary); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%235e8d93' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Buttons ────────────────────────────────── */
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s;
}
.btn-primary-custom:hover {
  background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(94,141,147,.4);
}
.btn-accent-custom {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s;
}
.btn-accent-custom:hover {
  background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(242,168,59,.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 30px;
  padding: 10px 26px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .3s;
}
.btn-outline-white:hover {
  background: var(--white); color: var(--primary);
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,255,255,.25);
}

/* ── Section common ─────────────────────────── */
section { padding: 80px 0; }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; }
.divider {
  width: 50px; height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 12px auto 16px;
}

/* ── Hero Carousel ──────────────────────────── */
/* #hero { margin-top: 74px; } */

.carousel-item {
  height: 560px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carousel-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(94,141,147,.84) 0%, rgba(34,40,49,.68) 100%);
}

/* Hero slide backgrounds – Unsplash */
.slide-1 {
  background-color: #2c6468;
  background-image: url('../images/slide-1.jpg');
}
.slide-2 {
  background-color: #375f70;
  background-image: url('../images/slide-2.jpg');
}
.slide-3 {
  background-color: #3a6a6a;
  background-image: url('../images/slide-3.jpg');
}

.hero-caption {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%; max-width: 780px;
  z-index: 10;
}
.hero-caption .slide-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 18px;
}
.hero-caption h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.9rem);
  font-weight: 800; color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
  line-height: 1.22; margin-bottom: 14px;
}
.hero-caption p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 30px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 20px;
  background-size: 45%;
}
.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: none;
}
.carousel-indicators .active {
  background: var(--accent);
  width: 28px; border-radius: 5px;
}

/* ── About ──────────────────────────────────── */
#about { background: var(--white); }

.about-img-wrap {
  position: relative;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 55px rgba(94,141,147,.2);
}
.about-img-inner {
  width: 100%; height: 390px;
  background: linear-gradient(135deg, #5e8d93, #3a6a72);
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; color: rgba(255,255,255,.22);
}
.about-img-wrap img {
  width: 100%; height: 390px; object-fit: cover;
  display: block; transition: transform .4s;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.exp-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--accent); color: var(--white);
  padding: 14px 20px; border-radius: 14px; text-align: center;
  box-shadow: 0 8px 22px rgba(242,168,59,.4);
}
.exp-badge .num  { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.exp-badge .lbl  { font-size: .7rem;  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

.about-content { padding-left: 28px; }
.about-content h2 { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; }
.about-content p  { color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.check-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .93rem; font-weight: 500;
  margin-bottom: 9px; color: var(--text-dark);
}
.check-list .ic {
  width: 26px; height: 26px;
  background: rgba(94,141,147,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: .82rem; flex-shrink: 0;
}

/* ── Services ───────────────────────────────── */
#services { background: var(--bg-light); }

.svc-card {
  background: var(--white);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 22px rgba(0,0,0,.06);
  border: 1px solid rgba(94,141,147,.1);
  transition: all .35s ease; height: 100%;
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(94,141,147,.18);
}
.svc-icon-wrap {
  height: 195px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.svc-icon-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform .45s ease, opacity .3s;
}
.svc-card:hover .svc-icon-wrap img {
  transform: scale(1.08);
  opacity: 0.42;
}
.svc-icon-wrap .icon-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; position: relative; z-index: 2;
  backdrop-filter: blur(4px);
}
.svc-icon-wrap::before {
  content: ''; position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -55px; right: -45px;
}
.svc-body { padding: 24px; }
.svc-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 9px; }
.svc-body p  { color: var(--text-muted); font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.svc-body ul { color: var(--text-muted); font-size: .84rem; padding-left: 18px; margin-bottom: 18px; }
.svc-body ul li { margin-bottom: 4px; }
.btn-row { display: flex; gap: 10px; }
.btn-row a { flex: 1; text-align: center; font-size: .82rem; padding: 9px 12px; }

/* ── Why Choose Us ──────────────────────────── */
#why { background: var(--white); }

.why-card {
  text-align: center; padding: 34px 22px; border-radius: 16px;
  background: var(--bg-light); border: 2px solid transparent;
  transition: all .35s; height: 100%;
}
.why-card:hover {
  border-color: var(--primary); background: var(--white);
  transform: translateY(-6px);
  box-shadow: 0 16px 42px rgba(94,141,147,.15);
}
.why-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--white);
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(94,141,147,.3);
  transition: all .35s;
}
.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 20px rgba(242,168,59,.35);
}
.why-card h5 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p  { color: var(--text-muted); font-size: .86rem; line-height: 1.65; margin: 0; }

/* ── Stats ──────────────────────────────────── */
.stats-strip {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 52px 0;
}
.stat-item { text-align: center; padding: 10px; }
.stat-item .num { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: var(--white); line-height: 1; }
.stat-item .lbl { font-size: .84rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider  { width: 1px; background: rgba(255,255,255,.2); height: 56px; margin: auto; }

/* ── Gallery ────────────────────────────────── */
#gallery { background: var(--bg-light); }

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 7px 20px; border-radius: 25px;
  font-size: .84rem; font-weight: 600;
  cursor: pointer; transition: all .3s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: var(--white);
}
.gal-item {
  overflow: hidden; border-radius: 13px;
  cursor: pointer; position: relative;
}
.gal-placeholder {
  width: 100%; height: 220px; border-radius: 13px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: transform .45s ease;
  position: relative; overflow: hidden;
}
.gal-item img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
  border-radius: 13px;
  transition: transform .45s ease;
}
.gal-item:hover img       { transform: scale(1.08); }
.gal-item:hover .gal-placeholder { transform: scale(1.06); }
.gal-placeholder .gi  { font-size: 3rem; margin-bottom: 8px; }
.gal-placeholder .gl  { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); text-align: center; padding: 0 12px; }
.gal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(94,141,147,.85) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s; display: flex;
  align-items: flex-end; padding: 16px; border-radius: 13px;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay span { color: var(--white); font-size: .84rem; font-weight: 600; }

/* ── Contact ────────────────────────────────── */
#contact { background: var(--white); }

.contact-info-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 18px; padding: 36px 28px; color: var(--white); height: 100%;
}
.contact-info-card h3  { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.contact-info-card .sub { color: rgba(255,255,255,.72); font-size: .88rem; margin-bottom: 28px; }

.ci-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ci-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.ci-label { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.ci-item p, .ci-item a { color: var(--white); font-weight: 600; font-size: .88rem; margin: 0; }
.ci-item a:hover { color: var(--accent); }

.contact-form-card {
  background: var(--white); border-radius: 18px;
  padding: 36px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,.07); height: 100%;
}
.contact-form-card h3  { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.contact-form-card .sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 22px; }

.form-control, .form-select {
  border: 1.5px solid #dce9ea; border-radius: 10px;
  padding: 11px 15px; font-size: .88rem;
  background: #fafcfc; transition: all .3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94,141,147,.13);
  background: var(--white);
}
.form-label { font-size: .82rem; font-weight: 600; color: var(--text-dark); margin-bottom: 5px; }

.map-wrap { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.08); margin-top: 40px; }
.map-wrap iframe { width: 100%; height: 370px; border: none; display: block; }

/* ── CTA strip ──────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2d5f66 100%);
  padding: 68px 0; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(242,168,59,.1);
  top: -110px; right: -80px;
}
.cta-strip h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; color: var(--white); margin-bottom: 10px; }
.cta-strip p  { color: rgba(255,255,255,.78); font-size: .98rem; margin-bottom: 0; }

/* ── Footer ─────────────────────────────────── */
footer {
  background: #1a2a2d; color: rgba(255,255,255,.8);
  /* padding: 56px 0 0; */
}
.footer-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-logo p   { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.7; margin-top: 14px; }

footer h5 {
  color: var(--white); font-weight: 700; font-size: .97rem;
  margin-bottom: 18px; position: relative; padding-bottom: 9px;
}
footer h5::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 32px; height: 2px; background: var(--accent); border-radius: 2px;
}
.f-links { list-style: none; padding: 0; }
.f-links li { margin-bottom: 8px; }
.f-links a {
  color: rgba(255,255,255,.55); font-size: .85rem;
  display: flex; align-items: center; gap: 7px; transition: all .3s;
}
.f-links a:hover { color: var(--accent); padding-left: 5px; }
.f-links a i { font-size: .7rem; color: var(--primary-light); }

.f-ci { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 13px; font-size: .85rem; color: rgba(255,255,255,.55); }
.f-ci i { color: var(--accent); font-size: .95rem; margin-top: 2px; flex-shrink: 0; }
.f-ci a { color: rgba(255,255,255,.55); transition: color .3s; }
.f-ci a:hover { color: var(--accent); }

.social-bar { display: flex; gap: 9px; margin-top: 16px; }
.soc-link {
  width: 35px; height: 35px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .88rem;
  transition: all .3s; text-decoration: none;
}
.soc-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); transform: translateY(-2px); }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 0; text-align: center;
}
.footer-bar p { margin: 0; font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-bar span { color: var(--accent); }

/* ── Floating / Fixed elements ──────────────── */
.float-call {
  position: fixed; bottom: 26px; right: 26px; z-index: 9990;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.45rem;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  animation: pulse-btn 2.2s infinite;
  transition: transform .3s;
}
.float-call:hover { transform: scale(1.12); color: var(--white); }
.float-call .tip {
  position: absolute; right: 66px;
  background: #111; color: #fff; padding: 5px 12px;
  border-radius: 6px; font-size: .78rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.float-call .tip::after {
  content: ''; position: absolute; top: 50%; left: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: #111;
}
.float-call:hover .tip { opacity: 1; }

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 28px rgba(37,211,102,.75), 0 0 0 10px rgba(37,211,102,.1); }
}

.enquire-tab {
  position: fixed; right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  background: var(--accent); color: var(--white);
  border: none; border-radius: 6px 0 0 6px;
  padding: 18px 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: background .3s;
  box-shadow: -4px 0 14px rgba(0,0,0,.18);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.enquire-tab:hover { background: var(--accent-dark); }

@media (max-width: 575.98px) {
  .enquire-tab { display: none; }
}

/* ── Popup ──────────────────────────────────── */
.popup-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 99995;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .35s; backdrop-filter: blur(3px);
}
.popup-bg.open { opacity: 1; visibility: visible; }
.popup-box {
  background: var(--white); border-radius: 20px; overflow: hidden;
  max-width: 480px; width: 95%;
  transform: scale(.87) translateY(20px); transition: transform .35s;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  max-height: 92vh; overflow-y: auto;
}
.popup-bg.open .popup-box { transform: scale(1) translateY(0); }
.popup-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 28px 28px 22px; text-align: center; position: relative;
}
.popup-head .p-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 12px;
}
.popup-head h4 { color: var(--white); font-weight: 800; font-size: 1.2rem; margin-bottom: 5px; }
.popup-head p  { color: rgba(255,255,255,.78); font-size: .86rem; margin: 0; }
.popup-x {
  position: absolute; top: 13px; right: 14px;
  background: rgba(255,255,255,.2); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--white); font-size: .88rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.popup-x:hover { background: rgba(255,255,255,.35); }
.popup-body { padding: 26px 28px; text-align: center; }
.popup-body p { color: var(--text-muted); font-size: .88rem; margin-bottom: 20px; }
.popup-btns { display: flex; gap: 12px; }
.popup-btns a { flex: 1; padding: 11px; font-size: .88rem; font-weight: 600; border-radius: 10px; text-align: center; }

/* ── Scroll reveal ──────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991.98px) {
  .about-content { padding-left: 0; margin-top: 34px; }
  .carousel-item { height: 460px; }
  section { scroll-margin-top: 70px; }
   #hero { margin-top: 50px; } 
}
@media (max-width: 767.98px) {
  .carousel-item { height: 375px; }
  .hero-caption h1 { font-size: 1.5rem; }
  .stat-divider { display: none; }
  .popup-btns { flex-direction: column; }
  .about-img-inner, .about-img-wrap img { height: 260px; }
  #hero { margin-top: 70px; } 
}
@media (max-width: 575.98px) {
  section { padding: 60px 0; }
  .carousel-item { height: 330px; }
  .float-call { bottom: 18px; right: 18px; width: 50px; height: 50px; font-size: 1.3rem; }
}
