/* =========================================
   MOBILE-FIRST STYLE — PROJECTS PAGE
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-bottom: 4px solid #00a651;
  border-bottom-right-radius: 50px;
  background-color: white;
}

.logo-container {
  display: flex;
  gap: 70px;
  align-items: center;
}

.logo-container img {
  width: 200px;
}

.logo-container i {
  border: 1px solid #29367d;
  padding: 5px;
  border-radius: 5px;
  &:hover {
    background-color: #00a651;
    color: white;
  }
}

.header-info {
  padding: 10px 20px;
  display: none;
}

.info-box h3 {
  font-size: 14px;
  color: #00a651;
}

.info-box p,
a {
  font-size: 12px;
  text-decoration: none;
  color: #29367d;
  font-weight: 600;
}

.header-hero {
  background:
    linear-gradient(rgba(0, 0, 255, 0.2), rgba(0, 0, 255, 0.116)),
    url("../images/proj-hero-bg.webp") no-repeat;
  background-size: cover;
}

.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

nav {
  display: flex;
  justify-content: space-evenly;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: white;
  &:hover {
    text-decoration: 2px underline;
  }
}

.hero p {
  color: white;
  text-align: center;
  font-size: 10px;
  width: 80%;
}

.hero button {
  padding: 7px 15px;
  color: white;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.345),
    rgba(143, 143, 143, 0.596)
  );
  border: 1px solid #00a651;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  &:hover {
    background-color: rgb(32, 32, 32);
  }
}

.hero button a {
  color: wheat;
}

/* =========================================
   PROJECT SPECIFIC SECTIONS (Mobile)
   ========================================= */

h2 {
  color: #1f435d;
  margin: 20px 0;
  text-align: center;
}

.ports {
  background:
    linear-gradient(rgba(0, 0, 106, 0.4), rgba(0, 0, 0, 0.5)),
    url("../images/projects-bg.webp") no-repeat;
  background-size: cover;
  min-height: 80vh;
  padding: 20px;
  color: white;
  border-radius: 10px;
  margin: 20px;
}

.ports h3 {
  text-align: center;
  margin: 20px 0;
  color: #ffffff;
}

.ports p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.ports ul {
  list-style: none;
  padding-bottom: 20px;
}

.ports li {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ports li strong {
  color: #ffffff;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-left: 3px solid #00a651;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.stat-card strong {
  display: block;
  font-size: 18px;
}

.stat-card span {
  font-size: 12px;
}

.images {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 0 10px;
}

.images img {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.images img:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.trusted-clients {
  padding: 40px 20px;
  background-color: #f4f7f9;
}

.trusted-clients ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 20px;
  list-style: none;
}

.trusted-clients li {
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.trusted-clients li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.trusted-clients li strong {
  color: #29367d;
}

/* =========================================
   FORM SECTION (Mobile)
   ========================================= */

form {
  padding: 0 10px;
  backdrop-filter: blur(10px);
}

form input,
textarea {
  padding: 10px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  width: 100%;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
  &:focus {
    outline: 1px solid #1f435d;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
  }
}

form textarea {
  height: 120px;
}

form button {
  padding: 10px 20px;
  margin: 15px 5px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  background: #1f435d;
  color: white;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
  &:hover {
    background: #112635;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  &:active {
    transform: translateY(0);
  }
}

.form {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 255, 0.116)),
    url("../images/contact-form-bg.webp") no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 30px;
  padding: 30px 10px;
}

.form h2 {
  color: white;
  padding-top: 20px;
}

.form h3 {
  color: white;
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: normal;
}

