* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0e27;
  --bg-darker: #050814;
  --accent-cyan: #00fff9;
  --accent-red: #ff0055;
  --accent-green: #00ff88;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --card-bg: rgba(15, 25, 50, 0.6);
  --border-glow: rgba(0, 255, 249, 0.3);
}

body {
  font-family: 'Courier New', monospace;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 255, 249, 0.02) 50%
  );
  background-size: 100% 4px;
  z-index: 1;
  pointer-events: none;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glow);
  padding: 15px 0;
  z-index: 100;
  box-shadow: 0 0 20px rgba(0, 255, 249, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.nav-center {
  display: flex;
  gap: 30px;
}

.nav-center a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.nav-center a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s;
}

.nav-center a:hover::after {
  width: 100%;
}

.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(0, 255, 249, 0.1);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  padding: 10px;
  display: none;
  box-shadow: 0 5px 20px rgba(0, 255, 249, 0.2);
}

.lang-dropdown.active {
  display: block;
}

.lang-option {
  padding: 8px 15px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.3s;
  border-radius: 4px;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(0, 255, 249, 0.1);
  color: var(--accent-cyan);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.terminal-window {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 255, 249, 0.2);
  position: relative;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glow);
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-btn.red { background: var(--accent-red); }
.terminal-btn.yellow { background: #ffaa00; }
.terminal-btn.green { background: var(--accent-green); }

.terminal-content {
  font-size: 0.9rem;
  line-height: 1.6;
}

.command-line {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

.prompt {
  color: var(--accent-green);
}

.command {
  color: var(--accent-cyan);
}

.output {
  color: var(--text-secondary);
  margin-left: 20px;
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent-cyan);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--accent-cyan);
}

.glitch {
  position: relative;
  display: inline-block;
}

.hero-text .pill {
  display: inline-block;
  background: rgba(0, 255, 249, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.btn {
  padding: 12px 30px;
  border: 2px solid var(--accent-cyan);
  background: transparent;
  color: var(--accent-cyan);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  display: inline-block;
}

.btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.btn.ghost {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.btn.ghost:hover {
  background: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red);
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 15px;
  text-shadow: 0 0 15px var(--accent-cyan);
}

.section-header .pill {
  display: inline-block;
  background: rgba(0, 255, 249, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--accent-cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-red));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 255, 249, 0.3);
}

.project-card h3 {
  color: var(--accent-cyan);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.project-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--accent-green) !important;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-glow);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 1;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-cyan);
  z-index: 10;
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 25px;
}

.timeline-content h3 {
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.timeline-time {
  color: var(--accent-green);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 30px;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(0, 255, 249, 0.2);
}

.skill-card h3 {
  color: var(--accent-cyan);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card li::before {
  content: '> ';
  color: var(--accent-green);
  margin-right: 5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 30px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  padding: 12px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  transition: all 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 249, 0.3);
}

.contact-info {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 30px;
}

.contact-info h3 {
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.contact-links {
  list-style: none;
  margin-top: 20px;
}

.contact-links li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-links span {
  color: var(--accent-green);
  margin-right: 10px;
}

.contact-links a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-links a:hover {
  text-shadow: 0 0 10px var(--accent-cyan);
}

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glow);
  padding: 30px 0;
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero-grid,
  .contact-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .nav-center {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}
