/* Whole window */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Nav bar */
nav {
  width: 100%;
  background: white;
  padding: 35px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
  position: relative;
}

.logo-img {
  width: 150px;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

/* li styling */

.nav-links li {
  border-radius: 5px;
  transition: 0.2s;
}

/* anchor styling */

.nav-links li a {
  text-decoration: none;
  color: black;
  display: block;
  padding: 8px 16px;
  font-size: 15px;
}

/* hover */

.nav-links li:hover {
  background: #f5b300;
}

/* active */

.nav-links .active {
  background: #f5b300;
  font-weight: bold;
}

/* Hero Section  */

.hero {
  width: 100%;
  min-height: 90vh;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 50px;
  padding-left: 70px;
  padding-right: 70px;
  position: relative;
  overflow: hidden;
}

/* hero left side */
.hero-text {
  width: 50%;
}

.hero-text h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 70px;
  color: #2b2b2b;
  margin-top: -3cm;
}

.hero-text span {
  color: #f5b300;
}

.hero-text p {
  color: gray;
  line-height: 1.7;
  width: 85%;
  margin-bottom: 35px;
}

.btn {
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 30px;
  padding-right: 30px;
  border: none;
  margin-top: 50px;
  background: #f5b300;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #e0a000;
}

/* hero right side image */
.hero-image {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* for square and circle */

.circle {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid limegreen;
  border-radius: 50%;
}

.square {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid blue;
  transform: rotate(20deg);
}

.triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid red;
}

.yellow-square {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid orange;
  transform: rotate(25deg);
}

/* positions of circle and square */
.c1 {
  top: 150px;
  left: 40px;
}

.c2 {
  top: 180px;
  right: 450px;
}

.c3 {
  bottom: 40px;
  left: 80px;
}

.s1 {
  bottom: 120px;
  left: 350px;
}

.t1 {
  bottom: 70px;
  right: 70px;
}

.y1 {
  top: 240px;
  right: 120px;
}

@media (max-width: 950px) {
  nav {
    padding: 20px 30px;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .hero-text {
    width: 100%;
  }

  .hero-image {
    width: 100%;
    margin-top: 40px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    width: 100%;
  }

  .hero-image img {
    max-width: 500px;
  }

  .c2 {
    right: 50px;
  }

  .s1 {
    left: 50px;
  }
}

@media (max-width: 600px) {

  nav {
    padding: 20px;
  }

  .logo {
    width: auto;
    margin-bottom: 0;
  }

  /* show hamburger */

  .menu-toggle {
    display: block;
  }

  /* mobile menu */

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: white;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 1000;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    gap: 0;
  }

  /* open menu */

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-radius: 0;
  }

  .nav-links li a {
    width: 100%;
    padding: 14px 0;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  .hero-image img {
    max-width: 100%;
  }

  .circle,
  .square,
  .triangle,
  .yellow-square {
    opacity: 0.5;
  }
}

/* projects section - cards wala hissa */

.projects-section {
  width: 100%;
  background: #e9e9ee;
  padding-top: 70px;
  padding-bottom: 70px;
  padding-left: 70px;
  padding-right: 70px;
}

.project-heading {
  text-align: center;
  margin-bottom: 50px;
  margin-top: -1cm;
}

.project-heading h1 {
  font-size: 32px;
  color: #2d2d2d;
  margin-bottom: 10px;
  
}

.project-heading p {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
  color: gray;
  line-height: 1.7;
  font-size: 15px;
}

.projects-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-content {
  padding: 18px;
}

.project-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2d2d2d;
}

.project-content p {
  color: gray;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tags span {
  background: #efefef;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
}

/* projects responsive for  small devices */
@media (max-width: 1000px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-heading p {
    width: 80%;
  }
}

@media (max-width: 700px) {
  .projects-section {
    padding: 50px 20px;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .project-heading h1 {
    font-size: 34px;
  }

  .project-heading p {
    width: 100%;
    font-size: 14px;
  }
}

/* feedback slider */

.recommend-section {
  width: 100%;
  background: #f5f5f5;
  padding-top: 70px;
  padding-bottom: 70px;
  overflow: hidden;
}

.recommend-heading {
  text-align: center;
  margin-bottom: 50px;
  margin-top: -1cm;
}

.recommend-heading h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #2d2d2d;
}

.recommend-heading p {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
  color: gray;
  line-height: 1.7;
}

.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: 0.5s;
  padding-left: 70px;
  padding-right: 70px;
}

