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

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 30px;
}

/* ================= Header ================= */
header.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;

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

header .logo h1 {
  font-size: 1.8rem;
  color: #1e1e2f;
}

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

header nav.menu ul li a {
  text-decoration: none;
  color: #1e1e2f;
  font-weight: 500;
  transition: 0.3s;
}

header nav.menu ul li a:hover {
  color: #007bff;
}

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

header .hamburger span {
  height: 3px;
  width: 25px;
  background-color: #1e1e2f;
  border-radius: 2px;
  transition: 0.3s;
}

/* Social Icons */
.icons a img {
  width: 28px;
  margin-left: 18px;
  transition: transform 0.3s;
}

.icons a img:hover {
  transform: scale(1.2);
}

/* ================= Hero Section ================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 30px;
  gap: 50px;
}

.hero .left img {
  width: 320px;
  border-radius: 15px;
  border: 3px solid #007bff;
}

.hero .right {
  padding: 0 0;
}

.hero .right h2 {
  font-size: 2.4rem;
  margin-bottom: 25px;
  color: #1e1e2f;
}

.hero .right p {
  margin-bottom: 20px;
  color: #555;
}

/* ================= Projects Section ================= */
.projects {
  padding: 100px 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  margin-top: 70px;
}

.projects header h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1e1e2f;
  text-align: center;
}

.projectsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  justify-content: space-between;
}

.project {
  background-color: #fff;
  flex: 1 1 calc(33% - 20px); /* 3 columns layout */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project h3 {
  font-size: 1.4rem;
  color: #007bff;
  margin-bottom: 10px;
}

.project p {
  color: #555;
  font-size: 1rem;
}

.project-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn:first-child {
  background-color: #007bff;
  color: #fff;
}

.btn:first-child:hover {
  background-color: #0056b3;
}

.btn:last-child {
  background-color: #fff;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn:last-child:hover {
  background-color: #007bff;
  color: #fff;
}

/* Hover effect */
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .project {
    flex: 1 1 calc(50% - 20px); /* 2 columns */
  }
}

@media (max-width: 768px) {
  .project {
    flex: 1 1 100%; /* single column */
  }
}

/* ================= Contact Section ================= */
.contact {
  padding: 100px 30px;
  background-color: #fff;
  border-radius: 10px;
  margin-top: 70px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact header h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1e1e2f;
  text-align: center;
}

.contactContainer {
  display: flex;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Contact Info */
.let {
  flex: 1;
  min-width: 280px;
  padding: 10px;
}

.let h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #007bff;
}

.let p {
  margin-bottom: 12px;
  color: #555;
  font-size: 1rem;
}

.let i {
  margin-right: 10px;
  color: #007bff;
}

/* Contact Form */
.form {
  flex: 1;
  min-width: 300px;
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px;
}

.form form label {
  font-weight: 500;
}

.form form input,
.form form textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  transition: 0.3s;
}

.form form input:focus,
.form form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.form form button {
  padding: 14px;
  border: none;
  border-radius: 10px;
  background-color: #007bff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.form form button:hover {
  background-color: #0056b3;
}

/* ================= Footer ================= */
footer {
  background-color: #f5f7fa;
  color: #1e1e2f;
  padding: 60px 30px 30px 30px;
  font-family: "Poppins", sans-serif;
}

.footerContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footerContainer h3 {
  font-size: 1.6rem;
  color: #007bff;
  margin-bottom: 15px;
}

.footerContainer h4 {
  font-size: 1.2rem;
  color: #1e1e2f;
  margin-bottom: 12px;
}

.footerContainer p {
  font-size: 14px;
  line-height: 1.8;
  color: #1e1e2f;
}

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

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

.footerLinks ul li a {
  color: #1e1e2f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footerLinks ul li a:hover {
  color: #007bff;
}

.footerSocial a {
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.3s;
}

.footerSocial a:hover {
  transform: scale(1.2);
}

.footerSocial img {
  width: 28px;
  height: 28px;
}

.footerBottom {
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 14px;
  color: #1e1e2f;
}

/* ================= Responsive Styles ================= */
@media (max-width: 1200px) {
  .hero .left img {
    width: 280px;
  }
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 30px;
  }

  .contactContainer {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  header nav.menu {
    display: none;
    position: absolute;
    top: 90px;
    right: 20px;
    background-color: #fff;
    border-radius: 12px;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
  }

  header input#menu-toggle:checked ~ nav.menu {
    display: block;
  }

  header .hamburger {
    display: flex;
    margin-left: auto;
  }

  header nav.menu ul {
    flex-direction: column;
    gap: 15px;
  }

  header .icons {
    display: none;
  }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footerContainer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .footerSocial a {
    margin-right: 10px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 30px;
  }

  .hero .left img {
    width: 220px;
  }

  .hero .right h2 {
    font-size: 2rem;
  }

  .form form input,
  .form form textarea {
    font-size: 0.95rem;
  }
}
