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

html {
  scroll-behavior: smooth;
}


b {
  color: red;
}




body {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 1em;
  background: #000;
  font-family: Arial, sans-serif;
  color: #ffffff;
}

main {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  justify-content: center;
  margin-top: 80px;
  gap: 4em;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
  transform: translateZ(0);
}

header:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

aside {
  display: flex;
  align-items: center;
  gap: .4em;
}

.checkinput {
  display: none;
}

header aside .fa-brain {
  font-size: 3em;
  color: red;
}

header nav {
  display: flex;
  margin-left: auto;
  justify-content: space-around;
  width: 30%;
  align-items: center;
}

header nav a {
  text-decoration: none;
  color: aliceblue;
  width: 100px;
  padding: 0.8em 0;
  text-align: center;
  transition: all ease-in-out 0.55s;
  opacity: 0.6;
}

header nav a:hover {
  opacity: 1;
}


menu {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13em;
  padding: 4em 2em;
  height: 100%;
}

.menu-div {
  display: flex;
}

.menu-div:first-child {
  flex-direction: column;
  gap: 1em;
  max-width: 18em;


  a{
      background: linear-gradient(90deg, #d62828, #e63946);
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 0.3em;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  text-align: center;

  &:hover{
     opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
  }
  }
}

.menu-div:first-child p:first-child {
  color: rgb(172, 29, 29);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.menu-div:first-child p:nth-child(3) {
  color: aliceblue;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.menu-div:first-child h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: transparent;
  position: relative;
  background-clip: text;
  -webkit-background-clip: text;
  z-index: 2;
  width: fit-content;
}

.menu-div:first-child h1::before {
  content: "DevFuture";
  position: absolute;
  top: 0;
  left: 0;
  background:  white;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  width: 0;
  animation: mine 6s alternate infinite;
}


button {
  background: linear-gradient(90deg, #d62828, #e63946);
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 0.3em;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

button:active {
  transform: scale(0.92);
}

.menu-div:last-child img {
  height: 24em;
  width: 24em;
  object-fit: cover;
  opacity: 0.15;
  transition: all ease-in-out 1s;
}

.menu-div:last-child img:hover {
  transform: scale(1.13) translate(50px);
  opacity: 1;
}

.first-sec {
  color: aliceblue;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8em;
  padding: 4em 2em;
  background-color: #242424;
}

.sec-div:first-child img {
  height: 24em;
  width: 24em;
  object-fit: cover;
  opacity: 0.15;
  transition: all ease-in-out 1s;
}

.sec-div:first-child img:hover {
  transform: scale(1.2) translate(50px);
  opacity: 1;
}

.sec-div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 30em;
}

.section-title {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.section-title .red {
  color: red;
  font-size: 1rem;
}

.sec-div:last-child h1 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1em;
}

.sec-div:last-child p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.85;
}

.sec-div:last-child .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #000;
  gap: 0.5em;
  padding: 0.3em;
}

.sec-div:last-child .grid div {
  padding: 0.4em;
  font-size: 0.95rem;
  background-color: #242424;
  text-align: center;
}


.second-sec {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 4em 2em;
  width: 100%;
  background-color: #0e0d0d;
}

.second-sec span {
  color: red;
  font-size: 1rem;
}

.second-sec h5 {
  font-size: 0.9rem;
}

.second-sec h1 {
  font-size: 1.5rem;
}

.second-sec-div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em 4em;
  width: 100%;
  padding: 0 1em;
}

.second-sec-div div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #242424;
  padding:  1.5em;
  height: 7em;
  gap: 0.5em;
  border-radius: 0.4em;
  text-align: center;
  transition: all 1s;
}

.second-sec-div div:hover {
  transform: scale(1.07);
}

.second-sec-div p {
  font-size: 0.95rem;
  opacity: 0.6;
}

.second-sec-div p:nth-child(2) {
  font-size: 1.2rem;
  color: whitesmoke;
  opacity: 1;
}

.second-sec-div i {
  color: red;
}

.resume-section {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.2em 2em;
  background-color: #242424;
  position: relative;
}

.resume-section::after {
  content: "";
  width: 3px;
  height: 100%;
  background: red;
  opacity: 0.7;
  position: absolute;
  left: 10px;
  top: 0;
  border-radius: 2px;
  animation: pulse 2s infinite;
   
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    box-shadow: 0 0 3px red, 0 0 6px red, 0 0 10px red;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px red, 0 0 15px red, 0 0 18px red;
  }
  100% {
    opacity: 0.5;
    box-shadow: 0 0 3px red, 0 0 6px red, 0 0 10px red;
  }
}

.resume-content {
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 1em 0;
}

.education, .experience {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.education h1, .experience h1 {
  font-size: 1.5rem;
  color: #ffffff;
  border-bottom: solid 2px red;
  padding-bottom: 0.3em;
  width: fit-content;
  position: relative;
}


.education h3, .experience h3 {
  font-size: 1.2rem;
  color: whitesmoke;
}

.education .edu-item, .experience .exp-item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  position: relative;
  padding-left: 2em;
}

.education .edu-item::before, .experience .exp-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0.4em;
  width: 10px;
  height: 10px;
  background: red;
  border-radius: 50%;
   animation: pulse 2s infinite;
}

.education .edu-item h4, .experience .exp-item h4 {
  font-size: 1rem;
  color: #928a8a;
}

.education .edu-item p, .experience .exp-item p {
  font-size: 0.9rem;
  color: #b3b3b3;
  line-height: 1.4;
}

.edu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.exp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.exp-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.exp-item, .edu-item {
  transition: all 0.3s ease;
}

.github-link {
  margin-top: 1em;
}

