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

:root {
  /* Hacker Theme Colors - Black, Green, White, Yellow */
  --primary-color: #00ff00; /* Matrix Green */
  --secondary-color: #39ff14; /* Neon Green */
  --accent-color: #ffff00; /* Yellow */
  --text-primary: White; /* White */
  --text-secondary: #39ff14; /* Light Green */
  --text-white: #ffffff; /* White */
  --bg-primary: #000000; /* Black */
  --bg-secondary: #0a0a0a; /* Almost Black */
  --bg-tertiary: #111111; /* Dark Gray */
  --bg-terminal: rgba(0, 0, 0, 0.85);
  --border-color: #00ff00; /* Green */
  --warning-color: #ffff00; /* Yellow */
  --success-color: #00ff00; /* Green */
  --info-color: #00ffff; /* Cyan */
  --error-color: #ff0000; /* Red */
  --shadow-glow: 0 0 10px rgba(0, 255, 0, 0.5);
  --shadow-glow-strong: 0 0 20px rgba(0, 255, 0, 0.8);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", "Lucida Console", Monaco, monospace;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Terminal Styling Elements */
.prompt {
  color: var(--primary-color);
  font-weight: bold;
}

.prompt-symbol {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.terminal-prompt {
  color: var(--primary-color);
  text-shadow: var(--shadow-glow);
}

.comment {
  color: var(--text-secondary);
  font-style: italic;
}

.blink {
  animation: blink 1s infinite;
  color: var(--primary-color);
}

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

/* Navigation */
.navbar {
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  text-shadow: var(--shadow-glow);
  font-family: "Courier New", monospace;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-family: "Courier New", monospace;
}

.nav-link::before {
  content: "[ ";
  color: var(--warning-color);
}

.nav-link::after {
  content: " ]";
  color: var(--warning-color);
}

.nav-link:hover {
  color: var(--warning-color);
  text-shadow: var(--shadow-glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  box-shadow: var(--shadow-glow);
}

/* Hero Section with Background Image */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  padding-top: 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
}

/* Terminal Window Styling */
.terminal-window {
  background: var(--bg-terminal);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.4),
    inset 0 0 50px rgba(0, 255, 0, 0.05);
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
}

.terminal-header {
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--primary-color);
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-button.close {
  background: #ff5f56;
  box-shadow: 0 0 5px #ff5f56;
}

.terminal-button.minimize {
  background: #ffbd2e;
  box-shadow: 0 0 5px #ffbd2e;
}

.terminal-button.maximize {
  background: #27c93f;
  box-shadow: 0 0 5px #27c93f;
}

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-left: auto;
}

.terminal-body {
  padding: 2rem;
}

.terminal-line {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.terminal-output {
  color: var(--warning-color);
  margin-bottom: 1rem;
  animation: typing 1s steps(15);
}

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

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
  animation: fadeInUp 0.8s ease 0.2s backwards;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.highlight {
  color: var(--warning-color);
  text-shadow: var(--shadow-glow-strong);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.role {
  color: var(--text-primary);
  margin-right: 1rem;
  display: inline-block;
}

.role::before {
  content: ">";
  color: var(--warning-color);
  margin-right: 0.5rem;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.8s backwards;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Courier New", monospace;
  border: 2px solid;
}

.btn-primary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-secondary:hover {
  background-color: var(--warning-color);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.6);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 1s backwards;
}

.social-icon {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--warning-color);
  text-shadow: var(--shadow-glow);
  transform: translateX(5px);
}

.social-icon i {
  font-size: 1.5rem;
}

.social-label {
  font-size: 0.9rem;
}

/* Section Styles */
section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-family: "Courier New", monospace;
  text-shadow: var(--shadow-glow);
}

/* About Section */
.about {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.code-block {
  background: var(--bg-terminal);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-glow);
}

.code-header {
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--primary-color);
}

.file-name {
  color: var(--warning-color);
}

.language {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.about-text {
  padding: 2rem;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-white);
  margin-bottom: 1.5rem;
}

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

.highlight-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-terminal);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--warning-color);
}

.highlight-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: var(--shadow-glow);
}

.highlight-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--warning-color);
}

.highlight-item p {
  color: var(--text-white);
  margin: 0.25rem 0;
}

.highlight-item .small {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.warning {
  color: var(--warning-color);
}

.success {
  color: var(--success-color);
}

.info {
  color: var(--info-color);
}

/* Skills Section */
.skills {
  background-color: var(--bg-primary);
}

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

.skill-category {
  background: var(--bg-terminal);
  padding: 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-strong);
}

.skill-category h3 {
  color: var(--warning-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category i {
  color: var(--primary-color);
}

.dir-name {
  color: var(--text-primary);
  text-shadow: var(--shadow-glow);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: transparent;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

/* Projects Section */
.projects {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-terminal);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--warning-color);
}

.project-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: bold;
}

.project-status.success {
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.project-status.warning {
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.project-status.info {
  color: var(--info-color);
  border: 1px solid var(--info-color);
}

.project-lang {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.project-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.file-symbol {
  color: var(--warning-color);
  margin-right: 0.5rem;
}

.project-card h3 {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.project-description {
  color: var(--text-white);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  background-color: transparent;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  border: 1px solid var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.project-link:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

/* Experience Section */
.experience {
  background-color: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 50px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.status-indicator.active {
  background: var(--success-color);
  box-shadow: 0 0 8px var(--success-color);
  animation: pulse 2s infinite;
}

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

.timeline-content {
  background: var(--bg-terminal);
  padding: 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
}

.job-header {
  margin-bottom: 1rem;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
}

.status-badge.success {
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-badge:not(.success) {
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.timeline-content h3 {
  color: var(--text-white);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.terminal-list {
  list-style: none;
  color: var(--text-white);
  padding-left: 0;
}

.terminal-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.list-marker {
  color: var(--primary-color);
  font-weight: bold;
  flex-shrink: 0;
}

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cert-badge {
  background: transparent;
  color: var(--warning-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--warning-color);
}

.certifications-section {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--bg-terminal);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
}

.certifications-section h3 {
  color: var(--warning-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 0, 0.05);
  border-radius: 4px;
  border: 1px solid var(--primary-color);
}

.cert-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

.cert-item p {
  color: var(--text-white);
  font-weight: 500;
}

/* Contact Section */
.contact {
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--primary-color);
}

.contact-content {
  max-width: 900px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.contact-method {
  background: rgba(0, 255, 0, 0.05);
  padding: 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--warning-color);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-method h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--warning-color);
}

.contact-value {
  color: var(--text-white);
  word-break: break-word;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.access-indicator {
  color: var(--primary-color);
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 0.5rem;
}

.location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-size: 1.1rem;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0, 255, 0, 0.05);
  border-radius: 4px;
  border: 1px solid var(--primary-color);
}

.location i {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
  padding: 2rem 0;
  border-top: 2px solid var(--primary-color);
}

.footer-content p {
  margin: 0.5rem 0;
}

.footer-tagline {
  margin: 1rem 0;
}

.footer-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.5rem;
  }

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

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -26px;
  }

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

  .social-links {
    flex-direction: column;
    gap: 1rem;
  }

  .terminal-window {
    margin: 0 -10px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

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

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

  .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
  box-shadow: var(--shadow-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--warning-color);
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--bg-primary);
}
