body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins',sans-serif;
}

.home-pg {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.home-pg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("projectimg-4.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.5);
  animation: zoomInBg 2s ease forwards;
  filter: brightness(60%); /* lower = darker, e.g. 40% or 50% */
}


.home-pg > * {
  position: relative;
  z-index: 1;
}

/* ...existing code... */

@keyframes zoomInBg {
  from {
    transform: scale(1.5);
  }
  to {
    transform: scale(1);
  }
}

/* styling for nav bar */


.nav{
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: 0.6s;
  z-index: 1000;
  color: white;
  transition: background-color 0.4s ease;
}

.nav.scrolled{
  background-color: white;
  opacity: 0.98;
  box-shadow: 0px 0 70px rgba(0, 0, 0, 0.9);
}
.nav.scrolled a{
  color: black;
}


.nav a{
  text-decoration: none;
  color: #fff;
  padding: 1%;
  font-size: 14px;
  position: relative;
  /* Remove box-shadow and border-bottom for underline effect */
}

.nav a:visited {
  /* Remove underline for logo, contact button, and menu icon */
}


.nav a.img-nav
.nav a.contact
.nav a.menubutton {
  /* Prevent underline (red border) on these */
}


.img-nav a::after,
.contact::after,
.menubutton::after {
  display: none !important;
  content: none !important;
}

.nav a::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #da2c46;
  transition: width 0.3s, left 0.3s;
  z-index: 2;
  transform: translateX(-50%);
  opacity: 0;
}

.nav a:hover::after {
  width: 100%;
  left: 50%;
  opacity: 1;
}

.nav a:hover {
  color: red;
}

.nav a.active {
  color: #da2c46;
}

.nav a.active::after {
  width: 100%;
  left: 50%;
  opacity: 1;
  background: #da2c46;
}


.img-nav{
  width: 40%;
  margin: 5px;
}
.nav-span{
  width: 60%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.contact {
  border-bottom: none !important;
}

.home-pg a button{
  background-color: #da2c46;
  color: white;
  padding: 12px 15px;
  border: none;
  font-size: 12px;
  font-family: arimo,sans-serif;
  font-weight: bold;
  transition: background 0.8s ease;
  cursor: pointer;
}

.home-pg a button:hover{
  background-color: black;
}

.nav #line{
  border-left: 2px solid #ffffff80;
  height: 40px;
}

/* styling for side nav-bar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(13px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  
}

.sidebar .img-nav {
  width: 100%;
  padding: 10px 6px 4px 3%;
  display: flex;
  justify-content: space-around;

}

.sidebar .closebar{
  margin: 28px 20px 0 0;
}

/* Make closebar black when sidebar is active (visible) */
.sidebar.active .closebar {
  filter: invert(1);
}

.menubutton{
  display: none;
}

.nav.scrolled .menubutton {
  filter: invert(1);
}

.sidebar .nav-span {
  width: 100%;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.sidebar .nav-span a{
  padding: 5px 0 5px 10%;
}

.sidebar a {
  text-decoration: none;
  color: #fff;
}

.sidebar a:hover{
  color: #da2c46;
}

.sidebar .line{
  border-top: 2px solid #ffffff80;
  width: 80%;
  margin: 8%;
}


@media (max-width: 850px) {
  .hideOnMobile {
    display: none;
  }
  .menubutton {
    width: 10%;
    display: block;
    position: absolute;
    right: -2%;
  }
  .nav-span{
    width: 30%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }
}
@media (max-width: 500px) {
  .contact {
    display: none;
  }
  .menubutton {
    display: block;
    position: absolute;
    right: -2%;
  }  
  
}
@media (max-width: 400px) {
  .sidebar {
    width: 100%;
  }
}

/* styling for the home page */
.homepg-writeup{
  width: 100%;
  height: 310px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  position: relative;
}


.homepg-writeup h2{
  position: absolute;
  top: 50%;
  animation: float 2s ease;
  animation-fill-mode: forwards;
}

.homepg-writeup p{
  position: absolute;
  top: 75%;
  font-size: 1.2rem;
  animation: float 2s ease;
  animation-fill-mode: forwards;
}


@media (max-width: 439px) {
  .homepg-writeup h2 {
    width: 85% !important;
  }
}


/* Project Section */
    .projects-section {
      padding: 40px;
      background: #f8f8f8;
      text-align: center;
    }

    .projects-section h2 {
      font-size: 28px;
      margin-bottom: 20px;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 15px;
    }

    .projects-grid img {
      width: 100%;
      height: 200px; /* ✅ fixed height */
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      transition: transform 0.3s ease;
    }

    .projects-grid img:hover {
      transform: scale(1.05);
    }

    /* Lightbox */
    .lightbox {
      display: none; /* hidden by default */
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(8px); /* ✅ blur background */
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .lightbox-content {
      position: relative;
      max-width: 80%;
      max-height: 80%;
    }

    .lightbox-slide {
      display: none;
    }

    .lightbox-slide img {
      width: 100%;
      max-height: 80vh;
      object-fit: contain;
      border-radius: 8px;
    }

    /* Controls */
    .close {
      position: absolute;
      top: -40px;
      right: 0;
      font-size: 32px;
      color: white;
      cursor: pointer;
    }

    .prev, .next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 40px;
      color: white;
      cursor: pointer;
      user-select: none;
      padding: 10px;
    }

    .prev { left: -50px; }
    .next { right: -50px; }

    @media (max-width: 768px) {
      .prev { left: 10px; }
      .next { right: 10px; }
    }



/* Footer */
.footer {
  background: #22223b;
  color: #fff;
  padding: 48px 0 24px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 0 24px;
}

.footer-about {
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 24px;
}

.footer-about img {
  max-width: 160px;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 1rem;
  color: #e0e0e0;
}

.footer-links {
  flex: 1 1 180px;
  min-width: 160px;
  margin-bottom: 24px;
}

.footer-links h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: #da2c46;
}

.footer-contact {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 24px;
}

.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-contact p {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .industries-cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  .industries {
    padding: 32px 0 16px 0;
  }
  .industries-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 6px;
  }
  .industry-card {
    padding: 20px 10px;
  }
  .footer {
    padding: 32px 0 16px 0;
  }
  .footer-about img {
    max-width: 120px;
  }
}
@media (max-width: 400px) {
  .footer-about img {
    max-width: 100px;
  }
}

.social-links {
  display: flex;
  gap: 15px; /* spacing between icons */
}

.social-links a {
  font-size: 2rem; /* size of icons */
  color: #fff; /* default color (can change) */
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #0077b5; /* LinkedIn blue on hover (you can customize per icon) */
}

