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

body {
  font-family: "Courier New", monospace;
  background: #000;
  color: #0ff;
  overflow-x: hidden;
  cursor: crosshair;
}

#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

@keyframes flicker {
  0% {
    opacity: 0.27861;
  }
  5% {
    opacity: 0.34769;
  }
  10% {
    opacity: 0.23604;
  }
  15% {
    opacity: 0.90626;
  }
  20% {
    opacity: 0.18128;
  }
  25% {
    opacity: 0.83891;
  }
  30% {
    opacity: 0.65583;
  }
  35% {
    opacity: 0.67807;
  }
  40% {
    opacity: 0.26559;
  }
  45% {
    opacity: 0.84693;
  }
  50% {
    opacity: 0.96019;
  }
  55% {
    opacity: 0.08594;
  }
  60% {
    opacity: 0.20313;
  }
  65% {
    opacity: 0.71988;
  }
  70% {
    opacity: 0.53455;
  }
  75% {
    opacity: 0.37288;
  }
  80% {
    opacity: 0.71428;
  }
  85% {
    opacity: 0.70419;
  }
  90% {
    opacity: 0.7003;
  }
  95% {
    opacity: 0.36108;
  }
  100% {
    opacity: 0.24387;
  }
}

.glitch-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
  0%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    pointer-events: none;
  }
}

.loading-text {
  font-size: 24px;
  color: #f00;
  text-shadow: 0 0 20px #f00;
  animation: glitchText 0.5s infinite;
  margin-bottom: 30px;
}

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

.progress-bar {
  width: 300px;
  height: 20px;
  border: 2px solid #0ff;
  position: relative;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ff, #f0f);
  animation: loading 3s forwards;
  box-shadow: 0 0 20px #0ff;
}

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

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 2px solid #0ff;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.logo {
  font-size: 24px;
  color: #0ff;
  text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
  animation: neonPulse 2s infinite;
}

@keyframes neonPulse {
  0%,
  100% {
    text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
  }
  50% {
    text-shadow: 0 0 30px #0ff, 0 0 60px #0ff, 0 0 80px #0ff;
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #0ff;
  text-decoration: none;
  position: relative;
  padding: 5px 15px;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-shadow: 0 0 10px #0ff;
}

.nav-links a:hover {
  border: 1px solid #0ff;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transform: scale(1.1);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  position: relative;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 1000px;
}

.glitch-title {
  font-size: clamp(40px, 8vw, 100px);
  color: #0ff;
  text-shadow: 0 0 20px #0ff;
  margin-bottom: 20px;
  position: relative;
  animation: glitchAnim 5s infinite;
}

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

.glitch-title::before {
  left: 2px;
  text-shadow: -2px 0 #f0f;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
  left: -2px;
  text-shadow: -2px 0 #0ff, 2px 2px #f0f;
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    clip: rect(10px, 9999px, 31px, 0);
  }
  5% {
    clip: rect(70px, 9999px, 71px, 0);
  }
  10% {
    clip: rect(60px, 9999px, 29px, 0);
  }
  15% {
    clip: rect(85px, 9999px, 98px, 0);
  }
  20% {
    clip: rect(40px, 9999px, 66px, 0);
  }
  25% {
    clip: rect(28px, 9999px, 13px, 0);
  }
  30% {
    clip: rect(41px, 9999px, 99px, 0);
  }
  35% {
    clip: rect(52px, 9999px, 81px, 0);
  }
  40% {
    clip: rect(83px, 9999px, 63px, 0);
  }
  45% {
    clip: rect(15px, 9999px, 95px, 0);
  }
  50% {
    clip: rect(67px, 9999px, 24px, 0);
  }
  55% {
    clip: rect(89px, 9999px, 47px, 0);
  }
  60% {
    clip: rect(32px, 9999px, 78px, 0);
  }
  65% {
    clip: rect(75px, 9999px, 12px, 0);
  }
  70% {
    clip: rect(21px, 9999px, 54px, 0);
  }
  75% {
    clip: rect(94px, 9999px, 38px, 0);
  }
  80% {
    clip: rect(46px, 9999px, 87px, 0);
  }
  85% {
    clip: rect(58px, 9999px, 19px, 0);
  }
  90% {
    clip: rect(33px, 9999px, 92px, 0);
  }
  95% {
    clip: rect(77px, 9999px, 43px, 0);
  }
  100% {
    clip: rect(15px, 9999px, 68px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  5% {
    clip: rect(25px, 9999px, 33px, 0);
  }
  10% {
    clip: rect(95px, 9999px, 87px, 0);
  }
  15% {
    clip: rect(45px, 9999px, 56px, 0);
  }
  20% {
    clip: rect(75px, 9999px, 23px, 0);
  }
  25% {
    clip: rect(15px, 9999px, 91px, 0);
  }
  30% {
    clip: rect(85px, 9999px, 44px, 0);
  }
  35% {
    clip: rect(35px, 9999px, 76px, 0);
  }
  40% {
    clip: rect(55px, 9999px, 12px, 0);
  }
  45% {
    clip: rect(20px, 9999px, 88px, 0);
  }
  50% {
    clip: rect(90px, 9999px, 34px, 0);
  }
  55% {
    clip: rect(40px, 9999px, 67px, 0);
  }
  60% {
    clip: rect(80px, 9999px, 21px, 0);
  }
  65% {
    clip: rect(30px, 9999px, 93px, 0);
  }
  70% {
    clip: rect(70px, 9999px, 45px, 0);
  }
  75% {
    clip: rect(10px, 9999px, 79px, 0);
  }
  80% {
    clip: rect(60px, 9999px, 28px, 0);
  }
  85% {
    clip: rect(50px, 9999px, 82px, 0);
  }
  90% {
    clip: rect(25px, 9999px, 53px, 0);
  }
  95% {
    clip: rect(95px, 9999px, 16px, 0);
  }
  100% {
    clip: rect(42px, 9999px, 71px, 0);
  }
}

.subtitle {
  font-size: clamp(18px, 3vw, 32px);
  color: #f0f;
  text-shadow: 0 0 15px #f0f;
  margin-bottom: 30px;
  animation: neonPulse 3s infinite;
}

.typing-text {
  font-size: clamp(14px, 2vw, 20px);
  color: #0ff;
  margin-bottom: 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cyber-btn {
  padding: 15px 40px;
  background: transparent;
  border: 2px solid #0ff;
  color: #0ff;
  text-decoration: none;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  text-shadow: 0 0 10px #0ff;
}

.cyber-btn:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 30px #0ff, inset 0 0 30px #0ff;
  transform: scale(1.05);
  text-shadow: none;
}

.cyber-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0ff, transparent);
  transition: left 0.5s;
}

