
    /* ─────────────────────────────────────────────
       CSS CUSTOM PROPERTIES
    ───────────────────────────────────────────── */
    :root {
      --bg:        #f8edde;
      --teal-dark: #61081e;
      --teal-mid:  #a65667;
      --mauve:     #a08e87;
      --radius:    8px;
      --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
      --max-w: 1160px;
      --pad-x: 1.25rem;
    }

    /* ─────────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Montserrat', sans-serif;
      background: var(--bg);
      color: var(--teal-dark);
      line-height: 1.65;
      overflow-x: hidden;
    }

    img { display: block; width: 100%; height: 100%; object-fit: cover; }

    a { color: inherit; text-decoration: none; }

    /* ─────────────────────────────────────────────
       UTILITY
    ───────────────────────────────────────────── */
    .container {
      width: 100%;
      max-width: var(--max-w);
      margin-inline: auto;
      padding-inline: var(--pad-x);
    }

    .section-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--teal-mid);
      margin-bottom: 0.75rem;
    }

    .section-title {
      font-size: clamp(1.4rem, 4vw, 2.6rem);
      font-weight: 800;
      line-height: 1.15;
      color: var(--teal-dark);
      margin-bottom: 1rem;
    }

    /* ─────────────────────────────────────────────
       BUTTONS
    ───────────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.75rem;
      border-radius: var(--radius);
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all var(--transition);
    }

    .btn-primary {
      background: var(--teal-dark);
      color: var(--bg);
      border-color: var(--teal-dark);
    }
    .btn-primary:hover {
      background: var(--teal-mid);
      border-color: var(--teal-mid);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(136, 89, 89, 0.12);
    }

    .btn-outline {
      background: transparent;
      color: var(--teal-dark);
      border-color: var(--teal-dark);
    }
    .btn-outline:hover {
      background: var(--teal-dark);
      color: var(--bg);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(136, 89, 89, 0.12);
    }

    .btn-ghost {
      background: rgba(136, 89, 89, 0.12);
      color: var(--teal-dark);
      border-color: var(--teal-mid);
    }
    .btn-ghost:hover {
      background: var(--teal-mid);
      color: #fff;
      border-color: var(--teal-mid);
      transform: translateY(-2px);
    }

    /* ─────────────────────────────────────────────
       NAV
    ───────────────────────────────────────────── */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 1rem var(--pad-x);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(242,232,207,0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(160,135,148,0.2);
    }

    .nav-logo {
      font-size: 1.1rem;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: var(--teal-dark);
    }
    .nav-logo span { color: var(--teal-mid); }

    nav {
      display: none;
      gap: 2rem;
    }
    nav a {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--teal-dark);
      letter-spacing: 0.03em;
      position: relative;
      transition: color var(--transition);
    }
    nav a::after {
      content: '';
      position: absolute;
      bottom: -3px; left: 0;
      width: 0; height: 2px;
      background: var(--teal-mid);
      border-radius: 2px;
      transition: width var(--transition);
    }
    nav a:hover { color: var(--teal-mid); }
    nav a:hover::after { width: 100%; }

    .nav-cta { display: none; }

    @media (min-width: 768px) {
      nav { display: flex; }
      .nav-cta { display: inline-flex; }
    }
    @media (max-width: 767px) {
      #home {
        padding-top: 8rem;
      }
    }

    /* ─────────────────────────────────────────────
       1. HERO
    ───────────────────────────────────────────── */
    #home {
      min-height: 100svh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 7rem var(--pad-x) 5rem;
      position: relative;
      overflow: hidden;
    }

    /* Subtle background grain / pattern */
    #home::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(224, 181, 62, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(219, 73, 62, 0.12) 0%, transparent 55%);
      pointer-events: none;
    }

    /* Floating accent shapes */
    #home::after {
      content: '';
      position: absolute;
      width: 420px; height: 420px;
      border-radius: 50%;
      border: 1.5px solid rgba(121, 99, 99, 0.185);
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      animation: pulse-ring 6s ease-in-out infinite;
    }

    @keyframes pulse-ring {
      0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.6; }
      50%       { transform: translate(-50%,-50%) scale(1.08); opacity: 1; }
    }

    .hero-inner {
      position: relative;
      z-index: 1;
      max-width: 780px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(166, 134, 86, 0.116);
      border: 1px solid rgba(166, 95, 86, 0.35);
      border-radius: 100px;
      padding: 0.35rem 1rem;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--teal-mid);
      margin-bottom: 1.75rem;
      animation: fade-up 0.6s ease both;
    }
    .hero-badge::before {
      content: '';
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--teal-mid);
      animation: blink 2s ease infinite;
    }
    @keyframes blink {
      0%,100% { opacity: 1; } 50% { opacity: 0.3; }
    }

    .hero-name {
      font-size: clamp(3rem, 9vw, 6.5rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.0;
      color: var(--teal-dark);
      margin-bottom: 0.4rem;
      animation: fade-up 0.6s 0.1s ease both;
    }

    .hero-role {
      font-family: 'Lora', serif;
      font-size: clamp(1.1rem, 3vw, 1.65rem);
      font-style: italic;
      font-weight: 400;
      color: var(--mauve);
      margin-bottom: 1.5rem;
      animation: fade-up 0.6s 0.2s ease both;
    }

    .hero-desc {
      font-size: clamp(0.92rem, 1.8vw, 1.05rem);
      color: rgba(204, 127, 55, 0.72);
      max-width: 540px;
      margin-inline: auto;
      margin-bottom: 2.25rem;
      animation: fade-up 0.6s 0.3s ease both;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      animation: fade-up 0.6s 0.4s ease both;
    }

    .hero-scroll {
      position: absolute;
      bottom: 2.5rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--mauve);
      z-index: 1;
      animation: fade-up 0.8s 0.8s ease both;
    }
    .scroll-line {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, var(--mauve), transparent);
      animation: scroll-bounce 2s ease-in-out infinite;
    }
    @keyframes scroll-bounce {
      0%,100% { transform: scaleY(1); transform-origin: top; }
      50%      { transform: scaleY(0.5); transform-origin: top; }
    }

    @keyframes fade-up {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ─────────────────────────────────────────────
       SECTION SPACING
    ───────────────────────────────────────────── */
    section { padding: 5rem var(--pad-x); }
    section:nth-child(even) { background: rgba(160,135,148,0.07); }

    /* ─────────────────────────────────────────────
       2. PROJECTS
    ───────────────────────────────────────────── */
    #projects { padding-inline: 0; }
    #projects .container { padding-inline: var(--pad-x); }

    .projects-header {
      max-width: 520px;
      margin-bottom: 3rem;
    }
    .projects-header p {
      font-size: 0.95rem;
      color: rgba(204, 127, 55, 0.72);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }

    @media (min-width: 960px) {
      .projects-grid { grid-template-columns: repeat(3, 1fr); }
    }

    .project-card {
      border-radius: var(--radius);
      border: 1.5px solid rgba(77, 74, 72, 0.616);
      background: rgba(202, 198, 188, 0.315);
      overflow: hidden;
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    }
    .project-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 16px 48px rgba(8,76,97,0.14);
      border-color: var(--teal-mid);
    }
    /* "View Project" overlay on hover */
    .project-card::after {
      content: 'View Project →';
      position: absolute;
      inset: 0;
      background: rgba(139, 59, 39, 0.82);
      color: #F2E8CF;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity var(--transition);
      border-radius: var(--radius);
    }
    .project-card:hover::after {
      opacity: 1;
    }

    .project-thumb {
      position: relative;
      height: 160px;
      background: linear-gradient(135deg, rgba(122, 139, 155, 0.192), rgba(51, 65, 65, 0.062));
      overflow: hidden;
    }

    @media (min-width: 640px) {
      .project-thumb { height: 190px; }
    }

    /* Placeholder pattern inside thumb */
    .project-thumb::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(
          45deg,
          rgba(86,163,166,0.08) 0px,
          rgba(86,163,166,0.08) 1px,
          transparent 1px,
          transparent 14px
        );
    }

    .project-thumb-icon {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .project-thumb-icon svg {
      width: 40px; height: 40px;
      opacity: 0.3;
    }

    .project-tag {
      position: absolute;
      top: 0.75rem; right: 0.75rem;
      background: rgba(242,232,207,0.9);
      border: 1px solid rgba(160,135,148,0.3);
      border-radius: 100px;
      padding: 0.2rem 0.65rem;
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--teal-dark);
    }

    .project-info {
      padding: 1.1rem 1.25rem 1.35rem;
    }

    .project-num {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      color: var(--teal-mid);
      margin-bottom: 0.35rem;
      text-transform: uppercase;
    }

    .project-title {
      font-size: 0.97rem;
      font-weight: 800;
      line-height: 1.25;
      color: var(--teal-dark);
      margin-bottom: 0.4rem;
    }

    .project-desc {
      font-size: 0.78rem;
      color: rgba(146, 91, 40, 0.72);
      line-height: 1.5;
    }

    /* ─────────────────────────────────────────────
       3. ABOUT
    ───────────────────────────────────────────── */
    #about .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      align-items: center;
    }

    @media (min-width: 768px) {
      #about .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
      }
    }

    .about-text .section-title { margin-bottom: 1.25rem; }

    .about-text p {
      font-size: 0.96rem;
      color: rgba(158, 98, 41, 0.72);
      margin-bottom: 1rem;
      line-height: 1.75;
    }

    .about-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1.75rem;
    }
    .skill-chip {
      background: rgba(166, 134, 86, 0.12);
      border: 1px solid rgba(166, 134, 86, 0.3);
      border-radius: 100px;
      padding: 0.3rem 0.85rem;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--teal-dark);
      transition: all var(--transition);
    }
    .skill-chip:hover {
      background: var(--teal-mid);
      color: #fff;
      border-color: var(--teal-mid);
    }

    .about-photo-wrap {
      position: relative;
    }

    @media (max-width: 767px) {
      .about-photo {
        max-height: 280px;
      }
    }

    .about-photo {
      aspect-ratio: 4 / 5;
      border-radius: calc(var(--radius) * 2);
      background: linear-gradient(145deg, rgba(86,163,166,0.2), rgba(160,135,148,0.2));
      border: 2px solid rgba(160,135,148,0.3);
      overflow: hidden;
      position: relative;
    }
    .about-photo::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        repeating-linear-gradient(
          -45deg,
          rgba(160,135,148,0.07) 0px,
          rgba(160,135,148,0.07) 1px,
          transparent 1px,
          transparent 16px
        );
    }
    .about-photo-placeholder {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      color: rgba(8,76,97,0.3);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.06em;
    }
    .about-photo-placeholder svg {
      width: 48px; height: 48px;
      opacity: 0.35;
    }

    /* Decorative floating box */
    .about-photo-wrap::after {
      content: '';
      position: absolute;
      width: 100px; height: 100px;
      border: 2px solid rgba(166, 118, 86, 0.3);
      border-radius: var(--radius);
      bottom: -1.5rem;
      right: -1.5rem;
      z-index: -1;
    }

    .about-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-top: 2rem;
    }
    .stat {
      text-align: center;
      padding: 1rem;
      border-radius: var(--radius);
      background: rgba(242,232,207,0.8);
      border: 1.5px solid rgba(160,135,148,0.2);
    }
    .stat-num {
      font-size: 1.65rem;
      font-weight: 900;
      color: var(--teal-dark);
      letter-spacing: -0.03em;
      line-height: 1;
    }
    .stat-label {
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--mauve);
      margin-top: 0.2rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* ─────────────────────────────────────────────
       4. GITHUB
    ───────────────────────────────────────────── */
    #github {
      text-align: center;
    }

    .github-inner {
      max-width: 760px;
      margin-inline: auto;
    }

    .github-activity-box {
      margin: 2.5rem 0;
      border-radius: calc(var(--radius) * 1.5);
      border: 1.5px solid rgba(160,135,148,0.28);
      background: rgba(242,232,207,0.55);
      backdrop-filter: blur(8px);
      overflow: hidden;
    }

    .activity-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 1.25rem;
      border-bottom: 1px solid rgba(160,135,148,0.2);
      background: rgba(166, 111, 86, 0.07);
    }
    .activity-dots {
      display: flex;
      gap: 0.4rem;
    }
    .activity-dots span {
      width: 10px; height: 10px;
      border-radius: 50%;
    }
    .dot-r { background: #E5847B; }
    .dot-y { background: #E5C87B; }
    .dot-g { background: #7BE5A1; }

    .activity-tab-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--teal-mid);
    }

    .activity-body {
      padding: 1.5rem 1.25rem;
    }

    .activity-item {
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      padding: 0.85rem 0;
      border-bottom: 1px solid rgba(160,135,148,0.15);
      text-align: left;
    }
    .activity-item:last-child { border-bottom: none; }

    .activity-icon {
      flex-shrink: 0;
      width: 32px; height: 32px;
      border-radius: 8px;
      background: rgba(194, 144, 104, 0.14);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .activity-icon svg { width: 16px; height: 16px; }

    .activity-text { flex: 1; }
    .activity-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--teal-dark);
      margin-bottom: 0.15rem;
    }
    .activity-meta {
      font-size: 0.72rem;
      color: var(--mauve);
      font-weight: 500;
    }

    .activity-placeholder-row {
      height: 10px;
      border-radius: 100px;
      background: rgba(160,135,148,0.18);
      margin-bottom: 0.5rem;
    }
    .activity-placeholder-row:last-child { width: 60%; }

    .github-actions {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    /* ─────────────────────────────────────────────
       5. CONTACT
    ───────────────────────────────────────────── */
    #contact { text-align: center; }

    .contact-inner { max-width: 600px; margin-inline: auto; }
    .contact-inner .section-title { margin-bottom: 0.5rem; }
    .contact-inner > p {
      font-size: 0.94rem;
      color: rgba(97, 36, 8, 0.65);
      margin-bottom: 2.5rem;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      text-align: left;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    @media (min-width: 560px) {
      .form-row { grid-template-columns: 1fr 1fr; }
    }

    .form-group { display: flex; flex-direction: column; gap: 0.4rem; }

    .form-group label {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--teal-dark);
    }

    .form-group input,
    .form-group textarea {
      padding: 0.8rem 1rem;
      border-radius: var(--radius);
      border: 1.5px solid rgba(160,135,148,0.35);
      background: rgba(242,232,207,0.7);
      font-family: 'Montserrat', sans-serif;
      font-size: 0.9rem;
      color: var(--teal-dark);
      transition: border-color var(--transition), box-shadow var(--transition);
      outline: none;
      resize: vertical;
    }
    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: rgba(8,76,97,0.35);
    }
    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--teal-mid);
      box-shadow: 0 0 0 3px rgba(86,163,166,0.15);
    }

    .form-group textarea { min-height: 140px; }

    .form-submit {
      align-self: center;
      margin-top: 0.5rem;
    }

    /* ─────────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────────── */
    footer {
      border-top: 1px solid rgba(160,135,148,0.22);
      padding: 2rem var(--pad-x);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
    }

    @media (min-width: 640px) {
      footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
      }
    }

    .footer-logo {
      font-size: 1rem;
      font-weight: 900;
      color: var(--teal-dark);
    }
    .footer-logo span { color: var(--teal-mid); }

    .footer-links {
      display: flex;
      gap: 1.5rem;
    }
    .footer-links a {
      font-size: 0.78rem;
      font-weight: 600;
      color: rgba(97, 44, 8, 0.6);
      transition: color var(--transition);
    }
    .footer-links a:hover { color: var(--teal-mid); }

    .footer-copy {
      font-size: 0.75rem;
      color: rgba(97, 69, 8, 0.45);
    }

    /* ─────────────────────────────────────────────
       SOCIAL LINKS
    ───────────────────────────────────────────── */
    .social-divider {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 2rem 0;
      color: rgba(170, 122, 50, 0.3);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .social-divider::before,
    .social-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(160,135,148,0.3);
    }

    .social-links {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .social-link {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      border-radius: var(--radius);
      border: 1.5px solid rgba(160,135,148,0.25);
      background: rgba(242,232,207,0.5);
      transition: all var(--transition);
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--teal-dark);
    }
    .social-link:hover {
      border-color: var(--teal-mid);
      background: rgba(86,163,166,0.08);
      transform: translateX(5px);
    }
    .social-link-icon {
      width: 38px; height: 38px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .social-link-icon svg { width: 18px; height: 18px; }
    .social-link-icon.email    { background: rgba(8,76,97,0.1); color: var(--teal-dark); }
    .social-link-icon.linkedin { background: rgba(10,102,194,0.1); color: #0a66c2; }
    .social-link-icon.github   { background: rgba(8,76,97,0.1); color: var(--teal-dark); }

    .social-link-text { flex: 1; }
    .social-link-label {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--mauve);
      line-height: 1;
      margin-bottom: 0.2rem;
    }
    .social-link-value {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--teal-dark);
    }
    .social-link-arrow {
      color: var(--mauve);
      font-size: 0.85rem;
      transition: transform var(--transition);
    }
    .social-link:hover .social-link-arrow {
      transform: translateX(3px);
      color: var(--teal-mid);
    }
    /* ─────────────────────────────────────────────
       SCROLL REVEAL (JS-powered)
    ───────────────────────────────────────────── */
    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }

  