:root {
    --bg: #0A0A0A;
    --bg-card: #181818;
    --text: #FFFFFF;
    --muted: #9CA3AF;
    --accent: #FFFFFF;
    --accent-dim: rgba(255,255,255,0.12);
    --border: #303030;
    --max-width: 1000px;
}

 
  * { box-sizing: border-box; margin: 0; padding: 0; }
 
  html { scroll-behavior: smooth; }
 
  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
  }
 
  h1, h2, h3 {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
 
  a { color: inherit; text-decoration: none; }
 
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
  }
 
  /* Header / Nav */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
 
  nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 
  .logo {
    font-size: 1.3rem;
    font-weight: 700;
  }
  .logo span { color: var(--accent); }
 
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
 
  .nav-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
  }
 
  .nav-links a:hover { color: var(--text); }
 
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
  }
 
  .nav-links a:hover::after { width: 100%; }
 
  .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    display: block;
  }
 
  /* Hero / About */
  .hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
  }
 
  .hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
  }

  .hero-text {
    flex: 1;
    min-width: 280px;
  }

  .hero-profile {
    flex-shrink: 0;
  }

  .profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-dim);
  }

  .profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .profile-pic-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px dashed var(--muted);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
  }
 
  .eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
  }
 
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 20px;
    max-width: 700px;
  }
 
  .hero p {
    color: var(--muted);
    max-width: 600px;
    font-size: 1.05rem;
    margin-bottom: 32px;
  }
 
  .btn {
    display: inline-block;
    background: var(--accent);
    color: #0B1220;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
 
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-dim);
  }
 
  .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    margin-left: 12px;
  }
 
  .btn-outline:hover { border-color: var(--accent); box-shadow: none; }
 
  /* Section shared */
  section { padding: 80px 0; }
 
  .section-title {
    font-size: 2rem;
    margin-bottom: 12px;
  }
 
  .section-sub {
    color: var(--muted);
    margin-bottom: 48px;
    max-width: 560px;
  }
 
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
 
  /* About */
  #about {
    border-top: 1px solid var(--border);
  }
 
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
 
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }
 
  .skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--muted);
  }
 
  /* Projects */
  #projects {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(63,216,194,0.02));
  }
 
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }
 
  .project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.25s ease, transform 0.25s ease;
  }
 
  .project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }
 
  .project-thumb {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-dim), var(--border));
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
 
  .project-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
  .project-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
 
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
  }
 
  .project-tags span {
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 10px;
    border-radius: 12px;
  }
 
  .project-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
  }
  .project-link:hover { text-decoration: underline; }
 
  /* Contact */
  #contact {
    border-top: 1px solid var(--border);
  }
 
  .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
 
  form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
 
  input, textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
  }
 
  input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
  }
 
  textarea { resize: vertical; min-height: 120px; }
 
  .form-status {
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 20px;
  }
 
  .contact-info { color: var(--muted); }
  .contact-info a { color: var(--text); }
  .contact-info .item {
    margin-bottom: 20px;
  }
  .contact-info .label {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    display: block;
  }
 
  footer {
    text-align: center;
    padding: 32px 0;
    color: var(--muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
  }
 
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      flex-direction: column;
      padding: 20px 24px;
      gap: 18px;
      display: none;
    }
    .nav-links.open { display: flex; }
    .menu-toggle { display: flex; }
    .about-grid, .contact-wrap { grid-template-columns: 1fr; }

    .hero-inner {
      flex-direction: column-reverse;
      text-align: center;
    }
    .profile-pic {
      width: 160px;
      height: 160px;
    }
    
  }
 
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
  }