/* ==========================================================================
   Divyanshi Enterprises - Custom Styles
   ========================================================================== */

/* --- Variables --- */
:root {
  --primary-color: #0E255B; /* Navy Blue */
  --secondary-color: #63C153; /* Green */
  --text-dark: #1F2937;
  --text-light: #4B5563;
  --bg-light: #F9FAFB; /* Light Green */
  --white: #FFFFFF;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  --box-shadow-hover: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- Base & Typography --- */
body {
  font-family: var(--font-primary);
  color: var(--text-light);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utilities --- */
.section-padding {
  padding: 80px 0;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card, .feature-card, .product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover, .feature-card:hover, .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(14, 37, 91, 0.15);
}

.bg-light-gray {
  background-color: var(--bg-light);
}

.bg-primary-color {
  background-color: var(--primary-color) !important;
}

.bg-secondary-color {
  background-color: var(--secondary-color) !important;
}

.text-primary-color {
  color: var(--primary-color) !important;
}

.text-secondary-color {
  color: var(--secondary-color) !important;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
  font-size: 0.9rem;
}

/* --- Buttons --- */
.btn-custom {
  background: var(--primary-color);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-custom:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 193, 83, 0.2);
}

.btn-custom-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-custom-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* --- Navbar --- */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand i {
  color: var(--primary-color);
  font-size: 2rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/img_1.jpg') center/cover no-repeat;
  padding: 200px 0 120px;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  font-weight: 300;
  max-width: 600px;
}

.trust-bar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Cards --- */
.service-card, .product-card, .feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.service-card:hover, .product-card:hover, .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(14, 37, 91, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .card-icon {
  background: var(--primary-color);
  color: var(--white);
}

/* Product Specific */
.product-card {
  padding: 0;
}
.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-content {
  padding: 25px;
}

/* --- Process Steps --- */
.process-step {
  text-align: center;
  position: relative;
  padding: 20px;
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 2px dashed var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: dashed 2px rgba(99, 193, 83, 0.3);
  z-index: 0;
}

/* --- Split Section --- */
.split-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(14, 37, 91, 0.1);
  max-height: 420px;
  width: 100%;
  object-fit: cover;
  border: 8px solid var(--white);
}
.split-content {
  padding-left: 40px;
}

/* --- Gallery --- */
.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(99, 193, 83, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item:hover .gallery-overlay i {
  transform: translateY(0);
}
.filter-btn {
  background: transparent;
  border: none;
  padding: 8px 20px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 50px;
  margin: 0 5px 10px;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* --- Footer --- */
.footer {
  background: #071A42;
  color: #9CA3AF;
  padding: 80px 0 20px;
}
.footer h4 {
  color: var(--white);
  margin-bottom: 25px;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: #9CA3AF;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--primary-color);
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
}

/* --- Floating Buttons --- */
.floating-btn-whatsapp, .floating-btn-call {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 999;
  transition: var(--transition);
}
.floating-btn-whatsapp {
  right: 20px;
  background: #25D366;
}
.floating-btn-call {
  right: 80px;
  background: var(--primary-color);
  color: var(--white);
}
.floating-btn-whatsapp:hover, .floating-btn-call:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* --- Page Header Banner --- */
.page-header {
  background: linear-gradient(rgba(7, 26, 66, 0.8), rgba(7, 26, 66, 0.8)), url('../images/img_2.jpg') center/cover;
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  color: var(--white);
  font-size: 3rem;
}
.breadcrumb {
  justify-content: center;
  background: transparent;
}
.breadcrumb-item a {
  color: var(--primary-color);
}
.breadcrumb-item.active {
  color: var(--white);
}

/* --- Contact Form --- */
.contact-form .form-control, .contact-form .form-select {
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
  margin-bottom: 20px;
  background: var(--bg-light);
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}
.contact-info-card {
  background: var(--secondary-color);
  color: var(--white);
  padding: 40px;
  border-radius: 20px;
  height: 100%;
}
.contact-info-card h3 {
  color: var(--white);
}
.contact-info-item {
  display: flex;
  margin-bottom: 25px;
}
.contact-info-icon {
  width: 50px;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Preloader --- */
#preloader {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-logo {
  text-align: center;
  position: relative;
}
.loader-logo img {
  height: 80px;
  animation: pulse 1.5s infinite alternate;
}
.loader-spinner {
  width: 130px;
  height: 130px;
  border: 3px solid rgba(14, 37, 91, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Testimonials Carousel --- */
#testimonialCarousel .carousel-indicators {
  bottom: -40px;
}
#testimonialCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.3;
  border: none;
  margin: 0 5px;
}
#testimonialCarousel .carousel-indicators button.active {
  opacity: 1;
}
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: var(--primary-color);
}
#testimonialCarousel .carousel-control-prev {
  left: -50px;
}
#testimonialCarousel .carousel-control-next {
  right: -50px;
}
#testimonialCarousel .carousel-control-prev i,
#testimonialCarousel .carousel-control-next i {
  font-size: 1.2rem;
}
#testimonialCarousel .carousel-item {
  padding: 0 20px;
}

/* --- Floating Contact Buttons --- */
.floating-btn-whatsapp,
.floating-btn-call {
  position: fixed;
  right: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 26px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.floating-btn-whatsapp:hover,
.floating-btn-call:hover {
  transform: scale(1.1);
}
.floating-btn-whatsapp {
  bottom: 20px;
  background-color: #25D366;
}
.floating-btn-call {
  bottom: 85px;
  background-color: #2196F3;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .process-step::after { display: none; }
  .split-content { padding-left: 15px; margin-top: 40px; }
  .floating-btn-call { right: 20px; bottom: 80px; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-section { padding: 140px 0 80px; }
  .section-padding { padding: 50px 0; }
  .page-header { padding: 100px 0 50px; }
  #testimonialCarousel .carousel-control-prev { left: -10px; }
  #testimonialCarousel .carousel-control-next { right: -10px; }
}

