/* ensuring all content respects screen boundaries*/

html, body {
  width: 100%;
  overflow-x: hidden;
}
* {
  box-sizing: border-box;
  max-width: 100%;
}

/*---------------------*/

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  color: #2a2b3f;
}

header {
  background: linear-gradient(to right, #4b30bd, #885dd1);
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 35px 30px;
  background: linear-gradient(to right, #4b30bd, #885dd1);
  color: white;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
}

.hero img {
  max-width: 40%;
  border-radius: 12px;
}

.section {
  padding: 60px 40px;
  text-align: center;
}

.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  transition: 1s ease;
  cursor: pointer;
}

.features:hover > :not(:hover) {
  opacity: 0.3;
}

.card:hover{
  transform: scale(1.05);
  transition: 0.5s;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  width: 400px;
}

.card img {
  width: 80px;
  display: block;
  margin: 0 auto 10px;
}

.card h3 {
  margin-top: 10px;
  color: #4b30bd;
}

#about {
  background-color: #f9f9f9;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.about-text {
  flex: 1 1 500px;
  text-align: left;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.about-text ul li {
  margin-bottom: 10px;
}

.btn-about {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: linear-gradient(to right, #7137d4, #953eed);
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-about:hover {
  background: linear-gradient(to right, #7137d4, #953eed);
  transform:scale(1.1);
  transition: 0.3s;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
}

.copyright {
 text-align: right;
 margin-left: 20px;

}

footer {
background: #000000;
color: white;
padding: 0px 0px;
}

.footer-container {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

.footer-links {
margin-right: 20px; /* 👈 Pushes links container closer to right */
}

.footer-links a {
color: #fff;
text-decoration: none;
margin-left: 20px; /* reduced from 30px for tighter spacing */
font-size: 14px;
}

.footer-links a:hover {
text-decoration: overline;
}

@media (max-width: 600px) {
.footer-container {
flex-direction: column;
text-align: center;
gap: 10px;
}

.footer-links a {
margin: 0 10px;
}
}


/* 🔧 Responsive Enhancement - Global */

* {
  box-sizing: border-box;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* 🔧 Hero Section */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero img {
    max-width: 90%;
    margin-top: 20px;
  }
}

/* 🔧 Services Cards */
@media (max-width: 992px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 400px;
  }

  .features:hover > :not(:hover) {
    opacity: 1 !important;
  }

  .card:hover {
    transform: none !important;
  }
}

/* 🔧 About Section */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .about-text, .about-image {
    width: 100%;
  }

  .about-text ul {
    padding-left: 0;
  }

  .about-text ul li {
    text-align: left;
    margin-left: 10px;
  }
}

/* 🔧 Header & Navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  nav a {
    display: inline-block;
    margin: 10px;
  }
}

/* 🔧 Quote Section Image + Text */
@media (max-width: 768px) {
  section[data-aos="fade-right"] {
    flex-direction: column !important;
    padding: 20px;
  }

  section[data-aos="fade-right"] img {
    width: 100%;
    height: auto;
  }

  section[data-aos="fade-right"] div {
    width: 100%;
    text-align: center;
  }
}

/* 🔧 Footer */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    margin: 0;
  }

  .footer-links a {
    margin: 5px 10px;
    display: inline-block;
  }
}
