* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: 0;
  scroll-behavior: smooth;
  font-family: Arial, Helvetica, sans-serif;
}
/*
--bg-color: #080808;
    --second-bg-color: hsl(0, 0%, 11%);
    --text-color: #C5C6C7;
    --main-color: #00ffee;
*/
:root {
  --bg-color: #0a0f1a;
  --second-bg-color: #181c2f;
  --text-color: #e0e0e0;
  --main-color: #00fff7;
  --accent-color: #ff29e6;
  --glitch-color: #ff29e6;
}
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
}
body,
html {
  position: relative;
  z-index: 1;
}
html {
  font-size: 60%;
  overflow: auto;
}
body {
  background: linear-gradient(
    135deg,
    var(--bg-color) 60%,
    var(--second-bg-color) 100%
  );

  background-blend-mode: overlay;
  background-size: cover, 320px 320px;
  color: var(--text-color);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 12% 4rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.logo {
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}
.logo:hover {
  transform: scale(1.1);
}
.logo span {
  text-shadow: 0 0 25px var(--main-color);
}
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}
.navbar a:hover {
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}
section {
  min-height: 100vh;
  padding: 10rem 12% 10rem;
}
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}
.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}
span {
  color: var(--main-color);
}
.logo span {
  color: var(--main-color);
}
.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}
.home-content h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}
.home-img {
  border-radius: 50%;
}
.home-img img {
  position: relative;
  top: 3rem;
  width: 32vw;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: 0.4s ease-in-out;
}
.home-img img:hover {
  box-shadow: 0 0 5px var(--main-color), 0 0 20px var(--main-color),
    0 0 50px var(--main-color);
}
.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}
.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}
/* Buttons */
.btn,
button,
input[type="submit"] {
  background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  color: #fff;
  border: none;
  border-radius: 2.5rem;
  box-shadow: 0 0 8px var(--main-color), 0 0 12px var(--accent-color); /* LESS glow */
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 1.2rem 3.5rem;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s, background 0.3s, color 0.3s, transform 0.2s;
  outline: none;
  margin: 0.5rem 1rem 0.5rem 0;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: linear-gradient(90deg, var(--accent-color), var(--main-color));
  color: #fff;
  box-shadow: 0 0 16px var(--main-color), 0 0 20px var(--accent-color); /* LESS glow on hover */
  transform: scale(1.05);
}

/* Timeline and Service Boxes */
.timeline-content,
.service-box,
.project-card {
  box-shadow: 0 0 8px var(--main-color), 0 0 6px var(--accent-color) inset; /* LESS glow */
}

.timeline-content:hover,
.service-box:hover,
.project-card:hover {
  box-shadow: 0 0 0 var(--main-color), 0 0 16px var(--accent-color) inset; /* LESS glow on hover */
}

/* Project path animation */
.project-path {
  box-shadow: 0 0 6px var(--main-color);
  opacity: 0.5;
}

