:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-card: #16161f;
  --surface: #1c1c28;
  --border: #2a2a3a;
  --text: #e2e2e8;
  --text-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --green: #00d4aa;
  --orange: #f39c12;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.light {
  --bg: #f8f8fc;
  --bg-alt: #eeeef4;
  --bg-card: #ffffff;
  --surface: #e8e8f0;
  --border: #d0d0dc;
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --accent: #6c5ce7;
  --accent-light: #5a4bd1;
  --accent-glow: rgba(108, 92, 231, 0.12);
  --green: #00b894;
  --orange: #e67e22;
}
  


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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-num {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.light .navbar { background: rgba(248, 248, 252, 0.85); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent) !important;
}

.nav-links { display: flex; list-style: none; gap: 32px; }

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
}

.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}


/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}



.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, var(--accent-glow) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 80px 24px;
}

.hero-text { max-width: 700px; }

.hero-greeting {
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-role {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.typing { color: var(--accent); }

.cursor {
  display: inline-block;
  animation: blink 0.7s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

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

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}

.highlight { color: var(--accent); font-weight: 600; }

.hero-btns { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-social {
  display: flex;
  gap: 20px;
}

.hero-social a {
  color: var(--text-muted);
  transition: all var(--transition);
}

.hero-social a:hover { color: var(--accent); transform: translateY(-3px); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-text strong { color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin-top: 28px;
}

.about-stats li {
  background: var(--bg-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.stat-num {
  font-family: 'Fira Code', monospace;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.about-tech h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-cloud span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.tech-cloud span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Skills */
.skills { background: var(--bg-alt); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.skill-card li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'Fira Code', monospace;
  font-weight: 700;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-folder { color: var(--accent); }

.project-links a {
  color: var(--text-muted);
  margin-left: 12px;
}

.project-links a:hover { color: var(--accent); }

.project-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.project-tech li {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 4px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 16px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: all var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.timeline-date {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.timeline-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-content ul {
  list-style: none;
}

.timeline-content li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-content li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Contact */
.contact { background: var(--bg-alt); }

.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-links {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.contact-links a { color: var(--text-muted); }
.contact-links a:hover { color: var(--accent); }
.dot { color: var(--border); }

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

.footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; margin-bottom: 32px; }

  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Animations on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
