/* =========================
   Global Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0f172a; /* dark navy */
  color: #f1f5f9;      /* light text */
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

section {
  padding: 80px 8%;
}

/* =========================
   Header / Navbar
========================= */
.header {
  width: 100%;
  padding: 20px 8%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: #38bdf8; /* cyan accent */
}

.navbar {
  display: flex;
  gap: 25px;
}

.navbar a {
  color: #f1f5f9;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #38bdf8;
}

#menu-icon {
  font-size: 28px;
  color: #f1f5f9;
  display: none;
  cursor: pointer;
}

/* =========================
   Home Section
========================= */
.home {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #1e293b;
  padding-top: 120px;
}

.home-content {
  flex: 1 1 400px;
}

.home-content h3 {
  font-size: 22px;
  font-weight: 500;
  color: #e2e8f0;
}

.home-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 10px 0;
}

.home-content span {
  color: #38bdf8;
}

.home-content p {
  margin: 20px 0;
  max-width: 500px;
}

.social-media {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.social-media a {
  width: 40px;
  height: 40px;
  border: 1px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  transition: 0.3s;
}

.social-media a:hover {
  background: #38bdf8;
  color: #0f172a;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: #0ea5e9;
}

.home-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.home-img img {
  border-radius: 50%;
  max-width: 320px;
  border: 4px solid #38bdf8;
}

/* =========================
   About Section
========================= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1 1 400px;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.about-content span {
  color: #38bdf8;
}
/* 
.about-img {
  flex: 1 1 300px;
  text-align: center;
} */

/* .about-img img {
  max-width: 350px;
  border-radius: 12px;
  border: 3px solid #38bdf8;
} */
.about-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 3px solid #38bdf8;
  object-fit: cover;      /* makes sure the image scales nicely */
  box-shadow: 0 8px 16px rgba(0,0,0,0.4); /* soft shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.05); /* zoom effect on hover */
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

/* =========================
   Services Section
========================= */
.services {
  text-align: center;
}

.services h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.services span {
  color: #38bdf8;
}

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

.services-box {
  flex: 1 1 280px;
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.services-box:hover {
  transform: translateY(-10px);
  border: 1px solid #38bdf8;
}

.services-box i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #38bdf8;
}

.services-box h3 {
  margin-bottom: 15px;
}

/* =========================
   Testimonial Section
========================= */
.testimonial {
  text-align: center;
}

.testimonial .heading {
  font-size: 32px;
  margin-bottom: 40px;
}

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

.testimonial-item {
  flex: 1 1 280px;
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.testimonial-item img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  margin-bottom: 15px;
  object-fit: cover;
}

.rating i {
  color: #facc15; /* yellow stars */
}


/* =========================
   portfolio section
========================= */
/* =========================
   Portfolio Section
========================= */
.portfolio {
  text-align: center;
}

.portfolio h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.portfolio span {
  color: #38bdf8;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.portfolio-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9); /* dark overlay */
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: 0.4s ease;
}

.portfolio-box:hover .portfolio-layer {
  opacity: 1;
}

.portfolio-layer h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #38bdf8;
}

.portfolio-layer p {
  font-size: 14px;
  margin-bottom: 15px;
}

.portfolio-layer a {
  display: inline-block;
  padding: 8px 18px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.portfolio-layer a:hover {
  background: #0ea5e9;
}



/* =========================
   Contact Section
========================= */
.contact {
  text-align: center;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.input-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.input-box input,
textarea {
  flex: 1 1 45%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #1e293b;
  color: #f1f5f9;
}

textarea {
  flex: 1 1 100%;
  min-height: 150px;
  resize: none;
}

.contact .btn {
  margin-top: 10px;
}

/* =========================
   Footer
========================= */
.footer {
  text-align: center;
  padding: 20px 8%;
  background: #0f172a;
}

.footer .social {
  margin-bottom: 15px;
}

.footer .social a {
  margin: 0 10px;
  font-size: 18px;
  color: #38bdf8;
  transition: 0.3s;
}

.footer .social a:hover {
  color: #0ea5e9;
}

.footer p {
  font-size: 14px;
  color: #94a3b8;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 991px) {
  .header {
    padding: 15px 5%;
  }

  section {
    padding: 60px 5%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 220px;
    background: #1e293b;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: 0.3s;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    margin: 12px 0;
  }

  .home {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 36px;
  }

  .home-content h3 {
    font-size: 18px;
  }

  .services-box,
  .testimonial-item {
    flex: 1 1 100%;
  }
}

