/* General Styles */
* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "poppins", "sans-serif";
  ::selection {
    color: #f39c12;
    background-color: rgba(124, 63, 185, 0.3);
  }
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  background: rgb(1, 0, 21);
  color: #fff;
  background: radial-gradient(
    circle,
    rgb(0, 0, 0) 29%,
    rgb(9, 0, 52) 100%,
    rgb(0, 70, 84) 100%
  );
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Section */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(2, 0, 36, 0.5);
  background: radial-gradient(
    circle,
    rgba(1, 0, 25, 0.9) 29%,
    rgba(12, 0, 69, 0.9) 100%,
    rgba(0, 212, 255, 0.9) 100%
  );
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo span {
  color: red;
  font-weight: 700px;
  font-size: 5rem;
}

.header .logo {
  font-size: 3rem;
  font-weight: bold;
}

.navbar {
  display: flex;
  gap: 1rem;
}

.navbar a {
  color: #fff;
  font-size: 2rem;
  transition: color 0.3s;
}

.navbar a:hover {
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px, cyan, 0 0 100px cyan,
    0 0 200px, cyan;
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 50px #0ef;
  border-radius: 50px;
}

/* Home Section */
.home {
  display: flex;
  height: 90vh;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  color: #fff;
  gap: 4rem;
}

.home-content {
  flex: 1;
  min-width: 300px;
  padding-right: 2rem;
}

.home-content h3 {
  margin: 0;
  font-size: 2.5rem;
}

.home-content h3 {
  font-size: 50px;
  font-weight: 700;
  color: antiquewhite;
  margin: 0;
}

.home-content h1 {
  font-size: 80px;
  font-weight: 700;
  color: rgb(192, 126, 45);
  margin: 0;
}

.home-content p {
  font-size: 30px;
  font-weight: 700;
  background-color: rgba(20, 20, 20, 0.5);
  padding: 15px;
  color: rgb(220, 214, 163);
  text-align: justify;
}

.home-content .home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  font-size: 20px;
  color: #0ef;
  text-decoration: none;
  margin: 30px 15px 30px 0;
  border: 3px solid #0ef;
}

.home-sci a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 70px rgb(94, 222, 244);
}

.btn {
  margin-top: 40px;
}

.btn a {
  background-color: #00d5ff;
  color: #000000;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.btn a:hover {
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px, cyan, 0 0 100px cyan,
    0 0 200px, cyan;
}

.btn a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 50px #0ef;
}

.home-img img {
  max-width: 630px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 50px 8px rgba(0, 0, 169, 0.8);
}

/* About Section */
.about {
  display: flex;
  height: 100vh;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem;
  color: white;
  gap: 4rem;
}

.about-text {
  flex: 1;
  padding-left: 2rem;
  min-width: 300px;
}

.about-text h2 {
  color: rgb(255, 255, 255);
  font-size: 4.5rem;
  margin-bottom: 15px;
}

.about-text span {
  color: rgb(255, 0, 111);
}

.about-text h4 {
  color: burlywood;
  font-size: 3rem;
  margin-bottom: 15px;
}

.about-text p {
  color: rgb(193, 222, 197);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: justify;
}

/* Skills Section */
.mission-section {
  padding: 2rem;
}

.mission-title {
  text-align: center;
  font-size: 3.8rem;
  margin-bottom: 50px;
  color: #fdea9f;
}

.mission-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.mission-card {
  background: linear-gradient(135deg, #1f1f3f, #29295f);
  padding: 1rem;
  border-radius: 5px;
  flex: 1;
  min-width: 250px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.mission-card h2 {
  font-size: 4.5rem;
}

.mission-card h3 {
  color: #ffcc00;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.mission-card h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ffcc00;
  margin-top: 10px;
  border-radius: 5px;
}

.mission-card p {
  font-size: 1.5rem;
  color: #e0e0e0;
}

/* Project Section */

.portfolio-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;
  color: white;
}

.portfolio-content h2 {
  font-size: 4rem;
  margin-top: 50px;
}

.portfolio-content h2 span {
  color: #0ef;
}

.row {
  position: relative;
  flex-basis: calc(33.333% - 1rem);
  margin: 0.5rem;
}

.row img {
  width: 100%;
  border-radius: 5px;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.row:hover .layer {
  opacity: 1;
}

.layer i {
  color: #fff;
  font-size: 2rem;
}

/* Contact Section */
.contact {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem;
  color: white;
}

.contact-text {
  flex: 1;
  min-width: 300px;
  margin-right: 2rem;
}

.contact-text h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 4.5rem;
  margin-top: 4rem;
}

.contact-text h2 span {
  color: #0ef;
}
.contact-text h4 {
  color: rgb(202, 133, 133);
  font-size: 2.3rem;
  margin-top: 1rem;
}

.contact-text p {
  font-size: 1.9rem;
  margin-top: 1rem;
  text-align: justify;
}

.contact-list {
  list-style-type: none;
  padding: 0;
  color: #afb3ff;
  cursor: pointer;
}

.contact-text li {
  font-size: 1.5rem;
}

.contact-list li:hover {
  color: #ccc;
  text-decoration: underline;
}

.contact-list li {
  margin-top: 1rem;
}

.contact-list i {
  margin-right: 0.9rem;
}

.contact-form {
  flex: 1;
  min-width: 250px;
  padding-top: 100px;
}

.contact-form form input,
.contact-form form textarea {
  font-size: 1.5rem;
  width: 100%;
  color: white;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #1d3a4f;
}

.contact-form form ::placeholder {
  color: #ccc;
}

.Send {
  font-size: 1.5rem;
  background-color: #00d5ff;
  color: #000000;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.Send:hover {
  background-color: #ed0909;
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px, cyan, 0 0 100px cyan,
    0 0 200px, cyan;
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 50px #0ef;
}

/* Footer Section */
.last-text {
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
  background: rgba(1, 0, 16, 0.5);
  background: radial-gradient(
    circle,
    rgba(2, 0, 36, 0.9) 29%,
    rgba(12, 0, 72, 0.9) 100%,
    rgba(0, 212, 255, 0.9) 100%
  );
  color: #fff;
}

/* Back to Top Button */
.top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 2rem;
  background-color: #f39c12;
  color: #fff;
  border-radius: 50%;
  padding: 0.5rem;
  cursor: pointer;
}

