html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

:root {
  --primary-color: #FD0000;
  --secondary-color: #333;
  --dark-gray: #3a3a3a;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #E6E6E6;
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px 60px;
}

.logo-section {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.logo {
  height: 45px;
  left: 10px;
  margin-right: 10px;
 
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 70px;
}

.nav-links a {
  color: #FFFFFF;
  font-weight: 400;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #FD0000;
}

.contact-btn {
  background-color: transparent;
  border: 2px solid #FD0000;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #FD0000;
  color: #FFFFFF !important;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 11;
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease-in-out;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Slide-in (Right side) */
@media screen and (max-width: 1024px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    height: 50%;
    width: 250px;
    background-color: #2c2c2c;
    padding-top: 100px;
    text-align: center;
    transition: right 0.3s ease-in-out;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
    margin: -20px;
  }

  .contact-btn {
    margin-top: 15px;
  }

  .hamburger-menu {
    display: flex;
  }
}

/* Slideshow */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(60%);
}

/* Hero text */
.hero-text {
  position: absolute;
  top: 20%;
  left: 2%;
  color: #ffffff;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

body.loaded .hero-text {
  visibility: visible;
  opacity: 1;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 4em;
  line-height: 1.3;
  margin-bottom: 50px;
}

.hero-text h1 .red {
  color: #FE0000;
}

.hero-text p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 50px;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 10px;
  background-color: #ff0000;
  color: #fff;
  padding: 8px 10px;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #bd0303;
}

.cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background-color: #2c2c2c;
  border-radius: 50%;
  font-size: 30px;
  font-weight: 600;
}

/* Mobile responsiveness */
@media screen and (max-width: 375px) {
  .navbar{
    padding: 15px 10px; 
    padding-right: 20px;
  }
  .logo-section{
    font-size: 0.8rem;
    left: 0;
  }

  .logo{
    height: 35px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1.2rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .cta-circle {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }

  .navbar.scrolled {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 10px;
}
}

                                    /* my edits */
/* -------------------------
   Medium phones: 375px
   ------------------------- */
@media (min-width: 375px) and (max-width: 424px) {

  .hero-text h1 {
    font-size: 3rem; /* reduce from large desktop size */
    line-height: 1.2;  /* adjust spacing */
    margin-top: 35px;
  }

  .navbar{
    padding: 15px 10px; 
    padding-right: 20px;
  }

  .navbar.scrolled {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 10px;
}

  .hero-text p {
    font-size: 1.5rem; /* slightly smaller for better fit */
    line-height: 1.4;
  }
  .cta-button {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .cta-circle {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }
   .project-tabs{
  max-width: 300px;
 }
 /* Add this to your styles.css file */

.info-section {
  position: relative;
  z-index: 2; /* A higher z-index to ensure it is above other sections */
}

/* Also, check the project section for any aggressive positioning */
#project {
  position: relative;
  z-index: 1;
}

/* You might also need to ensure the parent containers are not the issue */
#about {
  position: relative;
  z-index: 2;
}
}

/* -------------------------
   Large phones: 425px
   ------------------------- */
@media (min-width: 425px) and (max-width: 767px) {

  .navbar{
    padding: 15px 10px; 
    padding-right: 20px;
  }

  .navbar.scrolled {
  background-color: #2c2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 10px;
}
  .hero-text h1 {
    font-size: 2.5rem; /* slightly bigger than 375px but smaller than tablet */
    line-height: 1.25;
    margin-top: 35px;
  }

  .hero-text p {
    font-size: 1.9rem;
    line-height: 1.45;
    /* padding-bottom: 80px; */
  }

  .cta-button {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .cta-circle {
    width: 25px;
    height: 25px;
    font-size: 20px;
  }
  
  .main-heading{
    padding-top: 120px;
   
  }
 .project-tabs{
  max-width: 285px;
 }
 /* Add this to your styles.css file */

.info-section {
  position: relative;
  z-index: 2; /* A higher z-index to ensure it is above other sections */
}

/* Also, check the project section for any aggressive positioning */
#project {
  position: relative;
  z-index: 1;
}

/* You might also need to ensure the parent containers are not the issue */
#about {
  position: relative;
  z-index: 2;
}
}
                               /* my edit */
