:root {
  --bg: #0a1018;
    --bg: #0a1018;
    --surface: #111a26;
    --surface-2: #162233;
    --text: #e7edf5;
    --muted: #9bacbf;
    --border: #27364b;
    --gradient-a: #00c7b7;
    --gradient-b: #ff8a3d;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    --radius: 16px;
  }

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
  }

  body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at 10% 10%, rgba(0, 199, 183, 0.12), transparent 35%),
      radial-gradient(circle at 85% 0%, rgba(255, 138, 61, 0.1), transparent 35%),
      var(--bg);
    background-attachment: fixed;
    line-height: 1.6;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: -2;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.08;
  }

  h1,
  h2,
  h3,
  .brand,
  .section-label,
  .btn {
    font-family: "JetBrains Mono", "Consolas", monospace;
  }

  .container {
    width: min(1100px, 92%);
    margin: 0 auto;
  }

  .section {
    padding: 6rem 0;
    position: relative;
  }

  .section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 199, 183, 0.35), transparent);
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 16, 24, 0.72);
    border-bottom: 1px solid rgba(39, 54, 75, 0.6);
  }

  .navbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .social-rail {
    position: fixed;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 0.65rem;
    z-index: 1001;
  }

  .social-rail a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--muted);
    background: rgba(17, 26, 38, 0.92);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .social-rail a:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: rgba(0, 199, 183, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 199, 183, 0.15);
  }

  .brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .brand::after {
    content: "_";
    color: var(--gradient-a);
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.12rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gradient-a), var(--gradient-b));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text);
    background: rgba(0, 199, 183, 0.14);
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
  }

  .theme-switcher {
    display: flex;
    gap: 0.45rem;
    align-items: center;
  }

  .theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(120deg, var(--gradient-a), var(--gradient-b));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .theme-dot[data-theme="blue"] {
    background: linear-gradient(120deg, #47c4ff, #6b83ff);
  }

  .theme-dot[data-theme="lime"] {
    background: linear-gradient(120deg, #70f47f, #d2f46f);
  }

  .theme-dot.is-active {
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
  }

  .menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 0.45rem;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px;
    background: var(--text);
  }

  .hero {
    min-height: calc(100vh - 72px);
    display: grid;
    align-items: center;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
  }

  .eyebrow {
    color: var(--gradient-a);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5.8vw, 3.9rem);
    line-height: 1.12;
  }

  .gradient-text {
    background: linear-gradient(105deg, #f7fafc 20%, #8ff9ee 45%, #ffb27c 75%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero h2 {
    margin-top: 0.9rem;
    font-size: clamp(1rem, 2.3vw, 1.45rem);
    color: var(--muted);
  }

  .typing-text {
    color: var(--gradient-b);
    border-right: 2px solid var(--gradient-a);
    white-space: nowrap;
    animation: cursor 0.9s step-end infinite;
  }

  @keyframes cursor {
    50% {
      border-color: transparent;
    }
  }

  .tagline {
    margin-top: 1rem;
    font-size: 1.08rem;
  }

  .intro {
    margin-top: 0.8rem;
    color: var(--muted);
    max-width: 62ch;
  }

  .hero-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .btn {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.72rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .btn .ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 550ms ease-out;
    pointer-events: none;
  }

  @keyframes ripple {
    to {
      opacity: 0;
      transform: translate(-50%, -50%) scale(15);
    }
  }

  .btn-primary {
    color: #06141a;
    background: linear-gradient(120deg, var(--gradient-a), #57f7e8);
  }

  .btn-secondary {
    color: var(--text);
    border-color: var(--border);
    background: rgba(17, 26, 38, 0.86);
  }

  .hero-card,
  .about-card,
  .skill-card,
  .project-card,
  .experience-card,
  .contact-form {
    background: linear-gradient(180deg, rgba(22, 34, 51, 0.85), rgba(17, 26, 38, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .hero-card {
    position: relative;
    padding: 1.25rem;
  }

  .hero-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius) + 2px);
    background: conic-gradient(from 140deg, var(--gradient-a), transparent 38%, var(--gradient-b), transparent 72%, var(--gradient-a));
    z-index: -1;
    filter: blur(10px);
    opacity: 0.65;
  }

  .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gradient-a);
    box-shadow: 0 0 12px var(--gradient-a);
    margin-bottom: 0.8rem;
  }

  .hero-card .card-title {
    color: var(--muted);
    font-size: 0.85rem;
  }

  .hero-card h3 {
    margin: 0.45rem 0 0.9rem;
  }

  .hero-card ul {
    padding-left: 1rem;
    color: var(--muted);
  }

  .hero-metrics {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .hero-metrics article {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(17, 26, 38, 0.75);
  }

  .metric-value {
    font-size: 1.25rem;
    color: var(--gradient-a);
  }

  .hero-metrics p {
    color: var(--muted);
    font-size: 0.84rem;
  }

  .section-head {
    margin-bottom: 1.6rem;
  }

  .section-label {
    color: var(--gradient-a);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .section-head h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
  }

  .about-card {
    padding: 1.4rem;
  }

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

  .skill-card {
    padding: 1.2rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .skill-card:hover,
  .project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 199, 183, 0.55);
  }

  .skill-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
  }

  .skill-card h3 i {
    color: var(--gradient-a);
  }

  .skill-list {
    list-style: none;
    display: grid;
    gap: 0.45rem;
  }

  .skill-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
  }

  .skill-list li i {
    color: var(--gradient-b);
    font-size: 0.95rem;
  }

  .featured-project {
    display: grid;
    grid-template-columns: 0.32fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 199, 183, 0.12), rgba(255, 138, 61, 0.08), rgba(17, 26, 38, 0.95));
    box-shadow: var(--shadow);
  }

  .featured-media {
    border-radius: 12px;
    border: 1px solid rgba(0, 199, 183, 0.32);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: var(--gradient-a);
    min-height: 120px;
    background: radial-gradient(circle at 40% 20%, rgba(0, 199, 183, 0.25), transparent 60%), rgba(10, 16, 24, 0.8);
  }

  .featured-content h3 {
    margin-bottom: 0.45rem;
  }

  .featured-content p {
    color: var(--muted);
    margin-bottom: 0.75rem;
  }

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

  .project-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }

  .project-media {
    margin-bottom: 0.75rem;
    height: 110px;
    border-radius: 12px;
    border: 1px solid rgba(0, 199, 183, 0.28);
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--gradient-a);
    background:
      radial-gradient(circle at 35% 20%, rgba(0, 199, 183, 0.25), transparent 55%),
      radial-gradient(circle at 70% 75%, rgba(255, 138, 61, 0.18), transparent 65%),
      rgba(10, 16, 24, 0.75);
  }

  .project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(0, 199, 183, 0.09), rgba(255, 138, 61, 0.08));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  }

  .project-card:hover::before {
    opacity: 1;
  }

  .project-index {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gradient-a);
    margin-bottom: 0.4rem;
  }

  .project-card p {
    margin: 0.8rem 0 1rem;
    color: var(--muted);
  }

  .chip-wrap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    color: #bcd1e9;
    background: rgba(0, 199, 183, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .project-card:hover .chip {
    border-color: rgba(0, 199, 183, 0.55);
    background: rgba(0, 199, 183, 0.14);
    color: #e7fbff;
  }

  .experience-card {
    padding: 1.2rem;
  }

  .experience-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .experience-top span,
  .company {
    color: var(--muted);
  }

  .experience-card ul {
    margin-top: 0.8rem;
    padding-left: 1rem;
  }

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

  .cert-card {
    background: linear-gradient(180deg, rgba(22, 34, 51, 0.9), rgba(17, 26, 38, 0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .cert-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 199, 183, 0.55);
  }

  .cert-card h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
  }

  .cert-card h3 i {
    color: var(--gradient-a);
  }

  .cert-card p {
    margin-top: 0.45rem;
    color: var(--muted);
  }

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

  .contact-mail {
    color: var(--muted);
    margin-top: 0.7rem;
  }

  .contact-form {
    padding: 1.2rem;
    display: grid;
    gap: 0.5rem;
  }

  .contact-form label {
    font-size: 0.9rem;
    color: var(--muted);
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(10, 16, 24, 0.75);
    color: var(--text);
    padding: 0.72rem;
    font: inherit;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--gradient-a);
    box-shadow: 0 0 0 2px rgba(0, 199, 183, 0.2);
  }

  .footer {
    border-top: 1px solid rgba(39, 54, 75, 0.8);
    padding: 1.1rem 0;
    color: var(--muted);
    text-align: center;
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(3px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  }

  .reveal.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  .delay-1 {
    transition-delay: 0.08s;
  }

  .delay-2 {
    transition-delay: 0.16s;
  }

  .delay-3 {
    transition-delay: 0.24s;
  }

  @media (max-width: 980px) {
    .hero-grid,
    .project-grid,
    .skills-grid,
    .contact-grid {
      grid-template-columns: 1fr 1fr;
    }

    .featured-project {
      grid-template-columns: 1fr;
    }

    .social-rail {
      left: 0.65rem;
    }
  }

  @media (max-width: 740px) {
    .menu-toggle {
      display: block;
    }

    .nav-links {
      position: absolute;
      top: 72px;
      right: 4%;
      width: min(240px, 90vw);
      background: rgba(17, 26, 38, 0.96);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.6rem;
      display: none;
      flex-direction: column;
    }

    .nav-links.open {
      display: flex;
    }

    .hero-grid,
    .project-grid,
    .skills-grid,
    .cert-grid,
    .contact-grid {
      grid-template-columns: 1fr;
    }

    .hero-metrics {
      grid-template-columns: 1fr;
    }

    .theme-switcher {
      margin-left: auto;
    }

    .social-rail {
      display: none;
    }

    .section {
      padding: 4.5rem 0;
    }
  }