/* Headings */
h2,
.heading {
  color: var(--main-color) !important;
  text-shadow: 0 0 4px var(--main-color), 0 0 8px var(--accent-color); /* LESS glow */
}
@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}
@keyframes words {
  0%,
  20% {
    content: "Software engineer";
  }
  21%,
  40% {
    content: "Web developer";
  }
  41%,
  60% {
    content: "Front-end developer";
  }
  61%,
  80% {
    content: "Hybrid athlete";
  }
  81%,
  100% {
    content: "Taekwondo black belt";
  }
}
@keyframes typing {
  10%,
  15%,
  30%,
  35%,
  50%,
  55%,
  70%,
  75%,
  90%,
  95% {
    width: 0;
  }
  5%,
  20%,
  25%,
  40%,
  45%,
  60%,
  65%,
  80%,
  85% {
    width: calc(100% + 8px);
  }
}
.heading {
  font-size: 8rem;
  text-align: center;
  margin: 5rem 0;
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--main-color);
  position: relative;
  text-shadow: 0 0 8px var(--main-color), 2px 0 var(--accent-color),
    -2px 0 var(--glitch-color);
  animation: glitch 1.5s infinite linear alternate-reverse;
}
.glitch-heading {
  font-size: 4rem;
  text-align: left;
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--main-color);
  position: relative;
  text-shadow: 0 0 8px var(--main-color), 2px 0 var(--accent-color),
    -2px 0 var(--glitch-color);
  animation: glitch 1.5s infinite linear alternate-reverse;
}
@keyframes glitch {
  0% {
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--glitch-color);
  }
  20% {
    text-shadow: -2px 0 var(--accent-color), 2px 0 var(--glitch-color);
  }
  40% {
    text-shadow: 2px 2px var(--accent-color), -2px -2px var(--glitch-color);
  }
  60% {
    text-shadow: -2px -2px var(--accent-color), 2px 2px var(--glitch-color);
  }
  80% {
    text-shadow: 2px 0 var(--accent-color), -2px 0 var(--glitch-color);
  }
  100% {
    text-shadow: -2px 0 var(--accent-color), 2px 0 var(--glitch-color);
  }
}
.education {
  padding: 100px 15px;
  background: var(--second-bg-color);
}
.education h2 {
  margin-bottom: 5rem;
}
.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--main-color);
  left: calc(50% - 1px);
}
.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}
.timeline-dot {
  height: 21px;
  width: 21px;
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  position: absolute;
  left: calc(50% - 8px);
  border-radius: 50%;
  top: 10px;
}
.timeline-date {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 6px 0 15px;
}
.timeline-content {
  background: rgba(10, 15, 26, 0.92); /* Opaque, not see-through */
  border: 2.5px solid var(--main-color);
  border-radius: 2.5rem;
  box-shadow: 0 0 24px var(--main-color), 0 0 12px var(--accent-color) inset;
  padding: 2rem 1.5rem;
  margin: 1.5rem 0;
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text-color);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
  z-index: 2;
}
.timeline-content:hover {
  box-shadow: 0 0 0 var(--main-color), 0 0 32px var(--accent-color) inset;
  /* No transform for subtle effect, or keep if you want scale: */
  /* transform: scale(1.03); */
}
.timeline-content h3 {
  font-size: 2.1rem;
  color: var(--main-color);
  margin-bottom: 1rem;
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  text-shadow: 0 0 8px var(--main-color), 2px 0 var(--accent-color);
  letter-spacing: 1px;
}
.timeline-content p {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
  word-break: break-word;
  margin: 0;
}

::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
}
::-webkit-scrollbar-track {
  background-color: var(--bg-color);
  width: 50px;
}
.services {
  background: var(--second-bg-color);
  color: white;
}
.services h2 {
  margin-bottom: 5rem;
  color: white;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2.5rem;
}
.service-box {
  background: rgb(10, 15, 26); /* Fully opaque */
  border: 2px solid var(--main-color);
  box-shadow: 0 0 24px var(--main-color), 0 0 8px var(--accent-color) inset;
  transition: box-shadow 0.3s;
}
.service-box:hover {
  box-shadow: 0 0 0 var(--main-color), 0 0 32px var(--accent-color) inset;
}
.service-box .service-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 2rem 2rem;
  width: 100%;
  box-sizing: border-box;
}
.service-info h4 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 2;
}
.service-info p {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  word-break: break-word;
  max-width: 100%;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolone */
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.photos img,
.photos video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px var(--main-color);
  transition: transform 0.3s ease-in-out;
}

.photos img:hover,
.photos video:hover {
  transform: scale(1.05);
}

.photos video {
  margin-top: 20px;
}
.testimonials,
.testimonials-box {
  background: transparent;
}
.testimonials-box {
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.testimonials .heading {
  margin-bottom: 5rem;
}
.testimonials-box img {
  width: 15rem;
  border-radius: 50%;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
}
.wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.testimonials-item {
  min-height: 550px;
  max-width: 450px;
  background: rgba(10, 15, 26, 0.92); /* Opaque, not see-through */
  border: black;
  border-radius: 2rem;
  margin: 0 2rem;
  padding: 30px 60px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  color: white;
  transition: 0.4s ease-in-out;
}
.testimonials-item:hover {
  border: 3px solid var(--main-color);
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 50px var(--main-color);
}
.testimonials-item h2 {
  font-size: 2.8rem;
}
.testimonials-item p {
  font-size: 1.3rem;
}
#star {
  color: gold;
  font-size: 2rem;
}
.contact {
  background-color: var(--second-bg-color);
}
.contact h2 {
  margin-bottom: 3rem;
  color: white;
}
.contact form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
}
.contact form .input-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background: #181c2f;
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
  box-shadow: 0 0 12px var(--main-color);
  transition: box-shadow 0.3s, border-color 0.3s;
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 24px var(--accent-color), 0 0 12px var(--main-color);
  background: #181c2f;
  color: var(--main-color);
}

