/* Variables */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #e74c3c;
  --text-color: #34495e;
  --bg-color: #ecf0f1;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background-color: var(--bg-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
}

.container {
  min-width: 1200px;
  width: 100%;
}

/* Header Section */
header {
  height: auto;
  background-color: var(--white);
  margin: 0 auto;
  padding: 0 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  right: 0;
  left: 0;
}

.nav-container {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home {
  text-decoration: none;
  font-size: 28px;
  color: var(--primary-color);
  font-weight: bold;
}

nav > a {
  text-decoration: none;
  font-size: 16px;
  margin-left: 30px;
  color: black;
  font-weight: 500;
  opacity: 0.7;
}

nav > a:hover {
  color: var(--white);
  background-color: var(--primary-color);
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  font-weight: 400;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 420px) {
  header {
    height: auto;
    background-color: var(--white);
    margin: 0 auto;
    padding: 0 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    scroll-margin-top: 100px;
  }

  .nav-container {
    padding: 11 px 0;
    display: flex;
    flex-direction: column;
  }

  .home {
    text-decoration: none;
    font-size: 30px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
  }

  nav > a {
    text-decoration: none;
    font-size: 16px;
    margin-left: 20px;
    color: black;
    font-weight: 500;
    opacity: 0.7;
  }

  nav > a:hover {
    color: var(--white);
    background-color: var(--primary-color);
    padding: 4px 6px;
    border: 0;
    border-radius: 10px;
    font-weight: 400;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
}
/* Header Section End */

/* Hero Section */
.hero-section {
  height: 100vh;
  background:
    linear-gradient(135deg, rgba(75, 123, 236, 0.5), rgba(67, 206, 162, 0.7)),
    url(https://cdn.pixabay.com/photo/2019/07/14/16/29/pen-4337524_1280.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero-section h1 {
  font-size: 48px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-section p {
  color: var(--bg-color);
  font-size: 24px;
  margin-bottom: 30px;
}

.btn {
  text-decoration: none;
  background-color: var(--accent-color);
  text-transform: uppercase;
  padding: 13px 30px;
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.btn:hover {
  background-color: #da2a16;
}

@media (max-width: 570px) {
  .hero-section {
    padding: 0 5px;
  }

  .hero-section h1 {
    font-size: 30px;
    color: var(--white);
    margin-bottom: 6px;
  }

  .hero-section p {
    color: var(--bg-color);
    font-size: 13px;
    margin-bottom: 30px;
  }

  .hero-section a {
    text-decoration: none;
    background-color: var(--accent-color);
    text-transform: uppercase;
    padding: 13px 30px;
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
  }
}
/* Hero Section End*/

/* About Section */
.about-section {
  margin: 100px 0;
  padding: 0px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 35px;
  margin-top: 20px;
}

.about-text p {
  color: var(--text-color);
  margin-top: 10px;
}

.about-img img {
  width: 100%;
  height: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 10px;
  margin-top: 80px;
}

@media (max-width: 700px) {
  .about-section {
    margin: 100px 0;
    padding: 0px 30px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  .about-text h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 23px;
  }

  .about-text p {
    color: var(--text-color);
  }
  .about-img img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
    margin-top: 20px;
  }
}
/* About Section End*/

/* Portfolio Section */
.portfolio-section {
  background-color: #f8f9fa;
  padding: 100px 0;
}

.portfolio-section > h2 {
  color: var(--primary-color);
  font-size: 35px;
  text-align: center;
  margin-bottom: 60px;
}

.projects-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 30px;
}

.projects {
  background-color: var(--white);
  width: 30%;
  border: none;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.projects-content {
  padding: 0 20px;
}

.projects-content h2 {
  color: var(--primary-color);
  margin-top: 15px;
  font-size: 22px;
  margin-bottom: 10px;
}

.projects-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 16px;
}

.links-btn {
  display: flex;
  column-gap: 10px;
  flex-wrap: wrap;
  gap: 5px;
}

.projects-content a {
  text-decoration: none;
  background-color: var(--secondary-color);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--white);
  border: none;
  border-radius: 15px;
  margin-bottom: 10px;
}

.projects img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 740px) {
  .portfolio-section {
    background-color: #f8f9fa;
    padding: 100px 0;
  }

  .portfolio-section > h2 {
    color: var(--primary-color);
    font-size: 35px;
    text-align: center;
    margin-bottom: 60px;
  }

  .projects-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 30px;
    flex-direction: column;
  }

  .projects {
    background-color: var(--white);
    width: 100%;
    border: none;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
  }

  .projects-content {
    padding: 0 20px;
  }

  .projects-content h2 {
    color: var(--primary-color);
    margin-top: 15px;
    font-size: 22px;
    margin-bottom: 10px;
  }

  .projects-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
  }

  .links-btn {
    display: flex;
    column-gap: 10px;
    flex-wrap: wrap;
    gap: 5px;
  }

  .projects-content a {
    text-decoration: none;
    background-color: var(--secondary-color);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 400;
    color: var(--white);
    border: none;
    border-radius: 15px;
    margin-bottom: 10px;
  }

  .projects img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}
/* Portfolio Section End*/

/* Contact Section */
.contact-section {
  margin-top: 100px;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--primary-color)
  );
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact-container h2 {
  font-size: 36px;
  color: var(--white);
  margin-bottom: 20px;
}

.contact-container p {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 20px;
}

@media (max-width: 635px) {
  .contact-container h2 {
    font-size: 30px;
    color: var(--white);
    margin-bottom: 20px;
  }

  .contact-container p {
    color: var(--white);
    font-weight: 400;
    margin-bottom: 20px;
  }
}
/* Contact Section End */

/* Contact Form */
.form-section {
  background-color: var(--white);
  text-align: left;
}

.form-section h2 {
  color: var(--primary-color);
  font-size: 36px;
  font-weight: bold;
  padding: 100px 0 50px 0;
  text-align: center;
}

form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

form div {
  margin-bottom: 20px;
}

form p {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

textarea {
  height: 180px;
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

button {
  margin-bottom: 100px;
}
/* Contact Form End*/

/* Footer Section */
footer {
  display: flex;
  justify-content: center;
  background-color: var(--text-color);
  padding: 20px 0;
}

.footer-container p {
  font-size: 1em;
  font-weight: 400;
  color: var(--white);
}
/* Footer Section End*/