.about-us-container {
  width: 96%;
  max-width: 1200px;
  margin: 10px auto 77.5px 5%;
}

.main-heading {
  color: var(--primary-color);
  font-size: 4em;
  font-weight: 500;
  margin: 0;
}

.sub-heading {
  color: var(--secondary-color);
  font-size: 2.5rem;
  font-weight: 200;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.sub-heading-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 3px;
  background-color: var(--dark-gray);
}

.info-section {
  margin-bottom: 40px;
}

.tab-description {
  display: none;
}

.tab-description.active {
  display: block;
}

.tabs-container {
      position: relative;
      display: flex;
      background-color: var(--dark-gray);
      border-radius: 50px;
      max-width: 480px;
      padding: 5px;
      gap: 10px;
      z-index: 2;
      
    }

    /* Sliding highlight */
    .tab-indicator {
      position: absolute;
      top: 5px;
      bottom: 5px;
      left: 5px;
      width: calc((100% - 10px) / 3); /* 3 tabs */
      background: var(--primary-color);
      border-radius: 50px;
      transition: transform 0.3s ease;
      z-index: 1;
    }

    .tab-btn {
      flex: 1;
      padding: 15px 0;
      background: transparent;
      border-radius: 50px;
      border: 0;
      color: #fff;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      text-align: center;
      position: relative;
      z-index: 2; /* keeps text above indicator */
    }

    .tab-description {
      padding-top: 50px;
      display: none;
    }

    .tab-description.active {
      display: block;
    }


.description {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  max-width: 600px;
}

.stats-section {
  display: flex;
  gap: 20px;
  background-color: var(--secondary-color);
  color: #fff;
  border-top-right-radius: 60px;
  text-align: center;
  max-width: 600px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  margin-top: 50px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 20px 40px;
  padding-bottom: 40px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.stat-symbol {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 5px;
}

.about-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 7%;
  gap: 60px;
  position: relative;
}

.about-us-container {
  flex: 1;
  margin-left: -40px;
}

.about-image-wrapper {
  position: relative;
  width: 40%;
  max-width: 630px;
  margin-top: 27px;
  margin-right: 0;
  margin-bottom: 85px;
}

.about-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  z-index: 2;
}

.background-lines {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 600px;
  z-index: 1;
  margin-top: 0;
}

.about-image img,
.background-lines img {
  width: 90%;
  height: 90%;
  margin-left: 70px;
}

.explore-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 70%;
  bottom: -50px;
  transform: translateX(-50%);
  z-index: 1;
}
.button {
  cursor: pointer;
  border: none;
  background: #ff0000;
  color: #fff;
  width: 100px;    /* Matches roughly original size */
  height: 100px;   /* Matches roughly original size */
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-content: center;
  transition: background 300ms, transform 200ms;
  font-weight: 600;
}

.button__text {
  position: absolute;
  inset: 0;
  animation: text-rotation 30s linear infinite;
}

.button__text > span {
  position: absolute;
  transform: rotate(calc(15deg * var(--index)));
  inset: -10px;
}

.button__circle {
  position: relative;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: #fff;
  color: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  
}

.button__icon--copy {
  position: absolute;
  transform: translate(-150%, 150%);
}

.button:hover {
  background: #000;
  transform: scale(1.05);
}

.button:hover .button__icon {
  color: #000;
}

.button:hover .button__icon:first-child {
  transition: transform 0.3s ease-in-out;
  transform: translate(150%, -150%);
}

.button:hover .button__icon--copy {
  transition: transform 0.3s ease-in-out 0.1s;
  transform: translate(0);
}

/* Animation keyframes */
@keyframes text-rotation {
  to {
    rotate: 360deg;
  }
}
@media (max-width: 992px) {
  .button {
    width: 90px;
    height: 90px;
  }
 
}

