/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background-color: #000;
  color: #00ff41;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Matrix Rain Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #00ff41;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #00ff41;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 255, 65, 0.3);
  transition: all 0.3s ease;
}

.nav-link:hover {
  border-color: #00ff41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  animation: glitch 2s infinite;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  width: 100%;
}

.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.profile-image {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

.profile-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #00ff41;
  filter: brightness(1.1) contrast(1.2);
}

.profile-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.hero-text {
  margin-bottom: 2rem;
}

.status-line {
  color: #00cc33;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin: 0.5rem 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 1rem 0;
  color: #00ff41;
}

.terminal-box {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.3);
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
}

.terminal-box.large {
  max-width: 800px;
}

.terminal-header {
  background: rgba(0, 255, 65, 0.1);
  padding: 0.5rem 1rem;
  color: #00ff41;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.terminal-content {
  padding: 1rem;
  color: #00ff41;
}

.terminal-content ul {
  list-style: none;
  padding-left: 0;
}

.terminal-content li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
}

.terminal-content li:before {
  content: ">";
  position: absolute;
  left: 0;
  color: #00cc33;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #00ff41;
  background: transparent;
  color: #00ff41;
  font-family: "Courier New", monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.btn-primary {
  background: rgba(0, 255, 65, 0.1);
}

.btn-secondary {
  border-color: rgba(0, 255, 65, 0.5);
  color: rgba(0, 255, 65, 0.8);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: rgba(0, 255, 65, 0.02);
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #00ff41;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.3);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  color: #00ff41;
  font-size: 1.1rem;
}

.card-header i {
  color: #00cc33;
}

.card-content p {
  margin: 0.5rem 0;
  color: #00ff41;
}

/* Experience Section */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.3);
  padding: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-header h3 {
  color: #00ff41;
  font-size: 1.2rem;
}

.experience-date {
  color: #00cc33;
  font-size: 0.9rem;
}

.status-badge {
  background: rgba(0, 255, 65, 0.2);
  color: #00ff41;
  padding: 0.25rem 0.5rem;
  border: 1px solid #00ff41;
  font-size: 0.8rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.3);
  padding: 1.5rem;
}

.skill-category-title {
  color: #00ff41;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.skill-item span {
  color: #00ff41;
  min-width: 120px;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  position: relative;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ff41, #00cc33);
  width: 0;
  transition: width 2s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Contact Section */
.contact-content {
  text-align: center;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ff41;
  justify-content: center;
}

.contact-item i {
  color: #00cc33;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(0, 255, 65, 0.3);
  padding: 2rem 0;
  text-align: center;
}

.footer .status {
  color: #00cc33;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}
