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

/* Utility */
.text-bak-primary {
  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 */
}

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

.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;
}

/* ===== 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;
}

/* ################################### Hero section styling ##################################### */
.hero-section {
  background: url('../assets/hero_section3.jpg') center center/cover no-repeat;
  /* background-color: #f8f9fa; */
  padding: 100px 0;
  width: 100%;
  height: 245px;
  overlay: rgba(0, 0, 0, 1.5); /* Optional: dark overlay for better text visibility */
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 90vh;
  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.5); /* Semi-transparent black */
  z-index: 1;
}

.hero-section .welcome-text {
  /* margin-left: -15em;
  margin-bottom: -30em; */
  z-index: 2;
}


/* ######################################## 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 */
}


/* ###################################### Portfolio Section ################################################*/
.portfolio-section {
  background-color: #f8f9fa;
}

.portfolio-section .card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
}

/* Consistent image dimensions for portfolio cards */
.portfolio-section .card-img-top {
  height: 300px; /* Fixed height for all card images */
  object-fit: cover; /* Maintains aspect ratio and covers the container */
  width: 100%;
}

.custom-btn {
  background-color: #900C3F;
  border: none;
  font-weight: 500;
  padding: 10px 30px;
  font-size: 1.2rem;
  border-radius: 30px;
}

.custom-btn:hover {
  background-color: #75052f;
}


/* #################################### 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;
}

/* Mobile footer alignment */
@media (max-width: 576px) {
  .modern-footer .container,
  .modern-footer .row,
  .modern-footer [class*="col-"] {
    text-align: center !important;
  }
  .modern-footer .social-links .d-flex {
    justify-content: center !important;
  }
  .modern-footer .contact-info .contact-item {
    justify-content: center;
  }
  .modern-footer .contact-info .contact-item i {
    margin-right: 0.75rem;
  }
}
