/* Google Font Import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --blue: #0078ff;
  --green: rgba(29, 141, 55, 0.9);
  --green1: rgb(27, 116, 48);
  --light_green: rgba(37, 146, 63, 0.7);
}

* {
  margin: 0;
  padding: 0;
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

.navbar,
.footer {
  background-color: #388e3c;
}

/* .navbar .nav-link,
.footer {
  color: #fff !important;
} */

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", Arial, sans-serif;
  color: #388e3c;
  font-weight: 700;
}

.btn-primary {
  background-color: #388e3c;
  border: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}
.fab {
  border: none;
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1976d2;
  color: #fff;
}

.fab {
  box-shadow: 0 4px 16px rgba(56, 142, 60, 0.2);
}

.section-title {
  color: #388e3c;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dark-mode {
  background-color: #222 !important;
  color: #f1f1f1 !important;
}

.dark-mode .footer {
  background-color: #222 !important;
}

.dark-mode h2,
.dark-mode h1 {
  color: #fbc02d !important;
}

/* Authentication Navbar Styles */
#profile-section {
  display: none !important; /* Hidden by default */
}

#profile-section.show {
  display: flex !important; /* Show when logged in */
}

#profile-section .dropdown {
  display: flex;
  align-items: center;
  width: 100%;
}

.profile-user-btn {
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333;
  width: 100%;
}

.profile-user-btn:hover {
  background-color: rgba(0, 120, 255, 0.1);
  transform: translateY(-1px);
  color: #0078ff;
}

.profile-user-btn::after {
  display: none !important; /* Hide Bootstrap dropdown arrow */
}

.user-display-name {
  font-weight: 600;
  color: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar i {
  transition: all 0.3s ease;
}

.profile-user-btn:hover .profile-avatar i {
  color: #0066cc !important;
  transform: scale(1.05);
}

.profile-user-btn:hover .user-display-name {
  color: #0078ff;
}

#profile-section .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e5e9;
  padding: 0;
  min-width: 280px;
  margin-top: 0.5rem;
}

#profile-section .dropdown-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
  border-radius: 12px 12px 0 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

#profile-section .dropdown-item {
  padding: 0.75rem 1rem;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

#profile-section .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0078ff;
}

#profile-section .dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

#profile-section .dropdown-item i {
  color: #0078ff;
  width: 16px;
  font-size: 0.95rem;
}

#profile-section .dropdown-item.text-danger i {
  color: #dc2626;
}

#profile-section .dropdown-divider {
  margin: 0.5rem 0;
  border-color: #e1e5e9;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .user-display-name {
    display: none; /* Hide name on mobile to save space */
  }

  .profile-user-btn {
    padding: 0.75rem !important;
    justify-content: center;
  }
}

/* It removes the Bootstrap’s solid background */
.bg-body-tertiary {
  background-color: transparent !important;
}
.icon {
  height: 6.5rem;
}

.training-links {
  color: black;
  text-decoration: none;
  padding: 0.3rem;
  border-radius: 0.3rem;
}

/* .training-links:hover img {
  filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2500%)
    hue-rotate(190deg);
} */

.cauresel-images img {
  height: 65vh;
  width: auto;
  object-fit: cover;
}

