#profile{
  margin-top: 5vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  gap: 3rem;
  position: relative;
  overflow: hidden;
}

/* Depth Layers - Floating Elements */
#profile::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid var(--highlight-color);
  border-radius: 50%;
  opacity: 0.1;
  top: 20%;
  left: 10%;
  animation: floatSlow 20s ease-in-out infinite;
}

#profile::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--blue-accent);
  opacity: 0.1;
  top: 60%;
  right: 15%;
  animation: floatSlow 15s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(5deg); }
  50% { transform: translate(-15px, 20px) rotate(-5deg); }
  75% { transform: translate(30px, 10px) rotate(3deg); }
}

/* Geometric shapes in background */
.depth-layer {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
}

.depth-layer-1 {
  width: 150px;
  height: 150px;
  border: 2px solid var(--highlight-color);
  top: 10%;
  right: 20%;
  animation: floatSlow 18s ease-in-out infinite;
  transform: rotate(45deg);
}

.depth-layer-2 {
  width: 100px;
  height: 100px;
  border: 2px solid var(--blue-accent);
  bottom: 20%;
  left: 15%;
  animation: floatSlow 22s ease-in-out infinite reverse;
}

.depth-layer-3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accompany-color);
  top: 50%;
  left: 5%;
  animation: floatSlow 25s ease-in-out infinite;
}

.name{
  width: 100%;
  text-align: center;
  margin: 3rem 0;
}

#profile p {
  margin: 0.5rem 2rem;
}

/* Intense Name Glitch with Chromatic Aberration */
#moses, #saruni {
  font-family: 'Courier New', monospace;
  color: var(--highlight-color);
  text-shadow: 
    0 0 10px var(--highlight-color),
    0 0 20px var(--highlight-color),
    0 0 30px var(--highlight-color);
  background-color: rgba(0, 0, 0, 0.8);
  border: 3px solid var(--complement-color);
  padding: 1.5rem 2.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
  margin: 0 0.5rem;
}

/* Chromatic Aberration Effect */
#moses::before, #moses::after,
#saruni::before, #saruni::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem 2.5rem;
  background-color: transparent;
  overflow: hidden;
}

#moses::before, #saruni::before {
  left: 2px;
  text-shadow: -3px 0 var(--accompany-color);
  animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
}

#moses::after, #saruni::after {
  left: -2px;
  text-shadow: 3px 0 var(--blue-accent);
  animation: glitch-anim-2 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(40% 0 61% 0); }
  20% { clip-path: inset(92% 0 1% 0); }
  40% { clip-path: inset(43% 0 1% 0); }
  60% { clip-path: inset(25% 0 58% 0); }
  80% { clip-path: inset(54% 0 7% 0); }
  100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(25% 0 58% 0); }
  20% { clip-path: inset(54% 0 7% 0); }
  40% { clip-path: inset(58% 0 43% 0); }
  60% { clip-path: inset(40% 0 61% 0); }
  80% { clip-path: inset(92% 0 1% 0); }
  100% { clip-path: inset(43% 0 1% 0); }
}

/* Intense Glitch on Hover */
#moses:hover, #saruni:hover {
  background-color: var(--complement-color);
  color: var(--primary-color);
  text-shadow: none;
  animation: intenseGlitch 0.3s;
  transform: scale(1.05);
}

@keyframes intenseGlitch {
  0%, 100% { transform: translate(0) scale(1.05); }
  20% { transform: translate(-5px, 2px) scale(1.05); }
  40% { transform: translate(-5px, -2px) scale(1.05); }
  60% { transform: translate(5px, 2px) scale(1.05); }
  80% { transform: translate(5px, -2px) scale(1.05); }
}

#terminal{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

#hobbies {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  padding: 5% 10%;
  overflow: hidden;
}

#hobbies h2 {
  font-size: 4rem;
  line-height: 1;
  margin: 0;
  padding: 0.5rem 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  position: relative;
}

#hobbies h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.5rem;
  height: 2px;
  background-color: var(--highlight-color);
  box-shadow: 0 0 10px var(--highlight-color);
}

#hobbies h2:nth-child(odd) {
  align-self: flex-start;
}

#hobbies h2:nth-child(even) {
  align-self: flex-end;
}

#code{
  color: var(--complement-color);
}

.hobby-item {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 1rem;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(20, end) forwards;
  font-size: 1.2rem;
  color: var(--highlight-color);
  text-shadow: 0 0 8px var(--highlight-color);
}

.hobby-item::before {
  content: '> ';
  color: var(--blue-accent);
}

.hobby-item::after {
  content: '_';
  position: absolute;
  right: 0;
  animation: blink 0.7s infinite;
  color: var(--highlight-color);
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { opacity: 0 }
}

/* Skill Icons - Orbit System */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.floatIcon {
  animation: float 3s ease-in-out infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 5px var(--highlight-color));
}

.floatIcon:hover {
  transform: scale(1.3) translateY(-5px);
  filter: drop-shadow(0 0 15px var(--highlight-color));
  color: var(--blue-accent);
}

.floatIcon:nth-child(2n) {
  animation-delay: 0.5s;
}

.floatIcon:nth-child(3n) {
  animation-delay: 1s;
}

.floatIcon:nth-child(4n) {
  animation-delay: 1.5s;
}

/* Pulse effect when hovering skills section */
.skill-icons:hover .floatIcon {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media screen and (max-width:800px) {
  #profile{
    padding-left: 0;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  #profile p{
    width: 100%;
    margin: 0.5rem 0;
  }
  
  #hobbies{
    margin-top: 10%;
    padding: auto 0;
  }
  
  #moses, #saruni {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    margin: 0.25rem;
  }
  
  #moses::before, #moses::after,
  #saruni::before, #saruni::after {
    padding: 1rem 1.5rem;
  }
}