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

:root {
  --primary: #00ffcc;
  --secondary: #ff00cc;
  --accent: #ffcc00;
  --bg-dark: #0a0a0c;
  --panel-bg: rgba(20, 20, 25, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  padding: 3rem;
  perspective: 1000px;
}

.side-content {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  opacity: 0.9;
}

.floating-widget {
  background: var(--panel-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  transition: 0.3s ease;
  animation: widget-float 5s ease-in-out infinite;
}

.floating-widget:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 255, 0.2);
  opacity: 1;
}

@keyframes widget-float {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  25% {
    transform: translateY(-10px) rotate(1deg);
  }

  75% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@media (max-width: 1100px) {
  .layout-wrapper {
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
  }

  .side-content {
    width: 100%;
    order: 2;
  }

  .card {
    order: 1;
    width: 90% !important;
    max-width: 400px;
  }
}


/* Matrix/Grid Background */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 204, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  animation: grid-move 5s linear infinite;
}

@keyframes grid-move {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 40px;
  }
}

.glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(5vw, 5vh) scale(1.2);
  }
}

/* Glass Card */
.card {
  width: 400px;
  padding: 3rem 2rem;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.3);
}

/* Avatar */
.avatar-container {
  margin: 0 auto 2rem;
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 20%;
  padding: 4px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  overflow: hidden;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  background: #000;
}

/* Text Elements */
.title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  background: linear-gradient(to right, #fff, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 255, 204, 0.2);
  display: inline-block;
  border-radius: 4px;
}

/* Links */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.2s ease;
}

.link-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  background: rgba(40, 40, 50, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: 0.3s ease;
}

.link-item:hover {
  color: var(--primary);
}

.link-item:hover i {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary);
  border-color: var(--primary);
  transform: scale(1.1);
}

.tag {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Footer Section */
.footer {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Glitch Effect Helper */
.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: var(--primary);
  z-index: -1;
  animation: glitch 1s infinite alternate-reverse;
}

.glitch-text::after {
  color: var(--secondary);
  z-index: -2;
  animation: glitch 1s 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);
  }
}