.redirect-btns button {
  border-radius: 1.5rem;
  border: none;
  outline: none;
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  padding: 15px;
}
.redirect-btns button:hover {
  background: linear-gradient(45deg, #0056b3, #007bff);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

.carousel-item {
  transition: transform 0.5s ease-in-out;
}

.carousel-item h2 {
  color: white;
}

.carousel-overlay {
  position: relative;
}

.carousel-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /*Black with 50% opacity */
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  z-index: 2;
}

.nav-btn {
  position: relative;
  top: 90%;
  filter: invert(1);
}

.heading-text {
  text-decoration-line: underline;
  text-underline-offset: 0.5rem;
  text-decoration-color: var(--blue);
}

.svg-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-radius: 50%;
}
/* Services card is here */
.card-services {
  margin: 1rem;
  border: none;
  cursor: pointer;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  background: linear-gradient(120deg, #a8edea, #fed6e3);
  /* background-color:linear-gradient(125deg, pink,125deg , lightblue); */
  border: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced hover effects with smooth animations */
.card-services:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* SVG icon animation */
.card-services .svg-img {
  transition: all 0.3s ease;
  transform: scale(1);
}

.card-services:hover .svg-img {
  transform: scale(1.1) rotate(5deg);
}

.card-services:hover h5 {
  color: var(--blue);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.card-services h5 {
  font-weight: 700;
  margin: 1rem;
  transition: all 0.3s ease;
}

/* Button hover effects */
.card-services .btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Progressive loading compatibility - initial states handled by JavaScript */
.card-services {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced loading state for better performance */
.progressive-load:not(.loaded) {
  pointer-events: none;
}

p {
  text-align: justify;
}

/* Pulse effect on card focus */
.card-services:focus-within {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
  }
  100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}

/* Enhanced 2x2 Grid Styling */
#services .container .row {
  max-width: 900px;
  margin: 0 auto;
}

/* Loading skeleton effect for better UX */
.progressive-load:not(.loaded) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Dark mode loading effect */
body.dark .progressive-load:not(.loaded) {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

/* Responsive adjustments for 2x2 layout */
@media (max-width: 768px) {
  .nav-btn {
    top: 230%;
  }

  .card-services {
    margin: 0.5rem;
    padding: 1rem;
  }

  .card-services:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

/* Dark mode adjustments for enhanced cards */
body.dark .card-services {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark .card-services:hover {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
#digital-marketing-card {
  background-color: #ff689a3d;
}

#content-writing-card {
  background-color: #e98e063d;
}

#website-development-card {
  background-color: #41cf2e3d;
}

#graphic-design-card {
  background-color: #2282ff3d;
}

#social-media-management-card {
  background-color: #8660fe3d;
}

.card {
  border: none;
}

.about-us {
  font-size: 1rem;
  text-align: left;
}

.about-us ul li {
  text-align: justify;
  list-style: none;
  margin-bottom: 1rem;
}

.about-us ul svg {
  filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2500%)
    hue-rotate(190deg);
}

.about-us-img {
  width: 100%;
}

.founder-text {
  padding-left: 5rem !important;
}

.clients-img {
  /* height: 7rem; */
  background-color: white;
  padding: 1rem;
}

.clients-img {
  max-width: 250px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.client-page {
  width: 100%;
  padding: 3rem;
  background-color: var(--blue);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.founder-detail {
  font-size: 1.2rem;
}

.founder-image {
  position: relative;
  overflow: hidden;
}

.founder-image:hover .founder-links {
  transform: translateY(-40px);
  transition: all 0.3s ease-in-out;
}

.founder-links {
  position: absolute;
  bottom: -60px;
  transform: translateY(0%);
  transition: transform 0.3s ease-in-out;
  left: 15%;
  width: 70%;
}

.founder-links h5,
.founder-links p {
  color: white;
}

.founder-detail img {
  width: 70%;
  border-radius: 2rem;
}

.founder-detail p {
  text-align: justify;
}

.founder-card {
  background-color: rgba(0, 0, 0, 0.426);
}

.socialmedia ul {
  list-style: none;
  gap: 1rem;
}

.footer {
  background-color: #21903b;
  color: white;
  font-family: Arial, sans-serif;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 60px;
}

.footer-container > div {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer h3 {
  text-decoration: underline;
  margin-bottom: 10px;
  font-size: 20px;
}

.footer p,
.footer a {
  font-size: 14px;
  color: white;
  line-height: 1.6;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 6px;
}

.footer-social h3 {
  margin-bottom: 15px;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  margin-bottom: 10px;
}

.social-list a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.social-list a:hover {
  color: #d4f7d4;
}

.social-list i {
  background-color: #ffffff30;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: background 0.3s, color 0.3s;
}

.social-list a:hover i {
  background-color: white;
  color: #28a745;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ffffff80;
  margin-top: 30px;
  padding-top: 15px;
  font-size: 13px;
}
.send-message-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: white;
  color: #28a745;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.send-message-btn:hover {
  background-color: #dff0d8;
}

input::placeholder,
textarea::placeholder {
  color: rgb(180, 180, 180);
}

textarea {
  min-height: 8rem;
}

#error {
  color: red;
  font-size: 1rem;
}

.gallery-card {
  /* background-color: #111; */
  /* border: 1px solid #fff; */
  background-color: white;
  border: 0.5px solid black;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
  color: black;
}

.gallery-card:hover {
  box-shadow: 0 0 15px white;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
}
.gallery-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 170px;
  align-items: center;
  gap: 0.5rem;
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-top: 0;
}

.gallery-card .card-body {
  padding: 15px 15px 0;
}

.gallery-card .card-title {
  /* color: #fff; */
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

.gallery-card .card-text {
  /* color: #e0e0e0; */
  font-size: 17px;
  cursor: text;
}
.work-card {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
  border: none;
}
.work-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.work-card:hover h3 {
  color: var(--blue);
}

@media only screen and (max-width: 576px) {
  #logo {
    width: 10rem;
  }

  .clients-img {
    max-width: 60px;
  }
}