@media (min-width: 376px) and (max-width: 767px) {
  .button {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 420px) and (max-width: 450px) {
  .button {
    width: 90px;
    height: 90px;
  }
  .button__text-static {
    font-size: 0.8rem;
    padding: 0 8px;
  }
}
@media (max-width: 400px) {
  .button {
    width: 90px;
    height: 90px;
  }
  .button__text-static {
    font-size: 0.8rem;
    padding: 0 8px;
  }

}
@media (max-width: 410px) {
  
  .button {
    width: 90px;
    height: 90px;
  }
  .button__text-static {
    font-size: 0.8rem;
    padding: 0 8px;
  }
}
@media (min-width: 412px) and (max-width: 420px) {
    .button {
    width: 90px;
    height: 90px;
  }
  .button__text-static {
    font-size: 0.8rem;
    padding: 0 8px;
  }
}
@media (min-width: 450px) and (max-width: 776px) {
      .button {
    width: 90px;
    height: 90px;
  }
  .button__text-static {
    font-size: 0.8rem;
    padding: 0 8px;
  }
}
.explore-btn-container a .explore-btn-img {
  transition: transform 0.3s ease;
}

.explore-btn-container a .explore-btn-img:hover {
  transform: scale(1.1);
}

.explore-btn-container img{
  width: 130px;
  height: 130px;
}

/* --- Media Queries for Responsiveness --- */



/* Medium screens (less than 992px) */
@media (max-width: 992px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    gap: 30px;
  }

  .about-us-container {
    margin-left: 0;
    width: 100%;
    margin-top: -80% ;
  }

  .about-image-wrapper {
    width: 80%;
    margin-top: 30px;
    margin-bottom: 20px;
    order: -1; /* This is the key change to make the image appear first */
  }

  .about-image img,
  .background-lines img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  
  .about-image ,
  .background-lines  {
    margin-bottom: 2px;
  }

  .background-lines img {
    width: 100%;
    height: 320px;
    margin-left: 0;
  }


.explore-btn-container {
    left: 100%;
    bottom: 120px;
    position: absolute;
    z-index: 2;
  }

  .explore-btn-container img {
    width: 70px;
    height: 70px;
  }

}

/* Small screens (less than 768px) */
@media (max-width: 768px) {
  .main-heading {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 1rem;
  }

  .about-us-container {
    margin-left: 0;
    width: 100%;
    margin-top: -90% ;
  }

  .sub-heading-line {
    width: 100%;
  }

  .tabs-container {
    flex-direction: row;
  }

  .tab-btn {
    padding: 10px 10px;
    margin: 5px 5px;
    font-size: 0.9rem;
    z-index: 2;
  }

  .tab-description {
    font-size: 0.9rem;
  }

  .desktop-break {
  display: none;
}

  .stats-section {
    position: static;
    max-width: 100%;
    margin-top: 30px;
    flex-direction: column;
    border-radius: 20%;
    padding: 20px 0;
  }

  .stat-item {
    padding: 10px 0;
  }

  .explore-btn-container {
    left: 100%;
    bottom: 143px;
    position: absolute;
    z-index: 2;
  }
}

@media (max-width: 350px) {
  .background-lines img {
    width: 100%;
    height: 285px;
    margin-left: 0;
  }
}

@media (min-width: 376px) and (max-width: 767px){
  .main-heading {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 1rem;
  }

  .about-us-container {
    margin-left: 0;
    width: 100%;
    margin-top: -70% ;
  }

  .sub-heading-line {
    width: 100%;
  }

  .tabs-container {
    flex-direction: row;
  }

  .tab-btn {
    padding: 10px 10px;
    margin: 5px 5px;
    font-size: 0.9rem;
    z-index: 2;
  }

  .tab-description {
    font-size: 0.9rem;
  }

  .desktop-break {
  display: none;
}

.background-lines img {
    width: 100%;
    height: 350px;
    margin-left: 0;
  }
  .stats-section {
    position: static;
    max-width: 100%;
    margin-top: 30px;
    flex-direction: column;
    border-radius: 20%;
    padding: 20px 0;
  }

  .stat-item {
    padding: 10px 0;
  }

  .explore-btn-container {
    left: 100%;
    bottom: 120px;
    position: absolute;
    z-index: 2;
  }
}

