/* ======== Color Variables ======== */
:root {
  --primary-dark: #0D1B2A;
  --highlight-red: #E63946;
  --light-gray: #F1F1F1;
  --white: #FFFFFF;
}

/* ======== Base Styles ======== */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--light-gray);
  margin: 0;
  padding: 0;
}

header {
  color: var(--white);
  border-bottom-right-radius: 50px;
  border-bottom-left-radius: 50px;
  overflow: hidden;
}

/* ======== Navbar Styles ======== */
.navbar {
  background-color: var(--primary-dark) !important;
  padding: 1rem 2rem;
  border-bottom: 4px solid var(--highlight-red);
}

.custom-navbar {
  background-color: var(--primary-dark);
}

.navbar-brand img {
  height: 60px;
}

.nav-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin: 0 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--white) !important;
}

.nav-link:hover {
  color: var(--highlight-red) !important;
}

/* ======== Carousel Styles ======== */
.carousel-item {
  height: 75vh;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.6s ease-in-out;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  animation: fadeUp 1.2s ease-in-out forwards;
  opacity: 0;
  max-width: 90%;
  width: 100%;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.carousel-caption h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1rem;
}

.carousel-caption h1 .highlight {
  color: var(--highlight-red);
}

.carousel-caption h1 .alt-highlight {
  color: #A8DADC;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ======== Button ======== */
.btn-primary {
  background-color: var(--highlight-red);
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #c62833;
}

/* ======== Carousel Controls (Vertical) ======== */
.carousel-controls-vertical {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 5; /* Must be higher than overlay/caption */
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.carousel-control-prev,
.carousel-control-next {
  position: relative;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border: none;
  transition: background-color 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--highlight-red);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  width: 1.2rem;
  height: 1.2rem;
}


/* ======== Responsive ======== */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .carousel-item {
    height: 60vh;
  }

  .carousel-caption {
    top: 45%;
  }
}

/* ======== Services ======== */
.service-card {
  position: relative;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.02);
}

.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .overlay {
  opacity: 1;
}

.read-more-btn {
  font-weight: 500;
  color: #fff;
  background-color: #E63946;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn .read-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.read-more-btn:hover .read-text {
  opacity: 1;
  transform: translateX(0);
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

/* ======== CTA section ======== */
.cta-section {
  position: relative;
  color: var(--white);
  background-color: var(--primary-dark);
  z-index: 1;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.6); /* dark overlay */
  z-index: 1;
}

.cta-section .container {
  z-index: 2;
  position: relative;
}

/* Consignment Registration form */
main {
    max-width: 600px; /* Max width of the form */
    margin: 50px auto; /* Center the form with margin */
    padding: 20px; /* Padding inside the main container */
    background-color: #fff; /* White background for the form */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

/* Heading style */
#Reg {
    text-align: center; /* Centered heading */
    margin-bottom: 20px; /* Space below the heading */
    color: rgb(122, 4, 4); /* Blue color for the heading */
}

/* Global styles for the form */
#consignmentForm {
    max-width: 600px; /* Limit the form width */
    margin: 20px auto; /* Center the form and add margin */
    padding: 20px; /* Add padding inside the form */
    background-color: #f9f9f9; /* Light background color */
    border-radius: 8px; /* Round the corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

/* Style for the labels */
label {
    display: block; /* Display labels as block elements */
    margin-bottom: 8px; /* Space below labels */
    font-weight: 600; /* Semi-bold text for labels */
    color: #333; /* Darker text color for better readability */
    font-size: 14px; /* Slightly smaller label font */
}

/* Style for input fields and textarea */
input[type="text"],
input[type="number"],
textarea {
    width: 100%; /* Full width of the container */
    padding: 10px; /* Add padding inside the fields */
    margin-bottom: 15px; /* Space below fields */
    border: 1px solid #ccc; /* Light gray border */
    border-radius: 4px; /* Slightly rounded corners */
    font-size: 16px; /* Font size */
    background-color: #fff; /* White background */
    box-sizing: border-box; /* Include padding in element's total width */
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transitions */
}

/* Focus state for input fields and textarea */
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: rgb(122, 4, 4); /* Blue border on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Light blue glow on focus */
    outline: none; /* Remove default outline */
}

/* Style for the submit button */
#consignmentForm button {
    width: 100%; /* Full width */
    padding: 12px; /* Add padding inside the button */
    background-color: rgb(122, 4, 4); /* Primary blue background */
    color: #fff; /* White text color */
    border: none; /* Remove default border */
    border-radius: 4px; /* Slightly rounded corners */
    font-size: 16px; /* Font size */
    font-weight: 600; /* Bold text */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transitions */
}

/* Change button color on hover */
#consignmentForm button:hover {
    background-color: rgb(122, 4, 4); /* Darker blue on hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

/* Style for the result div */
#result {
    margin-top: 20px; /* Space above result div */
    text-align: center; /* Centered text */
    padding: 10px; /* Padding inside the result box */
    background-color: #f8f8f8; /* Light background */
    border: 1px solid #ddd; /* Light gray border */
    border-radius: 4px; /* Rounded corners */
    font-size: 14px; /* Font size */
    color: #333; /* Text color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #consignmentForm {
        padding: 15px; /* Reduce padding on smaller screens */
    }
    
    input[type="text"],
    input[type="number"],
    textarea {
        font-size: 14px; /* Slightly smaller font for input fields */
    }
    
    #consignmentForm button {
        font-size: 14px; /* Smaller font size for the button */
    }
}

/* Gotopbtn */

#goTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 85px;
  right: 30px;
  z-index: 99;
  font-size: 24px;
  border: none;
  outline: none;
  background-color: #dc3545; /* Bootstrap red */
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

/* Hover Effect */
#goTopBtn:hover {
  background-color: #bb2d3b;
}

/* Responsive Fix for Small Screens */
@media (max-width: 576px) {
  #goTopBtn {
    right: 25px;
    bottom: 85px;
    padding: 10px 14px;
    font-size: 20px;
  }
}

/* Loader wrapper covers the entire screen */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The spinner */
.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #dc3545; /* Bootstrap red */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animation for spinner */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}







