

html, body {
  height: 160%;
  margin: 0;
}

body {
  background-image:url("images/backgroundHome.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: rgb(255, 255, 255);
}

header {
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  gap: 40px;
  position: fixed;
  width: 100%;
  padding: 10px 40px;
  box-sizing: border-box;
}

h1 {
  font-family: 'Arial', sans-serif;
  font-size: 20px;
}
.left {
  margin-right: auto;
  margin-left: 20px;
  cursor: default;
}

.headerItem {
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.headerItem:hover,
.headerItem a:hover {
  color: rgb(152, 122, 221);
  transform: translateX(5px);
}

.headerItem a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}



.box-portfolio {
  background: rgba(26, 25, 25, 0.8);
  color: #fff;
  padding: 48px 64px;
  border-radius: 24px;
  max-width: 900px;
  min-height: 40vh;
  margin: 80px auto 40px auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.box-portfolio h2 {
  font-size: 3.5rem;
  margin-bottom: 32px;
}

.box-portfolio p {
  font-size: 2rem;
  line-height: 1.7;
}

.front-content {
  padding-top: 80px;
}



/* Skills grid section */
.skills-section {
  margin: 220px auto 60px auto;
  max-width: 900px;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px;
  justify-items: center;
  margin-top: 32px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 20px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.skill-item img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.skill-item span {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 4px;
}

.skills-section h2 {
  color: black;
  font-size: 3rem;
}

/* Contact section layout */
.contact-section {
  max-width: 900px;
  margin: 180px auto 0 auto;
  text-align: center;
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(152, 122, 221, 0.8) 0%, rgba(152, 122, 221, 0.4) 70%, rgba(152, 122, 221, 0) 100%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(152, 122, 221, 0.6);
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.contact-section h2 {
  margin-bottom: 32px;
  font-size: 3rem;
  color: black;
}

.contact-boxes {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: stretch;
}

.contact-box {
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 0;
  flex: 1 1 0;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  color: #fff;
}

.contact-box .locationMarker {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 50%;
}

.contact-box p {
  font-size: 1.4rem;
}

.contact-box a {
  display: inline-block;
  background: #8c52ff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 16px;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  header {
    gap: 20px;
    padding: 10px 16px;
  }
  .box-portfolio {
    padding: 32px 10px;
    max-width: 98vw;
  }
  .skills-section, .contact-section {
    max-width: 98vw;
    margin-left: 1vw;
    margin-right: 1vw;
  }
  .skills-grid {
    gap: 8px;
    justify-content: center;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .skill-item img {
    width: 100px;
    height: 100px;
  }
  .contact-boxes {
    gap: 16px;
  }
  .contact-box {
    padding: 20px 8px;
    min-width: 120px;
    max-width: 100%;
  }
}


@media (max-width: 675px) {
  .box-portfolio {
    padding: 12px 2vw;
    font-size: 1rem;
    max-width: 98vw;
    border-radius: 14px;
  }
  .box-portfolio h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  .box-portfolio p {
    font-size: 1rem;
    line-height: 1.3;
  }
    .box-portfolio {
    padding: 12px 2vw;
    font-size: 1rem;
    max-width: 98vw;
    border-radius: 14px;
  }
  .box-portfolio h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  .box-portfolio p {
    font-size: 1rem;
    line-height: 1.3;
  }
}



@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 4px;
  }
  h1 {
    font-size: 16px;
  }
  .left {
    margin-left: 4px;
  }
  .box-portfolio {
    padding: 8px 1vw;
    font-size: 0.9rem;
    max-width: 98vw;
    border-radius: 12px;
  }
  .box-portfolio h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  .box-portfolio p {
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .skills-section h2, .contact-section h2 {
    font-size: 1.5rem;
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .skill-item img {
    width: 60px;
    height: 60px;
  }
  .contact-boxes {
    flex-direction: column;
    gap: 30px;
  }
  .contact-box {
    padding: 12px 4px;
    min-width: 0;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-section {
    margin-bottom: 100px;
  }
}

/* Cursor Glow Effect */
.cursor-glow {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(152, 122, 221, 0.8) 0%, rgba(152, 122, 221, 0.4) 70%, rgba(152, 122, 221, 0) 100%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(152, 122, 221, 0.6);
  transform: translate(-50%, -50%);
  z-index: 9999;
}


@media (max-width: 400px) {
  header {
    gap: 8px;
    padding: 6px 2vw;
  }
  h1 {
    font-size: 13px;
  }
  .left {
    margin-left: 2px;
  }
}
