/* ── Reset & Base ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    :root {
      --bg: #ffffff;
      --bg-alt: #f8fafc;
      --text-main: #0f172a;
      --text-muted: #475569;
      --text-light: #94a3b8;
      --border: #e2e8f0;
      --border-hover: #cbd5e1;
      --radius: 16px;
      --accent: #7c3aed;
      --accent-light: #f3e8ff;
      --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text-main);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    /* ── Scroll Fade-Up ── */
    .fade-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ── Typing Effect ── */
    .typing-text {
      border-right: 3px solid var(--accent);
      padding-right: 4px;
      animation: blinkCursor 0.75s step-end infinite;
    }
    @keyframes blinkCursor {
      from, to { border-color: transparent }
      50% { border-color: var(--accent); }
    }

    /* ── Layout ── */
    .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ── Navigation & Prominent Socials ── */
    nav {
      padding: 2rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4rem;
    }
    
    .nav-brand {
      font-weight: 700;
      font-size: 1.5rem;
      letter-spacing: -0.02em;
    }

    .nav-brand span {
      color: var(--accent);
    }

    .nav-socials {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      justify-content: flex-end;
    }

    .social-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--bg-alt);
      border: 1px solid var(--border);
      padding: 0.4rem 0.8rem;
      border-radius: 100px;
      font-weight: 600;
      font-size: 0.8rem;
      color: var(--text-main);
      box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .social-pill:hover {
      background: var(--text-main);
      color: #ffffff;
      border-color: var(--text-main);
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .social-pill svg {
      width: 18px; height: 18px;
    }

    /* ── Common Components ── */
    .section-header {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 2rem;
      margin-top: 5rem;
      position: relative;
      overflow-x: hidden;
    }

    .avatar {
      width: 125px;
      height: 125px;
      border-radius: 50%;
      object-fit: cover;
      object-position: top center;
      margin-bottom: 1.5rem;
      box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent), 0 10px 25px -5px rgba(14, 165, 233, 0.25);
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    }

    .avatar:hover {
      transform: scale(1.05) rotate(2deg);
      box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent), 0 15px 30px -5px rgba(14, 165, 233, 0.4);
    }

    .card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 2rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
      transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
      border-color: var(--border-hover);
    }

    /* ── Tech Stack Categorized Grid ── */
    .tech-stack-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 2.5rem;
    }
    
    @media (min-width: 640px) {
      .tech-stack-container {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .tech-category-title {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
      font-weight: 700;
    }

    .tech-list {
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
    }

    .tech-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 500;
      font-size: 0.95rem;
      color: var(--text-main);
      padding: 0.5rem;
      border-radius: 8px;
      transition: background 0.2s, transform 0.2s;
    }

    .tech-item:hover {
      background: var(--bg-alt);
      transform: translateX(4px);
    }

    .tech-item svg {
      width: 20px;
      height: 20px;
      color: var(--accent);
    }

    /* ── Hero Sections ── */
    .hero { margin-bottom: 4rem; }
    
    .hero h1 {
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.25rem;
      color: var(--text-muted);
      max-width: 600px;
      line-height: 1.6;
    }

    .accent-bg {
      background: var(--accent-light);
      color: var(--accent);
      padding: 0.25rem 0.75rem;
      border-radius: 100px;
      font-size: 0.875rem;
      font-weight: 600;
      display: inline-block;
      margin-bottom: 1.5rem;
    }

    /* ── Grid Layouts ── */
    .grid-2 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    @media (min-width: 768px) {
      .grid-2 { grid-template-columns: repeat(2, 1fr); }
    }

    /* ── Professional Projects ── */
    .project-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1rem;
    }

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

    .project-icon {
      width: 48px; height: 48px;
      background: var(--bg-alt);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .project-desc {
      color: var(--text-muted);
      font-size: 0.95rem;
      margin-bottom: 1.5rem;
    }

    .tech-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .tech-tag {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--bg-alt);
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
    }

    .project-links {
      display: flex;
      gap: 1rem;
      font-weight: 600;
      font-size: 0.875rem;
    }

    .project-links a.primary { color: var(--accent); }
    .project-links a.secondary { color: var(--text-muted); }
    .project-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

    /* ── Personal Cards ── */
    .hobby-card {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .hobby-icon {
      width: 56px; height: 56px;
      background: var(--accent-light);
      color: var(--accent);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .hobby-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

    .hobby-value {
      font-size: 1.125rem;
      font-weight: 600;
      color: var(--text-main);
    }

    /* ── Contact ── */
    .contact-banner {
      background: var(--bg-alt);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 3rem;
      text-align: center;
      margin-top: 5rem;
      margin-bottom: 4rem;
    }

    .contact-banner h2 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: var(--text-main);
    }

    .contact-banner p {
      color: var(--text-muted);
      margin-bottom: 1.5rem;
    }

    .btn-contact {
      background: var(--accent);
      color: #fff;
      padding: 0.75rem 2rem;
      border-radius: 8px;
      font-weight: 600;
      display: inline-block;
      transition: opacity 0.2s, transform 0.2s;
    }

    .btn-contact:hover {
      opacity: 0.9;
      transform: translateY(-2px);
      color: #fff;
    }

    /* ── Footer ── */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 0;
      display: flex;
      justify-content: space-between;
      color: var(--text-light);
      font-size: 0.875rem;
    }

    /* ── Equalizer Animation ── */
    .eq-bar {
      width: 3px;
      background-color: #10b981;
      border-radius: 2px;
      height: 4px; /* default paused state */
      transition: height 0.2s;
    }
    .playing .eq-bar {
      animation: eq 1s ease-in-out infinite alternate;
    }
    @keyframes eq {
      0% { height: 4px; }
      100% { height: 16px; }
    }

    /* ── Clickable Player ── */
    .custom-player {
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
      user-select: none;
    }
    .custom-player:hover {
      background: var(--border) !important;
    }
    .play-icon { display: block; }
    .pause-icon { display: none; }
    .playing .play-icon { display: none; }
    .playing .pause-icon { display: block; }

    /* ── Premium Splash Screen ── */
    #splash-screen {
      position: fixed;
      top: 0; left: 0; width: 100%; height: 100%;
      background: var(--bg); /* Match original website background */
      z-index: 99999;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.9s ease;
    }
    .splash-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    .splash-name {
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--text-main); /* Match original text color */
      letter-spacing: -0.04em;
      opacity: 0;
      transform: translateY(20px);
      animation: splashTextFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    }
    .splash-subtitle {
      font-size: 0.9rem;
      font-family: monospace;
      color: var(--text-muted); /* Match original muted text */
      opacity: 0;
      transform: translateY(10px);
      animation: splashTextFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
    }
    .splash-loader {
      width: 160px;
      height: 2px;
      background: var(--border); /* Match original border color */
      border-radius: 2px;
      overflow: hidden;
      margin-top: 1.5rem;
      opacity: 0;
      animation: splashTextFadeIn 0.5s ease forwards 0.6s;
    }
    .splash-loader-bar {
      width: 0%;
      height: 100%;
      background: var(--accent); /* Match original purple accent */
      animation: splashLoad 1.4s cubic-bezier(0.85, 0, 0.15, 1) forwards 0.6s;
    }
    @keyframes splashTextFadeIn {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes splashLoad {
      0% { width: 0%; }
      50% { width: 70%; }
      100% { width: 100%; }
    }
    body.splash-active {
      overflow: hidden;
    }
