@import url("https://fonts.googleapis.com/css2?family=Forum&family=Manrope:wght@200..800&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

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

body {
  color: lightgray;
  background: #0c0c1d;
  /* cursor: grab; */
  font-family: Manrope, sans-serif;
}

*::selection {
  background-color: rebeccapurple;
  color: #0d0d0d;
}

::-moz-selection {
  background-color: rebeccapurple;
  color: #0d0d0d;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: rebeccapurple;
  border-radius: 5px;
}

/* Container Styles */
.main-container {
  background: #0c0c1d;
  margin: auto;
}

/* Home Section */

/* Navbar Styles */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #111132, #0c0c1d);
  border-bottom: 1px solid #272735;
  z-index: 1000;
  padding: 20px 0;
}

.nav-container {
  max-width: 1266px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Sidebar Starts */

.hamburger-menu {
  display: none;
}

.switch {
  position: relative;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: lightgray;
  border-radius: 50%;
}

.switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
  position: absolute;
}

.switch div {
  width: 80%;
  height: 80%;
  margin: 10%;
  position: absolute;
}

.switch span {
  background: #0c0c1d;
  width: 100%;
  height: 2px;
  border-radius: 5px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.5s, width 0.5s;
}

.switch .line-1 {
  width: 50%;
  transform: translate(-100%, -8px);
  transform-origin: 0 0;
}

.switch .line-3 {
  width: 50%;
  left: auto;
  right: 0;
  transform: translate(0, 7px);
  transform-origin: 100% 0;
}

input:checked + div span.line-1 {
  transform: translate(0, 0) rotate(-45deg);
}

input:checked + div span.line-3 {
  transform: translate(-100%, 0) rotate(-45deg);
}

input:checked + div span.line-2 {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar {
  width: 250px;
  height: 100vh;
  background: linear-gradient(180deg, #0c0c1d, #111132);
  position: fixed;
  top: 0;
  left: -250px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 1000;
  font-family: "figtree", cursive;
}

.sidebar.open {
  left: 0;
}

.sidebar .nav-link {
  font-family: "Patrick Hand", cursive;
  font-size: 18px;
  color: lightgray;
  text-decoration: none;
  margin: 15px 0;
}

.sidebar .resume {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  width: 100px;
  background-color: rebeccapurple;
  color: lightgray;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.main-content {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.sidebar.open ~ .main-content {
  margin-left: 200px;
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: block;
  }
  .navbar {
    padding: 10px;
  }
  .nav-links a {
    display: none;
  }
}

/* Sidebar Ends */

#home {
  background: linear-gradient(180deg, #0c0c1d, #111132);
}

.logo {
  font-size: 18px;
  font-weight: 600;
  font-family: "Patrick Hand", cursive;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: lightgray;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rebeccapurple;
}

/* Resume Button */
.resume-btn {
  border-radius: 4px;
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid #272735;
  color: lightgray;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-btn:hover {
  background-color: #272735;
}

/* Hero Section */
.hero {
  width: 100%;
  padding-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  max-width: 1266px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
  padding: 10% 3%;
  height: 100%;
}

.home-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  position: relative;
}

.home-img {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 250px;
  height: 250px;
}

.home-img img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background-color: rebeccapurple;
  position: absolute;
  opacity: 0.6;
}

.circle-1 {
  border-radius: 50%;
  background-color: rebeccapurple;
  width: 140px;
  height: 140px;
  position: absolute;
  transform: translate(60%, -50%);
  opacity: 0.6;
}

.circle-2 {
  border-radius: 50%;
  background-color: rebeccapurple;
  width: 90px;
  height: 90px;
  position: absolute;
  transform: translate(130%, -10%);
  opacity: 0.6;
}

.details {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 40px;
  width: 60%;
  height: 100%;
}

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

.hero-container .intro > h4 {
  color: rebeccapurple;
  font-size: 35px;
  text-transform: uppercase;
  font-family: "Patrick Hand", cursive;
}

.hero-container > div > p {
  font-size: 25px;
}

@media (max-width: 700px) {
  .hero-container {
    flex-direction: column;
    gap: 20px;
  }
  .details {
    width: 100%;
  }
  .home-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.social-icons {
  border-radius: 12px;
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  text-decoration: none;
  color: rebeccapurple;
}

.social-icons a {
  transition: all ease-in-out 0.2s;
}

.social-icons a:hover {
  opacity: 0.8;
  box-shadow: 0 0 10px rebeccapurple;
}

/* About Section Starts */

#about {
  max-width: 1266px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10%;
  padding: 5%;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-container h1 {
  font-size: 60px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 20px;
  color: rebeccapurple;
  font-family: "Patrick Hand", cursive;
}

.about-container h2 {
  font-size: 2.4rem;
  font-weight: bold;
  color: #d3d3d3;
  line-height: 50px;
}

.about-container p {
  font-size: 1rem;
  font-weight: bold;
  color: rgb(255, 255, 255);
  margin-top: 1rem;
  opacity: 0.8;
  letter-spacing: 0.8px;
  line-height: 27px;
}

.profile-container img {
  border: 1px solid #272735;
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

@media (max-width: 700px) {
  #about {
    flex-direction: column;
    gap: 40px;
  }
  .profile-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .about-container {
    width: 90%;
  }
}

@media (max-width: 400px) {
  .about-container h2 {
    font-size: 20px;
    line-height: 20px;
  }
  .about-container p {
    font-size: 13px;
  }
}

.resumeContainer {
  margin-top: 20px;
  background-color: rebeccapurple;
  width: fit-content;
  border-radius: 5px;
  border: 1px solid #0c0c1d;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.resumeContainer:hover {
  background-color: #272735;
  color: rebeccapurple;
}

.resumeContainer img {
  width: 30px;
  height: 30px;
}

.resumeContainer a {
  text-decoration: none;
  gap: 10px;
  display: flex;
  align-items: center;
  color: black;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1rem;
}

/* About Section ends */

/* Skills Section Starts */

.titleContainer {
  font-size: 60px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 20px;
  color: rebeccapurple;
  font-family: "Patrick Hand", cursive;
}

#skills {
  padding: 3% 1%;
  max-width: 1266px;
  margin: auto;
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.tech-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #0d0d20;
  cursor: pointer;
  width: 200px;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #272735;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-stack-item:hover {
  background-color: #17172b;
}

.tech-stack-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tech-stack-item p {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 500px) {
  .tech-stack-item {
    width: 100px;
    padding: 10px;
  }
  .tech-stack-item img {
    width: 30px;
    height: 30px;
  }
}

/* Skills Section Ends */

/* Project Section Starts */

#project {
  padding: 3%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#project h1 {
  font-size: 60px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 10px;
  color: rebeccapurple;
  font-family: "Patrick Hand", cursive;
}

.project-container {
  display: flex;
  align-items: center;
  max-width: 1266px;
  justify-content: center;
  margin: auto;
  width: 100%;
  padding: 20px;
  border: 1px solid #272735;
  border-radius: 5px;
}

@media (max-width: 850px) {
  .project-container {
    flex-direction: column;
    width: 100%;
    padding: 20px;
    border-radius: 0;
  }
}

.image-container {
  flex: 1;
}

.laptop-image {
  max-width: 90%;
  height: auto;
  border: 1px solid #272735;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.laptop-image:hover {
  opacity: 0.8;
  box-shadow: 0 0 20px rebeccapurple;
  /* filter: brightness(0.7) sepia(1); */
}

.content-container {
  flex: 1;
  padding-left: 30px;
}

.content-container h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.content-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 400px) {
  .content-container h2 {
    font-size: 26px;
  }

  .content-container p {
    font-size: 15px;
  }
}

