* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #101010;
  color: #0a0c7a;
}

/* Navbar */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.name{
  font-size: 1.5em;
  font-weight: 700;
  color: #0a0c7a;
}
.logo img{
  padding: 10%;
  height:55px;
}
.logo{
  cursor: pointer;
}

#abt{
  display: flex;
  flex-direction: row;
}
.abt-img{
  flex: 1;
  height: 300px;
  margin-right: 20px;
}
.abt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.abt-txt{
  background-color: #d79ed9;
  flex: 2;
  font-size: 1.1em;
  line-height: 1.6;
  border-radius: 0px 20px 0px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}
.logo {
  font-size: 1.5em;
  font-weight: 700;
  color: #0a0c7a;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li:last-child {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #0a0c7a;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #0a0c7a;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #0a0c7a;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  background: linear-gradient(135deg, #7941ab, #FFB38A);
  color: #0a0c7a;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 25px;
}

.hero button {
  background: white;
  color: #0a0c7a;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.hero button:hover {
  background: #0a0c7a;
  color: white;
}

/* Section Styles */
section {
  padding: 100px 10%;
  text-align: center;
}

section h2 {
  font-size: 2.5em;
  color: #0a0c7a;
  margin-bottom: 20px;
}

section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 20px auto 0;
}

form input, form textarea {
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  width: 100%;
}

form button {
  background: #7941ab;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #5a2d8a;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  margin-top: 40px;
}

.service-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
  position: relative;
  opacity: 0;
  transform: translateX(0);
}

.service-item.hidden {
  display: none;
}

.service-item:nth-child(odd).animate-in {
  animation: fadeInLeft 1.2s ease-out forwards;
}

.service-item:nth-child(even).animate-in {
  animation: fadeInRight 1.2s ease-out forwards;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes singleFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-singleFadeIn {
  animation: singleFadeIn 1.2s ease-out forwards;
}

.service-item:hover {
  transform: translateY(-5px);
  background-color: #c37fd7;
  h3{
    color: white;
  }
}

.service-details {
  display: none;
  margin-top: 10px;
  font-size: 0.9em;
  color: #0a0c7a;
  list-style-type: circle;
}

.service-details ul {
  margin: 0;
  padding-left: 20px;
}

.service-details li {
  margin-bottom: 5px;
}

.service-item:hover .service-details {
  display: block;
}

.service-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.service-item h3 {
  color: #0a0c7a;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.9em;
  line-height: 1.5;
}

/* Projects Container */
.projects-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.project-item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
  height: 325px;
  width: 200px;
  opacity: 0;
  transform: translateY(0);
}

.project-item:hover {
  transform: translateY(-5px);
}

.project-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.project-item h3 {
  color: #0a0c7a;
}

.project-item.animate-in {
  animation: singleFadeIn 1.2s ease-out forwards;
}

/* Backgrounds */
#about { background: #f8f9fa; }
#services { background: #eef7ff; }
#projects { background: #f8f9fa; }
#reviews { background: #eef7ff; }
#contact { background: #f8f9fa; }

.footer {
  background-color: #111;
  color: #eee;
  padding: 50px 0;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-section h2.logo {
  color: #75479C;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.footer-section h3 {
  color: #75479C;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-section p {
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #eee;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #75479C;
}

.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  cursor: pointer;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}



/* Responsive */
@media (max-width: 768px) {
  header {
    position: relative;
    padding: 10px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero {
    height: 80vh;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1.1em;
  }

  section {
    padding: 60px 5%;
  }

  section h2 {
    font-size: 2em;
  }

  section * {
    text-align: center;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 15px;
  }

  .projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .project-item {
    height: 160px;
    width: 180px;
    padding: 10px;
  }

  .project-item img {
    width: 140px;
    height: 140px;
  }

  #abt {
    flex-direction: column;
  }

  .abt-img {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .abt-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 300px;
    max-height: 200px;
  }

  .abt-txt {
    margin-top: 20px;
  }

  
}

@media (max-width: 480px) {
  header {
    padding: 10px 5px;
  }

  .name {
    font-size: 1.2em;
  }

  .logo img {
    height: 30px;
  }

  nav ul {
    gap: 10px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  section {
    padding: 40px 5%;
  }

  section h2 {
    font-size: 1.8em;
  }

  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 10px;
  }

  .projects-container {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    gap: 10px;
  }

  .service-item, .project-item {
    padding: 10px;
  }

  .project-item {
    height: 220px;
    width: 220px;;
  }

  .service-item img {
    height: 150px;
    }
  .project-item img{
    width:180px;
  }

  form {
    max-width: 100%;
    padding: 0 10px;
  }

  footer {
    padding: 15px;
    font-size: 0.8em;
  }

}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.close {
  color: white;
  background-color: red;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
  border: 1px solid red;
  padding: 2px 6px;
  border-radius: 3px;
}

.close:hover,
.close:focus {
  background-color: darkred;
  text-decoration: none;
}

#modalImage {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

#modalHeading {
  color: #0a0c7a;
  margin-bottom: 10px;
}

#modalText {
  font-size: 1em;
  line-height: 1.6;
}





/* WhatsApp Fixed Icon */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-fixed a {
  display: block;
  width: 50px;
  height: 50px;
  background: #25d366;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.whatsapp-fixed a:hover {
  transform: scale(1.1);
}

.whatsapp-fixed img {
  width: 25px;
  height: 25px;
  margin-top: 12.5px;
}
