@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}

:root {
  --primary-light: #4f4e4e;
  --secondary-light: #a2999957;
  --primary-dark: #fff;
  --secondary-dark: rgba(104, 95, 95, 0.553);
}

.con {
  font-family: "Montserrat", sans-serif;
  transition: background 0.2s linear;
  width: 100%;
  position: relative;
}

.navcon {
  position: sticky;
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-family: "Montserrat", sans-serif;
}
.navcon nav {
  position: fixed;
  width: 60%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  border-radius: 5px;
  background-color: #f1f1f1;
  z-index: 2000;
}
nav:hover {
  box-shadow: 3px 3px 10px #4f4e4e;
  transition: all 0.5s ease-in-out;
}
nav {
  font-size: 25px;
}
nav .commnav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
nav div a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: #111;
}

.commnav a i {
  font-size: 25px;
}
.commnav a:first-child {
  transition: all 1.2s ease;
}

.commnav:hover a:first-child {
  transform: translateY(-5px);
}
.commnav a:last-child {
  position: absolute;
  opacity: 0;
  transition: all 1s ease;
}

.commnav:hover a:last-child {
  transform: translateY(15px);
  opacity: 1;
}

/*  toggle icon */

body.dark {
  background-color: #1c1d1c;
} /* #9b59b6 */

body.dark h1,
body.dark {
  color: #fff;
}
.checkbox {
  opacity: 0;
  position: absolute;
}
body.dark nav {
  background-color: #111;
}
body.dark nav div a {
  color: #f1f1f1;
}
body.dark .hero h3 {
  color: #f4f4f4ab;
}
body.dark .herobtn button {
  background-color: #fff;
}
body.dark .herobtn button a {
  color: #121212;
}

body.dark .herobtn button:nth-child(2) {
  background-color: #111;
}
body.dark .herobtn button:nth-child(2) a {
  color: #f1f1f1;
  transition: all 0.1s ease-in;
}
.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {
  color: #f1c40f;
  font-size: 20px;
}

.fa-sun {
  color: #f39c12;
  font-size: 20px;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

/* hero section */
.hero {
  width: 100%;
  height: 70%;
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
}

.hero .img-container {
  width: 130px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden; /* Prevents image from going out */
}

.hero .img-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: all 0.5s ease-in-out;
}

