:root {
  --primary: #00ff9d;
  --primary-dark: #00cc7d;
  --secondary: #00ffee;
  --dark: #000000;
  --light: #ffffff;
  --gray: #808080;
  --background: #0a0a0a;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background-color: var(--background);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-link {
  text-decoration: none;
  color: inherit;
}

.hero-link:hover {
  text-decoration: underline;
}

/* Background Effects */
.cyber-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
      linear-gradient(to right, rgba(0,255,157,0.1) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(0,255,157,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.glow-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,255,157,0.1), transparent 70%);
}

/* Navigation */
.cyber-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,255,157,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.cyber-link {
  color: var(--light);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}

.cyber-link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.cyber-link:hover {
  color: var(--primary);
}

.cyber-link:hover::before {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;  /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 15px;
  z-index: 1000;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.hamburger-inner {
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  transition: transform 0.3s ease;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Active state */
.mobile-menu-btn.active .hamburger-inner {
  background-color: transparent;
}

.mobile-menu-btn.active .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
      display: block;  /* Show on mobile */
  }

  .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(0,0,0,0.95);
      backdrop-filter: blur(10px);
      padding: 1rem;
      border-bottom: 1px solid var(--primary);
  }

  .nav-links.active {
      display: flex;
      flex-direction: column;
      gap: 1rem;
  }

  .nav-links a {
      padding: 1rem;
      text-align: center;
      width: 100%;
      border-bottom: 1px solid rgba(0,255,157,0.1);
  }

  .nav-links a:last-child {
      border-bottom: none;
  }

  /* Ensure the container allows for absolute positioning */
  .nav-container {
      position: relative;
      width: 100%;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.cyber-terminal {
  display: inline-block;
  margin: 2rem 0;
}

.typing-text {
  border-right: 2px solid var(--primary);
  padding-right: 5px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* Glitch Effects */
.cyber-glitch {
  position: relative;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0,255,157,0.5);
}

.cyber-glitch::before,
.cyber-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.cyber-glitch::before {
  animation: glitch-1 2s infinite;
  color: #ff00ff;
  clip: rect(44px, 450px, 56px, 0);
}

.cyber-glitch::after {
  animation: glitch-2 3s infinite;
  color: #00ffff;
  clip: rect(24px, 450px, 36px, 0);
}

@keyframes glitch-1 {
  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); }
}

@keyframes glitch-2 {
  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); }
}

/* Buttons */
.cyber-button {
  position: relative;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
}

.cyber-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      120deg,
      transparent,
      rgba(0,255,157,0.2),
      transparent
  );
  transition: all 0.5s;
}

.cyber-button:hover::before {
  left: 100%;
}

.cyber-button.outline {
  background: transparent;
  border: 1px solid var(--primary);
}

/* Sections */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

/* Timeline */
.cyber-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: -3rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.timeline-content {
  position: relative;
  padding: 1.5rem;
  background: rgba(0,255,157,0.05);
  border: 1px solid rgba(0,255,157,0.2);
  transition: transform 0.3s;
}

.timeline-content:hover {
  transform: translateX(10px);
}

.timeline-date {
  color: var(--primary);
  font-size: 0.875rem;
}



/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.tech-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0,255,157,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.tech-card:hover::before {
  transform: translateX(100%);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tech-card ul {
  list-style: none;
}

.tech-card li {
  color: var(--light);
  margin: 0.5rem 0;
  opacity: 0.8;
}

.tech-card li::before {
  content: '>';
  color: var(--primary);
  margin-right: 0.5rem;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,157,0.2);
  overflow: hidden;
}

.project-image {
  position: relative;
  padding-top: 60%;
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tech span {
  padding: 0.25rem 0.75rem;
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.2);
  font-size: 0.875rem;
  color: var(--primary);
}

/* Contact Form */
.cyber-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,157,0.2);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,255,157,0.2);
  color: var(--light);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0,255,157,0.2);
}

.form-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.form-glitch::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transition: all 0.5s;
}

.form-group:focus-within .form-glitch::before {
  left: 100%;
}

/* Footer */
.cyber-footer {
  background: rgba(0,0,0,0.8);
  border-top: 1px solid rgba(0,255,157,0.2);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }

  .mobile-menu-btn {
      display: block;
      background: none;
      border: none;
      color: var(--primary);
      font-size: 1.5rem;
      cursor: pointer;
  }

  .nav-links.active {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(10,10,10,0.95);
      padding: 1rem;
      border-bottom: 1px solid rgba(0,255,157,0.2);
  }

  .hero-content h1 {
      font-size: 2.5rem;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive About Section */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image-container {
  position: relative;
  border: 1px solid var(--primary);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.image-glitch-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0,255,157,0.2), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image-container:hover .about-image {
  transform: scale(1.05);
}

.about-image-container:hover .image-glitch-effect {
  opacity: 1;
}

.cyber-text {
  color: var(--light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--primary);
}

.cyber-box {
  background: rgba(0,255,157,0.05);
  border: 1px solid var(--primary);
  padding: 2rem;
  position: relative;
  margin-top: 3rem;
}

.cyber-box-label {
  position: absolute;
  top: -0.875rem;
  left: 1rem;
  background: var(--background);
  padding: 0 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
}

.cyber-list {
  list-style: none;
  padding: 0;
}

.cyber-list li {
  padding: 0.5rem 0;
  color: var(--light);
  display: flex;
  align-items: center;
}

.cyber-list li::before {
  content: '>';
  color: var(--primary);
  margin-right: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Timeline Enhancements */
.cyber-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-content {
  background: rgba(0,255,157,0.05);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 2rem;
  margin-left: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

.blog-content {
  padding: 1.5rem;
  position: relative;
}

.blog-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.blog-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cyber-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cyber-link:hover .cyber-arrow {
  transform: translateX(5px);
}

/* Tech Stack Enhancements */
.tech-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,255,157,0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.tech-card h3 {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

/* Project Card Enhancements */
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
}

.project-card:hover .tech-tags span {
  border-color: var(--primary);
  background: rgba(0,255,157,0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .about-content {
      grid-template-columns: 1fr;
  }
  
  .blog-grid {
      grid-template-columns: 1fr;
  }
  
  .tech-grid {
      grid-template-columns: 1fr;
  }
  
  .timeline-content {
      margin-left: 1rem;
      padding: 1.5rem;
  }
  
  .cyber-box {
      padding: 1.5rem;
  }
}

.timeline-content:hover {
  transform: translateX(10px);
  border-color: var(--primary);
}

.cyber-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cyber-skills span {
  background: rgba(0,255,157,0.1);
  border: 1px solid rgba(0,255,157,0.2);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.blog-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,157,0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.blog-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.blog-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}