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

    :root {
      --blue: #1a6cf0;
      --blue-dark: #1252c8;
      --blue-light: #eff6ff;
      --dark: #0d0d0d;
      --sidebar-bg: #111827;
      --text: #111827;
      --muted: #6b7280;
      --border: #e5e7eb;
      --white: #ffffff;
      --bg-gradient: linear-gradient(140deg, #ffffff 0%, #eef3ff 60%, #dce8ff 100%);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--text);
      background: var(--bg-gradient);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ─── NAV ─────────────────────────────────────────── */
    nav {
      position: sticky;
      top: 0;
      z-index: 200;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2.5rem;
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(229,231,235,0.8);
    }

    .logo {
      font-family: 'Barlow', sans-serif;
      font-weight: 900;
      font-size: 1.35rem;
      color: var(--dark);
      text-decoration: none;
      letter-spacing: -0.02em;
    }
    .logo em { color: var(--blue); font-style: normal; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 2.25rem;
      list-style: none;
    }
    .nav-links a {
      text-decoration: none;
      color: var(--text);
      font-size: 0.88rem;
      font-weight: 500;
      transition: color .2s;
    }
    .nav-links a:hover { color: var(--blue); }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    .lang-btn {
      border: 1.5px solid var(--border);
      border-radius: 7px;
      padding: 0.32rem 0.75rem;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      cursor: pointer;
      background: transparent;
      color: var(--muted);
      transition: all .2s;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .lang-btn:hover { border-color: var(--blue); color: var(--blue); }
    .lang-btn .on { color: var(--blue); }
    .lang-btn .sep { opacity: .35; }

    .btn-primary {
      background: var(--blue);
      color: #fff;
      border: none;
      border-radius: 8px;
      padding: 0.6rem 1.4rem;
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: background .2s;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }
    .btn-primary:hover { background: var(--blue-dark); }

    .btn-outline {
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 0.72rem 1.5rem;
      font-size: 0.88rem;
      font-weight: 600;
      cursor: pointer;
      background: transparent;
      color: var(--text);
      text-decoration: none;
      transition: all .2s;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }
    .btn-outline:hover { border-color: var(--blue); color: var(--blue); }

    /* ─── HERO ────────────────────────────────────────── */
    .hero {
      min-height: calc(100vh - 64px);
      display: flex;
      align-items: center;
      padding: 4rem 2.5rem;
    }

    .hero-inner {
      max-width: 1100px;
      margin: 0 auto;
      width: 100%;
    }

    .label {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 1.75rem;
    }
    

    .hero h1 {
      font-family: 'Barlow', sans-serif;
      font-weight: 900;
      font-size: clamp(3.5rem, 9vw, 6rem);
      line-height: 1.02;
      color: var(--dark);
      letter-spacing: -0.02em;
    }
    .hero h1 .role { color: var(--blue); }

    .hero-actions {
      display: flex;
      gap: 1rem;
      margin-top: 2.75rem;
      flex-wrap: wrap;
    }
    .hero-actions .btn-primary { padding: 0.78rem 1.75rem; font-size: 0.9rem; }
    .hero-actions .btn-outline  { padding: 0.78rem 1.75rem; font-size: 0.9rem; }

    .social-row {
      display: flex;
      gap: 0.65rem;
      margin-top: 2.25rem;
    }

    .social-icon {
      width: 42px;
      height: 42px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      color: var(--text);
      transition: all .2s;
    }
    .social-icon:hover { border-color: var(--blue); color: var(--blue); }

    /* ─── VISITS BADGE ────────────────────────────────── */
    .visits-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      margin-top: 1.5rem;
      padding: 0.42rem 0.95rem;
      background: rgba(26, 108, 240, 0.07);
      border: 1px solid rgba(26, 108, 240, 0.18);
      border-radius: 999px;
      font-size: 0.78rem;
      color: var(--blue);
      animation: badgeFadeIn 0.8s 0.4s ease both;
      backdrop-filter: blur(6px);
      cursor: default;
      user-select: none;
    }
    .visits-badge svg { flex-shrink: 0; opacity: 0.75; }
    .visits-count {
      font-weight: 800;
      font-size: 0.88rem;
      letter-spacing: -0.01em;
    }
    .visits-label { opacity: 0.7; font-weight: 500; }
    @keyframes badgeFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ─── SECTION SHELL ───────────────────────────────── */
    .section {
      padding: 5rem 2.5rem;
      max-width: 1100px;
      margin: 0 auto;
      overflow-x: hidden;
    }

    .sec-num {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 0.5rem;
    }
    .sec-title {
      font-family: 'Barlow', sans-serif;
      font-weight: 800;
      font-size: clamp(2rem, 4vw, 2.75rem);
      color: var(--dark);
      margin-bottom: 3rem;
      letter-spacing: -0.02em;
    }

    /* ─── ABOUT ───────────────────────────────────────── */
    .about-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 4rem;
      align-items: start;
    }
    .about-text p {
      color: #374151;
      line-height: 1.85;
      font-size: 0.95rem;
      margin-bottom: 1.25rem;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }

    .stack-label {
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
    }
    .tech-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }
    .tech-tags::-webkit-scrollbar { display: none; }
    .tech-tag {
      background: var(--blue-light);
      color: var(--blue);
      border: 1px solid #bfdbfe;
      border-radius: 6px;
      padding: 0.35rem 0.8rem;
      font-size: 0.78rem;
      font-weight: 600;
      white-space: nowrap;
    }

    /* ─── RESUME ──────────────────────────────────────── */
    .resume-card {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 32px rgba(0,0,0,.07);
      display: grid;
      grid-template-columns: 260px 1fr;
    }

    /* sidebar */
    .rs {
      background: var(--sidebar-bg);
      padding: 2.25rem 1.6rem;
      color: #fff;
    }
    .rs-name {
      font-family: 'Barlow', sans-serif;
      font-weight: 800;
      font-size: 1.6rem;
      line-height: 1.12;
      margin-bottom: 0.4rem;
    }
    .rs-role { color: var(--blue); font-size: 0.82rem; font-weight: 600; margin-bottom: 1.5rem; }
    .rs-div { height: 1px; background: rgba(255,255,255,.1); margin: 1.25rem 0; }

    .rs-sec-title {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255,255,255,.38);
      margin-bottom: 0.85rem;
    }

    .ci {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      font-size: 0.75rem;
      color: rgba(255,255,255,.72);
      margin-bottom: 0.55rem;
      word-break: break-all;
    }
    .ci svg { flex-shrink: 0; opacity: .65; }

    .sk { margin-bottom: 0.8rem; }
    .sk-row {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      color: rgba(255,255,255,.82);
      margin-bottom: 0.3rem;
    }
    .sk-bar {
      height: 4px;
      background: rgba(255,255,255,.1);
      border-radius: 2px;
      overflow: hidden;
    }
    .sk-fill {
      height: 100%;
      background: var(--blue);
      border-radius: 2px;
    }

    .soft-tag {
      display: inline-block;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 4px;
      padding: 0.22rem 0.55rem;
      font-size: 0.7rem;
      color: rgba(255,255,255,.65);
      margin: 0.18rem 0.18rem 0 0;
    }

    /* main */
    .rm {
      padding: 2.25rem 2.5rem;
    }
    .rm-sec {
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 0.8rem;
    }
    .rm-text {
      color: #374151;
      font-size: 0.86rem;
      line-height: 1.8;
      margin-bottom: 2rem;
    }
    .rm-div { height: 1px; background: var(--border); margin: 1.75rem 0; }

    .exp {
      position: relative;
      padding-left: 1.35rem;
      margin-bottom: 1.85rem;
    }
    .exp::before {
      content: '';
      position: absolute;
      left: 0; top: 5px;
      width: 8px; height: 8px;
      background: var(--blue);
      border-radius: 50%;
    }
    .exp-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .exp-title { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
    .exp-dur {
      font-size: 0.72rem;
      font-weight: 600;
      background: #f3f4f6;
      padding: 0.18rem 0.55rem;
      border-radius: 4px;
      color: var(--muted);
      white-space: nowrap;
    }
    .exp-co {
      font-size: 0.78rem;
      color: var(--blue);
      font-weight: 600;
      margin: 0.2rem 0 0.5rem;
    }
    .exp-desc { font-size: 0.82rem; color: #4b5563; line-height: 1.7; margin-bottom: 0.7rem; }
    .exp-tags { display: flex; flex-wrap: wrap; gap: 0.38rem; }
    .exp-tag {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 4px;
      padding: 0.18rem 0.52rem;
      font-size: 0.7rem;
      color: #475569;
    }

    .edu {
      position: relative;
      padding-left: 1.35rem;
      margin-bottom: 1.1rem;
    }
    .edu::before {
      content: '';
      position: absolute;
      left: 0; top: 5px;
      width: 8px; height: 8px;
      background: var(--blue);
      border-radius: 50%;
    }
    .edu-course { font-weight: 600; font-size: 0.88rem; color: var(--dark); }
    .edu-inst { font-size: 0.78rem; color: var(--blue); font-weight: 600; margin-top: 0.12rem; }
    .edu-yr { font-size: 0.76rem; color: var(--muted); margin-left: 0.5rem; }

    /* ─── CONTACT ─────────────────────────────────────── */
    .contact-sec {
      text-align: center;
      padding: 5rem 2rem 6rem;
    }
    .contact-sec .sec-num { margin-bottom: 0.5rem; }
    .contact-sec h2 {
      font-family: 'Barlow', sans-serif;
      font-weight: 900;
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      color: var(--dark);
      margin-bottom: 0.75rem;
      letter-spacing: -0.02em;
    }
    .contact-sec .sub {
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 2.25rem;
    }
    .email-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.7rem;
      background: var(--blue);
      color: #fff;
      text-decoration: none;
      padding: 1rem 2.5rem;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.95rem;
      transition: background .2s;
      margin-bottom: 1.75rem;
    }
    .email-btn:hover { background: var(--blue-dark); }
    .contact-links { display: flex; justify-content: center; gap: 1.5rem; }
    .contact-links a {
      color: var(--blue);
      text-decoration: none;
      font-size: 0.88rem;
      font-weight: 600;
    }
    .contact-links a:hover { text-decoration: underline; }
    .contact-sep { color: var(--muted); }

    /* ─── FOOTER ──────────────────────────────────────── */
    footer {
      text-align: center;
      padding: 1.75rem 2rem;
      color: var(--muted);
      font-size: 0.8rem;
      border-top: 1px solid var(--border);
    }

    /* ─── PROJECTS ────────────────────────────────────── */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 2rem;
    }

    .project-card {
      background: var(--white);
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 4px 20px rgba(0,0,0,.05);
      border: 1px solid var(--border);
      transition: transform .2s, box-shadow .2s;
      display: flex;
      flex-direction: column;
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 30px rgba(0,0,0,.08);
      border-color: #bfdbfe;
    }

    .proj-title {
      font-weight: 700;
      font-size: 1.15rem;
      color: var(--dark);
      margin-bottom: 0.75rem;
    }

    .proj-desc {
      color: #4b5563;
      font-size: 0.88rem;
      line-height: 1.6;
      margin-bottom: 1.5rem;
      flex-grow: 1;
    }

    .proj-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--blue);
      text-decoration: none;
      transition: color .2s;
    }

    .proj-link:hover {
      color: var(--blue-dark);
      text-decoration: underline;
    }

    /* ─── HAMBURGER ANIMATED (X transition) ─────────── */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
      width: 32px;
      height: 32px;
      justify-content: center;
      align-items: center;
    }
    .hamburger span {
      display: block;
      width: 23px;
      height: 2.5px;
      background: var(--dark);
      border-radius: 2px;
      transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
                  opacity 0.3s ease,
                  background 0.3s ease;
      transform-origin: center;
    }
    .hamburger.active span:nth-child(1) {
      transform: translateY(7.5px) rotate(45deg);
      background: var(--blue);
    }
    .hamburger.active span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }
    .hamburger.active span:nth-child(3) {
      transform: translateY(-7.5px) rotate(-45deg);
      background: var(--blue);
    }

    /* ─── MOBILE MENU WITH STAGGER ───────────────────── */
    .mob-menu {
      display: none;
      position: fixed;
      top: 64px;
      left: 0; right: 0; bottom: 0;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 2rem 2rem;
      flex-direction: column;
      gap: 0.5rem;
      z-index: 199;
      opacity: 0;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .mob-menu.open {
      display: flex;
      opacity: 1;
      transform: translateY(0);
      animation: menuSlideIn 0.4s ease-out both;
    }
    @keyframes menuSlideIn {
      from { opacity: 0; transform: translateY(-15px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .mob-menu a {
      text-decoration: none;
      color: var(--text);
      font-weight: 600;
      font-size: 1.3rem;
      padding: 0.75rem 0;
      opacity: 0;
      transform: translateX(-20px);
      border-bottom: 1px solid var(--border);
      transition: color 0.2s ease;
    }
    .mob-menu a:last-child { border-bottom: none; }
    .mob-menu a:hover, .mob-menu a:active { color: var(--blue); }
    .mob-menu.open a {
      animation: staggerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .mob-menu.open a:nth-child(1) { animation-delay: 0.1s; }
    .mob-menu.open a:nth-child(2) { animation-delay: 0.2s; }
    .mob-menu.open a:nth-child(3) { animation-delay: 0.3s; }
    .mob-menu.open a:nth-child(4) { animation-delay: 0.4s; }
    @keyframes staggerIn {
      from { opacity: 0; transform: translateX(-20px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* ─── TOUCH RIPPLE ───────────────────────────────── */
    .ripple-container {
      position: relative;
      overflow: hidden;
    }
    .ripple-effect {
      position: absolute;
      border-radius: 50%;
      background: rgba(26, 108, 240, 0.25);
      transform: scale(0);
      animation: ripple-anim 0.6s ease-out forwards;
      pointer-events: none;
    }
    @keyframes ripple-anim {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    /* ─── TILT 3D CARDS ──────────────────────────────── */
    .tilt-3d {
      transform-style: preserve-3d;
      transition: transform 0.15s ease-out;
    }

    /* ─── BOUNCE/ELASTIC REVEAL (mobile) ─────────────── */
    @keyframes bounceReveal {
      0% { opacity: 0; transform: translateY(60px) scale(0.95); }
      60% { opacity: 1; transform: translateY(-8px) scale(1.01); }
      80% { transform: translateY(3px) scale(0.995); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 900px) {
      .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .about-grid > div { max-width: 100%; overflow: hidden; }
      .resume-card { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      nav { padding: 0 1.5rem; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .hero { padding: 3rem 1.5rem; }
      .section { padding: 3.5rem 1.5rem; }
      .rm { padding: 1.75rem 1.5rem; }

      /* ── Hide decorative elements on mobile ── */
      .hero-particles { display: none !important; }
      .hero-decor { display: none !important; }
      .hero { overflow: visible; }
      

      /* ── Fix button overflow artifacts ── */
      .btn-primary::after { display: none; }
      .btn-outline { overflow: visible; }
      .email-btn::after { display: none; }

      /* ── Projects Carousel ── */
      .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1.5rem 1.5rem 1.5rem;
        margin: 0 -1.5rem;
        scrollbar-width: none;
      }
      .projects-grid::-webkit-scrollbar { display: none; }
      .projects-grid .project-card {
        min-width: 75vw;
        max-width: 75vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 1.5rem;
        overflow: hidden;
      }
      .projects-grid .proj-title {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
      }
      .projects-grid .proj-desc {
        font-size: 0.82rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
      }
      /* Fix project card pseudo-element on mobile */
      .project-card::before { display: none; }

      /* Carousel dots indicator */
      .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 1rem;
      }
      .carousel-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--border);
        transition: all 0.3s ease;
        border: 2px solid transparent;
      }
      .carousel-dot.active {
        background: var(--blue);
        transform: scale(1.2);
        border-color: rgba(26, 108, 240, 0.3);
        box-shadow: 0 0 8px rgba(26, 108, 240, 0.3);
      }

      /* ── Tech Tags Horizontal Scroll (mobile only) ── */
      .tech-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
        mask-image: linear-gradient(to right, transparent 0%, black 5%, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 90%, transparent 100%);
      }
      .tech-tags .tech-tag {
        flex-shrink: 0;
      }

      /* ── Bounce reveal for mobile ── */
      .reveal.visible {
        animation: bounceReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
      }

      /* ── Hide cursor glow on mobile ── */
      .cursor-glow { display: none !important; }
    }

    @media (max-width: 480px) {
      .hero h1 { font-size: 3rem; }
      .hero-actions { flex-direction: column; }
      .hero-actions .btn-primary,
      .hero-actions .btn-outline { width: 100%; justify-content: center; }

      .projects-grid .project-card { min-width: 80vw; max-width: 80vw; }
    }

    /* ─── PDF BUTTON ──────────────────────────────────── */
    .resume-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .resume-header > div { margin-bottom: 0; }

    .btn-pdf {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      background: transparent;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      padding: 0.6rem 1.25rem;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      transition: all .2s;
      white-space: nowrap;
    }
    .btn-pdf:hover {
      border-color: var(--blue);
      color: var(--blue);
      background: var(--blue-light);
    }

    /* ─── DARK MODE TOGGLE BUTTON ────────────────────── */
    .dark-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .dark-toggle:hover {
      border-color: var(--blue);
      color: var(--blue);
      background: var(--blue-light);
    }

    /* ─── BACK TO TOP BUTTON ─────────────────────────── */
    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--blue);
      color: #fff;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(26, 108, 240, 0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
      z-index: 150;
      pointer-events: none;
    }
    .back-to-top.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    .back-to-top:hover {
      background: var(--blue-dark);
      transform: translateY(-3px);
    }

    /* ─── CONTACT LAYOUT ────────────────────────────── */
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1.6fr;
      gap: 2rem;
      max-width: 860px;
      margin: 0 auto;
      text-align: left;
    }
    .contact-info-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem 1.75rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .contact-info-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.85rem 1rem;
      border-radius: 10px;
      text-decoration: none;
      color: var(--text);
      border: 1px solid transparent;
      transition: background 0.2s, border-color 0.2s;
    }
    .contact-info-item:hover {
      background: var(--blue-light);
      border-color: rgba(26, 108, 240, 0.15);
    }
    .cii-icon {
      width: 38px;
      height: 38px;
      background: var(--blue-light);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--blue);
      flex-shrink: 0;
    }
    .cii-body {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
    }
    .cii-label {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
    }
    .cii-value {
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .contact-info-item:hover .cii-value {
      color: var(--blue);
    }

    /* ─── CONTACT FORM CARD ──────────────────────────── */
    .contact-form-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem 2rem;
    }
    .contact-form {
      text-align: left;
    }
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin-bottom: 0;
    }
    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
      margin-bottom: 1rem;
    }
    .form-group label {
      font-size: 0.72rem;
      font-weight: 700;
      color: var(--muted);
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .field-wrap {
      position: relative;
    }
    .field-icon {
      position: absolute;
      left: 0.9rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--muted);
      pointer-events: none;
      transition: color 0.2s;
    }
    .field-icon--top {
      top: 0.9rem;
      transform: none;
    }
    .field-wrap input,
    .field-wrap textarea {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.6rem;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 0.88rem;
      font-family: 'Inter', sans-serif;
      color: var(--text);
      background: var(--bg, var(--white));
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
      outline: none;
      box-sizing: border-box;
    }
    .field-wrap input:focus,
    .field-wrap textarea:focus {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(26, 108, 240, 0.12);
    }
    .field-wrap input:focus ~ .field-icon,
    .field-wrap textarea:focus ~ .field-icon,
    .field-wrap:focus-within .field-icon {
      color: var(--blue);
    }
    .field-wrap textarea {
      resize: vertical;
      min-height: 130px;
      padding-top: 0.75rem;
    }
    .form-submit {
      width: 100%;
      justify-content: center;
      padding: 0.85rem 2rem;
      font-size: 0.92rem;
      gap: 0.6rem;
    }
    .form-feedback {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0.85rem;
      padding: 0.7rem 1rem;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 600;
      animation: fadeInUp 0.4s ease-out both;
    }
    .form-feedback--success {
      background: #f0fdf4;
      color: #16a34a;
      border: 1px solid #bbf7d0;
    }
    .form-feedback--error {
      background: #fef2f2;
      color: #dc2626;
      border: 1px solid #fecaca;
    }
    .form-submit:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none !important;
      box-shadow: none !important;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .spin-icon {
      animation: spin 0.8s linear infinite;
    }

    @media (max-width: 700px) {
      .contact-layout { grid-template-columns: 1fr; }
    }
    @media (max-width: 480px) {
      .form-row { grid-template-columns: 1fr; }
      .contact-form-card { padding: 1.5rem; }
    }

    /* ─── DARK MODE ──────────────────────────────────── */
    html.dark {
      --blue: #3b82f6;
      --blue-dark: #2563eb;
      --blue-light: #1e293b;
      --dark: #f1f5f9;
      --sidebar-bg: #0f172a;
      --text: #e2e8f0;
      --muted: #94a3b8;
      --border: #334155;
      --white: #1e293b;
      --bg-gradient: linear-gradient(140deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
    }
    html.dark body {
      background: var(--bg-gradient);
      color: var(--text);
    }
    html.dark nav {
      background: rgba(15, 23, 42, 0.92);
      border-bottom-color: rgba(51, 65, 85, 0.6);
    }
    html.dark .logo { color: var(--dark); }
    html.dark .mob-menu {
      background: rgba(15, 23, 42, 0.98);
    }
    html.dark .about-text p { color: #cbd5e1; }
    html.dark .rm { background: #1e293b; }
    html.dark .project-card {
      background: #1e293b;
      border-color: #334155;
    }
    html.dark .exp-dur { background: #334155; color: #94a3b8; }
    html.dark .exp-tag { background: #334155; border-color: #475569; color: #cbd5e1; }
    html.dark .field-wrap input,
    html.dark .field-wrap textarea {
      background: #0f172a;
      border-color: #334155;
      color: #e2e8f0;
    }
    html.dark .field-wrap input::placeholder,
    html.dark .field-wrap textarea::placeholder {
      color: #64748b;
    }
    html.dark .contact-info-card,
    html.dark .contact-form-card {
      background: #1e293b;
      border-color: #334155;
    }
    html.dark .form-feedback--success {
      background: #052e16;
      border-color: #166534;
      color: #4ade80;
    }
    html.dark .form-feedback--error {
      background: #450a0a;
      border-color: #991b1b;
      color: #f87171;
    }
    html.dark .dark-toggle {
      border-color: #334155;
      color: #e2e8f0;
    }
    html.dark .page-loader {
      background: #0f172a;
    }
    html.dark .resume-card {
      box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
    }
    html.dark .contact-sec h2 {
      color: var(--dark);
    }
    html.dark .sec-title {
      background: linear-gradient(135deg, #f1f5f9 30%, #3b82f6 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    html.dark .hero h1 {
      background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 40%, #8b5cf6 60%, #f1f5f9 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ─── ANIMATIONS: PAGE LOAD ──────────────────────── */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes float {
      0%, 100% { transform: translateY(0) rotate(0deg); }
      50% { transform: translateY(-20px) rotate(5deg); }
    }

    @keyframes pulse-glow {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50% { opacity: 0.8; transform: scale(1.1); }
    }

    @keyframes gradient-shift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Hero entrance animations (staggered) */
    .hero .label {
      animation: fadeInUp 0.8s ease-out both;
      animation-delay: 0.2s;
    }
    .hero h1 {
      animation: fadeInUp 0.8s ease-out both;
      animation-delay: 0.4s;
    }
    .hero-actions {
      animation: fadeInUp 0.8s ease-out both;
      animation-delay: 0.7s;
    }
    .social-row {
      animation: fadeInUp 0.8s ease-out both;
      animation-delay: 0.9s;
    }

    /* Nav entrance */
    nav {
      animation: fadeIn 0.6s ease-out both;
    }

    /* ─── GRADIENT TEXT EFFECT ────────────────────────── */
    .hero h1 {
      background: linear-gradient(135deg, var(--dark) 0%, #1a6cf0 40%, #6366f1 60%, var(--dark) 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: fadeInUp 0.8s ease-out both, gradient-shift 6s ease infinite;
      animation-delay: 0.4s, 0s;
    }
    .hero h1 .role {
      background: linear-gradient(135deg, #1a6cf0 0%, #6366f1 50%, #a855f7 100%);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: gradient-shift 4s ease infinite;
    }

    /* ─── SCROLL REVEAL ──────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-left {
      opacity: 0;
      transform: translateX(-40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-left.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .reveal-right {
      opacity: 0;
      transform: translateX(40px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-right.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .reveal-scale {
      opacity: 0;
      transform: scale(0.9);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-scale.visible {
      opacity: 1;
      transform: scale(1);
    }

    /* Stagger delays for children */
    .reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
    .reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-stagger > *:nth-child(3) { transition-delay: 0.2s; }
    .reveal-stagger > *:nth-child(4) { transition-delay: 0.3s; }
    .reveal-stagger > *:nth-child(5) { transition-delay: 0.4s; }
    .reveal-stagger > *:nth-child(6) { transition-delay: 0.5s; }

    /* ─── ENHANCED HOVER EFFECTS ─────────────────────── */
    .project-card {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  border-color 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    .project-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(26, 108, 240, 0.03), transparent);
      transition: left 0.6s ease;
    }
    .project-card:hover::before {
      left: 100%;
    }
    .project-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 60px rgba(26, 108, 240, 0.12);
      border-color: var(--blue);
    }

    .btn-primary {
      position: relative;
      overflow: hidden;
      transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    }
    .btn-primary::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transform: translate(-50%, -50%);
      transition: width 0.5s, height 0.5s;
    }
    .btn-primary:hover::after {
      width: 300px;
      height: 300px;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(26, 108, 240, 0.35);
    }

    .btn-outline {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .btn-outline:hover {
      border-color: var(--blue);
      color: var(--blue);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(26, 108, 240, 0.1);
    }

    .social-icon {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .social-icon:hover {
      border-color: var(--blue);
      color: var(--blue);
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(26, 108, 240, 0.15);
      background: var(--blue-light);
    }

    .tech-tag {
      transition: all 0.3s ease;
    }
    .tech-tag:hover {
      background: var(--blue);
      color: #fff;
      border-color: var(--blue);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(26, 108, 240, 0.25);
    }

    .email-btn {
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }
    .email-btn::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.15);
      transform: translate(-50%, -50%);
      transition: width 0.5s, height 0.5s;
    }
    .email-btn:hover::after {
      width: 400px;
      height: 400px;
    }
    .email-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(26, 108, 240, 0.3);
    }

    /* ─── HERO PARTICLES / DECORATIVE ELEMENTS ───────── */
    .hero {
      position: relative;
      overflow: hidden;
    }

    .hero-particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .particle {
      position: absolute;
      border-radius: 50%;
      opacity: 0.15;
      animation: float 8s ease-in-out infinite;
    }

    .particle:nth-child(1) {
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, #1a6cf0, transparent 70%);
      top: -50px;
      right: -80px;
      animation-duration: 10s;
    }
    .particle:nth-child(2) {
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, #6366f1, transparent 70%);
      bottom: 10%;
      right: 15%;
      animation-duration: 12s;
      animation-delay: -3s;
    }
    .particle:nth-child(3) {
      width: 150px;
      height: 150px;
      background: radial-gradient(circle, #a855f7, transparent 70%);
      top: 30%;
      left: -40px;
      animation-duration: 9s;
      animation-delay: -5s;
    }
    .particle:nth-child(4) {
      width: 80px;
      height: 80px;
      background: radial-gradient(circle, #1a6cf0, transparent 70%);
      bottom: 25%;
      left: 20%;
      animation-duration: 7s;
      animation-delay: -2s;
      opacity: 0.1;
    }
    .particle:nth-child(5) {
      width: 120px;
      height: 120px;
      background: radial-gradient(circle, #6366f1, transparent 70%);
      top: 15%;
      right: 30%;
      animation-duration: 11s;
      animation-delay: -4s;
      opacity: 0.1;
    }

    /* Decorative geometric shapes */
    .hero-decor {
      position: absolute;
      pointer-events: none;
    }
    .hero-decor-1 {
      width: 60px;
      height: 60px;
      border: 2px solid rgba(26, 108, 240, 0.15);
      border-radius: 12px;
      top: 20%;
      right: 12%;
      animation: float 8s ease-in-out infinite;
      transform: rotate(45deg);
    }
    .hero-decor-2 {
      width: 40px;
      height: 40px;
      border: 2px solid rgba(99, 102, 241, 0.12);
      border-radius: 50%;
      bottom: 30%;
      right: 8%;
      animation: float 6s ease-in-out infinite;
      animation-delay: -2s;
    }
    .hero-decor-3 {
      width: 8px;
      height: 8px;
      background: rgba(26, 108, 240, 0.3);
      border-radius: 50%;
      top: 40%;
      right: 25%;
      animation: pulse-glow 3s ease-in-out infinite;
    }
    .hero-decor-4 {
      width: 6px;
      height: 6px;
      background: rgba(168, 85, 247, 0.3);
      border-radius: 50%;
      top: 60%;
      right: 18%;
      animation: pulse-glow 4s ease-in-out infinite;
      animation-delay: -1.5s;
    }

    /* ─── SECTION TITLE GRADIENT ─────────────────────── */
    .sec-title {
      background: linear-gradient(135deg, var(--dark) 30%, #1a6cf0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ─── SMOOTH SECTION TRANSITIONS ─────────────────── */
    .section, .contact-sec {
      position: relative;
    }

    /* ─── TYPING EFFECT ──────────────────────────────── */
    .typing-text {
      display: inline;
      border-right: 2px solid var(--blue);
      animation: blink-caret 0.8s step-end infinite;
      padding-right: 2px;
    }
    @keyframes blink-caret {
      0%, 100% { border-color: var(--blue); }
      50% { border-color: transparent; }
    }

    /* ─── SKILL BARS ANIMATED ────────────────────────── */
    .sk-fill {
      transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sk-fill.animated {
      /* Animated state - width set via JS */
    }

    /* ─── NAV SCROLL EFFECT ──────────────────────────── */
    nav {
      transition: box-shadow 0.3s ease, background 0.3s ease;
    }
    nav.scrolled {
      box-shadow: 0 4px 30px rgba(26, 108, 240, 0.08);
      background: rgba(255, 255, 255, 0.95);
      border-bottom-color: rgba(26, 108, 240, 0.1);
    }


    @keyframes bounce-arrow {
      0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
      50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
    }

    /* ─── CURSOR GLOW ────────────────────────────────── */
    .cursor-glow {
      position: fixed;
      width: 400px;
      height: 400px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(26, 108, 240, 0.18) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      transition: opacity 0.3s ease, width 0.4s ease, height 0.4s ease, background 0.4s ease;
      opacity: 0;
    }
    .cursor-glow.active {
      opacity: 1;
    }
    .cursor-glow.hover-element {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(26, 108, 240, 0.28) 0%, rgba(99, 102, 241, 0.14) 35%, transparent 65%);
    }

    /* ─── SECTION DIVIDERS ───────────────────────────── */
    .section-divider {
      width: 100%;
      height: 1px;
      max-width: 1100px;
      margin: 0 auto;
      background: linear-gradient(90deg, transparent 0%, var(--blue) 20%, #6366f1 50%, var(--blue) 80%, transparent 100%);
      opacity: 0.2;
      position: relative;
    }

    /* ─── PROGRESS BAR (scroll progress) ─────────────── */
    .scroll-progress {
      position: fixed;
      top: 64px;
      left: 0;
      width: 0%;
      height: 2px;
      background: linear-gradient(90deg, var(--blue), #6366f1, #a855f7);
      z-index: 201;
      transition: width 0.1s linear;
    }

    /* Disable animations for users who prefer reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
      .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
      }
    }

    /* ─── PRINT / PDF ─── */
    @media print {
      @page { size: A4; margin: 0; }

      * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
      }

      html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
      }

      /* esconde TUDO, menos o currículo (nav, hero, sobre, projetos, contato, footer, dividers, glow, progress...) */
      body > *:not(#app) { display: none !important; }
      #app > *:not(#curriculo) { display: none !important; }
      .resume-header { display: none !important; }

      /* desliga animações/reveal */
      #curriculo, .resume-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
      }

      #curriculo { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

      .resume-card {
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        height: 296mm !important;
        overflow: hidden !important;
        grid-template-columns: 200px 1fr !important;
        align-items: stretch !important;
        break-inside: avoid;
      }

      /* modo escuro: imprime como o modo claro */
      html.dark .rm { background: #fff !important; }
      html.dark .rm, html.dark .rm * { color: #111827 !important; }
      html.dark .exp-co, html.dark .edu-inst { color: #1a6cf0 !important; }
      html.dark .exp-dur, html.dark .exp-tag { background: #f3f4f6 !important; }

      /* ── sidebar ── */
      .rs { background: #111827 !important; color: #fff !important; padding: 1.75rem 1.25rem !important; }
      .rs, .rs * { color: inherit; }
      /* ...aqui continuam suas regras antigas: .rs-name, .rs-role, .ci, .sk, .soft-tag, .rm, .exp, .edu etc. */

      .rs { padding: 1.4rem 1.1rem !important; }
      .rs-div { margin: 0.7rem 0 !important; }
      .sk { margin-bottom: 0.4rem !important; }
      .ci { margin-bottom: 0.3rem !important; }

      .rm { padding: 1.4rem 1.75rem !important; }
      .rm-text { font-size: 0.76rem !important; line-height: 1.55 !important; margin-bottom: 0.9rem !important; }
      .rm-div { margin: 0.8rem 0 !important; }

      .exp { margin-bottom: 0.8rem !important; }
      .exp-desc { font-size: 0.72rem !important; line-height: 1.5 !important; margin-bottom: 0.4rem !important; }
      .exp-title { font-size: 0.8rem !important; }
      .edu { margin-bottom: 0.5rem !important; }
    }