.cyber-btn:hover::before {
  left: 100%;
}

.hologram {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid #0ff;
  border-radius: 50%;
  animation: rotate3d 10s linear infinite;
  opacity: 0.3;
}

@keyframes rotate3d {
  from {
    transform: rotateY(0deg) rotateX(20deg);
  }
  to {
    transform: rotateY(360deg) rotateX(20deg);
  }
}

.section {
  padding: 100px 20px;
  position: relative;
}

.section-title {
  font-size: clamp(32px, 5vw, 60px);
  color: #0ff;
  text-align: center;
  margin-bottom: 60px;
  text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.skill-box {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(255, 0, 255, 0.1) 100%
  );
  border: 2px solid #0ff;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
}

.skill-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.skill-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.6),
    inset 0 0 40px rgba(0, 255, 255, 0.2);
  border-color: #f0f;
}

.skill-icon {
  font-size: 48px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px #0ff);
}

.skill-box h3 {
  color: #0ff;
  font-size: 24px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #0ff;
}

.skill-list {
  list-style: none;
  color: #fff;
}

.skill-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.skill-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #0ff;
  animation: blink 1s infinite;
}

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

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0ff, #f0f, #0ff);
  box-shadow: 0 0 20px #0ff;
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  margin-left: calc(50% + 40px);
}

.timeline-content {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.05) 0%,
    rgba(255, 0, 255, 0.05) 100%
  );
  border: 2px solid #0ff;
  padding: 25px;
  position: relative;
  transition: all 0.3s;
}

.timeline-content:hover {
  border-color: #f0f;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: #0ff;
  border-radius: 50%;
  box-shadow: 0 0 20px #0ff;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -50px;
}

.timeline-date {
  color: #f0f;
  font-size: 14px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px #f0f;
}

.timeline-title {
  color: #0ff;
  font-size: 22px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #0ff;
}

.timeline-text {
  color: #fff;
  line-height: 1.6;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #0ff;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
  border-color: #f0f;
}

.contact-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px #0ff);
}

.contact-card h3 {
  color: #0ff;
  font-size: 24px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #0ff;
}

.contact-card a {
  color: #f0f;
  text-decoration: none;
  text-shadow: 0 0 10px #f0f;
  word-break: break-word;
}

.contact-card a:hover {
  color: #0ff;
  text-shadow: 0 0 15px #0ff;
}

footer {
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.95);
  border-top: 2px solid #0ff;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
}

@media (max-width: 1024px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }

  .timeline-content::before {
    left: -50px !important;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .section {
    padding: 60px 15px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}