@media only screen and (max-width: 576px) {
  #logo {
    width: 10rem;
  }

  .clients-img {
    max-width: 60px;
  }
}

@media only screen and (max-width: 320px) {
  #logo {
    width: 6rem;
  }

  .switch-label {
    height: 16px;
    border-radius: 8px;
    border-width: 2px;
  }

  .navbar .toggle-switch {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .slider::before {
    top: 1px;
    left: 2px;
    width: 12px;
    height: 12px;
  }

  .checkbox:checked ~ .slider::before {
    transform: translateX(16px);
  }
}

@media only screen and (max-width: 768px) {
  .footer-links {
    flex-direction: row;
    margin: 2rem 0;
  }

  .founder-text {
    padding-left: 1rem !important;
  }

  .clients-img {
    max-width: 80px;
  }
}

@media (max-width: 1412px) {
  .clients-img {
    max-width: 105px;
  }
}

@media (max-width: 991.5px) {
}

/* Dark mode for about section */
body.dark .about-us {
  background-color: #222;
  color: #fff;
}

body.dark .about {
  background-color: #222;
  color: #fff;
}

/* Dark mode for contact section */
body.dark footer {
  background-color: #222;
  color: #fff;
}

body.dark .bg-body-tertiary {
  background-color: #292929 !important;
  color: #fff;
}

body.dark .bg-body-tertiary .container-fluid .d-flex {
  color: #fff;
  background-color: #292929;
}

body.dark
  .bg-body-tertiary
  .container-fluid
  .d-flex
  .training-links
  .d-flex
  .icon {
  color: #fff !important;
}

body.dark .d-flex .heading-text {
  color: #fff !important;
  background-color: #222;
}

body.dark .d-flex .text-center {
  color: #fff !important;
  background-color: #222;
}

body.dark .card {
  background-color: #222;
}

body.dark .card-services {
  color: #fff;
  background-color: #0b09097b;
}

body.dark .gallery-card {
  background-color: #0b09097b;
  color: #fff;
}

body.dark .gallery-card:hover {
  box-shadow: 0 0 15px white;
}

body.dark .container .text-center {
  color: white;
}

body.dark .copyright {
  color: #f2f2f2;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    #1e90ff,
    #00c6ff
  ); /* vivid blue gradient */
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  transform: scale(1.15) rotate(360deg);
  background: linear-gradient(135deg, #0077ff, #00aaff); /* hover gradient */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

body.dark .icon {
  filter: invert(1);
}

body.dark .mb-0:hover {
  color: var(--blue);
  transition: transform, bacbkground-color 0.2s ease-in-out;
}

body.dark .mb-4:hover {
  color: var(--blue);
  transition: transform, bacbkground-color 0.2s ease-in-out;
}

body.dark .icon:hover {
  filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2500%)
    hue-rotate(190deg);
}

body.dark .training-links:hover .mb-0,
body.dark .training-links:hover img {
  color: var(--blue);
  transition: transform, bacbkground-color 0.2s ease-in-out;
  filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(2500%)
    hue-rotate(190deg);
}

body.dark .mb-4:hover {
  color: var(--blue);
}

.logo-wrapper {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 8px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#form-submit {
  transition: 0.4s;
  border: 2px solid rgb(24, 112, 255);
  box-sizing: border-box;
}

#form-submit:hover {
  background-color: rgb(24, 112, 255);
  border: 2px solid rgb(247, 245, 245);
  color: #fdfeff;
  transform: scale(1.05);
  transform: 0.4s;
}

/* .btn-custom-purple { */

@media screen and (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-top {
    width: 100%;
  }

  .footer-about-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left; /* keep left alignment of text */
    padding: 20px 0;
  }

  .footer-about {
    background-color: #28a745; /* or whatever green you're using */
    padding: 20px;
    border-radius: 8px;
    color: white;
    max-width: 500px;
  }
  .footer-about h3 {
    text-align: center;
    text-decoration: none;
    font-weight: bold;
  }
  .footer-about p {
    text-align: justify;
  }

  .footer-links,
  .footer-contact {
    width: 48%;
    float: left;
    margin-left: 5px;
    padding: 2px;
    background-color: #28a745; /* or whatever green you're using */
    border-radius: 8px;
    color: white;
    max-width: 500px;
  }

  .footer-links h3,
  .footer-contact h3,
  .footer-social h3 {
    text-decoration: none;
    font-weight: bold;
  }

  .footer-contact p {
    text-align: justify;
  }
  .footer-links {
    padding-left: 20px;
  }

  .footer-social {
    text-align: center;
    padding: 2px;
    background-color: #28a745; /* or whatever green you're using */
    border-radius: 8px;
    color: white;
    max-width: 500px;
    padding-top: 10px;
  }

  .footer-social .social-list {
    display: flex;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
    justify-content: center;
    gap: 10px;
    padding: 0;
    list-style: none;
  }

  .footer-social .social-list li {
    display: inline-block;
  }

  .footer-social .social-list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    transition: background-color 0.3s ease;
  }

  .footer-social .social-list li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
}

