@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=VT323&family=Orbitron:wght@400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #121212;
  --text-color: #a0a0a0;
  --accent-color: #4a6fa5;
  --secondary-color: #6b8cae;
  --third-color: #607d8b;
  --terminal-bg: rgba(22, 22, 22, 0.85);
  --terminal-border: 1px solid #444;
  --glow: 0 0 10px rgba(100, 100, 100, 0.3);
  --card-bg: rgba(30, 30, 30, 0.6);
  --hover-glow: 0 0 20px rgba(74, 111, 165, 0.4);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Space Mono', monospace;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.organic-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 15s infinite ease-in-out;
}

.shape-1 {
  background: var(--accent-color);
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  background: var(--secondary-color);
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.shape-3 {
  background: var(--third-color);
  width: 250px;
  height: 250px;
  top: 60%;
  left: 20%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -30px) rotate(10deg); }
  50% { transform: translate(-20px, 40px) rotate(-5deg); }
  75% { transform: translate(40px, 50px) rotate(15deg); }
}

.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(80, 80, 80, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(80, 80, 80, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: -1;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.08) 50%
  );
  background-size: 100% 4px;
  z-index: 10;
  pointer-events: none;
  opacity: 0.15;
}

.terminal-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal {
  width: 90%;
  max-width: 1000px;
  height: 90%;
  background: var(--terminal-bg);
  border: var(--terminal-border);
  box-shadow: var(--glow);
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.terminal-header {
  padding: 10px;
  background: rgba(80, 80, 80, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--terminal-border);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.close { background-color: #e57373; }
.minimize { background-color: #ffb74d; }
.maximize { background-color: #81c784; }

.terminal-title {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: var(--text-color);
  flex-grow: 1;
  text-align: center;
}

.terminal-body {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
}

.terminal-sidebar {
  width: 60px;
  border-right: var(--terminal-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 30px;
}

.terminal-nav-item {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-color);
  position: relative;
  transition: all 0.3s ease;
}

.terminal-nav-item:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(74, 111, 165, 0.5);
}

.terminal-nav-item.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(74, 111, 165, 0.4);
}

.terminal-nav-item::after {
  display: none;
}

.terminal-nav-item:hover::after,
.terminal-nav-item.active::after {
  display: none;
}

.terminal-content {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.terminal-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
  }

  @keyframes scrollPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(74, 111, 165, 0.4); }
    50% { box-shadow: 0 0 10px rgba(74, 111, 165, 0.7); }
  }
  
  .terminal-content::-webkit-scrollbar-thumb {
    animation: scrollPulse 3s infinite;
  }

.terminal-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.command-line {
  font-family: 'VT323', monospace;
  color: var(--text-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  text-shadow: 0 0 5px rgba(160, 160, 160, 0.3);
}

.prompt {
  color: var(--accent-color);
  margin-right: 10px;
  text-shadow: 0 0 8px rgba(74, 111, 165, 0.4);
}

.command {
  color: var(--text-color);
}

.content-block {
  margin: 20px 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: var(--delay, 0.2s);
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(107, 140, 174, 0.4);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.content-header::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.content-header:hover::after {
  transform: scaleX(1);
}

.content-subheader {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.content-text {
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 600px;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(74, 111, 165, 0.4);
  margin-top: 20px;
  margin-bottom: 20px;
  animation: glitchEffect 10s infinite;
}

@keyframes glitchEffect {
  0%, 100% { filter: none; }
  5% { filter: hue-rotate(30deg) saturate(1.2); }
  10% { filter: none; }
  15% { filter: brightness(1.3) contrast(1.2); }
  20% { filter: none; }
  25% { filter: saturate(1.2) blur(1px); }
  30% { filter: none; }
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-box {
  border: 1px solid #444;
  padding: 15px;
  background: rgba(30, 30, 30, 0.5);
  box-shadow: inset 0 0 10px rgba(80, 80, 80, 0.3);
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 65%, rgba(74, 111, 165, 0.1) 70%, transparent 75%);
  background-size: 200% 200%;
  animation: shineEffect 3s infinite linear;
}

@keyframes shineEffect {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}

.skill-box h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
}

.skill-box ul {
  list-style-type: none;
}

.skill-box li {
  margin-bottom:.5em;
  position: relative;
  padding-left: 20px;
}

.skill-box li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(5px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(74, 111, 165, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover::before {
  transform: translateX(100%);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
  border-color: var(--secondary-color);
}

.project-card h3 {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(74, 111, 165, 0.3);
}

.project-card p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(30, 30, 30, 0.8);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: auto;
  border: 1px solid var(--accent-color);
}

.project-link:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.project-link i {
  font-size: 1.1rem;
}

.coming-soon {
  cursor: not-allowed;
  opacity: 0.8;
  background: rgba(30, 30, 30, 0.6);
  border-color: var(--text-color);
}

.coming-soon:hover {
  transform: none;
  background: rgba(30, 30, 30, 0.6);
  color: var(--text-color);
  box-shadow: none;
}

.contact-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(30, 30, 30, 0.8);
}

.contact-link:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.contact-link i {
  margin-right: 8px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background-color: var(--text-color);
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-footer {
  padding: 10px;
  border-top: var(--terminal-border);
  font-size: 0.8rem;
  color: var(--text-color);
  text-align: center;
  font-family: 'VT323', monospace;
}

.terminal-footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.terminal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .terminal {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .terminal-body {
    flex-direction: column;
  }

  .terminal-sidebar {
    width: 100%;
    height: 60px;
    border-right: none;
    border-bottom: var(--terminal-border);
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }

  .terminal-nav-item::after {
    bottom: -25px;
  }

  .skills-container,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 25px;
}

.bento-item {
  border: 1px solid #444;
  border-radius: 6px;
  padding: 20px;
  background: rgba(30, 30, 30, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.large-item {
  grid-row: span 2;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  opacity: 0.7;
}

.bento-item h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(107, 140, 174, 0.3);
  display: flex;
  align-items: center;
}

.bento-item h3 i {
  margin-right: 10px;
  font-size: 1.3rem;
}

.bento-item ul {
  list-style-type: none;
  margin-left: 5px;
  flex-grow: 1;
}

.bento-item li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.bento-item li::before {
  content: '•';
  position: absolute;
  left: 5px;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.bento-item li:last-child {
  margin-bottom: 0;
}

.skill-level {
  width: 100%;
  height: 6px;
  background: rgba(80, 80, 80, 0.2);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
  position: relative;
}

.skill-level-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
  border-radius: 3px;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .large-item {
    grid-row: auto;
  }
}

.terminal-content {
  scrollbar-width: thin; 
  scrollbar-color: var(--accent-color) var(--terminal-bg); 
}

.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: var(--terminal-bg);
  border-left: 1px solid #444;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(74, 111, 165, 0.4);
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

@media (max-width: 768px) {
  .terminal-content {
    max-height: calc(100vh - 130px); 
  }
  
  .terminal-content::-webkit-scrollbar {
    width: 6px; 
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding: 0 20px;
}

.contact-card {
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(74, 111, 165, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-card:hover::before {
  transform: translateX(100%);
}

.contact-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(74, 111, 165, 0.3);
  border-color: var(--secondary-color);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  transition: all 0.4s ease;
}

.contact-card:hover i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.contact-card h3 {
  color: var(--secondary-color);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin: 0;
  transition: all 0.3s ease;
}

.contact-card:hover h3 {
  transform: translateY(-2px);
}

.contact-card p {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
  transition: all 0.3s ease;
}

.discord-id {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 30, 30, 0.8);
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid var(--accent-color);
  transition: all 0.3s ease;
}

.contact-card:hover .discord-id {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.discord-id span {
  color: var(--text-color);
  font-family: 'Space Mono', monospace;
  transition: all 0.3s ease;
}

.copy-button {
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.copy-button:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.copy-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(74, 111, 165, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.copy-button:hover::after {
  transform: scale(1.5);
}

.contact-card .contact-link {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  transition: all 0.4s ease;
}

.contact-card .contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}

.project-card .server-banner {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 15px rgba(74, 111, 165, 0.3);
  display: block;
}

.project-card .server-banner:hover {
  box-shadow: 0 0 20px rgba(74, 111, 165, 0.5);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.project-card .project-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 25px;
  padding: 0 20px;
}

.wishlist-item {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(5px);
}

.wishlist-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(74, 111, 165, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.wishlist-item:hover::before {
  transform: translateX(100%);
}

.wishlist-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-glow);
  border-color: var(--secondary-color);
}

.wishlist-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.wishlist-item:hover i {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.wishlist-item h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(74, 111, 165, 0.3);
  transition: all 0.3s ease;
}

.wishlist-item:hover h3 {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .wishlist-grid {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
}