/*
==========================================
ORIGINAL CSS (FOR LAPTOP/DESKTOP)
==========================================
*/
.background-wrapper {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50.55%, -50%);
width: 100vw;
height: 100vh;
z-index: -1;
}

.background-ribbon {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.8;
}

.services-container {
width: 100%;
max-width: 1200px;
margin: -15px auto;
padding: 4rem 20px;
text-align: center;
position: relative;
z-index: 2;
}

#services h1 {
font-size: 3rem;
color: #ff0800;
margin-bottom: 2rem;
font-weight: 600;
}

.grid-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}

@media (min-width: 768px) {
.grid-container {
grid-template-columns: repeat(2, 1fr);
}
}

/* Flip Card Base */
.flip-card {
perspective: 1000px;
width: 100%;
height: 320px;
position: relative;
}

.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.8s ease;
}

.flip-card.flipped .flip-card-inner {
transform: rotateY(180deg);
}

.flip-card-front {
position: absolute;
top: 0;
left: 0;
min-height: 100%;
background-color: rgba(166, 166, 166, 0.13);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 4px solid #857A7A;
backface-visibility: hidden;
border-radius: 12px;
padding: 2rem;
box-sizing: border-box;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
text-align: left;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: rgba(166, 166, 166, 0.13);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 4px solid #857A7A;
transform: rotateY(180deg);
text-align: left;
backface-visibility: hidden;
border-radius: 12px;
padding-top: 2px;
box-sizing: border-box;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Service Cards Style */
.service-card,
.service-card-bottom {
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
}

.service-card:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card-bottom {
transform: translateY(90px);
}


/* Card Content */
.card-header {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}

.service-icon {
font-size: 0;
width: 35px;
height: 35px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin-right: 1rem;
}

.service-icon img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

.card-title {
font-size: 1.5rem;
font-weight: 600;
color: #000;
margin: 0;
}

.card-body {
flex-grow: 1;
margin-left: 50px;
margin-top: -20px;
}

.card-body p {
font-size: 1rem;
color: #000;
line-height: 1.6;
}

/* Buttons */
.learn-more,
.learn-more-bottom {
margin-top: 1.5rem;
align-self: flex-start;
margin-left: 40px;
}

.flip-back-btn {
margin-top: 1rem;
margin-bottom: 1rem;
align-self: flex-start;
margin-left: 50px;
background-color: #3E3E3E;
color: white;
padding: 6px 15px;
border-radius: 15px;
text-decoration: none;
font-weight: 500;
transition: background-color 0.3s ease, transform 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
padding-right: 15px;
font-size: 14px;
border: none;
cursor: pointer;
}

.learn-more a,
.learn-more-bottom a {
background-color: #3E3E3E;
color: white;
padding: 6px 15px;
border-radius: 15px;
text-decoration: none;
font-weight: 500;
transition: background-color 0.3s ease, transform 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: space-between;
padding-right: 15px;
font-size: 14px;
}

.arrow-icon {
font-size: 1.4rem;
margin-left: 10px;
transition: transform 0.3s ease;
}

.learn-more a:hover .arrow-icon,
.learn-more-bottom a:hover .arrow-icon {
transform: translateX(5px);
}

.flip-back-btn .arrow-icon {
font-size: 1.4rem;
margin-right: 10px;
margin-left: 0;
transform: rotate(180deg);
transition: transform 0.3s ease;
}

.flip-back-btn:hover .arrow-icon {
transform: rotate(180deg) translateX(-5px);
}

/*
==========================================
UPDATED MEDIA QUERIES FOR MOBILE AND TABLETS
==========================================
*/
@media (max-width: 780px) {
.services-container {
width: 90%;
padding: 2rem 10px;
}

#services h1 {
font-size: 2rem;
margin-bottom: 1.5rem;
}

.grid-container {
gap: 5rem;
}

.flip-card {
height: auto;
min-height: 280px;
}

.flip-card-front {
padding: 1rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
text-align: center;
position: relative;
}

.flip-card-back {
padding: 0;
font-size: 0.8rem;

}

.service-card-bottom {
transform: translateY(0px);
}

.service-card-bottom:hover {
transform: translateY(0px);
}

.card-header {
margin-bottom: 1rem;
display: flex;
flex-direction: column;
align-items: center;
}

.service-icon {
width: 30px;
height: 30px;
margin-right: 0;
margin-bottom: 0.5rem;
}

.card-title {
font-size: 1.2rem;
line-height: 1.2;
}

.card-body {
margin-left: 0;
margin-top: 0;
text-align: center;
}

.card-body p {
font-size: 0.9rem;
line-height: 1.5;
}

.learn-more,
.learn-more-bottom {
margin-top: -10rem;
margin-left: 0;
}

.learn-more a,
.learn-more-bottom a {
font-size: 12px;
padding: 5px 12px;
}

.flip-back-btn {
margin-top: -70rem;
margin-bottom: 0.5rem;
margin-left: 5%;
font-size: 12px;
padding: 5px 12px;
}

.arrow-icon {
font-size: 1.2rem;
margin-left: 8px;
}

.flip-back-btn .arrow-icon {
font-size: 1.2rem;
margin-right: 8px;
}

.flip-card-inner{
margin-bottom: 200px;
}
}

