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

body {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  background: #1e1e1e;
  color: #d4d4d4;
  line-height: 1.6;
}

/* Header Navigation */
.header {
  background: #2d2d30;
  padding: 15px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #007acc;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #569cd6;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-item {
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: #d4d4d4;
  font-size: 16px;
}

.nav-item:hover {
  background: #007acc;
  border-color: #007acc;
  color: white;
  transform: translateY(-2px);
}

.nav-item.active {
  background: #569cd6;
  border-color: #569cd6;
  color: white;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #d4d4d4;
  border-radius: 2px;
  transition: 0.3s;
}

/* Main content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

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

/* Sections */
.section {
  display: none;
  padding: 40px 0;
  min-height: calc(100vh - 120px);
}

.section.active {
  display: block;
}

/* Home Section */
.home-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 30px;
}

.hero-content h1 {
  font-size: 48px;
  color: #569cd6;
  margin-bottom: 10px;
  font-weight: normal;
}

.hero-content .subtitle {
  font-size: 24px;
  color: #6a9955;
  margin-bottom: 20px;
}

.hero-content .description {
  font-size: 18px;
  color: #d4d4d4;
  max-width: 600px;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border: 2px solid #007acc;
  background: transparent;
  color: #007acc;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: #007acc;
  color: white;
  transform: translateY(-2px);
}

.btn-primary {
  background: #007acc;
  color: white;
}

.btn-primary:hover {
  background: #005a94;
}

/* Code display */
.code-preview {
  background: #252526;
  border: 1px solid #3e3e42;
  border-radius: 8px;
  padding: 20px;
  margin: 20px;
  max-width: 600px;
  font-size: 14px;
  overflow-x: auto;
  text-align:left;
}

.code-preview pre {
  white-space: pre-wrap; 
  overflow-wrap: break-word;
}

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

.about-text {
  font-size: 18px;
  line-height: 1.8;
}

.about-text h2 {
  color: #569cd6;
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
}

.skills-section {
  background: #252526;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #3e3e42;
}

.skills-section h3 {
  color: #dcdcaa;
  font-size: 24px;
  margin-bottom: 20px;
}

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

.skill-item {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #3e3e42;
  transition: transform 0.2s;
}

.skill-item:hover {
  transform: translateY(-2px);
  border-color: #007acc;
  cursor: pointer;
}

/* Projects Section */
.projects-header {
  text-align: center;
  margin-bottom: 40px;
}

.projects-header h2 {
  color: #569cd6;
  font-size: 36px;
  margin-bottom: 15px;
}

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

.project-card {
  background: #252526;
  border: 1px solid #3e3e42;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 122, 204, 0.2);
  border-color: #007acc;
}

.project-title {
  color: #dcdcaa;
  font-size: 22px;
  margin-bottom: 15px;
}

.project-description {
  color: #d4d4d4;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tech-tag {
  background: #1e1e1e;
  color: #569cd6;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  border: 1px solid #3e3e42;
}

.tech-tag:hover {
  border: 1px solid #007acc;
  transition: all 0.2s ease;
  color: white;
  cursor: pointer;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #007acc;
  color: #007acc;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}

.project-link:hover {
  background: #007acc;
  color: white;
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  color: #569cd6;
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  background: #252526;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #3e3e42;
  transition: all 0.3s ease;
  overflow-x: hidden;
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: #007acc;
  cursor: pointer;
}

.contact-item h3 {
  color: #dcdcaa;
  font-size: 20px;
  margin-bottom: 15px;
}

.contact-item p {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-item a {
  color: #569cd6;
  text-decoration: none;
  font-weight: bold;
  
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Syntax highlighting */

.keyword { color: #569cd6; }
.string { color: #ce9178; }
.comment { color: #6a9955; font-style: italic; }
.function { color: #dcdcaa; }
.variable { color: #9cdcfe; }
.number { color: #b5cea8; }


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

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #2d2d30;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    gap: 20px;
  }

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

  .nav-item {
    width: 80%;
    text-align: center;
    font-size: 18px;
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content .subtitle {
    font-size: 20px;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .container {
    padding: 0 15px;
  }
}

/* Loading animation */
.loading-dots {
  display: inline-block;
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.nav-item:focus,
.btn:focus,
.project-link:focus {
  outline: 2px solid #007acc;
  outline-offset: 2px;
}