.about-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.about-title {
  border-bottom: 3px solid #2a63f4;
  display: inline-block;
}

.about-subtitle {
  font-style: italic;
  color: #666;
  /* added width to the subtitle */
  width: 369px;
  /* add mrgin auto and 0 so that it is in center */
  margin: 0 auto;
  /* add animation */
  border: 1px solid #388e3c;
  padding: 0 12px;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: shadowPulse 2s infinite alternate;
}

.about-subtitle:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25), 0 0 25px rgba(0, 255, 128, 0.6); /* glow layer */
}

@keyframes shadowPulse {
  0% {
    /* box-shadow: 0 7px 20px #388e3c; */
    box-shadow: 0 4px 10px rgba(0, 255, 128, 0.3);
  }
  100% {
    box-shadow: 0 8px 25px rgba(21, 148, 83, 0.7);
  }
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.about-card h3 {
  margin-bottom: 15px;
  color: #2a63f4;
}

.about-card p {
  color: #333;
  line-height: 1.6;
}

.about-card:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}
.send-message-btn {
  display: none;
}

.btn-custom-purple {
  background-color: #463896;
  border-color: #291987;
  color: white;
}

.btn-custom-purple:hover {
  background-color: #1f0d66;
  border-color: #1f0d66;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 25, 135, 0.4);
  transition: all 0.3s ease;
}

.btn-custom-purple:focus,
.btn-custom-purple:active {
  background-color: #1f0d66 !important;
  border-color: #1f0d66 !important;
  color: white !important;
  box-shadow: 0 0 0 0.2rem rgba(41, 25, 135, 0.25) !important;
}

/* === Navbar Custom Styling === */
.navbar {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background-color: #ffffff !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  max-height: 60px;
  object-fit: contain;
  vertical-align: middle;
}

/* Align all nav items vertically center */
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  color: #333;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #463896;
}

/* Responsive logo alignment fix */
@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    margin-right: auto;
  }

  .navbar-collapse {
    margin-top: 0.8rem;
  }

  .navbar-nav .nav-link {
    padding-left: 0;
  }
}

/* Authentication Navbar Styles */
#profile-section {
  display: none !important; /* Hidden by default */
}

#profile-section.show {
  display: flex !important; /* Show when logged in */
}

#profile-section .dropdown {
  display: flex;
  align-items: center;
  width: 100%;
}

.profile-user-btn {
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333;
  width: 100%;
}

.profile-user-btn:hover {
  background-color: rgba(0, 120, 255, 0.1);
  transform: translateY(-1px);
  color: #0078ff;
}

.profile-user-btn::after {
  display: none !important; /* Hide Bootstrap dropdown arrow */
}

.user-display-name {
  font-weight: 600;
  color: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar i {
  transition: all 0.3s ease;
}

.profile-user-btn:hover .profile-avatar i {
  color: #0066cc !important;
  transform: scale(1.05);
}

.profile-user-btn:hover .user-display-name {
  color: #0078ff;
}

#profile-section .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e5e9;
  padding: 0;
  min-width: 280px;
  margin-top: 0.5rem;
}

#profile-section .dropdown-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
  border-radius: 12px 12px 0 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

#profile-section .dropdown-item {
  padding: 0.75rem 1rem;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

#profile-section .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0078ff;
}

#profile-section .dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

#profile-section .dropdown-item i {
  color: #0078ff;
  width: 16px;
  font-size: 0.95rem;
}

#profile-section .dropdown-item.text-danger i {
  color: #dc2626;
}

#profile-section .dropdown-divider {
  margin: 0.5rem 0;
  border-color: #e1e5e9;
}

/* === Additional Button Style from master === */
.btn-brand {
  background: linear-gradient(90deg, #388e3c 0%, #1976d2 100%);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(56, 142, 60, 0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.navbar-brand img {
  max-height: 60px;
  object-fit: contain;
  vertical-align: middle;
}

/* Align all nav items vertically center */
.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  color: #333;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #463896;
}

