:root {
  --bg-primary: #020617; /* Slate 950 base */
  --bg-secondary: #0f172a; /* Slate 900 */
  --bg-panel: #1e293b; /* Slate 800 */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  
  --font-sans: 'Roboto', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.9em;
  letter-spacing: -0.5px;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.5rem 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-main);
}
.nav-brand span { color: var(--accent-purple); }

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-cyan);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text { z-index: 10; }
.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin: 1rem 0;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* CYBER BUTTON */
.btn-cyber {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}
.btn-cyber::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(6, 182, 212, 0.1);
  transition: left 0.3s ease;
}
.btn-cyber:hover::after { left: 0; }
.btn-cyber:hover { box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }

/* HERO IMAGE */
.hero-visual {
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  filter: contrast(1.05) grayscale(0.1);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-purple);
  z-index: 0;
  border-radius: 4px;
}

/* ABOUT */
.about {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: 2.2rem; }

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fff;
  border-radius: 2px;
}

/* TIMELINE */
.timeline-item {
  border-left: 2px solid var(--bg-panel);
  padding-left: 2rem;
  padding-bottom: 3rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 0;
  width: 10px; height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}
.timeline-item h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.timeline-item h4 { color: var(--text-muted); font-weight: normal; margin-bottom: 1rem; }

/* PHILOSOPHY GRID */
.phil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.phil-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-top: 3px solid var(--accent-purple);
  transition: transform 0.3s;
}
.phil-card:hover { transform: translateY(-5px); }
.phil-card h3 { margin: 1rem 0; }
.phil-card p { color: var(--text-muted); font-size: 0.95rem; }

/* FOOTER */
footer {
  padding: 4rem 0 12rem;
  text-align: center;
  color: var(--text-muted);
}
.contact-wrap {
  margin-bottom: 3rem;
}
.contact-link {
  font-family: var(--font-mono);
  font-size: 1.5rem;
}
footer p { font-size: 0.85rem; opacity: 0.5; }

@media (max-width: 768px) {
  .hero-grid, .about-content { grid-template-columns: 1fr; }
  .hero-visual::before { transform: translate(10px, 10px); }
  .nav-links { display: none; }
}