.recommend-card {
  min-width: 350px;
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stars {
  color: #f5b300;
  font-size: 22px;
  margin-bottom: 20px;
}

.recommend-card h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #2d2d2d;
}

.recommend-card p {
  color: gray;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 15px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.profile h4 {
  margin-bottom: 5px;
  font-size: 18px;
}

.profile span {
  color: gray;
  font-size: 14px;
}

.dots {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
}

.active-dot {
  background: #f5b300;
}

@media (max-width: 900px) {
  .recommend-heading p {
    width: 80%;
  }

  .recommend-card {
    min-width: 300px;
  }
}

@media (max-width: 600px) {
  .recommend-heading h1 {
    font-size: 32px;
  }

  .recommend-heading p {
    width: 90%;
    font-size: 14px;
  }

  .slider-track {
    padding-left: 20px;
    padding-right: 20px;
  }

  .recommend-card {
    min-width: 100%;
  }
}

/* contact section - form and info both */

.contact-section {
  width: 100%;
  background: #e9e9ee;
  padding: 70px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.contact-left {
  width: 68%;
}

.contact-left h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2d2d2d;
}

.contact-form {
  background: white;
  padding: 58px;
}

.input-box {
  margin-bottom: 25px;
}

.input-box label {
  display: block;
  margin-bottom: 10px;
  color: #666;
  font-size: 15px;
}

.input-box input {
  width: 100%;
  height: 50px;
  border: none;
  background: #f0f0f6;
  padding: 10px;
  outline: none;
  font-size: 15px;
}

.input-box textarea {
  width: 100%;
  height: 220px;
  border: none;
  background: #f0f0f6;
  padding: 15px;
  resize: none;
  outline: none;
  font-size: 15px;
}

.send-btn {
  background: #f5b300;
  border: none;
  padding: 14px 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.send-btn:hover {
  background: #e0a000;
}

.contact-right {
  width: 32%;
}

.contact-right h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2d2d2d;
}

.info-card {
  background: white;
  padding: 25px;
  margin-bottom: 20px;
}

.icon {
  width: 50px;
  height: 50px;
  background: #f5b300;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
  font-size: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.info-row span {
  color: #555;
  font-size: 16px;
}

.info-row p {
  color: gray;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .contact-section {
    flex-direction: column;
  }

  .contact-left {
    width: 100%;
  }

  .contact-right {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .contact-section {
    padding: 40px 20px;
  }

  .contact-left h1,
  .contact-right h1 {
    font-size: 32px;
  }

  .contact-form {
    padding: 20px;
  }

  .info-card {
    padding: 20px;
  }

  .info-row {
    flex-direction: column;
    gap: 5px;
  }
}

/* footer */

.footer {
  width: 100%;
  background: #e9e9ee;
  padding-top: 70px;
  padding-bottom: 30px;
  padding-left: 70px;
  padding-right: 70px;
}

.top-logos {
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 70px;
}

.top-logos img {
  width: 120px;
  object-fit: contain;
  mix-blend-mode: darken;
}

.footer-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-left {
  width: 25%;
  min-width: 220px;
}

.main-logo {
  width: 120px;
  margin-bottom: 35px;
}

.rating-box {
  margin-bottom: 20px;
}

.rating-box img {
  width: 80px;
  height: 40px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.rating-box p {
  color: gray;
  font-size: 14px;
}

.footer-links {
  margin-top: 90px;
  min-width: 180px;
}

.footer-links h2 {
  margin-bottom: 25px;
  color: #2d2d2d;
  font-size: 28px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 15px;
  color: #444;
  cursor: pointer;
  transition: 0.2s;
}

.footer-links ul li:hover {
  color: #f5b300;
}

.copyright {
  text-align: center;
  margin-top: 60px;
}

.copyright p {
  color: gray;
  font-size: 15px;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links img {
  width: 180px;
  height: 60px;
  margin: -0.5cm;
  background: transparent;
}

@media (max-width: 1000px) {
  .footer-main {
    gap: 50px;
  }

  .footer-left {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .footer {
    padding: 50px 20px 20px 20px;
  }

  .top-logos {
    justify-content: center;
    margin-bottom: 50px;
  }

  .footer-main {
    flex-direction: column;
    gap: 35px;
  }

  .footer-links h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .copyright {
    margin-top: 40px;
  }
}
