/* Base Navbar Styles */
/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100%;
}

* {
    box-sizing: border-box;
    max-width: 100%;
}


@media (max-width: 991px) {
    .navbar {
        padding: 8px 15px;
    }

    .navbar-collapse {
        position: absolute;
        background: #3866e5;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        padding: 10px 0;
    }
}

.navbar {
    transition: all 0.4s ease-in-out;
    background: #3866e5;
    color: white;
    gap: 10px;
    
}

.nav-logo {
    width: auto;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background: transparent;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.navbar.fixed-top {
    top: 0;
    width: 100%;
    z-index: 1030; /* Ensures it stays on top */
}

.navbar-toggler {
    border: none;
    outline: none;
    padding: 8px;
}

.navbar-collapse {
    padding: 10px;
    transition: height 0.3s ease;
}

.navbar-nav {
    /* padding-top: 10px; */
    gap: 10px;
}

.navbar-brand:hover {
    box-shadow: 0 0 15px rgb(239, 208, 4, 0.1); 
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease-in-out;
    background: transparent;
}

/* Hover Effect: Scaling + Underline */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 3px;
    background: rgb(239, 208, 4);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    transform: scale(1.2);
    color: rgb(239, 208, 4);
}

/* Active Link Styling */
.navbar-nav .active-link {
    color: rgb(239, 208, 4) !important;
    font-weight: bold;  
    animation: glow 1.5s infinite alternate ease-in-out;
    pointer-events: none;
}

/* Glowing Effect */
@keyframes glow {
    0% { text-shadow: 0px 0px 5px rgb(239, 208, 4, 0.5); }
    100% { text-shadow: 0px 0px 15px rgb(239, 208, 4, 1); }
}


/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/header.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

/* About us section  */

.section {
    padding: 20px;
    text-align: center;
    max-width: 1200px;
    scroll-margin-top: 60px;
    margin: auto;
  }

  h1, h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
  }

  h2 .blink {
    color: red;
    animation: blink 1s infinite;
  }

  p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }

  .team-member {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

  .team-member h3 {
    margin: 10px 0 5px;
    font-size: 22px;
  }

  .team-member span {
    color: #777;
    font-size: 16px;
  }

  .services, .why-choose {
    margin-top: 10px;
    text-align: left;
  }

  .service-item {
    background: white;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
  }

  .why-choose ul {
    list-style: none;
    padding-left: 0;
  }

  .why-choose li {
    margin-bottom: 15px;
    font-size: 18px;
    padding-left: 20px;
    position: relative;
  }

  .why-choose li::before {
    content: '✔️';
    position: absolute;
    left: 0;
    color: green;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @media (max-width: 768px) {
    h1, h2 {
      font-size: 28px;
    }
    p {
      font-size: 16px;
    }
  }

  /* Project Section Styling */
.projects-section {
    padding: 20px;
    scroll-margin-top: 70px;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
  }
  
  .featured-project {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
  }
  
  .project-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
  }
  
  .project-subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-top: -10px;
  }
  
  .project-quote {
    font-style: italic;
    color: #555;
    margin: 20px 0;
  }
  
  .project-description {
    font-size: 1rem;
    color: #555;
    margin-top: 20px;
  }
  
  .upcoming-projects {
    text-align: left;
  }
  
  .upcoming-projects h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .upcoming-projects ul {
    list-style: none;
    padding: 0;
  }
  
  .upcoming-projects li {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  
  .upcoming-projects strong {
    font-size: 1.2rem;
    color: #222;
  }

  
/* Contact Us Section */
.contact-section {
    padding: 20px 0;
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}
.contact-info {
    flex: 1;
    text-align: left;
    padding: 20px;
}
.contact-form {
    flex: 1;
    padding: 20px;
}
.form-group {
    margin-bottom: 15px;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.btn-submit {
    padding: 10px 20px;
    background: #113ee3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-submit:hover {
    background: #0a16f1;
}
.social-icons {
    margin-top: 10px;
}
.social-icon {
    display: inline-block;
    margin: 0 5px;
    font-size: 20px;
    color: #555;
    transition: transform 0.3s;
}
.social-icon:hover {
    transform: scale(1.2);
    color: #2b26b7;
}


/* Footer Section */
.footer-section {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    max-width: 300px;
}

.footer-column h4 {
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #f4a261;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 5px 0;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: #f4a261;
}

/* Preloader Styles */
/* Box loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0f0f0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spiral-loader {
    position: relative;
    width: 80px;
    height: 80px;
  }
  
  .cube {
    width: 16px;
    height: 16px;
    background: #00eaff;
    position: absolute;
    top: 32px;
    left: 32px;
    animation: rotateCube 1.2s infinite ease-in-out;
    border-radius: 4px;
  }
  
  .cube:nth-child(1) { animation-delay: 0s; }
  .cube:nth-child(2) { animation-delay: 0.15s; }
  .cube:nth-child(3) { animation-delay: 0.3s; }
  .cube:nth-child(4) { animation-delay: 0.45s; }
  .cube:nth-child(5) { animation-delay: 0.6s; }
  
  @keyframes rotateCube {
    0% {
      transform: rotate(0deg) translateX(30px) rotate(0deg);
      opacity: 0.2;
    }
    50% {
      transform: rotate(180deg) translateX(10px) rotate(-180deg);
      opacity: 1;
    }
    100% {
      transform: rotate(360deg) translateX(30px) rotate(-360deg);
      opacity: 0.2;
    }
  }
