:root {
    --bg: #080b0f;
    --bg2: #0d1117;
    --bg3: #111820;
    --green: #00ff87;
    --green2: #00cc6a;
    --red: #ff3b5c;
    --red2: #cc2244;
    --white: #f0f4f8;
    --muted: #8899aa;
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.07);
    --glow-green: 0 0 30px rgba(0,255,135,0.3);
    --glow-red: 0 0 30px rgba(255,59,92,0.3);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Syne', sans-serif;
    overflow-x: hidden;
    cursor: default;
  }

  /* Canvas */
  #particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  /* Nav */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8,11,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
  }
  nav.scrolled { padding: 14px 60px; }

  .nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
  }
  .nav-logo span { color: var(--green); }

  .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
  }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--green);
    transition: width 0.3s ease;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a:hover::after { width: 100%; }

  /* Section Base */
  section {
    position: relative;
    z-index: 1;
  }

  /* Hero */
  #hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
}

  .hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ctas,
.hero-stats {
  justify-content: center;
}

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,255,135,0.08);
    border: 1px solid rgba(0,255,135,0.2);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--green);
    margin-bottom: 24px;
    animation: fadeSlideDown 0.8s ease forwards;
    opacity: 0;
  }
  .badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  .hero-name {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 0.8s ease 0.1s forwards;
    opacity: 0;
  }
  .hero-name .accent { color: var(--green); }
  .hero-name .accent-red { color: var(--red); }

  .hero-typing {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--muted);
    margin: 16px 0 12px;
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
    opacity: 0;
  }
  .hero-typing .typed { color: var(--green); }
  .cursor-blink { animation: blink 1s step-end infinite; }

  .hero-tagline {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s ease 0.3s forwards;
    opacity: 0;
  }

  .hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease 0.4s forwards;
    opacity: 0;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: none;
    transition: all 0.25s ease;
    border: none;
  }
  .btn-primary {
    background: var(--green);
    color: #000;
  }
  .btn-primary:hover {
    background: #00ffaa;
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
  }
  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--glass-border);
  }
  .btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
  }

  /* Avatar */
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
  }

  .avatar-container {
    position: relative;
    width: 340px;
    height: 340px;
  }

  .avatar-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(0,255,135,0.15);
    animation: spin 20s linear infinite;
  }
  .avatar-ring::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: var(--glow-green);
  }
  .avatar-ring-2 {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px dashed rgba(255,59,92,0.1);
    animation: spin 30s linear infinite reverse;
  }

  .avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a2535, #0d1f2d);
    border: 2px solid rgba(0,255,135,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    position: relative;
    overflow: hidden;
  }
  .avatar-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,255,135,0.1));
  }

  .hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    animation: fadeSlideUp 0.8s ease 0.5s forwards;
    opacity: 0;
  }
  .stat-item { text-align: center; }
  .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    line-height: 1;
  }
  .stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
  }

  /* Sections */
  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px;
  }

  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .section-subtitle {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 60px;
  }

  /* Divider */
  .divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  }

  /* About */
  #about { background: var(--bg2); }

  .about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    max-width: 720px;
  }

  .about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
  }
  .about-text p strong { color: var(--white); }

  .soft-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .skill-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
  }
  .skill-chip:hover {
    border-color: rgba(0,255,135,0.3);
    background: rgba(0,255,135,0.04);
  }
  .skill-chip .icon { font-size: 1.1rem; }



  /* Skills */
  #skills { background: var(--bg); }

  .skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .skill-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  .skill-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .skill-card:hover {
    border-color: rgba(0,255,135,0.2);
    background: rgba(0,255,135,0.02);
    transform: translateY(-4px);
  }

  .skill-card-title {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .skill-card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
  }

  .skill-bar-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .skill-bar-item {}
  .skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .skill-bar-name {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .skill-bar-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--green);
  }

  .skill-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    overflow: hidden;
  }
  .skill-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--green2), var(--green));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .skill-bar-fill.red {
    background: linear-gradient(90deg, var(--red2), var(--red));
  }

  /* Contact */
  #contact { background: var(--bg); }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .contact-info p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    cursor: none;
    transition: all 0.25s;
  }
  .social-link:hover {
    border-color: rgba(0,255,135,0.3);
    background: rgba(0,255,135,0.04);
    transform: translateX(6px);
    box-shadow: var(--glow-green);
  }
  .social-link .s-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(0,255,135,0.08);
    border: 1px solid rgba(0,255,135,0.15);
    flex-shrink: 0;
  }
  .social-link .s-name { font-weight: 700; font-size: 0.9rem; }
  .social-link .s-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--green);
    display: block;
    margin-top: 2px;
  }
  .social-link .s-arrow {
    margin-left: auto;
    color: var(--muted);
    transition: transform 0.2s;
  }
  .social-link:hover .s-arrow { transform: translateX(4px); color: var(--green); }

  /* Form */
  .contact-form { display: flex; flex-direction: column; gap: 16px; }

  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
  }
  .form-input, .form-textarea {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--white);
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    resize: none;
  }
  .form-input:focus, .form-textarea:focus {
    border-color: var(--green);
    background: rgba(0,255,135,0.03);
    box-shadow: 0 0 0 3px rgba(0,255,135,0.08);
  }
  .form-input.error { border-color: var(--red); }
  .form-textarea { height: 140px; }

  .form-submit {
    width: 100%;
    padding: 16px;
    background: var(--green);
    color: #000;
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: none;
    transition: all 0.25s;
    margin-top: 8px;
  }
  .form-submit:hover {
    background: #00ffaa;
    transform: translateY(-2px);
    box-shadow: var(--glow-green);
  }
  .form-msg {
    font-size: 0.82rem;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    display: none;
  }
  .form-msg.success { background: rgba(0,255,135,0.1); color: var(--green); display: block; }
  .form-msg.error { background: rgba(255,59,92,0.1); color: var(--red); display: block; }

  /* Footer */
  footer {
    position: relative;
    z-index: 1;
    background: var(--bg2);
    border-top: 1px solid var(--glass-border);
    padding: 32px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
  }
  .footer-copy span { color: var(--green); }
  .footer-back {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    cursor: none;
    transition: color 0.2s;
    font-weight: 600;
  }
  .footer-back:hover { color: var(--green); }

  /* Animations */
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  .float { animation: float 6s ease-in-out infinite; }

  /* Scroll reveal */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Mobile */
  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links { display: none; }
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    #hero { padding: 100px 24px 60px; }
    .section-inner { padding: 60px 24px; }
    .hero-visual { display: none; }
    .skills-categories { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 12px; text-align: center; }
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: rgba(0,255,135,0.3); border-radius: 4px; }

  /* Hidden for filter */
  .project-card.hidden { display: none; }