
    :root {
      --bg: #050816;
      --bg-alt: #0b1120;
      --card: #020617;
      --accent: #3b82f6;
      --accent-soft: rgba(59,130,246,0.2);
      --text: #e5e7eb;
      --muted: #9ca3af;
      --border: #1f2937;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --shadow-soft: 0 18px 40px rgba(15,23,42,0.65);
    }

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

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #0b1120 0, #020617 45%, #000 100%);
      color: var(--text);
      line-height: 1.6;
      scroll-behavior: smooth;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    /* Layout */

    .container {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(16px);
      background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.4));
      border-bottom: 1px solid rgba(148,163,184,0.15);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 0;
    }

    .nav-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-logo {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 30%, #38bdf8, #4f46e5);
      display: grid;
      place-items: center;
      font-size: 0.9rem;
      font-weight: 700;
      color: #e5e7eb;
      box-shadow: 0 10px 25px rgba(56,189,248,0.45);
    }

    .nav-title {
      font-weight: 600;
      letter-spacing: 0.03em;
      font-size: 0.95rem;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.9rem;
    }

    .nav-links a {
      position: relative;
      color: var(--muted);
      transition: color 0.2s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.3rem;
      width: 0;
      height: 2px;
      background: linear-gradient(to right, #38bdf8, #818cf8);
      border-radius: 999px;
      transition: width 0.2s ease;
    }

    .nav-links a:hover {
      color: #e5e7eb;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    main {
      padding-bottom: 4rem;
    }

    section {
      padding: 4rem 0;
    }

    section:nth-of-type(even) {
      background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
    }

    h2.section-title {
      font-size: 1.6rem;
      margin-bottom: 0.5rem;
      letter-spacing: 0.04em;
    }

    .section-subtitle {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 2rem;
    }

    /* Hero */

    .hero {
      padding-top: 3rem;
      padding-bottom: 4rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 2.5rem;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.18rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.5);
      background: radial-gradient(circle at top left, rgba(56,189,248,0.2), rgba(15,23,42,0.7));
      color: var(--muted);
      font-size: 0.75rem;
      margin-bottom: 1rem;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 0 6px rgba(34,197,94,0.2);
    }

    .hero-title {
      font-size: clamp(2.2rem, 3.4vw + 0.5rem, 3.1rem);
      font-weight: 700;
      margin-bottom: 0.8rem;
      letter-spacing: 0.03em;
    }

    .hero-title span {
      background: linear-gradient(to right, #38bdf8, #a855f7);
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero-subtitle {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 34rem;
      margin-bottom: 1.5rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-bottom: 2rem;
    }

    .btn {
      border-radius: 999px;
      padding: 0.6rem 1.3rem;
      font-size: 0.9rem;
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .btn-primary {
      background: linear-gradient(to right, #2563eb, #7c3aed);
      border-color: rgba(129,140,248,0.4);
      color: #e5e7eb;
      box-shadow: 0 16px 45px rgba(37,99,235,0.6);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 55px rgba(37,99,235,0.8);
    }

    .btn-outline {
      background: rgba(15,23,42,0.8);
      border-color: rgba(148,163,184,0.6);
      color: var(--muted);
    }

    .btn-outline:hover {
      border-color: #38bdf8;
      color: #e5e7eb;
      background: radial-gradient(circle at top left, rgba(56,189,248,0.25), rgba(15,23,42,0.9));
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .hero-meta-item {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .hero-card {
      position: relative;
      border-radius: var(--radius-xl);
      padding: 1.4rem 1.3rem;
      background: radial-gradient(circle at top, #0f172a, #020617);
      border: 1px solid rgba(148,163,184,0.2);
      box-shadow: var(--shadow-soft);
      overflow: hidden;
    }

    .hero-card-tag {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: var(--muted);
      margin-bottom: 0.4rem;
    }

    .hero-card-title {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
    }

    .hero-card-desc {
      font-size: 0.8rem;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }

    .hero-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-bottom: 1rem;
    }

    .chip {
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.3);
      background: rgba(15,23,42,0.8);
      color: var(--muted);
    }

    .hero-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      color: var(--muted);
    }

    .hero-orb {
      position: absolute;
      width: 110px;
      height: 110px;
      border-radius: 999px;
      background: radial-gradient(circle at 30% 20%, #38bdf8, #4f46e5, transparent);
      opacity: 0.5;
      top: -30px;
      right: -36px;
      filter: blur(2px);
    }

    .hero-card-badge {
      position: absolute;
      top: 0.9rem;
      right: 0.9rem;
      font-size: 0.7rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      border: 1px solid rgba(148,163,184,0.6);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* About */

    .about-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 2rem;
    }

    .about-text {
      font-size: 0.9rem;
      color: var(--muted);
    }

    .about-text p + p {
      margin-top: 0.7rem;
    }

    .about-list {
      margin-top: 1rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.4rem 1.5rem;
      font-size: 0.85rem;
    }

    .about-list span {
      color: var(--muted);
    }

    .about-card {
      border-radius: var(--radius-lg);
      padding: 1rem;
      background: radial-gradient(circle at top left, rgba(59,130,246,0.18), rgba(15,23,42,0.9));
      border: 1px solid rgba(148,163,184,0.3);
      font-size: 0.8rem;
    }

    .about-card strong {
      display: block;
      margin-bottom: 0.3rem;
      font-size: 0.86rem;
    }

    /* Projects */

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.5rem;
    }

    .project-card {
      border-radius: var(--radius-lg);
      background: radial-gradient(circle at top, #020617, #020617 50%, #000 100%);
      border: 1px solid var(--border);
      padding: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s;
      position: relative;
      overflow: hidden;
    }

    .project-card:hover {
      transform: translateY(-3px);
      border-color: rgba(59,130,246,0.7);
      box-shadow: var(--shadow-soft);
      background: radial-gradient(circle at top, #0b1120, #020617 55%, #000 100%);
    }

    .project-tag {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: var(--muted);
    }

    .project-title {
      font-size: 0.95rem;
      font-weight: 600;
    }

    .project-description {
      font-size: 0.8rem;
      color: var(--muted);
    }

    .project-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.75rem;
      color: var(--muted);
      margin-top: 0.25rem;
    }

    .project-links {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.75rem;
      font-size: 0.78rem;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.4);
      color: var(--muted);
    }

    .project-link:hover {
      border-color: #38bdf8;
      color: #e5e7eb;
    }

    /* Skills */

    .skills-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 2rem;
      align-items: start;
    }

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

    .skill-group {
      border-radius: var(--radius-lg);
      padding: 0.9rem;
      background: radial-gradient(circle at top left, rgba(15,118,110,0.25), rgba(15,23,42,0.9));
      border: 1px solid rgba(55,65,81,0.8);
      font-size: 0.8rem;
    }

    .skill-group:nth-child(2) {
      background: radial-gradient(circle at top left, rgba(59,130,246,0.25), rgba(15,23,42,0.9));
    }

    .skill-group:nth-child(3) {
      background: radial-gradient(circle at top left, rgba(234,179,8,0.25), rgba(15,23,42,0.9));
    }

    .skill-group h3 {
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #e5e7eb;
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
    }

    .skill-chip {
      font-size: 0.72rem;
      padding: 0.22rem 0.55rem;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.45);
      background: rgba(15,23,42,0.7);
      color: var(--muted);
    }

    .skill-levels {
      border-radius: var(--radius-lg);
      padding: 1rem;
      background: radial-gradient(circle at top, rgba(56,189,248,0.1), rgba(15,23,42,0.95));
      border: 1px solid rgba(148,163,184,0.4);
      font-size: 0.8rem;
    }

    .skill-level-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    .skill-level-row span {
      font-size: 0.8rem;
    }

    .skill-bar {
      position: relative;
      height: 6px;
      flex: 1;
      margin-left: 0.7rem;
      border-radius: 999px;
      background: rgba(15,23,42,0.9);
      overflow: hidden;
    }

    .skill-bar-fill {
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(to right, #38bdf8, #a855f7);
    }

    /* Contact */

    .contact-grid {
      display: grid;
      grid-template-columns: 1.3fr 1fr;
      gap: 2rem;
      align-items: start;
    }

    .contact-card {
      border-radius: var(--radius-xl);
      padding: 1.5rem 1.3rem;
      background: radial-gradient(circle at top, rgba(56,189,248,0.16), rgba(15,23,42,0.9));
      border: 1px solid rgba(148,163,184,0.5);
      box-shadow: var(--shadow-soft);
      font-size: 0.9rem;
    }

    .contact-list {
      list-style: none;
      margin-top: 1rem;
      display: grid;
      gap: 0.4rem;
      font-size: 0.86rem;
    }

    .contact-list li span {
      color: var(--muted);
    }

    .contact-form {
      border-radius: var(--radius-lg);
      padding: 1.2rem;
      background: rgba(15,23,42,0.9);
      border: 1px solid rgba(55,65,81,0.8);
      font-size: 0.85rem;
    }

    .form-group {
      margin-bottom: 0.7rem;
    }

    .form-label {
      display: block;
      margin-bottom: 0.15rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    .form-input,
    .form-textarea {
      width: 100%;
      border-radius: 10px;
      border: 1px solid rgba(55,65,81,0.9);
      background: #020617;
      padding: 0.45rem 0.6rem;
      color: #e5e7eb;
      font-size: 0.85rem;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
    }

    .form-input:focus,
    .form-textarea:focus {
      border-color: #38bdf8;
      box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
      background: #020617;
    }

    .form-textarea {
      min-height: 90px;
      resize: vertical;
    }

    footer {
      padding: 1.5rem 0 2rem;
      border-top: 1px solid rgba(31,41,55,0.8);
      margin-top: 2rem;
      font-size: 0.8rem;
      color: var(--muted);
    }

    footer .footer-inner {
      display: flex;
      justify-content: center;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }

    footer a {
      color: var(--muted);
    }

    footer a:hover {
      color: #e5e7eb;
    }

    /* Responsive */

    @media (max-width: 920px) {
      .hero-grid,
      .about-grid,
      .skills-grid,
      .contact-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-card {
        max-width: 400px;
        margin-inline: auto;
      }
    }

    @media (max-width: 820px) {
      .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }

      .nav-links {
        gap: 0.9rem;
        font-size: 0.82rem;
      }

      .hero {
        padding-top: 2rem;
      }

      section {
        padding: 3rem 0;
      }

      .projects-grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .skills-groups {
        grid-template-columns: minmax(0, 1fr);
      }

      .about-list {
        grid-template-columns: minmax(0, 1fr);
      }

      .contact-card {
        order: -1;
      }
    }