
* {
    box-sizing: border-box;
}

body {
    margin: 0;
       background: url(https://media.tenor.com/BYld8ESOSXUAAAAC/blue-nightsky.gif);
       background-size: cover;
    color: linear-gradient(whitesmoke, gray);
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.particle-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* Base style for particle layers */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Layer 1: Small, slow-moving background particles */
.layer-1 {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: transparent;
  /* Multi-layered shadows create multiple distinct spots from a single element */
  box-shadow: 
    15vw 10vh #ffffff, 35vw 45vh rgba(255,255,255,0.7), 75vw 20vh #ffffff,
    85vw 70vh rgba(255,255,255,0.4), 25vw 80vh #ffffff, 60vw 55vh #ffffff,
    45vw 90vh rgba(255,255,255,0.6), 90vw 10vh #ffffff, 10vw 60vh #ffffff;
  animation: floatUp 25s linear infinite;
}

/* Layer 2: Medium-sized, faster midground particles */
.layer-2 {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 
    20vw 30vh rgba(255,255,255,0.8), 50vw 15vh #ffffff, 80vw 65vh rgba(255,255,255,0.5),
    40vw 75vh #ffffff, 70vw 35vh #ffffff, 10vw 85vh rgba(255,255,255,0.9);
  animation: floatUp 18s linear infinite;
}

/* Layer 3: Large, fast foreground particles */
.layer-3 {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 
    30vw 50vh #ffffff, 65vw 25vh rgba(255,255,255,0.6), 85vw 85vh #ffffff,
    15vw 20vh rgba(255,255,255,0.5);
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    /* Translates upward past the view boundary with a minor rightward sway */
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://i.gifer.com/h01.gif);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  
  /* Animation to fade out and hide after 2 seconds */
  animation: fadeOut 0.5s ease-in-out forwards;
  animation-delay: 2s; 
}

/* 3. Loader Content Alignment */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Space between spinner and text */
}

/* 4. The Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid black; /* Darker track */
  border-top: 5px solid white; /* Blue spinning part */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 5. Loading Text */
.loading-text {
  color: #ffffff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 0;
}

/* 6. Keyframe Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  99% {
    opacity: 0;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden; /* Prevents clicking on the hidden layer */
  }
}


#all-contents {
  max-width: 1500px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 40px;
}

main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.6fr);
  align-items: center;
  min-height: calc(100vh - 160px);
  gap: clamp(32px, 5vw, 80px);
}

.sidebar {
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

h2 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color:black;
}

.content > p {
  margin: 0;
  color: whitesmoke;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
}

h2 {
  color: whitesmoke; /* bright accent */
}

.content p {
  color: whitesmoke;
}

#interests {
  margin-top: 32px;
  width: 100%;
}

#interests h3 {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #aaa;
}

#interests ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#interests li {
  color: whitesmoke;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 20px;
  background: linear-gradient(135deg, black, midnightblue);
  border: 1px solid #ddd;
  border-radius: 100px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  cursor: default;
}

#interests li:hover {
  background: linear-gradient(135deg, black, cyan);
  color: whitesmoke;
  border-color: whitesmoke;
  transform: translateY(-2px);
}

.sidebar-img {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  filter: grayscale(100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition:
    filter 0.4s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.sidebar-img:hover {
  filter: grayscale(0%);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  padding: 16px 24px;
  background: linear-gradient(145deg, black, midnightblue);
  border: 1px solid whitesmoke;
  border-radius: 12px;
}

nav h1 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: whitesmoke;
}

#nav-ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-li a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.nav-li a:hover {
  background: linear-gradient(135deg, black, midnightblue);
  color: #fff;
}
/* Portfolio styles */
.content h1 {
  color: white;
}

#portfolio {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#portfolio li {
  border-radius: 12px;
  overflow: hidden;
}

#portfolio a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: black;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 500;
  background: midnightblue;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#portfolio a:hover {
  background: linear-gradient(135deg, black, midnightblue);
  color: #fff;
  transform: translateX(4px);
}

#portfolio a::after {
  content: "->";
  font-size: 0.85rem;
  opacity: 0.4;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

#portfolio a:hover::after {
  opacity: 1;
}
