/* Primary color */
:root {
  --bak-primary: #900C3F;
}

/* Custom text color class */
.text-bak-primary {
  color: var(--bak-primary) !important;
}


/* ########################################## Navbar styling ###################################################*/
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--bak-primary);
}

.navbar-brand img {
  height: 60px; /* Base height */
  max-height: 60px;
  transform: scale(2.0); /* Scale the logo to be 100% larger */
  transform-origin: left center; /* Scale from left center to maintain position */
}

.nav-link {
  color: #333;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--bak-primary);
}

/* Navbar sticky */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #ffffff; /* Or slightly transparent if you want */
  box-shadow: 0px 2px 10px rgba(0,0,0,0.8); /* Soft shadow */
}

.navbar a {
  font-weight: 600; /* Normal font weight */
}

/* Default Navbar Style */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0; /* Initial bigger padding */
}

/* Shrink Navbar on Scroll */
.navbar.navbar-shrink {
  padding: 10px 0; /* Smaller padding after scroll */
  background-color: #ffffff; /* Optional: keep background solid */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-shrink a {
  font-size: 0.9rem;
}

/* Shrinking effect */
.navbar-shrink {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

/* ===== Growing Underline Effect for Navbar Links ===== */
.navbar-nav .nav-link {
  position: relative;
  color: #000; /* Default text color */
  font-weight: 500;
  transition: all 0.3s ease-in-out;
}

/* Underline effect */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #900C3F; /* Your primary color */
  transition: width 0.3s ease-in-out;
}

/* On hover, grow underline */
.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Optional: Change text color on hover */
.navbar-nav .nav-link:hover {
  color: #900C3F;
}

/* Remove default caret icon */
.nav-item.dropdown > a::after {
  display: none;
}

/* Hover effect for the main menu item */
.navbar-nav .nav-item.dropdown:hover > .nav-link {
  color: #fff;
  background-color: #900C3F; /* Your primary color */
  position: relative;
}

.navbar-nav .nav-item.dropdown:hover > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Show dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Dropdown menu style */
.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
}

/* Items */
.dropdown-item {
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

/* Icons spacing */
.dropdown-item i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Hover effect on items */
.dropdown-item:hover {
  background-color: #900C3F;
  color: #fff;
}

/* Growing underline effect for Technology dropdown */
.navbar-nav .dropdown.tech-hover .nav-link {
  position: relative;
  color: inherit;
  font-weight: 600;
}

.navbar-nav .dropdown.tech-hover .nav-link .underline {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #900C3F; /* your primary color */
  transition: width 0.3s ease-in-out;
}

.navbar-nav .dropdown.tech-hover:hover .underline {
  width: 100%;
}

/* Remove Bootstrap caret from dropdown */
.navbar-nav .dropdown.tech-hover .dropdown-toggle::after {
  display: none !important;
}

/* Dropdown item hover effect for Technology dropdown */
.navbar-nav .dropdown-menu .dropdown-item {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #900C3F;
  color: #ffffff;
}



/* ########################################     Back to Top Button ############################################# */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 20px;
  
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #900C3F; /* Your Primary Color */
  color: white;
  cursor: pointer;
  padding: 0px 10px;
  border-radius: 10%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

#backToTopBtn:hover {
  background-color: #6d0a2f; /* Slightly darker on hover */
}


/* ########################################     Technology Section ############################################# */

.tech-icon {
  color: #900C3F;
}

.tech-section .card-title {
  font-weight: 600;
}