.hero .img-container img:hover {
  transform: scale(1.4, 1.3);
  box-shadow: 5px 5px 2px #7081b5;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  color: #121212;
}
.hero h3 {
  font-size: 30px;
  color: #444343;
}
.herobtn {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.herobtn a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.herobtn a:first-child {
  background-color: #111;
  color: #f1f1f1;
}

.herobtn a:first-child:hover {
  background-color: #333;
  box-shadow: 0px 0px 10px #222;
}

.herobtn a:last-child {
  background-color: #f1f1f1;
  color: #111;
  border: 1px solid #111;
}

.herobtn a:last-child:hover {
  background-color: #ddd;
  box-shadow: 2px 2px 10px #212122;
}

/* about me section */
.aboutme {
  width: 100%;
  padding: 100px 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-family: Arial, Helvetica, sans-serif;
}
.aboutme h1 {
  font-size: 90px;
  color: #121212;
  padding-bottom: 20px;
  font-weight: bold;
}
.aboutme p {
  font-size: 25px;
  word-break: break-word;
  text-align: justify;
  color: #444343;
  font-weight: 100;
}
.aboutme p > b {
  font-weight: 600;
  color: #2591bb;
}
body.dark .aboutme > p {
  color: #f1f1f1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aboutme .techstack {
  padding-bottom: 100px;
  width: 100%;
  font-size: 90px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 0px;
}
.techstack span:first-child {
  color: var(--primary-light);
}
.techstack span:nth-child(2) {
  color: var(--secondary-light);
}

body.dark .techstack span:first-child {
  color: var(--primary-dark);
}
body.dark .techstack span:nth-child(2) {
  color: var(--secondary-dark);
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1100;
}

/* tech stack */
.skills {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  
  gap: 30px;
}
.skills .skillcon {
  width: 45%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  background-color: #fff;
  gap: 10px;
  border-radius: 5px;
}
.skills .skillcon .skilltxt {
  display: flex;
  flex-direction: column;
}
.skills .skillcon img {
  width: 15%;
  height: 80px;
  padding: 5px;
  transition: all 1s ease;
}
.skillcon {
  background-color: #1c1c1e;
  box-shadow: 2px 2px 5px #222222;
}
body.dark .skillcon {
  background-color: #121212;
  color: #fff;
}
body.dark .skillcon p {
  color: #f1f1f1;
}
body.dark .skillcon:hover {
  background-color: #121212;
  box-shadow: 2px 2px 8px white;
}

.skilltxt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.skilltxt h1 {
  font-size: 25px;
  color: #1c1d1c;
}
.skilltxt p {
  margin-top: -20px;
  font-size: 18px;
}

/* Projects Section */
.projects {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, sans-serif;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects > h1 {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}



.projects h1 span:first-child {
  color: var(--primary-light);
}

.projects h1 span:nth-child(2) {
  color: var(--secondary-light);
}

body.dark .projects h1 span:first-child {
  color: var(--primary-dark);
}

body.dark .projects h1 span:nth-child(2) {
  color: var(--secondary-dark);
}

/* Project Card */
.projectimgcon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  text-decoration: none;
  color: #1c1c1e;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  background-color: #f9f9f9;
}

.projectimgcon:hover {
  background-color: #f1f1f1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Project Image */
.projectimgcon img {
  width: 50%;
  max-width: 250px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.projectimgcon:hover img {
  transform: scale(1.05);
}

/* Project Info Box */
.projectimgcon div {
  text-align: center;
}

.projectimgcon div i {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 20px;
  color: #007bff;
  transition: all 0.3s ease-in-out;
}

.projectimgcon:hover div i {
  transform: rotate(40deg);
  right: 10px;
  top: 15px;
  font-size: 22px;
}

.projectimgcon h1 {
  font-size: 18px;
  font-weight: 700;
}

.projectimgcon p {
  font-size: 16px;
  text-align: justify;
  line-height: 1.5;
  color: #333;
}

/* Dark Mode */
body.dark .projectimgcon {
  color: #fff;
  background-color: #222222;
}

body.dark .projectimgcon:hover {
  background-color: #12121262;
}

body.dark .projectimgcon p {
  color: #f1f1f1;
}
/* education section */
.education {
  font-family: Arial;
  padding: 0 20%;
}
.eduheading {
  font-size: 90px;
  font-weight: bold;
  padding-top: 20px;
}
.eduheading span:first-child {
  color: #4f4e4e;
  letter-spacing: -2px;
}
.eduheading span:nth-child(2) {
  color: #a2999957;
  letter-spacing: 3px;
  padding-left: 10px;
}
body.dark .eduheading span:first-child {
  color: white;
}
body.dark .eduheading span:nth-child(2) {
  color: rgba(104, 95, 95, 0.553);
}

.educon {
  padding-top: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.educon:hover {
  border-radius: 5px;

  background-color: #f1f1f1;
}
.educon p {
  text-align: justify;
  line-height: 22px;
}
body.dark .educon:hover {
  background-color: #121212a1;
}
.contact {
  padding: 0px 20%;
  font-family: Arial;
}
.contheading {
  display: flex;
  flex-direction: column;
  font-size: 90px;
}
.contheading span:first-child {
  color: var(--primary-light);
}
.contheading span:nth-child(2) {
  color: var(--secondary-light);
}
body.dark .contheading span:first-child {
  color: var(--primary-dark);
}
body.dark .contheading span:nth-child(2) {
  color: var(--secondary-dark);
}

/* Contact Section */
.contact {
  width: 100%;
  padding: 40px 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contheading {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.contheading span {
  display: block;
}

/* Form Styling */
form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  gap: 15px;
}

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

label {
  font-size: 14px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
  font-size: 14px;
  background-color: #222222d9;
  color: #fff;
}
body.dark input,
body.dark textarea {
  background-color: white;
}

input:focus,
textarea:focus {
  border-color: #007bff;
  color: white;
}
body.dark input:focus,
body.dark textarea:focus {
  color: black;
}
::placeholder {
  color: #fff;
}
body.dark ::placeholder {
  color: black;
}

textarea {
  resize: vertical;
  font-family: Arial;
}
button {
  padding: 12px;
  font-size: 16px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0056b3;
}

/* fsdhoifhdufh */
.footer {
  background-color: #2e3028f2;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-content p {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s, filter 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(1.5);
}

.reserved {
  margin-top: 10px;
  font-size: 14px;
  color: #aaa;
}

@media only screen and (max-width: 600px) {
  .navcon {
    height: 100px;
  }
  .navcon nav {
    display: none;
    align-items: center;
    width: 90%;
    gap: 10px;
    padding: 20px 40px;
  }
  .navcon.active nav {
    transition: all 1s ease-in;
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .hero {
    margin-top: -30px;
  }
  .hero h1:nth-child(2) {
    font-size: 24px;
  }
  .hero h1:nth-child(3) {
    font-size: 24px;
  }
  .hero h3 {
    font-size: 15px;
  }
  .hero .herobtn a {
    font-size: 14px;
  }
  .aboutme {
    padding: 20px 20px;
  }
  #aboutme h1 {
    gap: 5px;
    justify-content: center;
    font-size: 20px;
  }
  .aboutme > p {
    font-size: 10px;
    text-indent: 40px;
  }
  .skills {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
  }

  .skills .skillcon {
    width: 45%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .skilltxt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
  }

  .skills .skillcon img {
    width: 50px;
    height: 50px;
    padding: 6px;
    display: block;
    box-shadow: 2px 2px 1px rgba(65, 4, 4, 0.201);
    border-radius: 10%;
  }

  .skills .skillcon .skilltxt > h1 {
    font-size: 16px !important;
  }

  .skills .skillcon .skilltxt > p {
    font-size: 12px;
  }
  .projects {
    padding: 20px;
  }
  .projects > h1 {
    font-size: 14px;
    text-align: center;
    justify-content: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    gap: 5px;
  }
 .projectimgcon div h1{
  font-size: 14px;
}
 .projectimgcon div p{
  font-size: 10px;
}
  /* Education Section */
  .education {
    width: 100%;
    padding: 20px;
    font-family: Arial, sans-serif;
  }

  .eduheading {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .eduheading span:first-child {
    text-decoration: none;
    letter-spacing: 1px;
  }

  .eduheading span:last-child {
    letter-spacing: normal;
    color: #777;
  }

  .educon {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background 0.3s ease-in-out;
  }

  .educon:hover {
    background-color: #f1f1f1;
  }

  .educon h2 {
    font-size: 12px;
    margin-bottom: 5px;
    color: #111;
  }

  .educon p {
    font-size: 10px;
    line-height: 1.4;
    color: #444;
    margin-bottom: 5px;
  }

  .educon p:last-child {
    color: #212122;
    font-style: italic;
  }

  /* Dark Mode */
  body.dark .educon {
    background-color: #222222;
  }

  body.dark .educon:hover {
    background-color: #12121262;
  }

  body.dark .educon h2,
  body.dark .educon p {
    color: #f1f1f1;
  }

  .contact {
    padding: 20px;
  }

  .contact .contheading {
    font-size: 20px;
    text-align: center;
  }

  .contact form {
    display: flex;
    flex-direction: column;
  }

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

  .contact input,
  .contact textarea {
    width: 100%;
    font-size: 15px;
    padding: 10px;
    box-sizing: border-box;
  }

  .contact button {
    width: 100%;
    font-size: 16px;
    padding: 12px;
    margin-top: 10px;
  }
  .footer-content > p {
    font-size: 12px;
  }
  .social-icons a img {
    width: 20px;
    height: 20px;
  }
}
