:root {
      --bg: #0f1724;
      --panel: rgba(255,255,255,0.03);
      --muted: #94a3b8;
      --accent: #3b82f6;
      --accent-2: #6ee7b7;
      --glass: rgba(255,255,255,0.04);
      --radius: 12px;
      --max-width: 1100px;
      --text: #e6eef8;
      --shadow: 0 6px 20px rgba(0,0,0,0.5);
      --glass-border: rgba(255,255,255,0.03);
      font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
      color-scheme: dark;
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      margin: 0;
      background: radial-gradient(1200px 600px at 10% 10%, rgba(59,130,246,0.08), transparent 6%),
                  radial-gradient(900px 400px at 90% 90%, rgba(110,231,183,0.06), transparent 5%),
                  var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      line-height: 1.5;
      font-size: 16px;
    }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 20px;
    }

    .page { min-height: 100vh; display: flex; flex-direction: column; }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--glass-border);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 0;
    }

    .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
    .brand-mark { border-radius: 8px; }
    .brand-text { font-weight: 700; letter-spacing: -0.02em; }

    .nav { display: block; }
    .nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; align-items: center; }
    .nav-link { color: var(--muted); text-decoration: none; padding: 8px; border-radius: 8px; }
    .nav-link:hover, .nav-link:focus { color: var(--text); background: var(--panel); outline: none; }

    .header-actions { display: flex; gap: 10px; align-items: center; }

    .btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--text); background: transparent; }
    .btn.small { padding: 8px 10px; font-size: 14px; }
    .icon-btn { background: var(--panel); border-radius: 10px; padding: 8px; width: 42px; height: 42px; justify-content: center; }
    .btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 6px 18px rgba(59,130,246,0.12); }
    .btn.ghost { background: transparent; border: 1px solid var(--glass-border); color: var(--text); }
    .btn:focus { outline: 2px solid rgba(59,130,246,0.18); outline-offset: 2px; }

    .menu-toggle { display: none; }

    .hero {
      padding: 60px 0 80px;
      position: relative;
      overflow: visible;
    }

    .hero-inner { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
    .hero-title { font-size: 2.2rem; margin: 8px 0 12px; }
    .hero-sub { font-weight: 600; color: var(--accent); margin-left: 8px; font-size: 0.92rem; }
    .hero-lead { color: var(--muted); max-width: 52ch; }

    .eyebrow { color: var(--accent-2); font-weight: 600; margin: 0; }
    .hero-cta { display: flex; gap: 12px; margin: 18px 0; }

    .meta-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
    .hero-visual { display: flex; justify-content: center; align-items: center; }

    .floating-card {
      width: 380px;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
      transform: translateY(0);
      animation: float 6s ease-in-out infinite;
      border: 1px solid var(--glass-border);
    }

    .floating-card img { width: 100%; display: block; height: 220px; object-fit: cover; }
    .card-label { padding: 12px; font-size: 14px; color: var(--muted); }

    @keyframes float {
      0% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
      100% { transform: translateY(0); }
    }

    .hero-bg {
      position: absolute;
      right: -6%;
      top: -6%;
      width: 48%;
      height: 120%;
      background: radial-gradient(circle at 20% 30%, rgba(59,130,246,0.12), transparent 15%),
                  radial-gradient(circle at 80% 70%, rgba(110,231,183,0.08), transparent 12%);
      filter: blur(60px);
      pointer-events: none;
      z-index: 0;
    }

    .section { padding: 72px 0; }
    .section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
    h2 { margin: 0 0 10px; font-size: 1.4rem; }
    .muted { color: var(--muted); }

    .split { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
    .profile-card { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-radius: 14px; padding: 18px; border: 1px solid var(--glass-border); box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
    .avatar { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }

    .skills { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
    .skills li { background: var(--panel); padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: 13px; }

    .projects .filters { display: flex; gap: 10px; }
    .filter { padding: 8px 12px; background: transparent; border: 1px solid var(--glass-border); border-radius: 999px; color: var(--muted); cursor: pointer; }
    .filter.active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: white; border: none; }

    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }

    .project-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--glass-border);
      transition: transform 220ms ease, box-shadow 220ms ease;
    }
    .project-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(2,6,23,0.6); }
    .project-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
    .project-body { padding: 14px; }
    .project-title { font-weight: 700; margin: 0 0 6px; }
    .project-meta { color: var(--muted); font-size: 14px; }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 60;
      background: rgba(2,6,23,0.6);
      padding: 20px;
    }
    .modal[aria-hidden="false"] { display: flex; }
    .modal-inner {
      width: 100%;
      max-width: 900px;
      background: var(--panel);
      border-radius: 12px;
      overflow: auto;
      max-height: 90vh;
      padding: 20px;
      position: relative;
      border: 1px solid var(--glass-border);
    }
    .modal-close { position: absolute; right: 12px; top: 12px; }

    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
    .contact-form { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); padding: 18px; border-radius: 12px; border: 1px solid var(--glass-border); }
    .form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
    label { font-size: 14px; color: var(--muted); }
    input, textarea {
      padding: 10px 12px;
      border-radius: 8px;
      border: 1px solid var(--glass-border);
      background: transparent;
      color: var(--text);
      font: inherit;
    }

    .small { font-size: 13px; }

    .site-footer { padding: 18px 0; border-top: 1px solid var(--glass-border); margin-top: auto; }
    .footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; }

    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      padding: 12px 18px;
      border-radius: 10px;
      background: rgba(2,6,23,0.8);
      color: white;
      display: none;
      z-index: 80;
      font-size: 14px;
    }
    .toast.show { display: block; animation: toastIn 300ms ease; }
    @keyframes toastIn { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

    .link-button { background: none; border: none; color: var(--accent); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }

    /* Responsive */
    @media (max-width: 980px) {
      .hero-inner { grid-template-columns: 1fr; }
      .split { grid-template-columns: 1fr; }
      .contact-grid { grid-template-columns: 1fr; }
      .nav { display: none; }
      .menu-toggle { display: inline-flex; }
      .brand-text { display: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      .floating-card, .project-card, .btn, .hero-visual { animation: none !important; transition: none !important; }
    }
