:root {
  --main-text-color: #F6B17A; /* Yellow */
  --background-color: #222831; /* Black */
  --selection-text-color: #211830;
  --selection-background-color: #519975;
  --cursor-color: #73ABAD;
  --cursor-background-color: #73ABAD;
  --liner-color: #d4d474;
  --index-color: #DCDCCC;
  --color2: #a7dbde;
  --command-color: #ED7D31;
  --command-text-shadow: #8b8175;
  --error-color: #B89076;
  --white-color: #ffffff;
  --inherit-link-color: #ff5d00;
  --link-hover-background-color: #73ABAD;
  --link-hover-color: #211830;
  --command-text-color: #FB8B24;
}

body {
  margin: 0;
  padding: 15px 20px;
  min-height: 99%;
  width: 100%;
  min-width: 550px;
  color: var(--main-text-color);
  background: var(--background-color);
  font-family: cursor, monospace;
  overflow-x: hidden;
}


::selection {
  color: var(--selection-text-color);
  background-color: var(--selection-background-color);
}

::-moz-selection {
  color: var(--selection-text-color);
  background-color: var(--selection-background-color);
}

/* Textarea styles */
textarea {
  left: -1000px;
  position: absolute;
}

/* Bold styles */
b {
  font-weight: bold;
  text-decoration: underline;
}

/* Cursor styles */
.cursor {
  font-size: 12px;
  color: var(--cursor-color);
  background-color: var(--cursor-background-color);
  position: relative;
  opacity: 1;
  height: 1.5em;
  width: 10px;
  max-width: 10px;
  transform: translateY(4px);
  overflow: hidden;
  text-indent: -5px;
  display: inline-block;
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% {
      opacity: 0;
  }
}

/* Command and liner styles */
#command {
  cursor: text;
  height: 50px;
  color: var(--command-text-color);
}

#liner {
  line-height: 1.3em;
  margin-top: -2px;
  animation: show 0.5s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

#liner::before {
  color: var(--liner-color);
  content: "arya@about-me:~$";
}

#liner.password::before {
  content: "Password:";
}

@keyframes show {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

/* Paragraph styles */
p {
  display: block;
  line-height: 1.3em;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.05em;
  animation: typing 0.5s steps(30, end);
}

.no-animation {
  animation: typing 0 steps(30, end);
}

.margin {
  margin-left: 0px;
}

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

/* Index, color2, command, error, and white styles */
.index {
  color: var(--index-color);
}

.color2 {
  color: var(--color2);
}

.command {
  color: var(--command-color);
  text-shadow: 0 0 4px var(--command-text-shadow);
}

.error {
  color: var(--error-color);
}

.white {
  color: var(--white-color);
}

/* Inherit, a, a:hover, and a:focus styles */
.inherit,
a {
    color: var(--inherit-link-color);
}

a {
    text-decoration: inherit;
}

a:hover {
    background: var(--link-hover-background-color);
    color: var(--link-hover-color);
}

a:focus {
    outline: 0;
}

/* Whois styles */
.whois {
  white-space: pre-line;
  margin-right: 40px;
  text-align: justify;
}

@media only screen and (max-width: 640px) {
  .whois {
      white-space: pre-line;
      text-align: justify;
  }

  .intro {
      justify-content: center;
      text-align: justify;
  }
}

@media only screen and (max-width: 640px) {
  body {
      margin: 0;
      padding: 15px 10px;
      min-height: 99%;
      width: 100%;
      min-width: 320px;
  }

  #command {
      font-size: 14px;
      line-height: 30px;
  }

  p {
      font-size: 12.5px;
  }

  .cursor {
      font-size: 12px;
  }

  textarea {
      left: -1000px;
      position: absolute;
      font-size: 12.5px;
  }

  .whois-info {
      font-size: 13px;
  }

  .whois-loading,
  .whois-error {
      font-size: 13px;
  }
}

.whois-info {
  color: #DCDCCC;
  font-size: 14px;
  margin-top: 10px;
}

.whois-info span {
  color: #B89076;
}

.whois-info a {
  color: #73ABAD;
  text-decoration: underline;
}

.whois-info a:hover {
  color: #519975;
}

.whois-loading {
  margin-top: 10px;
  color: #DCDCCC;
  font-size: 14px;
  text-align: center;
}

.whois-error {
  margin-top: 10px;
  color: #B89076;
  font-size: 14px;
  text-align: center;
}

/* Enhanced visual effects */
.glitch {
  animation: glitch 0.3s ease-in-out infinite alternate;
}

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

.holographic {
  background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080, #00ffff);
  background-size: 400% 400%;
  animation: holographic 2s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes holographic {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.particle-effect {
  position: relative;
  overflow: hidden;
}

.particle-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: particle 2s infinite;
}

@keyframes particle {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced cursor effects */
.cursor.trail {
  box-shadow: 0 0 10px var(--cursor-color), 0 0 20px var(--cursor-color), 0 0 30px var(--cursor-color);
  animation: cursorTrail 1s ease-in-out infinite alternate;
}

@keyframes cursorTrail {
  0% { box-shadow: 0 0 10px var(--cursor-color), 0 0 20px var(--cursor-color), 0 0 30px var(--cursor-color); }
  100% { box-shadow: 0 0 20px var(--cursor-color), 0 0 30px var(--cursor-color), 0 0 40px var(--cursor-color); }
}

/* Auto-complete styling */
.autocomplete-suggestion {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--cursor-color);
  padding: 2px 6px;
  margin: 2px;
  border-radius: 3px;
  display: inline-block;
  font-size: 0.9em;
}

/* Theme-specific enhancements */
.theme-matrix {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 255, 0, 0.05) 0%, transparent 50%);
}

.theme-cyberpunk {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
}

.theme-retro {
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 0, 0.1) 2px, rgba(255, 255, 0, 0.1) 4px);
}

.theme-hacker {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 49%, rgba(0, 212, 255, 0.05) 50%, transparent 51%);
  animation: hackerGlow 3s ease-in-out infinite alternate;
}

@keyframes hackerGlow {
  0% { 
    filter: hue-rotate(0deg) brightness(1);
  }
  100% { 
    filter: hue-rotate(30deg) brightness(1.1);
  }
}

/* Responsive improvements */
@media only screen and (max-width: 768px) {
  .holographic {
    animation-duration: 3s;
  }
  
  .glitch {
    animation-duration: 0.5s;
  }
}

/* Haptic feedback simulation */
.haptic-feedback {
  animation: haptic 0.1s ease-in-out;
}

@keyframes haptic {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Loading animations */
.loading-dots::after {
  content: '';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Success animations */
.success-flash {
  animation: successFlash 0.5s ease-in-out;
}

@keyframes successFlash {
  0% { background-color: transparent; }
  50% { background-color: rgba(0, 255, 0, 0.2); }
  100% { background-color: transparent; }
}