.project-section{
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.projects-container {
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

.main-title {
    font-size: 3rem;
    font-weight: 600;
    color: #ff0800;
    margin-bottom: 50px;
}

.project-tabs {
  position: relative;
  display: flex;
  background-color: #383838;
  border-radius: 100px;
  padding: 8px;
  width: fit-content;
  margin: 0 auto 50px auto; 
  margin-bottom: 150px;
}

.tab-indicator-project {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  background: #ff0400;
  border-radius: 50px;
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 1;
  will-change: transform, width;
  transform: translateX(0);
  width: 0;
}

.tab-button {
  position: relative;
  z-index: 2; /* Ensure above indicator */
  border: none;
  background: transparent;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 15px 40px;
  margin-left: 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-button.active {
  background-color: transparent; /* Remove, handled by indicator now */
}


.project-carousel-wrapper {
  position: relative;
  height: 700px; 
  width: 100%;
}

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.card-container {
    position: absolute;
    width: 400px;
    height: 550px;
    z-index: 1;
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 4px solid #857A7A;
    border-radius: 30px;
    transition: transform 0.5s ease, filter 0.5s ease;
    margin-top: 500px;
    cursor: pointer;
    
}

.card-container:not(.active-card) {
    transform: scale(0.8) rotateY(15deg);
    filter: blur(3px); 
    -webkit-filter: blur(3px);
}

.card-container.active-card {
    transform: scale(1) rotateY(0deg);
    z-index: 10;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;   
    display: flex;
    flex-direction: column;
    
    
}

.card-image-wrapper {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    margin-top: 0;
}

.card-description {
    font-size: 1.1rem;
    color: #030303;
    margin-bottom: -10px;
}
#project{
  position: relative;   
  overflow: hidden;
  margin-top: 100px;
}

 .ball {
    position: absolute;
    border-radius: 50%;
    z-index: 0; 
    opacity: 0.8;
    margin-top: 150px;
    }

 .left-ball {
    width: 500px;
    height: 500px;
    top: 30%;
    left: 0;
    transform: translate(-40%, 25%);
    background: #918f8f;
}

 .right-ball {
    width: 400px;
    height: 400px;
    top: 0;
    right: 0;
    transform: translate(15%, 15%);
    background: #e53935;
}

@media (max-width: 1024px) {
    .projects-grid {
        flex-direction: column;
    }
    .card-container {
        transform: none !important;
        filter: none !important;
        margin-bottom: 20px;
    }
    .active-card {
        transform: scale(1) !important;
    }
}

/* Existing styles */

/* ------------------------------------------- */
/* --- Mobile-specific styles (max-width: 768px) --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on the entire page */
  body, html {
    overflow-x: hidden;
  }
  
  /* Resetting core project section layout */
  .project-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    overflow-x: hidden;
    padding: 10px;
  }

  .main-title{
    font-size: 2rem;
  }
  
  .projects-container {
    padding: 0;
    width: 100%;
    margin: 0 auto; 
  }

  /* Adjust project tabs for mobile to keep them horizontal */
  .project-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevent tabs from wrapping to the next line */
    width: 100%;
    margin: 0 auto 30px auto; 
    padding: 5px;
    padding-left: 0;
    background-color: #383838;
    border-radius: 50px;
    gap: 5px; 
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
  }
  
  .tab-button {
    flex-shrink: 0; /* Prevent buttons from shrinking to fit */
    flex-basis: auto; /* Let the content determine the width */
    border: none;
    background: transparent;
    color: white;
    font-size: 0.8rem; /* Reduced font size to make them fit better */
    font-weight: 600;
    padding: 10px 10px; /* Reduced padding */
    margin: 0;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .tab-button.active {
    background-color: #ff0400; 
  }

  /* Resetting carousel-specific classes */
  .project-carousel-wrapper {
    position: static;
    height: auto;
    width: 100%;
  }
  

  .projects-grid {
    display: flex;
    flex-direction: column; 
    gap: 30px; 
    margin-top: 20px;
    padding: 0 15px; 
    width: 90%;
    align-items: center;
  }

  /* Resetting the card styles that cause the overlap */
  .card-container {
    position: static !important; 
    width: 100%;
    max-width: 450px;
    height: auto; 
    margin: 0 auto 30px auto !important;
    
    /* Disable all carousel-specific visual effects */
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important; 
    border: 2px solid #857A7A; 
  }

  /* Ensure active/non-active cards have the same style on mobile */
  .card-container.active-card, 
  .card-container:not(.active-card) {
    transform: none !important;
    filter: none !important;
    z-index: auto !important;
  }

  /* Adjusting card content for better readability */
  .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .card-image-wrapper {
    width: 100%;
    height: 200px;
    padding: 10px;
  }
  
  .card-image {
    width: 100%;
    height: 100%;
  }

  .card-content {
    padding: 15px;
    text-align: left;
  }
  
  .card-title {
    font-size: 1.2rem;
    font-weight: 700;
  }

  .card-description {
    font-size: 1rem;
    margin-bottom: 0;
  }

  /* Hide decorative elements */
  .ball {
    display: none;
  }
}

