/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Body Styling */

/*body.loading {*/
/*  overflow: hidden;*/
/*}*/


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.container {
    max-width: 1200px;
    margin: auto;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: white;
  padding: 20px;
}

.message h1,
.message p {
  color: white;
  margin-bottom: 20px;
}


/* Main Layout */
.main-container {
    padding-top: 130px;
    margin-top: 20px; /* Reduce the gap */
    flex: 1;
    width: 100%;
    position: relative;
}

/* Ensure container is properly aligned */
.container-spacing {
    padding-left: 40px;
    padding-right: 40px;
}

/* Full-Width Background Covering Ticker to Sub-Services */
.full-width-bg {
    padding-top: 90px;
    width: 100%;
    flex: 1;
    background-size: cover;
    position: relative;
    padding-bottom: 60px; /* To prevent content from overlapping with the footer */
}

/* Dark Overlay for Faded Effect */
.full-width-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Ensuring Sections Appear Above the Background */
.services, .sub-services {
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Heading Styling */
.services h2, .sub-services h2 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Service Tiles (8 Tiles - 4 Per Row) */
.service-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Individual Service Tile */
.tile {
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid #E0A800;
    background: linear-gradient(to right, #2D4A79, #1A3154);
}

.tile:hover {
    transform: translateY(-5px);
    background: linear-gradient(to right, #E0A800, #C79500);
}

/* Sub-Services Section */
.sub-service-tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

/* Sub-Service Tile */
.sub-service-tile {
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #d39e00;
    transition: all 0.1s ease-in-out;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    background: linear-gradient(to right, #2D4A79, #1A3154);
    text-decoration: none !important; /* Removes underline */
}

.sub-service-tile a {
    text-decoration: none;
    color: #FFC107;
    display: block;
}

.sub-service-tile:hover {
    background: #e2e6ea;
    color: #000; /* Ensures text remains visible */
}

.sub-service-tile:hover a {
    color: white;
}

/* Smooth Fade-in Animation */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 0.9s ease-in forwards;
}

/*Calculators Table*/
.cinfoT {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  color: #000; /* Black text */
  font-size: 16px;
}

.cinfoT th,
.cinfoT td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: center;
}

.cinfoT .cinfoHd,
.cinfoT .cinfoHdL {
  background-color: #f4b400; /* Dark Yellow header */
  color: #000;
  font-weight: bold;
}

/* Alternate rows in light yellow */
.cinfoT tr:nth-child(even):not(:first-child) {
  background-color: #fff9db; /* Light yellow alternate row */
}

/* Sliders*/
/* WebKit (Chrome, Safari, Edge) */
input[type="range"].form-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #b8860b; /* dark yellow track */
  border-radius: 3px;
}

input[type="range"].form-range::-webkit-slider-thumb {
  background-color: #ffffff; /* white thumb */
  border: 2px solid #b8860b;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  margin-top: -6px; /* aligns the thumb vertically */
  cursor: pointer;
  appearance: none;
}

/* Firefox */
input[type="range"].form-range::-moz-range-track {
  height: 6px;
  background: #b8860b;
  border-radius: 3px;
}

input[type="range"].form-range::-moz-range-thumb {
  background-color: #ffffff; /* white thumb */
  border: 2px solid #b8860b;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  cursor: pointer;
}

/* Optional focus styling */
input[type="range"].form-range:focus {
  outline: none;
}



#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 30, 30, 0.95); /* dark grey transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

#loader.hide {
    opacity: 0;
    pointer-events: none;
}

#main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

#loader img {
  width: 100px;
}


@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-tiles, .sub-service-tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
     .tile, .sub-service-tile {
        font-size: 14px;
        padding: 15px;
    }
}

@media (max-width: 768px) {

    .navbar-brand img {
        max-height: 50px; /* Reduce logo height */
        width: auto; /* Keep aspect ratio */
    }

    .sticky-footer {
        font-size: 12px; /* Reduce footer text size */
        padding: 6px 0; /* Adjust padding */
    }

    .sticky-footer a {
        font-size: 12px; /* Smaller links */
    }

    .full-width-bg {
        padding-top: 60px; /* Reduce top padding */
        padding-bottom: 40px; /* Reduce bottom padding */
    }
    
    .service-tiles, .sub-service-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tile, .sub-service-tile {
        font-size: 14px;
        padding: 15px;
    }

    .modal-content {
        width: 90%; /* Take most of the screen width */
        max-width: 320px; /* Limit max width */
        padding: 12px; /* Reduce padding */
    }

    .modal-content h2 {
        font-size: 16px; /* Reduce heading size */
    }

    .modal-content input,
    .modal-content button {
        font-size: 13px; /* Improve readability */
    }

    .download-btn {
        font-size: 12px; /* Reduce button size */
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .service-tiles, .sub-service-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tile, .sub-service-tile {
        font-size: 12px;
        padding: 12px;
    }
}

/* Sticky Top Mini Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 45px; /* Adjusted for top bar height */
    margin-bottom: 20px;
    width: 100%;
    z-index: 1040;
}

/* Sticky copyright footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #212529; /* Dark background color */
    color: white; /* White text */
    padding: 10px 0;
    text-align: center;
    z-index: 1000; /* Ensure it stays on top */
    font-size: 14px; /* Adjust as needed, default is around 16px */
}

.sticky-footer a {
    color: #D4AF37; /* Dark Yellow */
    text-decoration: none; /* Optional: Removes underline */
}

.sticky-footer a:hover {
    color: #B8860B; /* Slightly darker shade on hover */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 15px auto;
}

.download-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#shortenedList {
    margin-bottom: 30px; /* Adjust as needed */
    color: white; /* Set text color to white */
}

#shortenedList a {
    color: #000000; /* Set link color to white */
}
