/* Main Stylesheet for DG Consulting */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;600&display=swap");

:root {
  --primary-color: #ffb703; /* Golden Yellow */
  --secondary-color: #ffffff;
  --text-color: #333333;
  --heading-color: #023047; /* Dark Blue for contrast */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Poppins", sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section {
  padding: 6rem 1.5rem;
}

.title {
  margin-bottom: 2rem !important;
}

.subtitle {
  margin-bottom: 2rem !important;
  line-height: 1.6;
}

/* Bulma Overrides */
.navbar {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

/* Navbar Links */
a.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--heading-color) !important;
  transition: all 0.3s ease;
  background-color: transparent !important;
  position: relative;
  margin: 0 0.5rem;
}

/* Animated Underline Effect */
a.navbar-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 4px;
}

a.navbar-item:hover {
  color: var(--primary-color) !important;
}

a.navbar-item:hover::after {
  width: 80%;
  left: 10%;
}

/* Active State */
a.navbar-item.is-active {
  color: var(--primary-color) !important;
}

a.navbar-item.is-active::after {
  width: 80%;
  left: 10%;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease;
}

.button.is-primary:hover {
  background-color: #ffca3a; /* Lighter yellow */
  transform: translateY(-2px);
  color: #fff;
}

/* Hero Section */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-color: #f5f5f5;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darken image by 70% */
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
}

.carousel-content h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us */
.features-section {
  padding: 5rem 1.5rem;
}

.feature-card {
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-bottom: 3px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 183, 3, 0.2);
  border-bottom: 3px solid var(--primary-color);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  padding: 8rem 1.5rem;
  text-align: center;
  background-color: var(--heading-color);
  color: #fff;
}

.cta-section .title {
  color: #fff;
}

.cta-section .subtitle {
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 4rem 1.5rem 2rem;
  color: #666;
}

.footer strong {
  color: var(--heading-color);
}

/* WhatsApp Bubble */
.whatsapp-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-bubble:hover {
  transform: scale(1.1);
  color: #fff;
}

/* Offset for fixed navbar on content pages */
.fixed-nav-offset {
  padding-top: 120px;
}

/* Offset for fixed navbar on content pages */
.fixed-nav-offset {
  padding-top: 120px;
}

/* Carousel Controls */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Preloader Styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease-out,
    visibility 0.6s ease-out;
}

.loader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-content i {
  z-index: 2;
  animation: float 2s ease-in-out infinite;
}

.loading-ring {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  top: -5px;
}

.loading-ring::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: rgba(255, 183, 3, 0.5);
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

body.loaded #preloader {
  opacity: 0;
  visibility: hidden;
}

/* About Section Redesign */
.about-image-wrapper {
  position: relative;
  padding: 20px;
  margin-left: 20px; /* Space for the accent */
  margin-bottom: 20px; /* Space for the badge */
}

.image-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 70%;
  background-color: var(--primary-color);
  opacity: 0.15;
  border-radius: 20px;
  z-index: 0;
}

.about-img-main {
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-img-main {
  transform: translateY(-5px);
}

.experience-badge {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background-color: var(--primary-color);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(255, 183, 3, 0.3);
  z-index: 2;
  animation: floatBadge 3s ease-in-out infinite;
  min-width: 180px;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.85rem;
  line-height: 1.2;
  font-weight: 500;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media screen and (max-width: 768px) {
  .about-image-wrapper {
    margin: 0 0 2rem 0;
    padding: 0;
  }

  .image-bg-accent {
    width: 90%;
    left: -10px;
    top: -10px;
  }

  .experience-badge {
    right: 10px;
    bottom: -20px;
    padding: 1rem;
    min-width: 150px;
  }

  .experience-badge .years {
    font-size: 2rem;
  }
}

/* Group of Companies Section */
.company-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(255, 183, 3, 0.15); /* Primary color shadow */
  border-color: var(--primary-color);
}

.company-img-wrapper {
  margin-bottom: 1rem;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.4;
}
