:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent: #0070f3;
  --card-bg: #09090b;
  --border: #27272a;
  --border-hover: #3f3f46;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glow Effect */
.glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-effect {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

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

.section-padding {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-color) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 0 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-left {
  text-align: left;
  z-index: 10;
}

.hero-right {
  z-index: 10;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 0 3rem;
}

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

.stats-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
}

.stats-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.stats-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-card li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats-card li::before {
  content: "✔";
  color: var(--accent);
  font-size: 0.8rem;
}

/* System Overview Panel */
.system-overview {
  background: #09090b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: -1px;
}

.overview-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.overview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.overview-item i {
  color: #10b981;
  width: 16px;
  height: 16px;
}

/* GitHub Stats Panel */
.github-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 4rem;
}

.github-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.github-header h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.github-card {
  background: #000;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
}

.github-card h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.github-val {
  font-size: 1.5rem;
  font-weight: 800;
}

.github-sub {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.github-sub {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

.contribution-track {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contribution-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  margin-top: 1rem;
}

.contribution-cell {
  aspect-ratio: 1;
  background: #161b22;
  border-radius: 2px;
}

.contribution-cell.level-1 {
  background: #0e4429;
}

.contribution-cell.level-2 {
  background: #006d32;
}

.contribution-cell.level-3 {
  background: #26a641;
}

.contribution-cell.level-4 {
  background: #39d353;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-primary:hover {
  background: #e4e4e7;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.1);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-bg-code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  white-space: pre;
  width: 100%;
  text-align: center;
  z-index: 1;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.about-text-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 16px;
  font-size: 1.25rem;
}

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

.about-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.meta-card i {
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.meta-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.meta-card p {
  font-weight: 600;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.skill-category:hover {
  border-color: var(--border-hover);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-header i {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.category-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-metric {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.metric-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.metric-sub {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.sys-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  background: rgba(0, 112, 243, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 112, 243, 0.2);
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}

.project-card:hover {
  background: #0d0d0f;
}

.project-visual {
  height: 200px;
  background: #000;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Project Visual Styles */
.code-visual {
  flex-direction: column;
  align-items: stretch;
}

.visual-header {
  padding: 0.6rem 1rem;
  background: #111;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dots {
  display: flex;
  gap: 4px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.filename {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.visual-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5d6ff;
}

.pipeline-visual {
  gap: 1rem;
}

.node {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.node.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(0, 112, 243, 0.1);
}

.node-arrow {
  color: var(--border-hover);
}

.ui-visual .ui-mockup {
  width: 80%;
  height: 70%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.hero-block {
  width: 60%;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  opacity: 0.4;
}

.grid-blocks {
  display: flex;
  gap: 4px;
}

.grid-blocks div {
  flex: 1;
  height: 30px;
  background: var(--border);
  border-radius: 4px;
}

.api-visual {
  flex-direction: column;
  gap: 0.5rem;
}

.request-block,
.response-block {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.method {
  color: #d08770;
  font-weight: 700;
}

.status {
  color: #a3be8c;
  font-weight: 700;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.project-tagline {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  height: 3rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tech-badges span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: var(--border);
  border-radius: 4px;
}

.project-links .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.project-links .btn-sm:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.project-links .btn-sm i {
  width: 14px;
  height: 14px;
}

/* DB Visual Style */
.db-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
}

.db-visual .table {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.table-header {
  background: var(--border);
  padding: 0.3rem 0.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

.table-rows {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: var(--text-secondary);
}

.table-connector {
  width: 20px;
  height: 2px;
  background: var(--border);
}

.experience-content-rich {
  margin-top: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.experience-content-rich .exp-visual {
  height: 120px;
}

.experience-content-rich .exp-info {
  padding: 1.5rem;
}

.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.project-meta span::before {
  content: "•";
  color: var(--accent);
}

.exp-tech-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.exp-tech-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exp-tech-list li i {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* Experience & Certs */
.exp-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.timeline {
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  transition: transform 0.3s ease;
}

.timeline-item:first-child {
  transform: scale(1.03);
  z-index: 2;
}

.timeline-item:first-child .timeline-content {
  border: 1px solid var(--accent);
  background: rgba(0, 112, 243, 0.02);
  padding: 1.5rem;
  border-radius: 16px;
  margin-left: -1rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1rem;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-content h3 {
  font-size: 1.25rem;
}

.timeline-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cert-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

.cert-list li i {
  color: var(--accent);
}

/* Footer & Contact */
footer {
  border-top: 1px solid var(--border);
  padding-top: 6rem;
  background: #000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6rem;
}

.footer-left h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.footer-left p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-title {
    font-size: 3.5rem;
  }

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

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

  .exp-cert-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-left h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}