/* -------------------------
   MasterUnlock - Style.css
   -------------------------
   Author: Usman & ChatGPT
   Version: v4.2
   Description: Modern responsive Bootstrap theme with dark/light mode.
--------------------------*/

/* Base setup */
body {
  font-family: 'Poppins', sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Color Modes */
.light-mode {
  --bg-color: #f8faff;
  --text-color: #1a1f2b;
  --card-bg: #ffffff;
}
.dark-mode {
  --bg-color: #0b0f19;
  --text-color: #e9eef7;
  --card-bg: rgba(255, 255, 255, 0.05);
}

/* Global Body */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Navbar */
.custom-navbar {
  background-color: #0d1117;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease;
}

/* Fix: Navbar toggle icon color (white in both modes) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


.custom-navbar .navbar-brand {
  font-weight: 600;
  color: #0d6efd;
  transition: color 0.3s ease;
}
.custom-navbar .navbar-brand:hover {
  color: #0b5ed7;
}

/* Navbar Links */
.custom-navbar .nav-link {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Light Mode Navbar */
.light-mode .custom-navbar .nav-link {
  color: #ffffff;
}
.light-mode .custom-navbar .nav-link:hover {
  color: #66b3ff;
  text-shadow: 0 0 6px rgba(102, 179, 255, 0.6);
}

/* Dark Mode Navbar */
.dark-mode .custom-navbar .nav-link {
  color: #ffffff;
}
.dark-mode .custom-navbar .nav-link:hover {
  color: #66b3ff;
  text-shadow: 0 0 6px rgba(102, 179, 255, 0.6);
}

/* Navbar Toggle Icon */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  margin-top: 56px;
}
.hero-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  border-bottom: 2px solid #0d6efd;
}

/* Services Section */
.section-title {
  font-weight: 600;
}
.service-card {
  background: var(--card-bg);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}
.service-icon {
  color: #0d6efd;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #0d6efd);
}

/* Order Status Section (Home CTA) */
.order-cta {
  background: linear-gradient(90deg, #0d6efd, #007bff);
  color: #fff;
}
.order-cta .btn {
  font-weight: 500;
  border-radius: 25px;
}

/* Buttons */
.btn-gradient {
  background: linear-gradient(90deg, #007bff, #0d6efd);
  color: #fff !important;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.6);
}

/* Order Page Form */
.order-check input.form-control {
  border-radius: 12px;
  border: 1px solid #ccc;
  padding: 10px 14px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
.order-check input.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Result Button Animation */
#result .status-btn {
  border: none;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: 500;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.4); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Default (Dark Mode) */
.dark-mode footer {
  color: #ffffff !important;
}
.dark-mode footer a {
  color: #ffffff !important;
}
.dark-mode footer svg.lucide {
  color: #0d6efd !important;
}

/* Light Mode */
.light-mode footer {
  color: #1a1f2b !important; /* professional dark gray-blue */
}
.light-mode footer a,
.light-mode footer span,
.light-mode footer span a {
  color: #1a1f2b !important;
}
.light-mode footer a:hover {
  color: #0d6efd !important; /* clean hover color */
}
.light-mode footer svg.lucide {
  color: #1a1f2b !important;
}

/* Shared footer text style */
footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Hover effects */
footer a:hover {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Lucide icon sizing */
.service-card svg.lucide {
  width: 40px;
  height: 40px;
  color: #0d6efd;
  margin-bottom: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.service-card:hover svg.lucide {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #0d6efd);
}
.btn svg.lucide {
  width: 18px;
  height: 18px;
}

/* Custom border only for Order Status CTA button */
.btn-order-status {
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-order-status:hover {
  background: #0d6efd;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* DBD Registered Logo Styling */
.footer-dbd {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-dbd .dbd-logo {
  display: block;
  width: 100px;
  height: auto;
  border-radius: 6px;
  background-color: #fff; /* smooth contrast for white background */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  padding: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-dbd .dbd-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(13, 110, 253, 0.4);
}
.dark-mode .footer-dbd .dbd-logo {
  filter: brightness(0.95);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
@media (max-width: 576px) {
  .footer-dbd .dbd-logo {
    width: 80px;
  }
}

/* =======================================
   Fix: Readable Text in Dark & Light Mode
======================================= */

/* General text fix for form and results */
.dark-mode .order-check,
.dark-mode .order-check label,
.dark-mode .order-check p,
.dark-mode .status-card {
  color: #ffffff !important; /* white for dark mode */
}

.light-mode .order-check,
.light-mode .order-check label,
.light-mode .order-check p,
.light-mode .status-card {
  color: #1a1f2b !important; /* dark gray-blue for light mode */
}

/* Input fields readability fix */
.dark-mode .order-check input.form-control {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.dark-mode .order-check input.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.light-mode .order-check input.form-control {
  background-color: #ffffff;
  color: #1a1f2b;
  border-color: #ccc;
}

.light-mode .order-check input.form-control::placeholder {
  color: rgba(26, 31, 43, 0.6);
}

/* Status card text and icon color adjustments */
.dark-mode .status-card h4,
.dark-mode .status-card p {
  color: #ffffff !important;
}

.light-mode .status-card h4,
.light-mode .status-card p {
  color: #1a1f2b !important;
}

/* Contact help section */
.dark-mode .contact-help p,
.dark-mode .contact-help span {
  color: #ffffff !important;
}

.light-mode .contact-help p,
.light-mode .contact-help span {
  color: #1a1f2b !important;
}

/* -----------------------------
   Contact Page Styling
----------------------------- */
.contact-section .contact-card {
  background: var(--card-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-section .contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

.contact-section .contact-icon {
  width: 36px;
  height: 36px;
  color: #0d6efd;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.contact-section .contact-card:hover .contact-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #0d6efd);
}

/* Text contrast fix */
.dark-mode .contact-section p,
.dark-mode .contact-section h5 {
  color: #ffffff !important;
}
.light-mode .contact-section p,
.light-mode .contact-section h5 {
  color: #1a1f2b !important;
}
