@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

/* Catppuccin Mocha Color Palette */
:root {
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--ctp-base);
  color: var(--ctp-text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.4;
  font-size: 14px;
}

.terminal {
  background: var(--ctp-base);
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}

.terminal-content {
  max-width: 100%;
}

/* Boot sequence */
.boot-sequence {
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in;
}

.boot-line {
  margin-bottom: 4px;
  color: var(--ctp-subtext1);
}

.boot-line.empty-line {
  height: 14px;
}

.typed-text {
  color: var(--ctp-text);
}

.password-dots {
  color: var(--ctp-overlay0);
}

/* Command line styling */
.command-line {
  margin: 20px 0 10px 0;
  font-weight: 500;
}

.prompt {
  display: inline-block;
}

.user {
  color: var(--ctp-mauve);
  font-weight: 600;
}

.hostname {
  color: var(--ctp-blue);
  font-weight: 600;
}

.path {
  color: var(--ctp-green);
  font-weight: 600;
}

.command {
  color: var(--ctp-yellow);
  font-weight: 500;
}

/* Sections */
.section {
  display: block;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.section:nth-child(2) {
  animation-delay: 0.2s;
}

.section:nth-child(3) {
  animation-delay: 0.4s;
}

.section:nth-child(4) {
  animation-delay: 0.6s;
}

/* Collapsible sections */
.collapsible-section .section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.collapsible-section.expanded .section-content {
  max-height: 2000px;
  opacity: 1;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.section-header:hover {
  background: var(--ctp-surface0);
  transform: translateX(5px);
}

.arrow-button {
  margin-left: 20px;
  padding: 5px 10px;
  /*background: var(--ctp-surface1);*/
  border-radius: 4px;
  transition: all 0.3s ease;
  /*border: 1px solid var(--ctp-surface2);*/
}

.arrow-button:hover {
  background: var(--ctp-surface2);
  border-color: var(--ctp-overlay0);
  /*box-shadow: 0 0 10px var(--ctp-mauve);*/
}

.arrow {
  color: var(--ctp-mauve);
  font-size: 12px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.collapsible-section.expanded .arrow {
  transform: rotate(180deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Neofetch styling */
.neofetch {
  display: flex;
  gap: 40px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.ascii-art {
  color: var(--ctp-pink);
  font-size: 10px;
  line-height: 1;
  flex-shrink: 0;
  white-space: pre;
  animation: 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px var(--ctp-pink));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 15px var(--ctp-pink));
    opacity: 0.8;
  }
}

.system-info {
  flex: 1;
  min-width: 300px;
}

.info-line {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  animation: slideInRight 0.5s ease-out;
  animation-fill-mode: both;
}

.info-line:nth-child(1) { animation-delay: 0.1s; }
.info-line:nth-child(2) { animation-delay: 0.15s; }
.info-line:nth-child(3) { animation-delay: 0.2s; }
.info-line:nth-child(4) { animation-delay: 0.25s; }
.info-line:nth-child(5) { animation-delay: 0.3s; }
.info-line:nth-child(6) { animation-delay: 0.35s; }
.info-line:nth-child(7) { animation-delay: 0.4s; }
.info-line:nth-child(8) { animation-delay: 0.45s; }
.info-line:nth-child(9) { animation-delay: 0.5s; }
.info-line:nth-child(10) { animation-delay: 0.55s; }
.info-line:nth-child(11) { animation-delay: 0.6s; }
.info-line:nth-child(12) { animation-delay: 0.65s; }
.info-line:nth-child(13) { animation-delay: 0.7s; }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.label {
  color: var(--ctp-blue);
  font-weight: 600;
  min-width: 100px;
}

.separator {
  color: var(--ctp-text);
  margin: 0 8px 0 0;
}

.color-blocks {
  margin-top: 15px;
  display: flex;
  gap: 4px;
  animation: slideInRight 0.5s ease-out 0.8s;
  animation-fill-mode: both;
}

.color-block {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.color-block:hover {
  transform: scale(1.2);
}

/* About section */
.about-section {
  margin-top: 30px;
}

.output {
  margin: 10px 0 20px 0;
  padding-left: 0;
}

.output p {
  margin-bottom: 12px;
  line-height: 1.6;
  animation: typewriter 0.8s ease-out;
  animation-fill-mode: both;
}

.output p:nth-child(1) { animation-delay: 1s; }
.output p:nth-child(2) { animation-delay: 1.2s; }
.output p:nth-child(3) { animation-delay: 1.4s; }
.output p:nth-child(4) { animation-delay: 1.6s; }

@keyframes typewriter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.highlight {
  color: var(--ctp-red);
  font-weight: 600;
}

.link {
  color: var(--ctp-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.link:hover {
  text-decoration: underline;
  color: var(--ctp-sky);
  text-shadow: 0 0 5px var(--ctp-sky);
}

/* Skills section */
.skills-content {
  margin: 20px 0;
}

.skill-category {
  margin-bottom: 30px;
}

.skill-category h3 {
  color: var(--ctp-green);
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  animation: slideInLeft 0.6s ease-out;
  animation-fill-mode: both;
}

.skill-category:nth-child(1) h3 { animation-delay: 0.2s; }
.skill-category:nth-child(2) h3 { animation-delay: 0.4s; }
.skill-category:nth-child(3) h3 { animation-delay: 0.6s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 15px;
  animation: skillItemSlide 0.6s ease-out;
  animation-fill-mode: both;
}

.skill-item:nth-child(1) { animation-delay: 0.3s; }
.skill-item:nth-child(2) { animation-delay: 0.4s; }
.skill-item:nth-child(3) { animation-delay: 0.5s; }
.skill-item:nth-child(4) { animation-delay: 0.6s; }
.skill-item:nth-child(5) { animation-delay: 0.7s; }

@keyframes skillItemSlide {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-name {
  min-width: 80px;
  color: var(--ctp-text);
  font-weight: 500;
}

.skill-bar {
  flex: 1;
  max-width: 400px;
}

.skill-progress {
  color: var(--ctp-mauve);
  font-size: 8px;
  line-height: 1;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  animation: skillBarGrow 2s ease-in-out 1s;
  animation-fill-mode: both;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes skillBarGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.skill-percent {
  min-width: 40px;
  color: var(--ctp-overlay1);
  font-size: 12px;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.tool-item {
  color: var(--ctp-subtext1);
  padding: 4px 0;
  animation: fadeInScale 0.5s ease-out;
  animation-fill-mode: both;
  transition: color 0.3s ease;
}

.tool-item:nth-child(1) { animation-delay: 0.5s; }
.tool-item:nth-child(2) { animation-delay: 0.6s; }
.tool-item:nth-child(3) { animation-delay: 0.7s; }
.tool-item:nth-child(4) { animation-delay: 0.8s; }
.tool-item:nth-child(5) { animation-delay: 0.9s; }
.tool-item:nth-child(6) { animation-delay: 1s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tool-item:hover {
  color: var(--ctp-blue);
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  color: var(--ctp-teal);
  font-size: 13px;
  padding: 2px 0;
  animation: tagBounce 0.6s ease-out;
  animation-fill-mode: both;
  transition: all 0.3s ease;
}

.tag:nth-child(1) { animation-delay: 0.7s; }
.tag:nth-child(2) { animation-delay: 0.8s; }
.tag:nth-child(3) { animation-delay: 0.9s; }
.tag:nth-child(4) { animation-delay: 1s; }
.tag:nth-child(5) { animation-delay: 1.1s; }
.tag:nth-child(6) { animation-delay: 1.2s; }
.tag:nth-child(7) { animation-delay: 1.3s; }
.tag:nth-child(8) { animation-delay: 1.4s; }

@keyframes tagBounce {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tag:hover {
  color: var(--ctp-pink);
  transform: translateY(-2px);
}

/* Projects section */
.projects-list {
  margin: 20px 0;
  font-family: 'JetBrains Mono', monospace;
}

.ls-header {
  color: var(--ctp-overlay1);
  margin-bottom: 10px;
  font-size: 13px;
  animation: fadeIn 0.5s ease-out 0.2s;
  animation-fill-mode: both;
}

.project-item {
  margin-bottom: 15px;
  font-size: 13px;
  animation: projectSlideIn 0.6s ease-out;
  animation-fill-mode: both;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.project-item:nth-child(2) { animation-delay: 0.3s; }
.project-item:nth-child(3) { animation-delay: 0.4s; }
.project-item:nth-child(4) { animation-delay: 0.5s; }
.project-item:nth-child(5) { animation-delay: 0.6s; }
.project-item:nth-child(6) { animation-delay: 0.7s; }

@keyframes projectSlideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.project-item:hover {
  background: var(--ctp-surface0);
  transform: translateX(5px);
}

.project-item > span {
  display: inline-block;
  margin-right: 8px;
}

.permissions {
  color: var(--ctp-green);
  min-width: 80px;
}

.links {
  color: var(--ctp-text);
  min-width: 20px;
}

.owner, .group {
  color: var(--ctp-blue);
  min-width: 70px;
}

.size {
  color: var(--ctp-yellow);
  min-width: 50px;
}

.date {
  color: var(--ctp-overlay1);
  min-width: 80px;
}

.name {
  color: var(--ctp-mauve);
  font-weight: 600;
  transition: all 0.3s ease;
}

.name:hover {
  color: var(--ctp-pink);
  text-shadow: 0 0 5px var(--ctp-pink);
}

.description {
  margin: 5px 0 5px 0;
  padding-left: 20px;
  color: var(--ctp-subtext1);
  font-size: 12px;
  line-height: 1.4;
}

.tech-stack {
  padding-left: 20px;
  color: var(--ctp-red);
  font-size: 11px;
}

/* Final prompt */
.final-prompt {
  margin-top: 30px;
  animation: fadeIn 1s ease-out 2s;
  animation-fill-mode: both;
}

.cursor {
  color: var(--ctp-text);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Responsive design */
@media (max-width: 768px) {
  .terminal {
    padding: 10px;
  }

  .neofetch {
    flex-direction: column;
    gap: 20px;
  }

  .ascii-art {
    font-size: 8px;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .skill-name {
    min-width: auto;
  }

  .project-item > span {
    display: block;
    margin-bottom: 2px;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .arrow-button {
    margin-left: 0;
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .ascii-art {
    font-size: 6px;
  }

  .system-info {
    min-width: auto;
  }

  .label {
    min-width: 80px;
  }
}

/* Matrix background effect */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ctp-base);
}

::-webkit-scrollbar-thumb {
  background: var(--ctp-surface2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ctp-overlay0);
}
