:root {
      --bg-color: #050816;
      --bg-light: #0b1020;
      --accent: #2563eb;          /* Corporate blue default */
      --accent-soft: rgba(37, 99, 235, 0.12);
      --accent-2: #6366f1;        /* Indigo */
      --text-main: #f9fafb;
      --text-muted: #9ca3af;
      --card-bg: #020617;
      --border-subtle: rgba(148, 163, 184, 0.3);
      --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
      --radius-xl: 24px;
      --transition-fast: 0.2s ease;
    }

    /* Light theme overrides */
    body.light-theme {
      --bg-color: #f4f4f8;
      --bg-light: #ffffff;
      --accent-soft: rgba(37, 99, 235, 0.08);
      --text-main: #020617;
      --text-muted: #6b7280;
      --card-bg: #ffffff;
      --border-subtle: rgba(148, 163, 184, 0.45);
      --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
      background: radial-gradient(circle at 0 0, #1d3354 0, var(--bg-color) 45%, #020617 100%);
      color: var(--text-main);
      line-height: 1.6;
      min-height: 100vh;
      transition: background 0.3s ease, color 0.3s ease;
      position: relative;
    }

    body.light-theme {
      background: radial-gradient(circle at 0 0, #e0e7ff 0, #eef2ff 35%, #f9fafb 100%);
    }

    .page-wrapper {
      max-width: 1120px;
      margin: 0 auto;
      padding: 1.5rem 1.25rem 3rem;
    }

    @media (min-width: 768px) {
      .page-wrapper {
        padding: 2rem 1.5rem 4rem;
      }
    }

    /* NAVBAR */
    .nav {
      position: sticky;
      top: 0.75rem;
      z-index: 50;
      margin-bottom: 1.75rem;
      backdrop-filter: blur(18px);
      background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.9),
        rgba(15, 23, 42, 0.55)
      );
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: 0 16px 45px rgba(15, 23, 42, 0.9);
      padding: 0.55rem 0.9rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    body.light-theme .nav {
      background: rgba(255, 255, 255, 0.88);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
      border-color: rgba(148, 163, 184, 0.3);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.95rem;
      font-weight: 500;
    }

    .brand-logo {
      width: 30px;
      height: 30px;
      border-radius: 999px;
      background: conic-gradient(
        from 180deg at 50% 50%,
        #2563eb,
        #0ea5e9,
        #6366f1,
        #2563eb
      );
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.85rem;
      font-weight: 700;
      color: #e5e7eb;
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.8);
    }

    .brand span {
      display: inline-block;
      color: var(--text-muted);
      font-size: 0.8rem;
      font-weight: 400;
    }

    .nav-links {
      display: none;
      gap: 0.5rem;
      align-items: center;
      flex-wrap: wrap;
    }

    @media (min-width: 768px) {
      .nav-links {
        display: flex;
      }
    }

    .nav-links a {
      text-decoration: none;
      font-size: 0.8rem;
      padding: 0.4rem 0.75rem;
      border-radius: 999px;
      color: var(--text-muted);
      border: 1px solid transparent;
      transition: var(--transition-fast);
    }

    .nav-links a:hover {
      color: var(--text-main);
      background-color: rgba(15, 23, 42, 0.85);
      border-color: rgba(148, 163, 184, 0.6);
    }

    body.light-theme .nav-links a:hover {
      background-color: rgba(226, 232, 240, 0.9);
    }

    .nav-cta {
      display: flex;
      gap: 0.45rem;
      align-items: center;
    }

    .btn,
    .btn-outline,
    .icon-btn {
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.8rem;
      padding: 0.5rem 0.9rem;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      text-decoration: none;
      transition: var(--transition-fast);
      white-space: nowrap;
      background: none;
    }

    .btn {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #f9fafb;
      box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
    }

    .btn:hover {
      transform: translateY(-1px) translateZ(0);
      box-shadow: 0 16px 35px rgba(37, 99, 235, 0.75);
      filter: brightness(1.03);
    }

    .btn-outline {
      background: transparent;
      border-color: rgba(148, 163, 184, 0.5);
      color: var(--text-muted);
    }

    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--text-main);
      background: rgba(15, 23, 42, 0.9);
    }

    body.light-theme .btn-outline:hover {
      background: rgba(226, 232, 240, 0.95);
    }

    .icon-btn {
      padding: 0.45rem 0.55rem;
      width: 34px;
      height: 34px;
      justify-content: center;
      border-radius: 999px;
      border-color: rgba(148, 163, 184, 0.6);
      color: var(--text-muted);
    }

    .icon-btn:hover {
      border-color: var(--accent);
      color: var(--text-main);
      background: rgba(15, 23, 42, 0.9);
    }

    body.light-theme .icon-btn:hover {
      background: rgba(226, 232, 240, 0.95);
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      background: transparent;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    @media (min-width: 768px) {
      .mobile-menu-btn {
        display: none;
      }
    }

    .mobile-menu-icon,
    .mobile-menu-icon::before,
    .mobile-menu-icon::after {
      content: "";
      display: block;
      width: 16px;
      height: 2px;
      border-radius: 999px;
      background: var(--text-main);
      transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease,
        bottom 0.25s ease;
      position: relative;
    }

    .mobile-menu-icon::before {
      position: absolute;
      top: -5px;
    }

    .mobile-menu-icon::after {
      position: absolute;
      bottom: -5px;
    }

    .mobile-menu-btn.active .mobile-menu-icon {
      transform: rotate(45deg);
    }

    .mobile-menu-btn.active .mobile-menu-icon::before {
      top: 0;
      transform: rotate(-90deg);
    }

    .mobile-menu-btn.active .mobile-menu-icon::after {
      bottom: 0;
      opacity: 0;
    }

    /* Mobile dropdown nav */
    .mobile-nav-links {
      display: grid;
      gap: 0.4rem;
      margin: 0.7rem auto 1rem;
      max-width: 560px;
      padding: 0.5rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.95));
      transform-origin: top;
      transform: scaleY(0.8);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .mobile-nav-links a {
      text-decoration: none;
      font-size: 0.78rem;
      padding: 0.3rem 0.7rem;
      border-radius: 999px;
      color: var(--text-muted);
      text-align: center;
    }

    .mobile-nav-links a:hover {
      background: rgba(15, 23, 42, 0.9);
      color: var(--text-main);
    }

    body.light-theme .mobile-nav-links {
      background: rgba(255, 255, 255, 0.96);
    }

    @media (min-width: 768px) {
      .mobile-nav-links {
        display: none;
      }
    }

    .mobile-nav-links.open {
      opacity: 1;
      transform: scaleY(1);
      pointer-events: auto;
    }

    /* THEME TOGGLE ICONS */
    .theme-icon {
      font-size: 0.9rem;
      line-height: 1;
    }

    .theme-icon.sun {
      display: none;
    }

    body.light-theme .theme-icon.moon {
      display: none;
    }

    body.light-theme .theme-icon.sun {
      display: inline;
    }

    /* MAIN SHELL */
    .shell {
      background: radial-gradient(circle at top, #111827 0, #020617 55%, #020617 100%);
      border-radius: 32px;
      border: 1px solid var(--border-subtle);
      padding: 1.75rem 1.4rem 1.8rem;
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    body.light-theme .shell {
      background: linear-gradient(145deg, #ffffff 0, #eef2ff 35%, #e5e7eb 100%);
    }

    @media (min-width: 768px) {
      .shell {
        padding: 2rem 1.8rem 2rem;
      }
    }

    .shell::before,
    .shell::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      filter: blur(40px);
      opacity: 0.4;
      pointer-events: none;
    }

    .shell::before {
      width: 220px;
      height: 220px;
      background: radial-gradient(circle, var(--accent), transparent 65%);
      top: -40px;
      right: -40px;
    }

    .shell::after {
      width: 220px;
      height: 220px;
      background: radial-gradient(circle, var(--accent-2), transparent 65%);
      bottom: -40px;
      left: -40px;
    }

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

    @media (min-width: 980px) {
      .shell-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
      }
    }

    /* HERO */
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1.5rem;
      align-items: center;
      position: relative;
      z-index: 1;
      margin-bottom: 2rem;
    }

    @media (min-width: 720px) {
      .hero {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
        gap: 1.75rem;
      }
    }

    .hero-badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-bottom: 0.8rem;
    }

    .pill {
      font-size: 0.7rem;
      padding: 0.25rem 0.7rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      color: var(--text-muted);
      backdrop-filter: blur(6px);
      background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8),
        rgba(15, 23, 42, 0.4)
      );
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    body.light-theme .pill {
      background: rgba(255, 255, 255, 0.9);
    }

    .pill-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 12px #22c55e;
    }

    .hero-title {
      font-size: clamp(2rem, 4vw, 2.6rem);
      font-weight: 700;
      letter-spacing: 0.01em;
      margin-bottom: 0.4rem;
    }

    .hero-title span {
      background: linear-gradient(120deg, var(--accent), #0ea5e9, var(--accent-2));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

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

    .hero-subtitle strong {
      color: #e5e7eb;
      font-weight: 500;
    }

    body.light-theme .hero-subtitle strong {
      color: #111827;
    }

    .hero-highlights {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      font-size: 0.8rem;
      margin-bottom: 1.3rem;
    }

    .hero-highlights span {
      padding: 0.35rem 0.7rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.45);
      color: var(--text-muted);
    }

    body.light-theme .hero-highlights span {
      background: rgba(255, 255, 255, 0.9);
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      align-items: center;
    }

    .hero-actions small {
      font-size: 0.75rem;
      color: var(--text-muted);
      max-width: 18rem;
    }

    /* Hero avatar */
    .hero-avatar-wrap {
      position: relative;
      justify-self: center;
    }

    .hero-avatar-orbit {
      width: 220px;
      height: 220px;
      border-radius: 999px;
      border: 1px dashed rgba(148, 163, 184, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      background: radial-gradient(circle at 30% 0, var(--accent) 0, #020617 50%);
      box-shadow: 0 16px 35px rgba(15, 23, 42, 0.95);
      overflow: hidden;
    }

    body.light-theme .hero-avatar-orbit {
      background: radial-gradient(circle at 30% 0, var(--accent) 0, #e5e7eb 50%);
    }

    .hero-avatar {
      width: 145px;
      height: 145px;
      border-radius: 999px;
      border: 3px solid rgba(15, 23, 42, 0.9);
      background: radial-gradient(circle at top, #1f2937, #020617);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 1.2rem 0.9rem;
      position: relative;
      overflow: hidden;
    }

    body.light-theme .hero-avatar {
      background: radial-gradient(circle at top, #ffffff, #e5e7eb);
      border-color: rgba(148, 163, 184, 0.9);
    }

    /* Placeholder photo area */
    .hero-avatar-photo {
      width: 100%;
      height: 100%;
      border-radius: inherit;
      background-size: cover;
      background-position: center;
      position: absolute;
      inset: 0;
      background-image: url("../images/parth-photo.jpg");
      opacity: 1; /* Set to 1 and define background-image when you add your real photo */
    }

    .hero-avatar-initials {
      width: 42px;
      height: 42px;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--accent), #0ea5e9);
      display: none; /* Hide  the Flex File*/
      align-items: center;
      justify-content: center;
      font-weight: 700;
      margin-bottom: 0.35rem;
      font-size: 1.1rem;
      z-index: 1;
    }

    .hero-avatar-name {
      font-size: 0.9rem;
      font-weight: 600;
      z-index: 1;
    }

    .hero-avatar-role {
      font-size: 0.75rem;
      color: var(--text-muted);
      z-index: 1;
    }

    .hero-orbit-tag {
      position: absolute;
      bottom: 12px;
      right: -6x;
      font-size: 0.7rem;
      padding: 0.35rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      background: rgba(15, 23, 42, 0.96);
      color: var(--text-muted);
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }

    body.light-theme .hero-orbit-tag {
      background: rgba(255, 255, 255, 0.96);
    }

    .hero-orbit-tag-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #22c55e;
    }

    .hero-orbit-chip {
      position: absolute;
      top: 22px;
      left: -4px;
      font-size: 0.7rem;
      padding: 0.3rem 0.55rem;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.2);
      border: 1px solid rgba(129, 140, 248, 0.5);
      color: #c7d2fe;
    }

    /* Section base */
    .section {
      position: relative;
      z-index: 1;
      margin-bottom: 1.6rem;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 0.9rem;
      gap: 0.6rem;
    }

    .section-title-wrap {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }

    .section-title-label {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent-2);
      font-weight: 600;
    }

    .section-title {
      font-size: 1rem;
      font-weight: 600;
    }

    .section-subtitle {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .section-tag {
      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.45);
      color: var(--text-muted);
    }

    body.light-theme .section-tag {
      background: rgba(255, 255, 255, 0.9);
    }

    /* Cards */
    .card {
      background: var(--card-bg);
      border-radius: var(--radius-xl);
      padding: 1rem 1.1rem;
      border: 1px solid var(--border-subtle);
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.85);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.2s ease;
    }

    body.light-theme .card {
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }

    .card:hover {
      transform: translateY(-1px);
    }

    @media (min-width: 768px) {
      .card {
        padding: 1.05rem 1.2rem;
      }
    }

    .card + .card {
      margin-top: 0.9rem;
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      gap: 0.8rem;
      align-items: baseline;
      margin-bottom: 0.35rem;
    }

    .card-title {
      font-size: 0.9rem;
      font-weight: 500;
    }

    .card-meta {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .card-body {
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      margin-top: 0.6rem;
    }

    .badge {
      font-size: 0.7rem;
      padding: 0.23rem 0.5rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.55);
      color: var(--text-muted);
    }

    body.light-theme .badge {
      background: rgba(255, 255, 255, 0.9);
    }

    .badge-pill {
      border-radius: 999px;
      padding: 0.2rem 0.45rem;
      font-size: 0.7rem;
      background: rgba(37, 99, 235, 0.16);
      border: 1px solid rgba(129, 140, 248, 0.8);
      color: #c7d2fe;
    }

    /* Skills */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 0.9rem;
    }

    .skills-group-title {
      font-size: 0.8rem;
      font-weight: 500;
      margin-bottom: 0.2rem;
    }

    .skills-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-bottom: 0.45rem;
    }

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

    body.light-theme .skill-chip {
      background: rgba(255, 255, 255, 0.95);
    }

    /* Animated skill bars */
    .skill-bar {
      width: 100%;
      height: 6px;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.7);
      overflow: hidden;
      position: relative;
    }

    body.light-theme .skill-bar {
      background: rgba(226, 232, 240, 0.85);
    }

    .skill-bar-fill {
      height: 100%;
      width: 0;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), #0ea5e9, var(--accent-2));
      transition: width 1.2s ease-out;
    }

    .skill-bar-fill.animate {
      width: var(--target);
    }

    .skill-meta-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.7rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }

    /* Projects */
    .project-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 0.8rem;
    }

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

    .project-card {
      background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.98),
        rgba(15, 23, 42, 0.92)
      );
      border-radius: 18px;
      padding: 0.9rem 0.9rem;
      border: 1px solid rgba(148, 163, 184, 0.6);
      position: relative;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    body.light-theme .project-card {
      background: #ffffff;
      box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    }

    .project-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.17), transparent 60%);
      opacity: 0;
      transition: opacity var(--transition-fast);
      pointer-events: none;
    }

    .project-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    }

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

    .project-title-row {
      display: flex;
      justify-content: space-between;
      gap: 0.5rem;
      align-items: center;
      margin-bottom: 0.3rem;
    }

    .project-title {
      font-size: 0.85rem;
      font-weight: 500;
    }

    .project-tag {
      font-size: 0.7rem;
      padding: 0.22rem 0.5rem;
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.9);
      border: 1px solid rgba(148, 163, 184, 0.6);
      color: var(--text-muted);
    }

    body.light-theme .project-tag {
      background: rgba(255, 255, 255, 0.95);
    }

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

    .project-meta-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .project-links {
      display: flex;
      gap: 0.25rem;
      flex-wrap: wrap;
    }

    .project-link {
      text-decoration: none;
      padding: 0.25rem 0.5rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      background: rgba(15, 23, 42, 0.95);
      color: var(--text-main);
      font-size: 0.7rem;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }

    .project-link:hover {
      border-color: var(--accent);
    }

    body.light-theme .project-link {
      background: #ffffff;
      color: #111827;
    }

    /* Sidebar */
    .sidebar {
      display: grid;
      gap: 1rem;
    }

    .info-list {
      display: grid;
      gap: 0.6rem;
      font-size: 0.8rem;
    }

    .info-row {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .info-label {
      color: var(--text-muted);
    }

    .info-value {
      text-align: right;
    }

    .social-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.4rem;
    }

    .social-chip {
      font-size: 0.75rem;
      padding: 0.28rem 0.6rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      text-decoration: none;
      color: var(--text-muted);
      background: rgba(15, 23, 42, 0.95);
    }

    .social-chip:hover {
      border-color: var(--accent);
      color: var(--text-main);
    }

    body.light-theme .social-chip {
      background: #ffffff;
    }

    .contact-card p {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.6rem;
    }

    .contact-lines {
      font-size: 0.8rem;
      display: grid;
      gap: 0.25rem;
      margin-bottom: 0.6rem;
    }

    .contact-lines a {
      color: #e5e7eb;
      text-decoration: none;
    }

    body.light-theme .contact-lines a {
      color: #1d4ed8;
    }

    .contact-lines a:hover {
      text-decoration: underline;
    }

    textarea {
      width: 100%;
      background: rgba(15, 23, 42, 0.95);
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      padding: 0.5rem 0.6rem;
      resize: vertical;
      min-height: 72px;
      color: #e5e7eb;
      font-family: inherit;
      font-size: 0.8rem;
      outline: none;
    }

    body.light-theme textarea {
      background: #ffffff;
      color: #111827;
    }

    textarea::placeholder {
      color: #6b7280;
    }

    textarea:focus {
      border-color: var(--accent);
    }

    .footer {
      margin-top: 1.2rem;
      font-size: 0.72rem;
      text-align: center;
      color: var(--text-muted);
    }

    .footer span {
      background: linear-gradient(120deg, var(--accent), var(--accent-2));
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-weight: 500;
    }

    @media (max-width: 480px) {
      .hero-actions {
        flex-direction: column;
        align-items: flex-start;
      }
    }

    /* Floating theme sidebar (professional corporate style) */
    .theme-fab {
      position: fixed;
      right: 1.4rem;
      bottom: 1.6rem;
      width: 46px;
      height: 46px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: radial-gradient(circle at 0 0, var(--accent-soft), #020617);
      backdrop-filter: blur(12px);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 80;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .theme-fab:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 50px rgba(15, 23, 42, 1);
      border-color: var(--accent);
    }

    body.light-theme .theme-fab {
      background: radial-gradient(circle at 0 0, var(--accent-soft), #ffffff);
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    }

    .theme-fab-icon {
      font-size: 1.2rem;
    }

    .theme-panel {
      position: fixed;
      right: 1.4rem;
      bottom: 4.2rem;
      width: 220px;
      border-radius: 18px;
      padding: 0.8rem 0.85rem;
      background: rgba(15, 23, 42, 0.98);
      border: 1px solid rgba(148, 163, 184, 0.6);
      box-shadow: 0 20px 45px rgba(15, 23, 42, 1);
      z-index: 79;
      transform-origin: bottom right;
      transform: scale(0.9) translateY(8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      font-size: 0.8rem;
    }

    body.light-theme .theme-panel {
      background: #ffffff;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    }

    .theme-panel.open {
      opacity: 1;
      transform: scale(1) translateY(0);
      pointer-events: auto;
    }

    .theme-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    .theme-panel-title {
      font-size: 0.78rem;
      font-weight: 600;
    }

    .theme-panel-sub {
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .theme-panel-close {
      border: none;
      background: none;
      cursor: pointer;
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    .theme-swatches {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.4rem;
      margin-bottom: 0.55rem;
      margin-top: 0.25rem;
    }

    .theme-swatch {
      border-radius: 12px;
      height: 32px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      cursor: pointer;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      color: #f9fafb;
    }

    .theme-swatch-inner {
      position: absolute;
      inset: -4px;
      background: linear-gradient(135deg, #2563eb, #6366f1);
    }

    .theme-swatch-label {
      position: relative;
      z-index: 1;
    }

    .theme-swatch.theme-blue .theme-swatch-inner {
      background: linear-gradient(135deg, #2563eb, #6366f1);
    }

    .theme-swatch.theme-light .theme-swatch-inner {
      background: linear-gradient(135deg, #f9fafb, #e5e7eb);
    }

    .theme-swatch.theme-dark .theme-swatch-inner {
      background: linear-gradient(135deg, #020617, #111827);
    }

    .theme-swatch.theme-purple .theme-swatch-inner {
      background: linear-gradient(135deg, #7c3aed, #a855f7);
    }

    .theme-swatch.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px var(--accent);
    }

    .theme-panel-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0.25rem;
    }

    .theme-panel-row span {
      font-size: 0.72rem;
      color: var(--text-muted);
    }

    .theme-toggle-mini {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.7);
      padding: 0.1rem;
      display: inline-flex;
      align-items: center;
      font-size: 0.7rem;
      background: rgba(15, 23, 42, 0.9);
    }

    body.light-theme .theme-toggle-mini {
      background: #f9fafb;
    }

    .theme-toggle-mini button {
      border: none;
      background: transparent;
      padding: 0.18rem 0.5rem;
      border-radius: 999px;
      cursor: pointer;
      color: var(--text-muted);
    }

    .theme-toggle-mini button.active {
      background: var(--accent);
      color: #f9fafb;
    }

    @media (max-width: 640px) {
      .theme-fab {
        right: 1rem;
        bottom: 1.2rem;
      }
      .theme-panel {
        right: 0.8rem;
        bottom: 3.8rem;
      }
    }

    /* Resume toast notification */
    .resume-toast {
      position: fixed;
      bottom: 30px;
      right: 50%;
      transform: translateX(50%) translateY(20px);
      padding: 12px 22px;
      font-size: 0.85rem;
      font-weight: 500;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #fff;
      border-radius: 999px;
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
      opacity: 0;
      pointer-events: none;
      transition: all 0.35s ease;
      z-index: 9999;
    }

    .resume-toast.show {
      opacity: 1;
      transform: translateX(50%) translateY(0);
    }

    /* Scroll reveal animation */
    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }