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

body {
  font-family: "Courier New", Courier, monospace;
  min-height: 100vh;
  background-color: #0d0208;
  color: #00ff41;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Matrix Canvas Background */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.08;
  pointer-events: none;
  will-change: auto;
}

/* Border Accents */
.border-accent {
  position: fixed;
  background: linear-gradient(
    135deg,
    #00ff41 0%,
    #00cc33 50%,
    #00ff41 100%
  );
  z-index: 1000;
}

.border-left {
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
}

.border-top {
  top: 0;
  left: 0;
  width: 15%;
  height: 8px;
}

.border-bottom {
  bottom: 0;
  right: 0;
  width: 20%;
  height: 8px;
}

.border-right {
  top: 0;
  right: 0;
  width: 8px;
  height: 15%;
}

/* Logo */
.logo {
  position: fixed;
  top: 2rem;
  left: 4rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ff41;
  z-index: 1001;
  text-shadow: 0 0 10px #00ff41;
}

/* Social Links */
.social-links {
  position: fixed;
  top: 2rem;
  right: 3rem;
  display: flex;
  gap: 1.5rem;
  z-index: 1001;
}

.social-links a {
  color: #00cc33;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #00ff41;
  filter: drop-shadow(0 0 8px #00ff41);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 6rem;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.left-section {
  flex: 1;
  max-width: 600px;
}

.welcome-text {
  font-size: 5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: #00ff41;
  text-shadow: 0 0 20px #00ff41;
}

.accent-line {
  width: 60px;
  height: 3px;
  background-color: #00ff41;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 10px #00ff41;
}

#hero .accent-line {
  margin-left: 0;
  margin-right: auto;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #00cc33;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41;
  font-weight: 700;
}

.typing-cursor::after {
  content: "|";
  color: #00ff41;
  animation: blink 0.7s infinite;
}

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

.hidden-initial {
  opacity: 0;
}

.right-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.projects-box {
  background-color: rgba(0, 20, 0, 0.8);
  padding: 3rem;
  border-radius: 8px;
  min-width: 300px;
  border: 1px solid #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.projects-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #00ff41;
  text-shadow: 0 0 10px #00ff41;
}

.project-list {
  list-style: none;
}

.project-list li {
  margin-bottom: 1.5rem;
}

.project-link {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: #00cc33;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 1rem;
}

.project-link:hover {
  color: #00ff41;
  border-left-color: #00ff41;
  transform: translateX(10px);
  text-shadow: 0 0 8px #00ff41;
}

.project-link::before {
  content: "> ";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-link:hover::before {
  opacity: 1;
}

/* Project Navigation Bar */
.project-nav {
  position: fixed;
  top: -120px;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(13, 2, 8, 0.98);
  border-bottom: 2px solid rgba(0, 255, 65, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: top 0.3s ease;
  backdrop-filter: blur(15px);
}

.project-nav.visible {
  top: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  padding: 0 2rem 1rem 2rem;
}

.nav-link {
  color: #00cc33;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem;
}

.nav-link::before {
  content: '> ';
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--project-green-accent);
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--project-green-accent);
  box-shadow: 0 0 4px rgba(0, 255, 65, 0.4);
}

/* Project Sections */
/* Professional Color Variables */
:root {
  --project-green-primary: #00b82e;
  --project-green-accent: #00ff41;
  --project-green-muted: #00aa2a;
  --project-bg-card: rgba(0, 25, 0, 0.25);
  --project-border: rgba(0, 255, 65, 0.15);
  --project-border-hover: rgba(0, 255, 65, 0.3);
}

.project-section {
  min-height: 100vh;
  padding: 8rem 6rem;
  position: relative;
  border-top: 2px solid rgba(0, 255, 65, 0.1);
  z-index: 1;
}

.project-section:nth-child(even) {
  background-color: rgba(0, 20, 0, 0.05);
}

.project-header {
  text-align: center;
  margin-bottom: 4rem;
}

