:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: 0.4s;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  z-index: -1;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  animation: float 20s infinite alternate;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: -50px;
  left: -50px;
  animation: float 15s infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  height: 2.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* BUTTONS */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-3px);
}

/* SECTIONS */
section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  position: relative;
}

.about-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-block {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.code-header {
  background: rgba(0,0,0,0.2);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-filename {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow-x: auto;
}

.kw { color: #c678dd; }
.var { color: #e06c75; }
.key { color: #61afef; }
.str { color: #98c379; }
.bool { color: #d19a66; }
.cmt { color: #7f848e; font-style: italic; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.fact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.fact-icon {
  font-size: 1.5rem;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.skill-group {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.skill-group-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.tag { color: var(--primary); }

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.learning-section h3 {
  margin-bottom: 2rem;
}

.progress-list {
  display: grid;
  gap: 1.5rem;
}

.progress-item {
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  width: 0;
  transition: 1.5s ease;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.contact-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.heart { color: #ff5f56; }
.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-name { font-size: 3rem; }
}