.contributions {
  list-style: none;
  padding: 0;
}
.contributions li {
  margin-bottom: 0.5em;
  padding-left: 1.2em;
  position: relative;
}

.contributions li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: red;
}
.github-link a {
  text-decoration: none;
  color: red;
  font-weight: bold;
  transition: color 0.3s ease;
}
.github-link a:hover {
  color: #ff4c4c;
  text-decoration: underline;
}


.third-sec {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4em;
  padding: 4em 2em;
  background-color: #0e0d0d;
  color: #fff;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}


.third-sec-div {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.third-sec-div p:first-child {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ff4c4c;
}

.third-sec-div p:last-child {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}


.contact-form {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  background-color: #111;
  padding: 2em;
  border-radius: 0.5em;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}

.input-group {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  font-size: 1rem;
  padding: 0.8em 1em;
  border-radius: 0.3em;
  width: 100%;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff4c4c;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
  background: linear-gradient(90deg, #d62828, #e63946);
  padding: 0.8em 2em;
  border-radius: 0.3em;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  opacity: 0.9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}


.social-links {
  display: flex;
  gap: 1.5em;
  margin-top: 2em;
  width: 100%;
}

.social-links a {
  color: #ff4c4c;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #fff;
  transform: scale(1.2);
}


footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: red;
  padding: 1em;

  .fa-brain {
    font-size: 2.5em;
  }
}

footer nav {
  display: flex;
  width: 20%;
  justify-content: space-around;
  color: red;
}

footer nav a {
  color: red;
  text-decoration: none;
  font-size: 2rem;
  transition: all ease-in-out .3s;



  &:hover {
  color: #fff;
  transform: scale(1.2);
}
}

@keyframes mine {
  0% {
    width: 0;
    border-right: solid 2px red;
  }
  100% {
    width: 100%;
    border-right: solid 2px #f3efee;
  }
}





.projects-section {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  padding: 4em 2em;
  background-color: #0e0d0d;
  color: #fff;
}

.projects-section span {
  color: red;
  font-size: 1rem;
}

.projects-section h5 {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.projects-section h1 {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
}

.project-card {
  background-color: #242424;
  border-radius: 0.5em;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.project-card:hover img {
  opacity: 1;
}

.project-info {
  padding: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.project-info h3 {
  font-size: 1.2rem;
  color: #fff;
  border-left: 3px solid red;
  padding-left: 0.5em;
}

.project-info p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.5;
}

.project-links {
  display: flex;
  gap: 1em;
}

.project-links a {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #d62828, #e63946);
  padding: 0.5em 1.2em;
  border-radius: 0.3em;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-links a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.6);
}


.footer-div{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;


  p{
    font-size: larger;
    color: white;
  }
}










@media (max-width: 900px) {
  body {
    padding: 0;
  }

  .third-sec {
    flex-direction: column;
    text-align: center;
    gap: 2em;
  }

  .third-sec-div {
    text-align: center;
  }

  .contact-form button {
    align-self: center;
  }

  .social-links {
    margin-top: 1.5em;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  menu {
    flex-direction: column;
    gap: 2em;
  }

  header {
    justify-content: space-between;
    padding: .6em;
    width: 100%;
  }

  label {
    width: 40px;
    height: 40px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: white;
    cursor: pointer;
    padding: .4em;
    
  }

  .bar1, .bar2, .bar3 {
    transition: all ease-in-out .5s;
    width: 100%;
    height: 4px;
    background: #000;
  }

  .checkinput:checked + label .bar2 {
    opacity: 0;
  }
  .checkinput:checked + label .bar1 {
    transform: rotate(45deg) translate(5px, 8px);
  }
  .checkinput:checked + label .bar3 {
    transform: rotate(-45deg) translate(5px, -8px);
  }

  .navu {
    position: fixed;
    top: 0;
    left: -100%;
    flex-direction: column;
    background: #5a1919;
    width: 200px;
    height: 100vh;
    padding: 2rem;
    gap: 1rem;
    transition: all ease-in-out .5s;
    z-index: 1000;
  }

  .checkinput:checked ~ .navu {
    left: 0;
  }

  .menu-div {
    width: 100%;
    justify-content: center;
  }

  .second-sec {
    padding: 2em 1em;
    gap: 1em;
  }

  .menu-div:last-child img {
    width: 18em;
    height: 18em;
    opacity: 1;
  }

  .first-sec {
    flex-direction: column;
    gap: 2em;
  }

  .sec-div:first-child img {
    width: 18em;
    height: 18em;
    opacity: 1;
  }

  .second-sec-div {
    grid-template-columns: 1fr;
    gap: 2em;
    padding: 0;
  }

  .third-sec {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2em 1.2em;
    gap: 2em;
  }

  .third-sec button {
    width: 100%;
    max-width: 20em;
  }

  .second-sec-div div {
    width: 100%;
  }

  footer {
    gap: 1em;
    text-align: center;
  }
  footer nav {
    width: 100%;
  }


  aside > h1 {
    font-size: x-large;
  }
}





.sec-div:last-child .grid div {
  position: relative;
  padding: 0.6em;
  font-size: 0.95rem;
  background-color: #242424;
  text-align: center;
  border-radius: 0.3em;
  cursor: pointer;
  transition: transform 0.3s ease;
}


.sec-div:last-child .grid div:hover {
  transform: translateY(-6px) scale(1.05);
}


.sec-div:last-child .grid div::after {
  content: attr(data-label);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.4em 0.6em;
  border-radius: 0.3em;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}


.sec-div:last-child .grid div::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent rgba(0,0,0,0.85) transparent;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show tooltip on hover */
.sec-div:last-child .grid div:hover::after,
.sec-div:last-child .grid div:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}