/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: auto;
}

/* ================= NAVBAR ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #024680;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.342), rgba(255, 255, 255, 0.904)),
    url("assets/bg_hero.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

.hero-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text h1 {
  color: #024680;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  color: #333;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: #024680;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.sercives {
  background: #ffffff;
  color: #024680;
  border: 1px solid #024680;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 320px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ================= SECTION ================= */

.section {
  padding: 90px 0;
}

.gray {
  background: #f5f7fc;
}

.dark {
  background: #111827;
  color: white;
}

.section-title {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  color: #024680;
}

.section-title.light h2 {
  color: white;
}

/* ================= ABOUT ================= */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-bottom: 1rem;
  color: #024680;
}

/* ================= SERVICES ================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 1rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #024680;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 1rem;
}

/* ================= PROJECTS ================= */

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

.project-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.project-card img {
  height: 350px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: #024680;
}

/* ================= CONTACT ================= */

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-box p {
  margin-bottom: 0.3rem;
}

/* ================= FOOTER ================= */

.footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 75px;
    left: -100%;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    text-align: center;
    padding: 2rem 0;
    transition: 0.3s;
    border-top: 3px solid #024680;
    border-bottom: 3px solid #024680;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    font-size: 0.9rem;
  }

  .contact-box p {
    font-size: 0.9rem;
  }

  .contact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.1rem;
  }

  .footer p {
    font-size: 0.7rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.card-icon {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 1.2rem;

  border-radius: 16px;

  background: #024680;
  color: white;
}

.card-icon .material-symbols-outlined {
  font-size: 40px;
}

.project-slider {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.project-image {
  position: absolute;
  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;
  transition: 0.4s;
}

.project-image.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.5);
  color: white;

  cursor: pointer;
  z-index: 5;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}
