@font-face {
    font-family: "browserFont";
    src: url("../fonts/text.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Basic body setup */
body {
  margin: 0;
  padding: 0;
  font-family: browserFont;
  background: black;
  color: white;
  min-height: 100vh;
  overflow: hidden; /* prevent scrolling while loading */
}

/* Loader container fills screen and centers contents */
.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* White loader box in the center */
.loader-box {
  background: white;
  padding: 40px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circular progress */
.circular-progress {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(#000 0deg, #ededed 0deg);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background 0.3s ease;
}

.circular-progress::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 50%;
}

.progress-value {
  position: relative;
  font-size: 2rem;
  color: #000000;
  font-weight: bold;
}

.text {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #444;
}

/* Loader bounce up animation */
@keyframes bounceUp {
  0%   { transform: translateY(0);     opacity: 1; }
  50%  { transform: translateY(-30px); opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

.bounce-up {
  animation: bounceUp 1s ease forwards;
}

/* Fade in animation for content */
.portfolio-content, .main-content {
  padding-top: 100px; /* space for header */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: black;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-hidden {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.header-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation styles */

nav {
  width: 100%;
}

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  font-size: 30px;
  font-weight: bold;
}

a {
  text-decoration: none;
  color: white;
}

.navigation li a:hover {
  color: #cdff8c;
}

.linkedin {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-image: url("../Images/General/LinkedinLogo.png");
  background-size: contain;
  vertical-align: middle;
}

.linkedin:hover {
  background-image: url("../Images/General/LinkedinLogoSelected.png");
}

.navigation li {
  display: inline-block;
  flex-wrap: wrap;
  margin: 0 15px;
}

/* Responsive for smaller screens */

@media screen and (max-width: 722px) {
  .portfolio-content, .main-content {
    margin-top: 200px;
  }
}