/*---------------------------------------------------------------------
                        Base Styles
---------------------------------------------------------------------*/
:root {
    --primary: #FDA417;
    --primary-dark: #f04d2e;
    --secondary: #1f1f1f;
    --light: #f8f9fa;
    --dark: #000000;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #666666;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Sen', sans-serif;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    font-family: 'Sen', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-header .subtitle {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}



.text-center .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/*---------------------------------------------------------------------
                        Header Styles
---------------------------------------------------------------------*/
/* Header styling */
/* Header styling */
  .header {
    min-height: 70px;
    display: flex;
    align-items: center;
    background-color: #ffffff !important;
    z-index: 1000;
    box-shadow: 0 6px 8px -2px rgba(244, 42, 1, 0.4);
  }

  /* Logo styling */
  .logo {
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 60px;
  }

  .logo-text {
    font-size: 17px;
    color: #f04d2e;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Nav link styles */
  .navbar-nav .nav-link {
    color: #f04d2e !important;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #c45944 !important;
  }

  /* Toggler styles */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(240, 77, 46, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  /* Button styling */
  .btn-primary {
    background-color: #f04d2e;
    border: none;
    transition: background-color 0.3s ease;
  }

  .btn-primary:hover {
    background-color: #c45944;
  }

  /* Body padding to avoid overlap */
  body {
    padding-top: 85px;
  }

  /* Mobile view adjustments */
  @media (max-width: 575.98px) {
    .logo {
      flex-direction: row;
      align-items: center;
    }

    .logo-text {
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 180px; /* Adjust if needed */
    }

    .logo img {
      height: 50px;
      margin-right: 6px;
    }

    .navbar-collapse {
      background-color: #ffffff;
      padding: 1rem;
      border-radius: 10px;
    }

    .navbar-nav .nav-link {
      margin-left: 0;
      margin-bottom: 10px;
    }
  }

  @media (max-width: 400px) {
    .logo-text {
      max-width: 150px;
      font-size: 10px;
    }
  }

/*---------------------------------------------------------------------
                        Hero Banner Styles
---------------------------------------------------------------------*/
   
    :root {
      --primary:#f04d2e
;
      --primary-dark: #f04d2e
;
      --white: #ffffff;
      --dark: #000000;
    }

    body, html {
      margin: 0;
      padding: 0;
    }

    .hero-banner {
      position: relative;
      height: 100vh;
      min-height: 750px;
      background-color: var(--white);
      overflow: hidden;
      margin-top: 10px;
    }

    .carousel-item {
      height: 100vh;
      min-height: 700px;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transition: none !important; /* Remove zoom/scale transition */
    }

    /* Your custom background images */
    .carousel-item:nth-child(1) {
      background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner-bg.png');
    }

    .carousel-item:nth-child(2) {
      background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/elecromechanical1.jpg');
    }

    .carousel-item:nth-child(3) {
      background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/Aboutus.jpg');
    }

    .hero-content {
      position: relative;
      z-index: 2;
      height: 100vh;
      min-height: 700px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      max-width: 800px;
      color: white;
    }

    .hero-content h1 {
      font-size: 60px;
      font-weight: 800;
      color: var(--white);
      margin-bottom: 20px;
      line-height: 1.2;
    }

    .hero-content p.lead {
      font-size: 18px;
      color: rgba(255, 255, 255, 0.9);
      margin-bottom: 30px;
    }

    .hero-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }

    .scroll-down {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      font-size: 24px;
      color: white;
    }
  
    .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-control i {
  font-size: 24px;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.custom-prev {
  left: 20px;
}

.custom-next {
  right: 20px;
}


/*---------------------------------------------------------------------
                        About Section Styles
---------------------------------------------------------------------*/
.about-section {
    background-color: var(--light);
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-button img {
    width: 70px;
    transition: transform 0.3s ease;
}

.play-button:hover img {
    transform: scale(1.1);
}

.about-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    color: var(--primary);
    font-size: 20px;
    margin-right: 10px;
}

.feature span {
    font-weight: 600;
    color: var(--secondary);
}

/*---------------------------------------------------------------------
                        Services Section Styles
---------------------------------------------------------------------*/
.services-section {
    background-color: var(--white);
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px  rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px  #ec8b78
;
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-link {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-link i {
    margin-left: 5px;
    font-size: 12px;
}

.service-link:hover {
    color: var(--primary-dark);
}

/*---------------------------------------------------------------------
                        Projects Section Styles
---------------------------------------------------------------------*/
      .projects-section {
      padding: 10px 0;
      background-color: var(--light);
    }

    .section-header h2 {
      font-size: 36px;
      font-weight: bold;
      color: var(--text);
    }

    .section-header p {
      color: #555;
    }

    .project-card {
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0, 234, 255, 0.05);
      position: relative;
      transition: 0.3s ease;
      margin-bottom: 15px;
    }
.project-card:hover {
    transform: translateY(-10px);
   
}
    .project-card img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .project-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      padding: 20px;
     
      color: white;
    }
    .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  justify-content: center;     /* Horizontal center */
  align-items: flex-end;       /* Push to bottom */
  padding-bottom: 20px;        /* Space from bottom */
  
}


    .project-overlay h3 {
      font-size: 20px;
      margin-bottom: 5px;
    }

    .project-overlay p {
      font-size: 14px;
    }

    .view-details {
  background-color: #f04d2e; /* Same as .btn-primary */
  color: white;
  padding: 8px 20px;
  text-align: center;
  border: none;
  border-radius: 50px; /* Rounded like header button */
  margin-top: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  animation: animate__pulse infinite 3s;
}

.view-details:hover {
  background-color: #e86161; /* Same hover as .btn-primary:hover */
}


    .btn-outline {
      border: 2px solid var(--primary);
      color: var(--primary);
      padding: 10px 20px;
      border-radius: 5px;
      text-decoration: none;
      transition: 0.3s ease;
    }

    .btn-outline:hover {
      background-color: var(--primary);
      color: white;
    }

    /* Fullscreen Modal */
    .image-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      inset: 0;
      background-color: rgba(0, 0, 0, 0.95);
    }

    .image-modal img {
      max-width: 100vw;
      max-height: 100vh;
      width: auto;
      height: auto;
      display: block;
      margin: auto;
      object-fit: contain;
      animation: zoom 0.4s ease;
    }

    @keyframes zoom {
      from {
        transform: scale(0.8);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .close-modal {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      z-index: 10000;
    }

    .close-modal:hover {
      color: #ccc;
    }

    .subtitle {
      color: var(--primary);
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      font-size: 14px;
    }


/*---------------------------------------------------------------------
                        Stats Section Styles
---------------------------------------------------------------------*/
.stats-section {
  background-color:  #f04d2e; /* fallback if --primary not set */
  color: #ffffff;
  padding: 80px 0;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 50px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  font-family: 'Sen', sans-serif;
}

.stat-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* testimonal */
.testimonials-section {
  background-color: #f04d2e;
  color: #fff;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
}

.section-subtitle {
  color: #ffe;
  font-size: 16px;
  margin-bottom: 20px;
}

.testimonial-box {
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.testimonial-message {
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: #fff;
}

.testimonial-author {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* Make arrows white */
}



/*---------------------------------------------------------------------
                        Contact Section Styles
---------------------------------------------------------------------*/
.contact-section {
    background-color: var(--white);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-control {
    height: 50px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.contact-form textarea.form-control {
    height: auto;
    resize: none;
}

.contact-info {
    background-color: var(--light);
    padding: 40px;
    border-radius: 10px;
    height: 100%;
}

.info-card {
    display: flex;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 5px;
    font-size: 15px;
}

.contact-map {
    width: 100%;
    height: 450px;
    margin-top: 80px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/*---------------------------------------------------------------------
                        Footer Styles
---------------------------------------------------------------------*/
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 100px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 100%);
}

.footer-about {
    margin-bottom: 30px;
}

.footer-about img {
    margin-bottom: 20px;
    height: 50px;
}

.footer-about p {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-newsletter h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    padding: 0 20px;
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--white);
    color: var(--primary);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 50px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-menu {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--primary);
}
.footer-address p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-address i {
    color: var(--primary); /* Adjust to your theme */
    margin-right: 8px;
}



/*---------------------------------------------------------------------
                        Back to Top Button
---------------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/*---------------------------------------------------------------------
                        Responsive Styles
---------------------------------------------------------------------*/
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 50px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 991.98px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p.lead {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .nav-link {
        color: var(--secondary) !important;
        padding: 10px 0 !important;
    }
    
    .header.scrolled .navbar-collapse {
        background-color: var(--white);
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 50px 0;
    }
    
    .hero-banner {
        height: auto;
        min-height: auto;
        padding: 70px 0 10px;
    }
    
    .carousel-item {
        height: auto;
        min-height: auto;
    }
    
    .hero-content {
        height: auto;
        min-height: auto;
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .contact-map {
        margin-top: 50px;
    }
    
    .footer::before {
        height: 60px;
    }
    
    .footer-bottom .row > div {
        text-align: center !important;
    }
    
    .footer-menu {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 30px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}