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

html {
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  background-color:  initial;
  color: rgb(214, 214, 214);
}

/* ---------- Navigation---------- */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #542881;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#name {
  margin: 0 20px;
  font-size: 1.2rem;
  color: white;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 20px;
  flex-wrap: wrap;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #FFD700;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* ---------- Content ---------- */
.inside {
    background-color: rgba(5, 4, 13, 0.4);
    width: 80%;
    max-width: 1200px;
    margin: 120px auto 40px auto;
    border-radius: 20px;
    padding: 60px;
}

.basic_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}

#text_block {
    max-width: 500px;
}

.icon {

    max-width: 300px;
    height: auto;
}

#welcome {
    margin-top: 60px;

}

.aboutMe1 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aboutMe2 {
    margin-top: 50px;
}
.headings{
    display: flex;
    justify-content: center;
}
.AboutProjects{
    width: 800px;
    display: flex;
    justify-self: center;
}
.outlineElectronics{
    width: 800px;
    display: flex;
    justify-self: left;
    word-spacing: 3px;
    line-height: 1.1;
}
#projects{
  margin-top: 50px;
}
h1 {
  margin: 0 0 10px 0;
}

h2 {
  margin: 0;
}

h3 {
  margin: 0;
  max-width: 700px;
}

p {
  font-weight: 700;
}

.logoImages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
    width: auto;
    margin-top: 50px;
}

.logo, .logo2{
  width: 100%;
  max-width: 130px;
  height: auto;
  object-fit: contain;
}
.playBut {
  height: 60px;
  width: 200px;
  border: none;
  outline: none;
  color: rgb(214, 214, 214);
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  font-family: 'Raleway', sans-serif;
  filter: blur(0px);
  background: linear-gradient(45deg, #ff0000, #d34587, #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 20px;
}



.playBut:before {
  position: absolute;
  content: '';
  top: -2px;
  left: -2px;
  height: calc(100% + 4px);
  width: calc(100% + 4px);
  z-index: -1;
  filter: blur(5px);
  background: linear-gradient(45deg, #ff0000,#d34587,  #002bff, #7a00ff, #ff00c8, #ff0000);
  background-size: 400%;
  transition: opacity .10s ease-in-out;
  animation: animate 50s linear infinite;
}

.playBut:hover:before {
  opacity: 1;
}

.playBut:hover:active {
  background: none;
}

.playBut:hover:active:before {
  filter: blur(2px);
}

@keyframes animate {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}
/* ---------- Adaptive ---------- */
@media (max-width: 1024px) {
  .inside {
    width: 90%;
    padding: 40px 20px;
  }

  .basic_info {
    flex-direction: column;
    text-align: center;
  }

  .text_block {
    max-width: 100%;
  }

  .icon {
    margin-top: 20px;
    max-width: 200px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
    max-width: 100%;
  }

  .logo, .logo2 {
    max-width: 100px;
  }
  .burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

  .nav-list {
    flex-direction: column;
    margin-top: 10px;
  }

  .nav-item {
    margin: 10px 0;
  }
}


.burger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #542881;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1rem;
  }
  .icon {
    max-width: 150px;
  }
  .logo, .logo2 {
    max-width: 70px;
  }
}
