/* =============================================
   Palak Computers - Custom Styles
============================================= */
:root {
  --pc-primary: #0D6EFD;
  --pc-secondary: #212529;
  --pc-accent: #F8F9FA;
  --pc-cta: #FF6B00;
  --pc-gold: #f4a51c;
  --pc-gradient: linear-gradient(135deg, var(--pc-cta) 0%, var(--pc-gold) 100%);
  --pc-radius: 18px;
  --pc-transition: all .35s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--pc-secondary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img, svg, video, iframe, canvas { max-width: 100%; }

h1, h2, h3, h4, h5, h6, .font-poppins {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

::selection { background: var(--pc-cta); color: #fff; }

.section-padding { padding: 90px 0; }
@media (max-width: 768px) { .section-padding { padding: 60px 0; } }

.section-tag {
  display: inline-block;
  color: var(--pc-cta);
  background: rgba(255,107,0,.1);
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .8rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title { font-size: 2.4rem; margin-bottom: 14px; }
.section-sub { color: #6c757d; max-width: 650px; margin: 0 auto; }

/* ===== Buttons ===== */
.btn-cta {
  background: var(--pc-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--pc-transition);
  box-shadow: 0 8px 20px rgba(255,107,0,.3);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255,107,0,.45);
  color: #fff;
}
.btn-outline-light-custom {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 50px;
  background: transparent;
  transition: var(--pc-transition);
}
.btn-outline-light-custom:hover {
  background: #fff;
  color: var(--pc-secondary);
}
.btn-primary-custom {
  background: var(--pc-primary);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  transition: var(--pc-transition);
}
.btn-primary-custom:hover {
  background: #0b5ed7;
  transform: translateY(-3px);
  color: #fff;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--pc-secondary);
  color: #ced4da;
  font-size: .85rem;
  padding: 8px 0;
}
.top-bar a { color: #ced4da; text-decoration: none; transition: color .25s; }
.top-bar a:hover { color: var(--pc-gold); }
.top-bar .divider { border-left: 1px solid #495057; padding-left: 14px; margin-left: 14px; }

/* ===== Navbar ===== */
.navbar-custom {
  background: #fff;
  padding: 14px 0;
  transition: var(--pc-transition);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.navbar-custom.scrolled { padding: 8px 0; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.navbar-brand img { height: 52px; transition: var(--pc-transition); }
.navbar-custom.scrolled .navbar-brand img { height: 42px; }
.navbar-brand strong { font-family: 'Poppins', sans-serif; color: var(--pc-secondary); }
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--pc-secondary) !important;
  margin: 0 6px;
  position: relative;
  padding: 8px 4px !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--pc-cta);
  transition: width .3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--pc-cta) !important; }
.nav-enquire-btn { border-radius: 50px !important; padding: 8px 22px !important; }

/* ===== Floating Buttons ===== */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-actions .fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: var(--pc-transition);
  border: none;
}
.fab-call { background: var(--pc-primary); }
.floating-actions .fab:hover { transform: scale(1.12); color: #fff; }
.fab-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
  background: inherit;
}
.fab-wrap { position: relative; }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Hero Carousel ===== */
.hero-carousel, .hero-carousel .carousel-item {
  height: 100vh;
  min-height: 600px;
}
.hero-carousel .carousel-item {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,20,30,.88) 0%, rgba(15,20,30,.55) 55%, rgba(15,20,30,.35) 100%);
}
.hero-caption {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-caption .tag {
  color: var(--pc-gold);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .9rem;
}
.hero-caption h1 {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1.2;
  margin: 16px 0;
}
.hero-caption p {
  color: #dee2e6;
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .hero-caption h1 { font-size: 2rem; }
  .hero-caption p { font-size: 1rem; }
}
.carousel-indicators [data-bs-target] { background-color: var(--pc-gold); }
.carousel-control-prev, .carousel-control-next { width: 6%; opacity: .7; }

/* ===== About ===== */
.about-img-wrap { position: relative; }
.about-img-wrap img {
  border-radius: var(--pc-radius);
  box-shadow: 0 25px 50px rgba(0,0,0,.18);
}
.about-badge {
  position: absolute;
  bottom: -25px;
  right: -20px;
  background: var(--pc-gradient);
  color: #fff;
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(255,107,0,.35);
  text-align: center;
}
.about-badge h3 { font-size: 2rem; margin: 0; }
.about-badge span { font-size: .8rem; }
@media (max-width: 767px) { .about-badge { right: 10px; bottom: -15px; padding: 14px 18px; } }

.highlight-card {
  background: var(--pc-accent);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--pc-transition);
  border: 1px solid #eee;
}
.highlight-card:hover { background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,.08); transform: translateY(-4px); }
.highlight-card .icon-circle {
  width: 46px; height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: var(--pc-gradient);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Service Cards ===== */
.service-card {
  border: none;
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: var(--pc-transition);
  height: 100%;
  background: #fff;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 45px rgba(0,0,0,.14);
}
.service-card .img-wrap { overflow: hidden; height: 220px; }
.service-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .img-wrap img { transform: scale(1.12); }
.service-card .card-body { padding: 24px; }
.service-card h5 { margin-bottom: 10px; }
.service-card p { color: #6c757d; font-size: .93rem; min-height: 66px; }
.service-card .btn-sm-custom {
  padding: 8px 16px;
  font-size: .85rem;
  border-radius: 50px;
  font-weight: 600;
}

/* ===== Why Choose Us ===== */
.why-card {
  background: #fff;
  border-radius: var(--pc-radius);
  padding: 34px 26px;
  text-align: center;
  height: 100%;
  border: 1px solid #f0f0f0;
  transition: var(--pc-transition);
  position: relative;
  z-index: 1;
}
.why-card:hover {
  box-shadow: 0 20px 40px rgba(13,110,253,.12);
  transform: translateY(-8px);
  border-color: transparent;
}
.why-card .icon-box {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(244,165,28,.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem;
  color: var(--pc-primary);
  transition: var(--pc-transition);
}
.why-card:hover .icon-box { background: var(--pc-gradient); color: #fff; transform: rotate(8deg) scale(1.05); }
.why-card h5 { margin-bottom: 12px; }
.why-card p { color: #6c757d; font-size: .92rem; margin: 0; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--pc-primary) 0%, #0a58ca 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  top: -150px; right: -100px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(244,165,28,.12);
  border-radius: 50%;
  bottom: -120px; left: -80px;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dbe6ff; }

/* ===== Contact ===== */
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-item .icon-circle {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 50%;
  background: var(--pc-accent);
  color: var(--pc-primary);
  display: flex; align-items: center; justify-content: center;
}
.map-wrap {
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.1);
  height: 100%;
  min-height: 400px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

.contact-form-card {
  background: #fff;
  border-radius: var(--pc-radius);
  padding: 34px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}
.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
}
.form-control:focus, .form-select:focus {
  border-color: var(--pc-primary);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* ===== Footer ===== */
.footer-custom {
  background: var(--pc-secondary);
  color: #adb5bd;
}
.footer-bottom {
  padding: 20px 0;
  font-size: .88rem;
  text-align: center;
}

/* ===== Modal ===== */
.enquiry-modal .modal-content { border-radius: var(--pc-radius); border: none; overflow: hidden; }
.enquiry-modal .modal-header { background: var(--pc-gradient); color: #fff; border: none; }
.enquiry-modal .btn-close { filter: invert(1); }

/* ===== Misc ===== */
.bg-accent { background: var(--pc-accent); }
.text-cta { color: var(--pc-cta) !important; }
.text-gold { color: var(--pc-gold) !important; }
.form-success-msg { display: none; }

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pc-secondary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  transition: var(--pc-transition);
  border: none;
}
.back-to-top:hover { background: var(--pc-primary); }

/* ===== Side Enquire Now Tab ===== */
.enquire-side-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--pc-gradient);
  color: #fff;
  border: none;
  padding: 18px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  border-radius: 10px 0 0 10px;
  box-shadow: -6px 6px 20px rgba(255,107,0,.3);
  z-index: 1050;
  transition: var(--pc-transition);
}
.enquire-side-btn i { transform: rotate(90deg); }
.enquire-side-btn:hover {
  padding-right: 16px;
  box-shadow: -8px 8px 26px rgba(255,107,0,.45);
  color: #fff;
}
@media (max-width: 767px) {
  .enquire-side-btn { padding: 14px 8px; font-size: .85rem; }
}