.project-number {
  color: #00cc33;
  font-size: 0.875rem;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.project-title {
  font-size: 4rem;
  font-weight: 300;
  color: var(--project-green-accent);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
  margin-bottom: 1rem;
}

.project-tagline {
  color: #00d63d;
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
}

/* Screenshot Carousel */
.project-screenshots {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.screenshot-carousel {
  position: relative;
  border: 3px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
  background: rgba(0, 20, 0, 0.4);
}

.screenshot-track {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screenshot.active {
  opacity: 1;
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--project-green-accent);
  color: var(--project-green-accent);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background: rgba(0, 255, 65, 0.15);
  box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
  border-color: rgba(0, 255, 65, 0.5);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid #00cc33;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active,
.dot:hover {
  background: var(--project-green-accent);
  border-color: var(--project-green-accent);
  box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

/* Content Blocks */
.project-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 5rem;
}

.content-block {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 255, 65, 0.08);
  border-radius: 0;
  padding: 0 0 4rem 0;
  transition: none;
  opacity: 1;
}

.content-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.block-title {
  color: var(--project-green-accent);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
  font-weight: 700;
  text-align: center;
}

.prompt {
  color: #00cc33;
  font-weight: 700;
  margin-right: 0.5rem;
}

.block-text {
  color: #00d63d;
  line-height: 2.0;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  opacity: 1;
  text-align: center;
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tech-badge {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  color: #00d63d;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tech-badge:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--project-green-accent);
}

/* Features List */
.features-list {
  list-style: none;
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
  transform: translateX(5px);
}

.feature-item:hover .feature-bullet {
  color: var(--project-green-accent);
}

.feature-bullet {
  color: rgba(0, 255, 65, 0.4);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
  margin-top: 0.3rem;
}

.feature-text {
  color: #00d63d;
  line-height: 2.0;
  letter-spacing: 0.3px;
  font-size: 1.02rem;
}

/* Code Snippets */
.code-snippets {
  display: grid;
  gap: 2rem;
}

.code-snippet {
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: transparent;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.snippet-file {
  color: #00d63d;
  font-weight: 500;
}

.snippet-language {
  color: rgba(0, 255, 65, 0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.snippet-code {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
}

.snippet-code code {
  color: #00d63d;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Syntax highlighting */
.snippet-code .keyword {
  color: var(--project-green-accent);
  font-weight: 700;
}

.snippet-code .string {
  color: #00d63d;
}

.snippet-code .comment {
  color: rgba(0, 255, 65, 0.5);
  font-style: italic;
}

.snippet-code .function {
  color: var(--project-green-accent);
  text-shadow: 0 0 3px rgba(0, 255, 65, 0.2);
}

/* Project Links */
.links-block {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 0;
  margin-top: 1rem;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: #00d63d;
  font-size: 0.95rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-btn:hover {
  border-color: var(--project-green-accent);
  color: var(--project-green-accent);
  background: rgba(0, 255, 65, 0.05);
}

.project-btn svg {
  width: 20px;
  height: 20px;
}

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.demo-btn {
  background: #00ff41;
  border-color: #00ff41;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.5), 0 0 32px rgba(0, 255, 65, 0.2);
  letter-spacing: 0.03em;
}

.demo-btn svg {
  color: #0a0a0a;
}

.demo-btn-icon {
  padding: 0.7rem;
  gap: 0;
}

.demo-btn:hover {
  background: #00ff41;
  border-color: #00ff41;
  color: #0a0a0a;
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.8), 0 0 48px rgba(0, 255, 65, 0.4);
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 60px 20px 20px;
}

.lightbox-image {
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  border: 3px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 4px 30px rgba(0, 255, 65, 0.2);
  animation: zoomIn 0.3s ease-in-out;
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 2px solid var(--project-green-accent);
  color: var(--project-green-accent);
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.lightbox-close:hover {
  background-color: var(--project-green-accent);
  color: #000;
  box-shadow: 0 4px 16px rgba(0, 255, 65, 0.4);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */
footer {
  position: relative;
  text-align: center;
  padding: 2rem;
  color: #00cc33;
  font-size: 0.875rem;
  z-index: 10;
}

/* Responsive Design */
@media (max-width: 1024px) {
  #hero {
    flex-direction: column;
    padding: 4rem 3rem;
  }

  .welcome-text {
    font-size: 3.5rem;
  }

  .logo {
    left: 2rem;
  }

  .social-links {
    right: 2rem;
  }

  .project-section {
    padding: 6rem 3rem;
  }

  .project-title {
    font-size: 3rem;
  }

  .screenshot-track {
    height: 450px;
  }

  .nav-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 3rem 2rem;
  }

  .left-section {
    text-align: center;
  }

  .welcome-text {
    font-size: 2.5rem;
  }

  .accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .logo {
    font-size: 2rem;
    left: 1.5rem;
    top: 1.5rem;
  }

  .social-links {
    right: 1.5rem;
    top: 1.5rem;
  }

  .projects-box {
    padding: 2rem;
  }

  .project-section {
    padding: 4rem 2rem;
  }

  .project-title {
    font-size: 2.5rem;
  }

  .screenshot-track {
    height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .project-nav {
    height: 120px;
  }

  .nav-container {
    gap: 1rem;
    justify-content: space-around;
  }

  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem;
  }

  .tech-grid {
    gap: 0.5rem;
  }

  .tech-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  .links-block {
    flex-direction: column;
  }

  .project-btn {
    width: 100%;
    justify-content: center;
  }

  .code-snippets {
    gap: 1.5rem;
  }

  .snippet-code {
    font-size: 0.85rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .project-header {
    margin-bottom: 2rem;
  }

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

  .block-title {
    font-size: 1.25rem;
  }

  .content-block {
    padding: 1.5rem;
  }
}
