@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&display=swap');

:root {
  --bg-color: #0c0c0c;
  --bg-panel: #161616;
  --text-primary: #e5e5e5;
  --text-secondary: #a0a0a0;
  
  --accent-green: #33ff00;
  --accent-blue: #3b82f6;
  --accent-purple: #c084fc;
  
  --font-mono: 'Fira Code', monospace;
  
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-mono);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #333;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-green);
}

.mono {
  font-family: var(--font-mono);
}

.accent-green { color: var(--accent-green); }
.accent-blue { color: var(--accent-blue); }
.accent-purple { color: var(--accent-purple); }
.mt-4 { margin-top: 1rem; }
.text-left { text-align: left; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 80px 0;
  border-bottom: 1px dashed #333;
}

h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.logo-prompt { color: var(--accent-green); }
.logo-dir { color: var(--accent-blue); }

a {
  color: var(--accent-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--accent-green);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid #333;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent-green);
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Terminal Window styling */
.terminal-window {
  background: var(--bg-panel);
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  margin-top: 2rem;
}

.terminal-header {
  background: #222;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.btn-close, .btn-min, .btn-max {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.btn-close { background: #ff5f56; }
.btn-min { background: #ffbd2e; }
.btn-max { background: #27c93f; }

.terminal-title {
  color: #888;
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 2rem;
}

.terminal-panel {
  background: var(--bg-panel);
  border: 1px solid #333;
  padding: 1.5rem;
  border-left: 3px solid var(--accent-green);
  margin-bottom: 1.5rem;
}

.terminal-panel p {
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 1rem 0;
  color: var(--text-primary);
}

.role-text {
  font-size: 1.2rem;
  color: var(--accent-green);
  margin: 1.5rem 0;
  min-height: 2rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: var(--accent-green);
  animation: blink 1s step-end infinite;
}

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

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--accent-green);
}

.btn-primary {
  background: var(--accent-green);
  color: #000;
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent-green);
}

.btn-outline {
  background: transparent;
  color: var(--accent-green);
}
.btn-outline:hover {
  background: rgba(51, 255, 0, 0.1);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-image img {
  width: 150px;
  height: 150px;
  border-radius: 4px;
  border: 1px solid #333;
  filter: grayscale(100%);
}

/* Experience Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid #333;
}

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

.timeline-item::before {
  content: '>';
  position: absolute;
  left: -2.8rem;
  top: 0;
  color: var(--accent-green);
  font-weight: bold;
  background: var(--bg-color);
  padding: 2px;
}

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

.timeline-content h3 {
  margin-bottom: 0.2rem;
}
.timeline-content h4 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 1rem;
}
.timeline-content ul {
  list-style: none;
  padding-left: 1rem;
}
.timeline-content ul li {
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.timeline-content ul li::before {
  content: '-';
  position: absolute;
  left: -1rem;
  color: var(--text-secondary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card h3 {
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
  }
}

/* Products popup (bottom-right, cookie-banner style) */
.cookie-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  width: min(340px, calc(100vw - 40px));
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  animation: popup-in 0.4s ease-out;
}
.cookie-popup[hidden] { display: none; }
.cookie-popup p { margin-bottom: 10px; }
.popup-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.popup-btn {
  font: inherit;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--text-secondary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
}
.popup-btn.primary { background: var(--accent-green); border-color: var(--accent-green); color: #000; font-weight: 700; }
.popup-btn:hover { opacity: 0.85; }
@keyframes popup-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
