
    /* =====================
       Base & Theme
    ====================== */
    :root {
      --bg: #0b0f14;
      --surface: #0f1720;
      --text: #e6eef8;
      --muted: #9fb4cc;
      --primary: #61dafb;
      --accent: #7c5cff;
      --ring: rgba(124,92,255,.35);
      --card: #0e141c;
      --grad-1: 210 100% 55%; /* cyan */
      --grad-2: 260 100% 64%; /* violet */
      --grad-3: 190 100% 50%; /* blue */
      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.02);
      --shadow-soft: 0 6px 16px rgba(0,0,0,.28);
      --container: 1120px;
    }

    [data-theme="light"] {
      --bg: #f7fafc;
      --surface: #ffffff;
      --text: #0c1220;
      --muted: #51607a;
      --primary: #2563eb;
      --accent: #7c3aed;
      --ring: rgba(37,99,235,.25);
      --card: #ffffff;
      --shadow: 0 8px 24px rgba(2,6,23,.08), inset 0 1px 0 rgba(2,6,23,.04);
      --shadow-soft: 0 6px 14px rgba(2,6,23,.06);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0; color: var(--text); background: radial-gradient(1200px 800px at 80% -10%, rgba(124,92,255,.15), transparent 60%),
      radial-gradient(900px 700px at -10% 20%, rgba(97,218,251,.12), transparent 60%),
      var(--bg);
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
      line-height: 1.6; letter-spacing: .2px;
    }

    .container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

    .btn {
      --_bg: linear-gradient(135deg, hsl(var(--grad-1)) 0%, hsl(var(--grad-2)) 50%, hsl(var(--grad-3)) 100%);
      display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem;
      border-radius: 999px; border: 0; color: white; background: var(--_bg);
      box-shadow: var(--shadow-soft); text-decoration: none; font-weight: 700; letter-spacing: .2px;
      position: relative; isolation: isolate;
    }
    .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(0deg, rgba(255,255,255,.16), transparent 60%); mix-blend-mode: overlay; pointer-events: none; }
    .btn.outline { background: rgb(255, 255, 255); color: rgb(0, 0, 0); border: 1px solid rgba(255,255,255,.12); }
    [data-theme="light"] .btn.outline { border-color: rgba(2,6,23,.12); }

    .badge { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 999px; background: rgba(124,92,255,.15); color: #d9d1ff; font-weight: 600; }
    [data-theme="light"] .badge { background: rgba(124,92,255,.12); color: #5b3eea; }

    .glass-card { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
    [data-theme="light"] .glass-card { background: #fff; border-color: rgba(2,6,23,.06); }

    /* =====================
       Header / Navbar
    ====================== */
    header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(12,18,32,.7), rgba(12,18,32,.35), transparent); border-bottom: 1px solid rgba(255,255,255,.06); }
    [data-theme="light"] header { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.5), transparent); border-bottom-color: rgba(2,6,23,.06); }
    .nav { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
    .brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .3px; }
    .brand i { font-size: 1.4rem; }

    .nav-links { display: flex; gap: .6rem; align-items: center; }
    .nav-links a { text-decoration: none; color: var(--muted); padding: .55rem .85rem; border-radius: 999px; font-weight: 600; }
    .nav-links a.active, .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
    [data-theme="light"] .nav-links a:hover { background: rgba(2,6,23,.06); }

    .nav-cta { display: flex; gap: .6rem; align-items: center; }
    .theme-toggle, .menu-toggle { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--text); cursor: pointer; }
    [data-theme="light"] .theme-toggle, [data-theme="light"] .menu-toggle { border-color: rgba(2,6,23,.12); }

    .mobile { display: none; }

    @media (max-width: 900px) {
      .mobile { display: block; }
      .nav-links { position: fixed; inset: 64px 1rem auto 1rem; background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-xl); padding: .6rem; flex-direction: column; align-items: stretch; gap: .2rem; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s ease; }
      [data-theme="light"] .nav-links { border-color: rgba(2,6,23,.06); }
      .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
      .nav-links a { padding: .9rem 1rem; }
    }

    /* =====================
       Hero
    ====================== */
    .hero { position: relative; padding: 6rem 0 4rem; overflow: clip; }
    .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
    @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; padding-top: 1rem; } }

    .headline { font-family: Manrope, Inter, system-ui; font-weight: 800; padding-top: 10px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: .2px; margin: 0 0 1rem; }
    .headline .grad { background: linear-gradient(90deg, hsl(var(--grad-1)), hsl(var(--grad-2)), hsl(var(--grad-3))); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin: 0 0 1.6rem; }
    .cta-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }

    .hero-art { position: relative; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,.2); width: auto; }
    .hero-art img { width: 100%; height: 100%; object-fit: cover;  
      border-radius: 50%;
      
    }


    .blob, .ring { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .7; }
    .blob.b1 { width: 340px; height: 340px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.75), transparent 60%); top: -8%; left: -8%; animation: float 12s ease-in-out infinite; }
    .blob.b2 { width: 260px; height: 260px; background: radial-gradient(circle at 70% 60%, rgba(97,218,251,.7), transparent 60%); bottom: -10%; right: -6%; animation: float 13s ease-in-out -2s infinite; }
    .ring { inset: auto auto 10% 10%; width: 180px; height: 180px; border-radius: 40%; background: conic-gradient(from 180deg, rgba(255,255,255,.16), rgba(255,255,255,0)); mix-blend-mode: overlay; animation: spin 14s linear infinite; }

    @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(18px) } }
    @keyframes spin { to { transform: rotate(1turn) } }

    /* =====================
       Sections
    ====================== */
    section { padding: 4.5rem 0; position: relative; }
    .section-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 0 0 1.4rem; font-weight: 800; letter-spacing: .2px; }
    .section-sub { color: var(--muted); margin-bottom: 2.2rem; max-width: 66ch; }

    /* About */
    .about { display: flex; flex-direction: column; gap: 2rem; }
    .about .card { padding: 1.4rem; }
    .about .stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .about .stat .tile { padding: 1rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid rgba(255,255,255,.06); text-align: center; }
    [data-theme="light"] .about .stat .tile { border-color: rgba(2,6,23,.06); }
    .tile .num { font-size: 1.8rem; font-weight: 800; }

 
  

    /* Skills */
    .skills { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
    .skill { padding: 1rem; border-radius: var(--radius-lg); background: var(--card); border: 1px solid rgba(255,255,255,.06); }
    [data-theme="light"] .skill { border-color: rgba(2,6,23,.06); }
    .skill h4 { margin: .1rem 0 1rem; }
    .bar { height: 12px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; position: relative; }
    .bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, hsl(var(--grad-1)), hsl(var(--grad-2))); border-radius: inherit; box-shadow: inset 0 0 14px rgba(255,255,255,.2); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }

    /* Education */
    .timeline { position: relative; padding-left: 24px; }
    .timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); }
    .edu { position: relative; margin: 0 0 1.4rem; padding: 1rem 1rem 1rem 1.2rem; background: var(--card); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow-soft); }
    [data-theme="light"] .edu { border-color: rgba(2,6,23,.06); }
    .edu::before { content: ""; position: absolute; left: -6px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff, rgba(255,255,255,0)); outline: 2px solid rgba(255,255,255,.4); }
    .edu time { opacity: .7; font-weight: 700; }

    /* Projects */
    .toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
    .chip { padding: .55rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--text); cursor: pointer; font-weight: 600; }
    .chip.active, .chip:hover { background: rgba(124,92,255,.16); border-color: var(--ring); }
    [data-theme="light"] .chip { border-color: rgba(2,6,23,.12); }

    .projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
    .project { grid-column: span 4; display: grid; grid-template-rows: 180px auto; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid rgba(255,255,255,.06); background: var(--card); box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
    .project:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
    .project img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.03); }
    .project .body { padding: 1rem; }
    .project .tags { display: flex; gap: .4rem; flex-wrap: wrap; }
    .project .tags .tag { background: rgba(255,255,255,.08); padding: .35rem .6rem; border-radius: 999px; font-size: .85rem; }
    .project .links { display: flex; gap: .6rem; margin-top: .6rem; }
    @media (max-width: 1000px){ .project { grid-column: span 6 }
   .hero-art {width: 300px; 
  margin: auto;} }
    @media (max-width: 680px){ .project { grid-column: span 12 } 
  .hero-art {width: 300px; 
  margin: auto;}}

    /* Contact */
    form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    form .row { grid-column: span 1; display: grid; gap: .4rem; }
    form .row.full { grid-column: span 2; }
    label { font-weight: 700; font-size: .95rem; }
    input, textarea { width: 100%; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,.08); outline: none; box-shadow: var(--shadow-soft); }
    [data-theme="light"] input, [data-theme="light"] textarea { background: #f8fafc; border-color: rgba(2,6,23,.06); }
    textarea { resize: vertical; min-height: 140px; }

    /* Footer */
    footer { padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,.08);
      background-color: #0b0f14; color: white; }
    [data-theme="light"] footer { border-top-color: rgba(2,6,23,.08); }

    /* Reveal Animations */
    .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.is-visible { opacity: 1; transform: none; }

    /* Reduce motion accessibility */
    @media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition: none !important; }
    }
    .pp {
      width: 40px;
      height: 40px;
      border-radius: 50%;
    }
    /* Base button styling */
.btn.outline.live {
  border: 1px solid #007bff;
  color: #007bff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 1s ease-in, background 0.3s ease, color 0.3s ease; /* smooth transform */
}

/* Hover effect */
.btn.outline.live:hover {
  transform: scale(1.05); /* slightly grows the button */
  background: #007bff;
  color: #fff;
}
#animated-text {
  display: inline-block;
  min-width: 260px;      /* <-- VERY IMPORTANT */
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  border-right: 2px solid #ff6600;
  padding-right: 6px;
}