.tech-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.tech-icons span {
  background-color: transparent;
  border: 1px solid #272735;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  transition: all ease-in-out 0.2s;
  cursor: pointer;
}

.tech-icons span:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.team-avatars {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.team-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links img {
  width: 25px;
  height: 25px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .content-container {
    padding-left: 0;
    margin-top: 20px;
  }

  .team-avatars img {
    width: 50px;
    height: 50px;
  }
}

/* Project Section Ends */

/* GithubStats section Starts */

#Statisticscon {
  max-width: 1266px;
  margin: auto;
  padding: 3%;
}

@media (max-width: 400px) {
  #Statisticscon {
    padding: 10px;
  }
}

#splideimg {
  width: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

@media (max-width: 900px) {
  .img-container > img {
    width: 400px;
  }
  #splideimg {
    width: 500px;
  }
  .nav-links > a,
  .resume-btn {
    display: none;
  }
}

@media (max-width: 500px) {
  .img-container > img {
    width: 250px;
  }
  #splideimg {
    width: 290px;
  }
  .links > a {
    display: none;
  }
}

#Statistics {
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.mid-text h2 {
  font-size: 60px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 20px;
  color: rebeccapurple;
  font-family: "Patrick Hand", cursive;
}

.stats-chart {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0d0d20;
  border: 1px solid #272735;
  padding: 20px 0px;
  border-radius: 10px;
}

.stats-chart img {
  margin: auto;
  width: 95%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 768px) {
  #Statistics {
    width: 100%;
    padding: 20px;
  }
}

/* GithubStats section Ends */

/* Contact Section Starts */

.contact {
  max-width: 1266px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 5%;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .contact {
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding: 2%;
  }
}

.textContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact {
    margin-bottom: 20px;
  }
  .textContainer {
    flex: 0;
    gap: 15px;
  }

  .textContainer h1 {
    font-size: 36px;
    text-align: center;
    line-height: 1em;
  }

}

.textContainer h1 {
  font-size: 80px;
  line-height: 0.9em;
}

@media (max-width: 990px) {
  .textContainer h1 {
    font-size: 40px;
  }
}

.textContainer span {
  font-weight: 300;
}

.formContainer {
  flex: 1;
}

@media (max-width: 768px) {
  .formContainer {
    width: 80%;
    /* height: fit-content; */
  }
  .textContainer h1 {
    text-align: start;
  }
  .textContainer {
    width: 80%;
  }
}

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

input,
textarea {
  padding: 10px;
  background-color: transparent;
  border: 1px solid #272735;
  color: white;
  border-radius: 5px;
}

button {
  padding: 14px;
  border: none;
  background-color: rebeccapurple;
  cursor: pointer;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #272735;
  color: rebeccapurple;
}

.message {
  font-size: 1rem;
  display: none;
}

/* Contact Section Ends */

/* Responsiveness */
@media (max-width: 900px) {
  .mid-text h2 {
    font-size: 30px;
  }
  .titleContainer {
    font-size: 30px;
  }
  #project h1 {
    font-size: 30px;
  }
  .about-container h1 {
    font-size: 30px;
  }
}

/* noise noise noise noisenoisenoisenoise    */

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
  opacity: 0.05;
}

@keyframes noise-animation {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 500px 500px;
  }
}

.noise-animate {
  animation: noise-animation 5s ease-in-out infinite;
}