/* Dark Mode Toggle Switch Alignment */
.navbar .toggle-switch {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

/* Responsive logo alignment fix */
@media (max-width: 991.98px) {
  .navbar .navbar-brand {
    margin-right: auto;
  }

  .navbar-collapse {
    margin-top: 0.8rem;
  }

  .navbar-nav .nav-link {
    padding-left: 0;
  }

  .toggle-switch {
    margin-top: 1rem;
    padding-left: 0.5rem;
  }
}

/* Authentication Navbar Styles */
#profile-section {
  display: none !important; /* Hidden by default */
}

#profile-section.show {
  display: flex !important; /* Show when logged in */
}

#profile-section .dropdown {
  display: flex;
  align-items: center;
  width: 100%;
}

.profile-user-btn {
  padding: 0.75rem 1rem !important;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333;
  width: 100%;
}

.profile-user-btn:hover {
  background-color: rgba(0, 120, 255, 0.1);
  transform: translateY(-1px);
  color: #0078ff;
}

.profile-user-btn::after {
  display: none !important; /* Hide Bootstrap dropdown arrow */
}

.user-display-name {
  font-weight: 600;
  color: inherit;
  font-size: 0.95rem;
  white-space: nowrap;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar i {
  transition: all 0.3s ease;
}

.profile-user-btn:hover .profile-avatar i {
  color: #0066cc !important;
  transform: scale(1.05);
}

.profile-user-btn:hover .user-display-name {
  color: #0078ff;
}

#profile-section .dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e5e9;
  padding: 0;
  min-width: 280px;
  margin-top: 0.5rem;
}

#profile-section .dropdown-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
  border-radius: 12px 12px 0 0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

#profile-section .dropdown-item {
  padding: 0.75rem 1rem;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

#profile-section .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0078ff;
}

#profile-section .dropdown-item.text-danger:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

#profile-section .dropdown-item i {
  color: #0078ff;
  width: 16px;
  font-size: 0.95rem;
}

#profile-section .dropdown-item.text-danger i {
  color: #dc2626;
}

#profile-section .dropdown-divider {
  margin: 0.5rem 0;
  border-color: #e1e5e9;
}

/* btn-brand hover and focus states */
.btn-brand:hover,
.btn-brand:focus {
  background: linear-gradient(90deg, #1976d2 0%, #388e3c 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.18);
  transform: translateY(-2px) scale(1.03);
}

/* tooltip box for service section */
.tooltip-box {
  position: absolute;
  bottom: 110%;
  left: -1;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 1rem 1rem;
  border-radius: 12px;
  white-space: nowrap; 
  opacity: 0;
  visibility: hidden; 
  font-size: 1rem;
  font-weight: 500;
  width: 200px;
  white-space: normal;
  transition: opacity 0.3s ease;
  z-index: 10;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
} 
.btn-group:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
}

.custom-footer-green .footer-underline {
  border-bottom: 3px solid #222;
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 12px;
}

.custom-footer-green .footer-list li {
  margin-bottom: 10px;
  font-size: 1.08rem;
  color: #222;
  font-weight: 500;
}

.custom-footer-green .footer-list li a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.custom-footer-green .footer-list li a:hover {
  color: #2196f3;
  border-bottom: 2px solid #2196f3;
}

.custom-footer-green .footer-label {
  font-size: 1rem;
  color: #222;
  letter-spacing: 1px;
  font-weight: 500;
}

.footer-bottom-bar {
  background: rgba(0,0,0,0.05);
  border-top: 1px solid #b2f5b2;
}

.footer-link {
  color: #222;
  margin-left: 18px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #2196f3;
  text-decoration: underline;
}

.quick-links-list li a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s, border-bottom 0.3s, transform 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
}

.quick-links-list li a:hover {
  color: #2196f3;
  border-bottom: 2px solid #2196f3;
  transform: translateX(8px) scale(1.08);
}

/* Reduce font size for both Services and Quick Links */
.custom-footer-green .footer-list li a,
.quick-links-list li a {
  font-size: 0.98rem;
}

/* Smoother and more natural animation for both */
.custom-footer-green .footer-list li a,
.quick-links-list li a {
  color: #222;
  text-decoration: none;
  transition: 
    color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    border-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  display: inline-block;
}

/* Footer links: smaller size, smooth blue color on hover, no underline */
.custom-footer-green .footer-list li a {
  font-size: 0.89rem !important;
  color: #222;
  text-decoration: none;
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 2px;
  display: inline-block;
}

.custom-footer-green .footer-list li a:hover {
  color: #2196f3;
}

/* Remove or comment out these to avoid conflicts:
.quick-links-list li a { ... }
.quick-links-list li a:hover { ... }
.custom-footer-green .footer-list li a,
.quick-links-list li a { ... }
.custom-footer-green .footer-list li a:hover,
.quick-links-list li a:hover { ... }
*/
