*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --white: #ffffff;
      --bg: #f7f6f3;
      --bg-soft: #efede8;
      --ink: #1a1a18;
      --ink-soft: #4a4a46;
      --ink-muted: #8a8a84;
      --line: #e2e0da;
      --line-strong: #cac7bf;
      --accent: #1a1a18;
      --accent-soft: #f0efec;
      --radius: 6px;
      --font: 'DM Sans', system-ui, sans-serif;
      
      /* New button colors from your second template */
      --btn-resume: #e5a93b;
      --btn-projects: #f34b38;
      --btn-contact: #8cd3d7;
    }

    html { scroll-behavior: smooth; scroll-padding-top: 80px; }

    body {
      font-family: var(--font);
      background: var(--white);
      color: var(--ink);
      line-height: 1.65;
      font-size: 16px;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }

    .wrap {
       max-width: 1040px; 
      margin: 0 auto;
      padding: 0 28px;
    }

    /* ── NAV ── */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      background: rgba(255,255,255,.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
    }

    .nav-inner {
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      font-size: .95rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 36px;
    }

    .nav-links a {
      font-size: .875rem;
      font-weight: 500;
      color: var(--ink-soft);
      transition: color .2s;
    }

    .nav-links a:hover { color: var(--ink); }

    .nav-hire {
      padding: 9px 18px;
      background: var(--ink);
      color: var(--white) !important;
      border-radius: var(--radius);
      font-weight: 600 !important;
    }

    .nav-hire:hover { opacity: .85; }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      width: 28px;
      height: 20px;
      position: relative;
    }

    .menu-toggle span,
    .menu-toggle::before,
    .menu-toggle::after {
      content: '';
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--ink);
      border-radius: 1px;
      transition: .25s;
    }

    .menu-toggle::before { top: 0; }
    .menu-toggle span { top: 9px; }
    .menu-toggle::after { bottom: 0; }

    .menu-toggle.open::before { top: 9px; transform: rotate(45deg); }
    .menu-toggle.open span { opacity: 0; }
    .menu-toggle.open::after { bottom: 9px; transform: rotate(-45deg); }

    /* ── INTEGRATED HERO ── */
    .hero {
      padding: 160px 0 100px;
      border-bottom: 1px solid var(--line);
    }

    .hero-layout {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 64px;
    }

    /* Profile Image Container with Upload Overlay */
    .profile-container {
      flex-shrink: 0;
      position: relative;
      cursor: pointer;
    }

    .profile-pic {
      width: 360px;
      height: 360px;
      border-radius: 50%;
      object-fit: cover;
      background-color: var(--bg-soft);
      border: 1px solid var(--line);
      display: block;
      transition: filter 0.3s ease;
    }

    /* Upload UI hint on hover */
    .upload-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 360px;
      height: 360px;
      border-radius: 50%;
      background: rgba(26, 26, 24, 0.4);
      color: var(--white);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      pointer-events: none;
    }

    .profile-container:hover .upload-overlay {
      opacity: 1;
    }
    
    .profile-container:hover .profile-pic {
      filter: brightness(0.9);
    }

    /* Hidden Native Input */
    #profileInput {
      display: none;
    }

    .hero-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero-content h1 {
      font-size: clamp(3.5rem, 6vw, 5rem);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.04em;
      color: var(--ink);
      margin-bottom: 16px;
    }

    .hero-content h3 {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--ink);
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .hero-content p {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--ink-soft);
      max-width: 460px;
      margin-bottom: 32px;
    }

    /* Circle Buttons */
    .circle-button-group {
      display: flex;
      gap: 16px;
    }

    .btn-circle {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      text-decoration: none;
      font-weight: 700;
      font-size: 0.9rem;
      color: var(--ink);
      border: 1px solid rgba(0, 0, 0, 0.1);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .btn-circle:hover {
      transform: scale(1.06);
      box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    }

    .btn-circle.resume { background-color: var(--btn-resume); }
    .btn-circle.projects { background-color: var(--btn-projects); color: var(--white); border-color: transparent; }
    .btn-circle.contact { background-color: var(--btn-contact); }

    /* ── SECTIONS ── */
    section { padding: 96px 0; }
    section.alt { background: var(--bg); }

    .section-head {
      margin-bottom: 48px;
      max-width: 560px;
    }

    .section-head.center {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }

    .section-head h2 {
      font-size: clamp(1.6rem, 3vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 12px;
    }

    .section-head p {
      color: var(--ink-soft);
      font-size: .975rem;
    }

    /* ── ABOUT ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 56px;
    }

    .about-text p {
      color: var(--ink-soft);
      margin-bottom: 18px;
      font-size: .975rem;
    }

    .about-text p:last-child { margin-bottom: 0; }

    /* ── SKILLS ── */
    .skills-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .skill-block {
      background: var(--white);
      padding: 28px 24px;
    }

    section.alt .skill-block { background: var(--bg); }

    .skill-block h3 {
      font-size: .8rem;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: var(--ink-muted);
      margin-bottom: 16px;
    }

    .skill-block ul li {
      font-size: .9rem;
      color: var(--ink-soft);
      padding: 5px 0;
      border-bottom: 1px solid var(--line);
    }

    .skill-block ul li:last-child { border-bottom: none; }

    /* ── PROJECTS ── */
    .project-list {
      display: flex;
      flex-direction: column;
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .project-item {
      display: grid;
      grid-template-columns: 48px 1fr auto;
      gap: 24px;
      align-items: center;
      padding: 28px 28px;
      background: var(--white);
      transition: background .2s;
    }

    .project-item:hover { background: var(--bg); }

    .project-num {
      font-size: .8rem;
      font-weight: 600;
      color: var(--ink-muted);
    }

    .project-info h3 {
      font-size: 1rem;
      font-weight: 700;
      margin-bottom: 6px;
      letter-spacing: -0.01em;
    }

    .project-info p {
      font-size: .875rem;
      color: var(--ink-soft);
      margin-bottom: 10px;
      max-width: 52ch;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .project-tags span {
      font-size: .75rem;
      font-weight: 500;
      color: var(--ink-muted);
      padding: 3px 0;
    }

    .project-tags span:not(:last-child)::after {
      content: '·';
      margin-left: 8px;
      color: var(--line-strong);
    }

    .project-link {
      font-size: .8rem;
      font-weight: 600;
      color: var(--ink);
      white-space: nowrap;
      border-bottom: 1px solid var(--ink);
      padding-bottom: 1px;
    }

    .project-link:hover { opacity: .6; }

    /* ── SERVICES ── */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .service-card {
      padding: 28px 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--white);
    }

    .service-card .num {
      font-size: .75rem;
      font-weight: 600;
      color: var(--ink-muted);
      margin-bottom: 20px;
    }

    .service-card h3 {
      font-size: .95rem;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .service-card p {
      font-size: .85rem;
      color: var(--ink-soft);
      line-height: 1.55;
    }

    /* ── CONTACT ── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: start;
    }

    .contact-links {
      margin-top: 32px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .contact-links a {
      font-size: .9rem;
      color: var(--ink-soft);
      border-bottom: 1px solid var(--line);
      padding-bottom: 14px;
      transition: color .2s;
    }

    .contact-links a:hover { color: var(--ink); }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .field label {
      display: block;
      font-size: .8rem;
      font-weight: 600;
      color: var(--ink-muted);
      margin-bottom: 6px;
      letter-spacing: .02em;
    }

    .field input,
    .field textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      font-family: var(--font);
      font-size: .9rem;
      color: var(--ink);
      background: var(--white);
      transition: border-color .2s;
    }

    .field input:focus,
    .field textarea:focus {
      outline: none;
      border-color: var(--ink);
    }

    .field textarea {
      resize: vertical;
      min-height: 120px;
    }

    .form-note {
      display: none;
      font-size: .85rem;
      color: #3d8b5f;
      font-weight: 500;
      margin-top: 4px;
    }

    /* ── FOOTER ── */
    footer {
      padding: 36px 0;
      border-top: 1px solid var(--line);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: .8rem;
      color: var(--ink-muted);
    }

    .footer-inner a {
      color: var(--ink-soft);
      border-bottom: 1px solid var(--line-strong);
    }

    /* ── REVEAL ── */
    .fade {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity .5s ease, transform .5s ease;
    }

    .fade.show { opacity: 1; transform: none; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .hero-layout { 
        flex-direction: column; 
        text-align: center;
        gap: 40px; 
      }
      
      .hero-content {
        align-items: center;
      }

      .about-grid,
      .contact-grid { grid-template-columns: 1fr; gap: 40px; }

      .skills-list { grid-template-columns: 1fr; }

      .services-grid { grid-template-columns: 1fr 1fr; }

      .project-item {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .project-link { justify-self: start; }
    }

    @media (max-width: 600px) {
      .menu-toggle { display: block; }

      .nav-links {
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform .3s;
      }

      .nav-links.open { transform: translateX(0); }

      .services-grid { grid-template-columns: 1fr; }

      .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }

      .profile-container, .profile-pic, .upload-overlay {
        width: 280px;
        height: 280px;
      }

      .circle-button-group {
        flex-wrap: wrap;
        justify-content: center;
      }
    }












    .contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.contact-links i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}