/* Clearing default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Css Variables */
:root {
  --dark-100: #141414;
  --dark-200: #292929;
  --dark-300: #404040;
  --dark-400: #585858;
  --dark-500: #727272;
  --dark-600: #8c8c8c;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: var(--dark-100);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}

section {
  padding: 60px 40px;
}

a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease-in;
}

/* Pseudo classes */
a:hover {
  color: var(--dark-500);
}

h2 {
  font-size: 40px;
}

p {
  font-size: 16px;
}

.btn {
  background-color: var(--dark-300);
  padding: 10px 20px;
  border-radius: 7px;
  width: fit-content;
}

.btn:hover {
  background-color: var(--dark-200);
  color: white;
}

.header {
  margin: 0 auto; /* Making the header center */
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 40px;
  font-weight: 800;
}

.header p {
  text-align: center;
  font-size: 18px;
}

/* Header */
header {
  padding: 20px 40px;
}

nav {
  display: flex;
  justify-content: space-between;
}

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

.logo a {
  font-size: 32px;
  font-weight: 600;
}

.nav-menu a {
  font-size: 24px;
}

/* Home */
#home {
  /* height: 600px; */
  height: 70vh;
  display: flex;
}

.left,
.right {
  width: 50%;
}

.left {
  display: flex;
  align-items: center;
  /* background-color: aquamarine; */
  height: 100%;
}

.right {
  height: 100%;
  position: relative;
}

.right .card {
  width: 80%;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
}

.rotate-45,
.rotate-minus-45 {
  width: 600px;
  height: 400px;
  background-color: transparent;
  border: 1px solid var(--dark-500);
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.rotate-45 {
  transform: rotate(45deg);
  filter: brightness(0.3);
}

.rotate-minus-45 {
  transform: rotate(-55deg);
  filter: brightness(0.3);
}

.content {
  display: flex;
  flex-direction: column;
  width: 400px;
  gap: 12px;
}

.stroke-text {
  -webkit-text-stroke: 2px var(--dark-500);
  color: #ff0000;
}

.right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.right img {
  width: 550px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  place-items: center;
}

.project {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  gap: 14px;
  background-color: var(--dark-100);
  border-radius: 7px;
  padding: 20px 40px;
  width: 350px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.project-image img {
  width: 300px;
  height: 200px;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 32px;
}

.project-desc {
  font-size: 14px;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-more-btn {
  background-color: var(--dark-200);
  padding: 10px 20px;
}

/* Contact */
#contact {
  padding: 60px 0px;
}

.background {
  background: url("../images/banner.jpg") no-repeat;
  background-size: cover;
  background-position: top;
  filter: brightness(0.5);
  width: 100%;
  height: 500px;
}

/* Contact */

#contact {
  position: relative;
}

.contact-form {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translate(0, -50%);
  width: 400px;
  padding: 20px;
  background-color: var(--dark-100);
  border-radius: 7px;
  margin-top: 3rem;
}

.contact-form h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 1.2rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  background-color: transparent;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--dark-500);
  border-radius: 5px;
  color: white;
}

textarea {
  max-width: 100%;
  max-height: 200px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dark-500);
}

.form-group button {
  padding: 10px;
  color: white;
  width: 100%;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 1);
}

.form-group button:hover {
  background-color: var(--dark-300);
}

footer {
  display: flex;
  justify-content: center;
  padding: 10px;
}

/* Media Queries */
@media (max-width: 720px) {
  .nav-menu {
    display: none;
  }

  .contact-form {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1360px) {
  #home {
    padding: 60px 0px;
  }

  .right {
    display: none;
  }
  .left {
    width: 100%;
    display: flex;
    justify-content: center;

    background-position: top;
  }

  .content {
    width: 60%;
    align-items: center;
  }

  .content p,
  .content h2 {
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    width: 80%;
  }
}

@media (max-width: 760px) {
  .projects-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