/* Responsive Styles */

@media (max-width: 1600px) {
  .mission-card{
    min-width: 600px;
  }

  .contact-form{
    margin-top: 100px;
  }
}

@media (max-width: 627px) {
  .mission-card{
    min-width: 250px;
  }
}

@media (max-width: 950px){
  .contact-text{
    min-width: 400px;
  }

  .contact-form{
    min-width: 570px;
  }
}

@media (max-width: 650px){
  .contact-form{
    min-width: 300px;
    overflow: hidden;
  }
}

@media (max-width: 1135px) {
  .navbar {
    flex-direction: column;
  }

  .home,
  .about,
  .mission-section,
  .contact {
    flex-direction: row;
    min-height: auto;
    overflow: auto;
  }

  .home {
    height: fit-content;
  }

  .about {
    min-height: fit-content;
  }

  .home-content,
  .about-text,
  .contact-text {
    padding: 0;
  }

  .mission-content {
    justify-content: center;
  }

  .row {
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .home,
  .about,
  .mission-section,
  .contact {
    flex-direction: row;
    min-height: auto;
    overflow: hidden;
    height: fit-content;
  }

  .header .logo {
    font-size: 2rem;
  }

  .header .logo span {
    font-size: 3.3rem;
  }

  .navbar a {
    font-size: 0.8rem;
  }

  .home-content h1 {
    font-size: 2.3rem;
  }

  .home-content h3 {
    font-size: 1.5rem;
  }

  .home-content p {
    font-size: 1rem;
  }

  .home-content a {
    font-size: 0.9rem;
  }

  .home-img {
    width: 350px;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text h4 {
    font-size: 1.3rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-text a {
    font-size: 1rem;
  }
  .mission-section h2 {
    font-size: 2rem;
  }

  .mission-card h3 {
    font-size: 1.5rem;
  }

  .mission-card p {
    font-size: 1rem;
  }

  .portfolio-content h2 {
    font-size: 2rem;
  }

  .portfolio-content img {
    min-width: 300px;
  }

  .contact-text{
    min-width: 200px;
  }

  .contact-text h2 {
    font-size: 2rem;
  }

  .contact-text h3 {
    font-size: 1.5rem;
  }

  .contact-text h4 {
    font-size: 1.3rem;
  }

  .contact-text p {
    font-size: 1rem;
  }

  .contact-text li {
    font-size: 1rem;
  }

  .contact-form ::placeholder {
    font-size: 1rem;
  }

  .contact-form button {
    font-size: 0.9rem;
  }

  .last-text p {
    font-size: 1rem;
  }

  .mission-card {
    flex-basis: 100%;
  }

  .home-img {
    flex-direction: column;
  }
}

/* Navbar for Mobile View */
.menu-toggle {
  display: none;
  position: fixed;
  top: 50px;
  right: 50px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
  top: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px;
  background: #aaa;
  transition: 0.3s;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -10px;
}

.menu-toggle span::after {
  top: 10px;
}

/* Mobile Navbar */
.navbar.active {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(40, 40, 40, 0.9);
  color: #ccc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  z-index: 999;
}

.navbar a {
  display: block;
  font-size: 24px;
  padding: 15px;
  margin: 10px 0;
  color: #bebebe;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1135px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    transition: 0.3s;
  }

  .navbar.active {
    right: 0;
  }

  header .logo {
    font-size: 1.8rem;
  }
}

@media (max-width: 380px) {
  .header {
    width: 370px;
  }
}