.tech-section .card:hover {
  background-color: #900C3F;
  color: white;
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

.tech-section .card:hover .tech-icon {
  color: white;
}





/* ################################### Hero section styling ##################################### */
.hero-section {
  background: url('../../assets/tech1.jpg') center center/cover no-repeat;
  /* background-color: #f8f9fa; */
  padding: 100px 0;
  width: 100%;
  height: 845px;
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Optional overlay to darken background for better text visibility */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
  z-index: 1;
}

.hero-section .welcome-text {
  position: relative;
  z-index: 2;
}

.welcome-text h1,
.welcome-text p {
  color: #ffffff;
}

.welcome-text a.btn-primary {
  padding: 10px 30px;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 30px;
}

.hero-section .btn-primary {
  background-color: var(--bak-primary);
  border: none;
}



/* ################################################# Technology section and Drop-down menu ############################################## */

/* Custom Dropdown Hover */
.tech-dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Remove default toggle arrow */
.tech-link::after {
  display: none;
}

/* Growing underline animation */
.tech-link {
  position: relative;
  display: inline-block;
  color: #000; /* or white if navbar is dark */
  text-decoration: none;
  transition: color 0.3s;
}

.tech-link::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #900C3F;
  transition: width 0.4s ease;
}

.tech-dropdown:hover .tech-link::before {
  width: 100%;
}

/* Parent for hover interaction */
.navbar-nav .dropdown.tech-hover {
  position: relative;
}

.navbar-nav .dropdown.tech-hover:hover > .dropdown-menu {
  display: block;
  top: 100%;
  left: 0;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease-in-out;
  margin-top: 0;
}

/* Hide menu by default */
.navbar-nav .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  background-color: #fff;
  z-index: 9999;
}

/* Growing underline effect */
.navbar-nav .dropdown.tech-hover .nav-link {
  position: relative;
  color: inherit;
  font-weight: normal;
}

.navbar-nav .dropdown.tech-hover .nav-link .underline {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #900C3F; /* your primary color */
  transition: width 0.3s ease-in-out;
}

.navbar-nav .dropdown.tech-hover:hover .underline {
  width: 100%;
}

/* Remove Bootstrap caret from dropdown */
.navbar-nav .dropdown.tech-hover .dropdown-toggle::after {
  display: none !important;
}

/* Normalize font weight for Technology */
.navbar-nav .dropdown.tech-hover .nav-link {
  font-weight: 600; /* Match others */
}

/* Dropdown item hover effect */
.navbar-nav .dropdown-menu .dropdown-item {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
  background-color: #900C3F;
  color: #ffffff;
}




/* ########################################### Dropdown Menu: Services ######################################### */

/* Remove default caret icon */
.nav-item.dropdown > a::after {
  display: none;
}

/* Hover effect for the main menu item */
.navbar-nav .nav-item.dropdown:hover > .nav-link {
  color: #fff;
  background-color: #900C3F; /* Your primary color */
  position: relative;
}

.navbar-nav .nav-item.dropdown:hover > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

/* Show dropdown on hover */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  animation: fadeInDown 0.3s ease-in-out;
}

/* Fancy dropdown animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Dropdown menu style */
.dropdown-menu {
  border: none;
  border-radius: 0;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
}

/* Items */
.dropdown-item {
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

/* Icons spacing */
.dropdown-item i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Hover effect on items */
.dropdown-item:hover {
  background-color: #900C3F;
  color: #fff;
}



/* ############################################### Footer styling ####################################################### */
.footer {
  background-color: #121212;
  color: #fff;
  padding: 100px 0;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: var(--bak-primary);
}

/* Modern Footer styling */
.modern-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-top: 3px solid var(--bak-primary);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--bak-primary);
  padding-left: 5px;
  text-decoration: none;
}

.footer-links a i {
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-links a:hover i {
  color: var(--bak-primary);
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: #aaa;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links .social-link:hover {
  background: var(--bak-primary);
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-info .contact-item i {
  font-size: 1.2rem;
  margin-top: 2px;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--bak-primary);
  text-decoration: none;
}

.modern-footer hr {
  border-color: #444;
}

.modern-footer .text-muted {
  color: #aaa !important;
}

/* Footer bottom links */
.modern-footer .col-md-6:last-child a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.modern-footer .col-md-6:last-child a:hover {
  color: var(--bak-primary);
  text-decoration: none;
}