form input,
form textarea {
  width: 100%;
  padding: 15px 15px;
  font-size: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: 1px solid #1f435d;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

form textarea {
  height: 120px;
}

form button {
  padding: 12px 20px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  background: #1f435d;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

form button:hover {
  background: #112635;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

form button:active {
  transform: translateY(0);
}

/* =========================================
   FOOTER
   ========================================= */

footer {
  background: linear-gradient(90deg, #1f435d, #418cc3);
  text-align: center;
  color: white;
}

footer nav {
  padding-top: 10px;
}

footer h2 {
  margin: 10px;
  font-size: 18px;
  color: white;
}

footer p,
ul li a,
footer p a {
  color: white;
  font-size: 14px;
  font-weight: normal;
  padding: 0 10px;
}

footer .details {
  padding: 20px 0;
}

footer ul {
  list-style: none;
}

.copyright {
  background-color: #00a651;
  text-align: center;
  padding: 10px 0;
  margin-top: 15px;
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (min-width: 768px) {
  .top-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 30px;
  }

  .header-info {
    display: flex;
    gap: 20px;
  }

  .hero p {
    font-size: 14px;
    width: 60%;
  }

  .project-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .trusted-clients ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-info h3 {
    font-size: 16px;
  }

  .header-info p,
  a {
    font-size: 14px;
  }

  .logo-container img {
    width: 250px;
  }

  .logo-container i {
    display: none;
  }

  .header-hero {
    background-position: center;
    background-size: cover;
    height: 120vh;
  }

  .hero {
    gap: 20px;
    height: 90vh;
  }

  .hero p {
    font-size: 18px;
    width: 50%;
  }

  .hero button {
    font-size: 16px;
    padding: 10px 25px;
  }

  nav {
    justify-content: center;
    margin-left: 30px;
    gap: 60px;
    padding-right: 50px;
  }

  nav a {
    font-size: 16px;
  }

  h2 {
    color: #1f435d;
    margin: 50px;
    font-size: 30px;
    text-align: center;
  }

  .ports {
    height: auto;
    padding: 50px;
    margin: 60px 100px;
  }

  .ports h3 {
    text-align: left;
    padding: 0;
    font-size: 26px;
  }

  .ports p {
    font-size: 18px;
  }

  .ports ul li {
    width: auto;
    list-style: disc;
    font-size: 16px;
    margin-left: 20px;
    border: none;
  }

  .images {
    padding: 0 100px;
  }

  .images img {
    margin-top: 20px;
    transition:
      transform 0.5s ease,
      box-shadow 0.5s ease;
    cursor: pointer;
    &:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }
  }

  .trusted-clients ul {
    grid-template-columns: repeat(4, 1fr);
    padding: 40px 100px;
  }

  .form {
    height: 70vh;
  }

  .form form {
    display: flex;
    width: 80%;
    margin: 0 auto;
    gap: 20px;
    align-items: flex-start;
  }

  .form .details {
    flex: 1;
  }

  .form .message {
    flex: 1.5;
  }

  .form h2 {
    text-align: left;
    margin-bottom: 15px;
    margin-left: 10%;
    filter: drop-shadow(0 0 5px black);
  }

  form button {
    margin-top: 10px;
    float: right;
  }

  footer .details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 55px;
    width: 100%;
    padding: 40px 100px;
    text-align: left;
  }

  .copyright {
    height: 40px;
    vertical-align: middle;
    padding-top: 15px;
  }

  .whatsapp-float {
    color: white;
    background-color: #00a651;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 30px;
    position: fixed;
    top: 570px;
    right: 50px;
  }

  .whatsapp-float:hover {
    transform: scale(1.2);
    background-color: #00783a;
    transition: all 0.3s;
  }
}

/* =========================================
   SCROLL ANIMATIONS — LIGHTWEIGHT
   ========================================= */

[data-animate] {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

[data-animate="up"] {
  transform: translateY(60px);
}
[data-animate="down"] {
  transform: translateY(-60px);
}
[data-animate="left"] {
  transform: translateX(-80px);
}
[data-animate="right"] {
  transform: translateX(80px);
}
[data-animate="scale"] {
  transform: scale(0.85);
}
[data-animate="fade"] {
  transform: none;
}

[data-animate].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

[data-delay="1"] {
  transition-delay: 0.15s;
}
[data-delay="2"] {
  transition-delay: 0.3s;
}
[data-delay="3"] {
  transition-delay: 0.45s;
}
[data-delay="4"] {
  transition-delay: 0.6s;
}
[data-delay="5"] {
  transition-delay: 0.75s;
}
[data-delay="6"] {
  transition-delay: 0.9s;
}
[data-delay="7"] {
  transition-delay: 1.05s;
}
[data-delay="8"] {
  transition-delay: 1.2s;
}

/* WhatsApp pulse */
@keyframes softBounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}
.whatsapp-float {
  animation: softBounce 2.5s ease-in-out infinite;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  box-shadow: 0 6px 18px rgba(0, 166, 81, 0.35);
}

footer .navbar a {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
footer .navbar a:hover {
  color: #00a651;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .whatsapp-float {
    animation: none !important;
  }
}
