/* Terminal Glassmorphism Design System */
:root {
  --bg-deep: #0E0E12;
  --bg-surface: #18181B;
  --bg-glass: rgba(24, 24, 27, 0.6);
  --border-subtle: rgba(130, 80, 203, 0.15);
  --border-hover: rgba(130, 80, 203, 0.4);
  
  --accent-purple: #8250CB;
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-green: #34D399;
  --accent-pink: #FB7185;
  --accent-soft: #C084FC;

  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #52525B;
  
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Background Animation Grid Container */
#hero-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.4;
}

.grid-block {
  width: 50px;
  height: 50px;
  border: 0.5px solid rgba(130, 80, 203, 0.1);
  background: var(--accent-purple);
  opacity: 0.05;
  display: inline-block;
  float: left;
}

/* Floating Shapes for Hero/Scroll (Google Lens Style) */
#hero-shapes {
  position: fixed; /* Fixed so they stay in background across the whole page */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  mix-blend-mode: screen;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Start at center */
}

.shape-1 {
  width: 40vw;
  height: 40vw;
  background: var(--accent-cyan); /* Blue/Cyan */
}

.shape-2 {
  width: 35vw;
  height: 35vw;
  background: var(--accent-pink); /* Red/Pink */
}

.shape-3 {
  width: 45vw;
  height: 45vw;
  background: var(--accent-amber); /* Yellow/Amber */
}

.shape-4 {
  width: 38vw;
  height: 38vw;
  background: var(--accent-green); /* Green */
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mono { font-family: var(--font-mono); }
.text-cyan { color: var(--accent-cyan); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }
.text-green { color: var(--accent-green); }
.text-pink { color: var(--accent-pink); }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 100;
  background: rgba(14, 14, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-purple);
  text-decoration: none;
  letter-spacing: 0.1em;
}

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-purple);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::before {
  content: '>';
  font-family: var(--font-mono);
  color: var(--accent-purple);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

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

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, #A1A1AA);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
}

.typing-cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background-color: var(--accent-purple);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), #5B56DF);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(130, 80, 203, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(130, 80, 203, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-purple);
  background: rgba(130, 80, 203, 0.1);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(130, 80, 203, 0.08);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.project-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(130, 80, 203, 0.1);
  border: 1px solid rgba(130, 80, 203, 0.2);
  color: var(--accent-soft);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), rgba(130,80,203,0));
}

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 10px rgba(130, 80, 203, 0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: bold;
}

.timeline-company {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}