.clientele {
  padding: 40px 0; 
  display: flex;
  flex-direction: column; 
  align-items: center;
  margin-bottom: 150px;
}

.clientele-heading {
  color: red;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 100px; 
  letter-spacing: 2px;
}

.carousel-container {
  position: relative;
  width: 80%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  overflow: hidden;
  width: 100%;
}

.logo-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 0.6s ease;
}

.logo-item {
  flex: 0 0 calc(100% / 5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.logo-item img {
  max-width: 55%;
  height: 55%;
  display: block;
}

.logo-item.active img {
  transform: scale(1.2);
  opacity: 1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  max-width: 80%;
  height: 80%;
  cursor: pointer;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 9;
}

.nav-button:hover {
  background: #ff0000;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.prev-button {
  left: -60px;
}

.next-button {
  right: -60px;
}

@media (max-width: 768px) {
    /* Adjustments for the main container */
    .clientele {
        padding: 20px 0;
        margin-bottom: 50px;
    }

    /* Smaller heading for mobile */
    .clientele-heading {
        font-size: 2rem;
        margin-bottom: 50px;
    }

    /* Make the carousel container full width */
    .carousel-container {
        width: 100%;
        padding: 0 15px;
    }

    /* Show three logos at a time instead of five */
    .logo-item {
        flex: 0 0 calc(100% / 3);
    }

    /* Adjust image size for smaller view */
    .logo-item img {
        max-width: 60%; /* Reduced from 70% */
        height: auto;
    }

    /* Adjust image size when active */
    .logo-item.active img {
        transform: scale(1.1);
        max-width: 80%; /* Reduced from 90% */
        height: auto;
    }

    /* Remove carousel navigation buttons as they don't fit well on mobile */
    .nav-button {
        display: none;
    }
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 100px;
}

.contact-heading {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fd0000;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.contact-card {
    display: flex;
    background: #e0e0e0;
    border-radius: 28px;
    max-width: 950px;
    margin: 40px;
    width: 100%;
    min-height: 520px;
    box-shadow:
        inset 10px 10px 20px #bebebe,
        inset -10px -10px 20px #ffffff;
}

.contact-left {
    width: 54%;
    min-width: 330px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 34px 28px 28px 28px;
    box-sizing: border-box;
}

.map-link {
    width: 100%;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s;
}

.map-link:focus,
.map-link:hover {
    box-shadow: 0 2px 26px rgba(200, 76, 81, 0.11);
}

.map-embed {
    width: 100%;
    aspect-ratio: 1.78;
    border-radius: 18px;
    border: none;
    min-height: 210px;
    min-width: 220px;
    display: block;
}

.contact-details {
    width: 100%;
    color: #1a1a1a;
    font-size: 15px;
    margin-top: 5px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 17px;
    gap: 13px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.icon {
    background: #c8c3c3;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.detail-label {
    font-weight: 700;
    margin-bottom: 2px;
    color: #222;
    font-size: 15px;
}

.detail-info {
    margin-left: 0;
    color: #4c4c4c;
    font-size: 15px;
    font-weight: 400;
}

.contact-right {
    flex: 1;
    padding: 40px 28px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: transparent;
}

.form-title-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    margin-top: 5px;
}

.form-title {
    font-family: 'Jura', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 200;
    color: #181818;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    padding-right: 60px;
}

.form-icon {
    background: #d5d5d5;
    border-radius: 16px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -5px;
    flex-shrink: 0;
}

.form-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

form.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 15px;
}

.form-label {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #262626;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1.04rem;
    border: none;
    outline: none;
    border-radius: 8px;
    background: #c8c3c3;
    color: #353535;
    padding: 13px 16px;
    margin-bottom: 6px;
    transition: background 0.18s;
    resize: none;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    background: #e6e3e3;
}

.form-textarea {
    min-height: 90px;
    max-height: 190px;
}

.submit-btn {
    background: #FD0000;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    font-size: 1.13rem;
    max-width: 180px;
    padding: 14px 2px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.18s;
    box-shadow: 0 1px 8px rgba(200, 76, 81, 0.04);
    margin-left: 100px;
}

.submit-btn:hover {
    background: #a62e38;
}

/* All your existing CSS code remains the same */

@media (max-width: 850px) {
    .contact-card {
        flex-direction: column;
        max-width: 490px;
        min-height: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-heading {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .form-title {
        font-size: 1.5rem;
        /* Removing padding-right as it's causing the overflow */
        padding-right: 0;
        margin-bottom: 5px;
        /* Let the title take full width for better alignment */
        width: 100%;
        margin-left: 25%;
    }
    .contact-left,
    .contact-right {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 30px 18px 26px 18px;
    }
    .contact-left {
        padding-bottom: 0;
    }
    .contact-right {
        padding-top: 22px;
    }
    .map-embed {
        min-height: 180px;
        aspect-ratio: 1.78;
    }
    .submit-btn {
        margin-left: 24%;
        width: 40%;
        max-width: none;
        text-align: center;
    }

    .form-icon {
        width: 2px;
        height: 36px;
        margin-top: 0;
        display: none; /* Hiding the icon is the simplest way to prevent overflow with long text */
    }

    .form-label,
    .form-input,
    .form-textarea,
    .detail-info,
    .detail-label {
        font-size: 0.9rem;
        width: 80%;
        margin-left: 5%;
    }
}

@media (max-width: 320px) {
    .contact-wrapper {
        margin-bottom: 50px;
    }
    .contact-card {
        margin: 8px;
        border-radius: 20px;
    }
    .contact-heading {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .contact-left,
    .contact-right {
        padding: 15px 6vw;
    }

    /* Updated section to fix the overflow */
    .form-title-row {
        /* This change handles wrapping and alignment */
        flex-wrap: wrap; 
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
    
    .form-title {
        font-size: 1.5rem;
        /* Removing padding-right as it's causing the overflow */
        padding-right: 0;
        margin-bottom: 5px;
        /* Let the title take full width for better alignment */
        width: 100%;
        margin-left: 20%;
    }

    .form-icon {
        width: 2px;
        height: 36px;
        margin-top: 0;
        display: none; /* Hiding the icon is the simplest way to prevent overflow with long text */
    }

    .form-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .form-label,
    .form-input,
    .form-textarea,
    .detail-info,
    .detail-label {
        font-size: 0.9rem;
        width: 80%;
        margin-left: 5%;
    }
    .map-embed {
        aspect-ratio: 1.25;
        min-height: 120px;
    }
}

    /* Base Footer Styles (Original) */
.footer {
    background-color: #bdbdbd; 
    padding: 20px 60px;
    border-top: 1px solid #9c9b9b;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Ensures columns take up space on larger screens */
}

/* Logo styling */
.footer-logo {
    font-weight: bold;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-logo span {
    color: #000;
}

.footer-logo-icon {
    color: #ff0000;
    margin-left: 4px;
}

.footer-logo-img {
    height: 40px; 
    width: auto;
}

.footer-description {
    margin: 10px 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.contact-info i {
    color: #ff0000;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 5px;
    font-size: 13px;
    color: #575757;
    margin-top: 5px;
}

.footer-bottom-designer {
  text-align: right;
  padding-top: 5px;
  font-size: 13px;
  margin-top: 5px;
}

/* -------------------------------------------------------------------------- */

/* Responsive Styles */

/* 1. Tablet View (e.g., screens up to 768px wide) */
@media (max-width: 768px) {
    .footer {
        /* Reduce horizontal padding for more screen space */
        padding: 20px 30px; 
    }

    .footer-column {
        /* On tablets, allow columns to take up roughly half the container width, */
        /* making them flow onto two or more lines if there are many columns. */
        /* The original 'min-width' of 220px is generally sufficient here. */
        /* To ensure two columns per row when possible, we can adjust flex: */
        flex: 1 1 calc(50% - 10px); /* 50% minus half the gap */
        min-width: 250px; /* Set a slightly larger min-width for tablet clarity */
    }

    .footer-bottom-designer {
    text-align: center;
}

}

/* -------------------------------------------------------------------------- */

/* 2. Mobile View (e.g., screens up to 480px wide) */
@media (max-width: 480px) {
    .footer {
        /* Drastically reduce horizontal padding for small screens */
        padding: 20px 15px; 
    }

    .footer-container {
        /* Remove space-between on the smallest screens and center content */
        justify-content: center; 
    }

    .footer-column {
        /* Make each column take up the full width (100%) so they stack vertically */
        flex: 1 1 100%; 
        min-width: unset; /* Remove the min-width constraint */
        text-align: center; /* Center content for better mobile appearance */
    }

    .footer-column:not(:last-child) {
        /* Add some extra space between stacked columns on mobile */
        margin-bottom: 20px;
    }

    /* Adjust specific elements for better centering on mobile */
    .footer-logo {
        align-items: center; /* Center logo elements */
    }

    .footer-links {
        /* Reset list-style to look good when centered */
        text-align: center; 
    }

    .contact-info {
        text-align: center; /* Center contact information */
    }

    .footer-bottom-designer {
    text-align: center;
}
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(100px); /* Increased from 50px */
    transition: opacity 2s ease-out, transform 1s ease-out; /* Increased transition duration */
}

/* When the element is in view, make it visible */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for service cards */
.grid-container .animate-on-scroll {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1.2s ease-out, transform 1s ease-out;
}

.grid-container .animate-on-scroll.is-visible:nth-child(1) {  
    transition-delay: 0.1s;
    transform: translateY(90px);  
}
.grid-container .animate-on-scroll.is-visible:nth-child(2) { 
    transition-delay: 0.3s; 
}
.grid-container .animate-on-scroll.is-visible:nth-child(3) {  
    transition-delay: 0.5s;  
    transform: translateY(90px); 
}
.grid-container .animate-on-scroll.is-visible:nth-child(4) { 
    transition-delay: 0.7s; 
}
.grid-container .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
  .grid-container .animate-on-scroll.is-visible:nth-child(1) {  
    transform: translateY(0px);  
 }

  .grid-container .animate-on-scroll.is-visible:nth-child(3) {   
    transform: translateY(0px); 
 }
}