.contact form .btn {
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--main-color), var(--accent-color));
  color: #ffffff;
  border: none;
  box-shadow: 0 0 24px var(--main-color), 0 0 32px var(--accent-color);
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  letter-spacing: 2px;
  border-radius: 2rem;
  font-size: 2rem;
  font-weight: 700;
  padding: 1.2rem 3.5rem;
  transition: box-shadow 0.3s, background 0.3s, color 0.3s;
}

.contact form .btn:hover {
  background: linear-gradient(90deg, var(--accent-color), var(--main-color));
  color: #fff;
  box-shadow: 0 0 40px var(--main-color), 0 0 60px var(--accent-color);
  transform: scale(1.05);
}
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: var(--bg-color);
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}
.footer .social a {
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}
.footer .social a:hover {
  transform: scale(1.2) translateY(-10px);
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}
.footer ul {
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a {
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover {
  border-bottom: 3px solid var(--main-color);
}
.footer ul li {
  display: inline-block;
  padding: 0 15px;
}
.footer .copyright {
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: white;
}
@media (max-width: 1285px) {
  html {
    font-size: 55%;
  }
  .services-container {
    padding-bottom: 7rem;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 5rem;
  }
}
@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .timeline-items::before {
    left: 7px;
  }
  .timeline-item:nth-child(odd) {
    padding-right: 0;
    text-align: left;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 37px;
  }
  .timeline-dot {
    left: 0;
  }
  .services {
    padding-bottom: 7rem;
  }
  .testimonials .wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
  .contact form {
    flex-direction: column;
  }
  .footer {
    padding: 2rem 3%;
  }
}
@media (max-width: 895px) {
  #menu-icon {
    display: block;
    cursor: pointer;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 3%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .navbar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
    color: white;
  }

  .home {
    flex-direction: column-reverse;
    margin: 5rem 4rem;
  }
  .home-content h3 {
    font-size: 2.6rem;
  }
  .home-content h1 {
    font-size: 8rem;
    margin-top: 3rem;
  }
  .home-content p {
    max-width: 600px;
    margin: 0 auto;
  }
  .home-img img {
    width: 56vw;
  }
  .services h2 {
    margin-bottom: 3rem;
  }
  .services-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .service-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }
  .service-box .service-info {
    padding: 1.2rem 1rem;
  }
  .service-info h4 {
    font-size: 1.3rem;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    text-align: left;
  }
  .service-info p {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
  }
  .testimonials-box img {
    width: 20rem;
  }
  .testimonials-item h2 {
    font-size: 3.3rem;
  }
  .testimonials-item p {
    font-size: 2rem;
  }
  .testimonials .heading {
    font-size: 6.5rem;
    margin-top: -10%;
  }
}
.services h4,
.services p,
.service-box {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Main section titles in cyberpunk blue */
h2,
.heading {
  color: var(--main-color) !important;
  text-shadow: 0 0 12px var(--main-color), 0 0 24px var(--accent-color);
}
.projects {
  background: transparent;
  padding: 6rem 0 4rem 0;
}
.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}
.project-card {
  background: rgba(10, 15, 26, 0.92);
  border: 2.5px solid var(--main-color);
  border-radius: 2.5rem;
  box-shadow: 0 0 0 transparent, 0 0 12px var(--accent-color) inset; /* No outside glow */
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  max-width: 420px;
  min-width: 320px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.project-card:hover {
  box-shadow: 0 0 0 transparent, 0 0 24px var(--accent-color) inset; /* No outside glow on hover */
  transform: scale(1.03);
}
.project-card h3 {
  font-family: "Orbitron", "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--main-color);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-shadow: none; /* Only blue, no glow/accent */
  letter-spacing: 1px;
  text-align: center;
}
.project-card p {
  font-size: 1.4rem;
}
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@keyframes cyber-path {
  0% {
    filter: blur(0px);
  }
  100% {
    filter: blur(4px);
  }
}
@media (max-width: 900px) {
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-card {
    max-width: 95vw;
    min-width: 0;
  }
}
