/* ============================================================
   MARGARIDA VILHENA — PORTFOLIO
   Sage green · Organic · Apple-like animations
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    --sage:        #7aab87;
    --sage-light:  #a8c7b0;
    --sage-dark:   #4e8560;
    --sage-pale:   #e8f2ec;
    --sage-blob:   rgba(122, 171, 135, 0.55);
    --white:       #ffffff;
    --off-white:   #f9faf8;
    --text-dark:   #1a1a1a;
    --text-mid:    #4a4a4a;
    --text-light:  #7a7a7a;
    --border:      rgba(122, 171, 135, 0.25);
    --shadow:      0 20px 60px rgba(0,0,0,0.08);
    --shadow-lg:   0 40px 100px rgba(0,0,0,0.12);
    --radius:      20px;
    --radius-lg:   32px;
    --nav-h:       72px;
    --ease-apple:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  /* ── Reset & Base ─────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; font-size: 16px; }
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
  }
  img { display: block; max-width: 100%; }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  
  /* ── Custom Cursor ────────────────────────────────────────── */
  .cursor {
    width: 8px;
    height: 8px;
    background: var(--sage-dark);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s var(--ease-apple), background 0.3s;
  }
  .cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--sage);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.35s var(--ease-apple), opacity 0.3s, width 0.3s, height 0.3s, border-color 0.3s;
  }
  
  /* ── Container ────────────────────────────────────────────── */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
  }
  
  /* ── Blob shapes ──────────────────────────────────────────── */
  .blob {
    position: absolute;
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    background: var(--sage-blob);
    pointer-events: none;
    z-index: 0;
  }
  
  /* ── Section Labels ───────────────────────────────────────── */
  .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-dark);
    background: var(--sage-pale);
    border: 1px solid var(--border);
    padding: 0.35em 0.9em;
    border-radius: 100px;
    margin-bottom: 1rem;
  }
  .section-label-sm {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 0.8rem;
  }
  .section-header {
    text-align: center;
    margin-bottom: 5rem;
  }
  .section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    letter-spacing: -0.03em;
  }
  .section-title span { color: var(--sage-dark); }
  
  /* ── Reveal Animations ────────────────────────────────────── */
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 0;
    transition: opacity 0.85s var(--ease-apple), transform 0.85s var(--ease-apple);
  }
  .reveal-up    { transform: translateY(48px); }
  .reveal-left  { transform: translateX(-60px); }
  .reveal-right { transform: translateX(60px); }
  
  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
  }
  
  /* ── Navigation ───────────────────────────────────────────── */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    z-index: 1000;
    transition: background 0.4s var(--ease-apple), box-shadow 0.4s var(--ease-apple), backdrop-filter 0.4s;
  }
  .nav.scrolled {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  }
  .nav-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--sage-dark);
    letter-spacing: -0.04em;
  }
  .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
  }
  .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.25s;
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--sage-dark);
    border-radius: 2px;
    transition: width 0.3s var(--ease-apple);
  }
  .nav-link:hover,
  .nav-link.active { color: var(--sage-dark); }
  .nav-link:hover::after,
  .nav-link.active::after { width: 100%; }
  .nav-cta {
    background: var(--sage-dark);
    color: var(--white) !important;
    padding: 0.55em 1.4em;
    border-radius: 100px;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s !important;
  }
  .nav-cta::after { display: none; }
  .nav-cta:hover {
    background: var(--sage);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(78,133,96,0.35);
  }
  
  /* Burger */
  .nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-apple), opacity 0.3s;
  }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-apple);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu ul { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
  .mobile-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.25s;
  }
  .mobile-link:hover { color: var(--sage-dark); }
  
  /* ── Hero Section ─────────────────────────────────────────── */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding: var(--nav-h) 2rem 4rem;
  }
  
  .blob-tl {
    width: 380px;
    height: 340px;
    top: -80px;
    left: -100px;
    animation: blobFloat1 12s ease-in-out infinite;
  }
  .blob-br {
    width: 320px;
    height: 280px;
    bottom: -60px;
    right: -80px;
    animation: blobFloat2 14s ease-in-out infinite;
  }
  
  @keyframes blobFloat1 {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33%       { transform: translate(20px, 15px) rotate(5deg); }
    66%       { transform: translate(-10px, 25px) rotate(-3deg); }
  }
  @keyframes blobFloat2 {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    40%       { transform: translate(-18px, -12px) rotate(-4deg); }
    70%       { transform: translate(10px, -20px) rotate(6deg); }
  }
  
  .botanical {
    position: absolute;
    pointer-events: none;
    opacity: 0.65;
    z-index: 1;
  }
  .botanical-tl {
    width: clamp(140px, 18vw, 240px);
    top: 60px;
    left: 20px;
    animation: leafSway 8s ease-in-out infinite;
  }
  .botanical-br {
    width: clamp(100px, 14vw, 180px);
    bottom: 60px;
    right: 40px;
    animation: leafSway 10s ease-in-out infinite reverse;
  }
  @keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(4deg); }
  }
  
  .hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-eyebrow {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
  }
  
  /* Giant PORTFOLIO letters grid */
  .hero-title-grid {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
  }
  .htg-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
  }
  .ht-letter {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 9vw, 8.5rem);
    font-weight: 900;
    color: var(--sage);
    letter-spacing: -0.02em;
    line-height: 0.95;
    display: inline-block;
    transition: transform 0.4s var(--ease-apple), color 0.3s;
    user-select: none;
  }
  .ht-letter:hover {
    transform: translateY(-6px) scale(1.05);
    color: var(--sage-dark);
  }
  .htg-row-2 { gap: 8px; }
  
  .hero-photo-wrapper {
    width: clamp(90px, 12vw, 160px);
    height: clamp(110px, 15vw, 200px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    flex-shrink: 0;
    transition: transform 0.5s var(--ease-apple), box-shadow 0.4s;
  }
  .hero-photo-wrapper:hover {
    transform: scale(1.04) rotate(1deg);
    box-shadow: var(--shadow-lg);
  }
  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(20%);
    transition: filter 0.4s;
  }
  .hero-photo-wrapper:hover .hero-photo { filter: grayscale(0%); }
  
  .hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
  }
  
  .hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Buttons */
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sage-dark);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85em 2em;
    border-radius: 100px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  }
  .btn-primary:hover {
    background: var(--sage);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(78,133,96,0.35);
  }
  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--sage);
    color: var(--sage-dark);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85em 2em;
    border-radius: 100px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
  }
  .btn-ghost:hover {
    background: var(--sage-pale);
    transform: translateY(-3px);
  }
  
  /* Scroll indicator */
  .hero-scroll {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
  }
  .hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
  }
  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--sage), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.2); }
  }
  
  /* ── About Section ────────────────────────────────────────── */
  .about {
    position: relative;
    padding: 8rem 0 0;
    overflow: hidden;
    background: var(--white);
  }
  .blob-about-tl {
    width: 500px;
    height: 420px;
    top: -60px;
    left: -180px;
    opacity: 0.4;
    animation: blobFloat1 16s ease-in-out infinite;
  }
  .blob-about-br {
    width: 380px;
    height: 340px;
    bottom: 100px;
    right: -120px;
    opacity: 0.35;
    animation: blobFloat2 18s ease-in-out infinite;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .about-photo-wrap {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
    max-width: 360px;
  }
  .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease-apple);
    filter: grayscale(15%);
  }
  .about-photo-wrap:hover .about-photo { transform: scale(1.03); filter: grayscale(0%); }
  .about-photo-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sage-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  
  .about-text-col { padding-top: 1rem; }
  .about-name {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
  }
  .about-name span { color: var(--sage-dark); }
  .about-dob {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
  }
  .about-bio {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 1.2rem;
  }
  .about-bio strong { color: var(--text-dark); font-weight: 600; }
  .about-hobbies { margin-top: 2rem; }
  .hobbies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .hobby-tag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4em 0.9em;
    border-radius: 100px;
    background: var(--sage-pale);
    color: var(--sage-dark);
    border: 1px solid var(--border);
    transition: background 0.25s, transform 0.25s, color 0.25s;
    cursor: default;
  }
  .hobby-tag:hover {
    background: var(--sage);
    color: var(--white);
    transform: translateY(-2px);
  }
  
  /* Contact strip */
  .contact-strip {
    margin-top: 6rem;
    background: var(--sage-pale);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
  }
  .contact-strip-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 3rem;
  }
  .cs-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-dark);
    border: 1px solid var(--border);
    padding: 0.3em 0.8em;
    border-radius: 6px;
    background: var(--white);
  }
  .cs-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-mid);
    transition: color 0.25s;
  }
  .cs-item i { color: var(--sage-dark); font-size: 0.8rem; }
  .cs-item:hover { color: var(--sage-dark); }
  
  /* ── Experience Section ───────────────────────────────────── */
  .experience {
    padding: 8rem 0;
    background: var(--off-white);
    position: relative;
  }
  .exp-edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  .exp-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .exp-col-title::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--sage-dark);
    display: inline-block;
    flex-shrink: 0;
  }
  
  /* Timeline */
  .timeline { position: relative; padding-left: 1.8rem; }
  .timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 8px; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--sage), transparent);
  }
  .tl-item {
    position: relative;
    margin-bottom: 2.5rem;
  }
  .tl-dot {
    position: absolute;
    left: -1.8rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--sage-dark);
    transition: background 0.3s, transform 0.3s;
    z-index: 1;
  }
  .tl-item:hover .tl-dot {
    background: var(--sage-dark);
    transform: scale(1.3);
  }
  .tl-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 0.4rem;
  }
  .tl-role {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    line-height: 1.3;
  }
  .tl-company {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sage);
    margin-bottom: 0.8rem;
  }
  .tl-bullets {
    list-style: none;
    padding-left: 0;
  }
  .tl-bullets li {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.3rem;
  }
  .tl-bullets li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--sage-dark);
    font-weight: 700;
  }
  
  /* Other experiences */
  .other-exp-list { display: flex; flex-direction: column; gap: 1rem; }
  .oe-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .oe-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
  }
  .oe-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--sage-dark);
    padding: 0.3em 0.7em;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .oe-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.55; }
  
  /* ── Skills Section ───────────────────────────────────────── */
  .skills {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
  }
  .blob-skills-br {
    width: 480px;
    height: 400px;
    bottom: -100px;
    right: -150px;
    opacity: 0.3;
    animation: blobFloat2 20s ease-in-out infinite;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .skills-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 1.5px solid var(--border);
  }
  .skill-items { display: flex; flex-direction: column; gap: 1rem; }
  .skill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .skill-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 90px;
  }
  .skill-dots {
    display: flex;
    gap: 5px;
  }
  .skill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sage-pale);
    border: 1.5px solid var(--sage-light);
    transition: background 0.4s var(--ease-apple), transform 0.3s;
  }
  .skill-dot.filled {
    background: var(--sage-dark);
    border-color: var(--sage-dark);
  }
  .skill-item:hover .skill-dot.filled { transform: scale(1.2); }
  
  /* Soft skill cards */
  .soft-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: var(--sage-pale);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
  }
  .soft-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
  .soft-card i {
    font-size: 1.1rem;
    color: var(--sage-dark);
    margin-top: 2px;
    flex-shrink: 0;
  }
  .soft-card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.55; }
  
  /* Language bars */
  .lang-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.8rem;
  }
  .lang-flag {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--sage-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.03em;
    flex-shrink: 0;
    grid-row: 1 / 3;
  }
  .lang-text {}
  .lang-name { font-size: 0.875rem; font-weight: 600; color: var(--text-dark); }
  .lang-level { font-size: 0.75rem; color: var(--sage-dark); font-weight: 500; }
  .lang-bar {
    width: 100%;
    height: 5px;
    background: var(--sage-pale);
    border-radius: 3px;
    overflow: hidden;
    grid-column: 2;
  }
  .lang-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-dark), var(--sage-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.4s var(--ease-apple);
  }
  
  .license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--sage-dark);
    color: var(--white);
    padding: 0.8em 1.6em;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 24px rgba(78,133,96,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .license-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(78,133,96,0.35);
  }
  
  /* ── Projects Section ─────────────────────────────────────── */
  .projects {
    padding: 8rem 0;
    background: var(--off-white);
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .project-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.4s var(--ease-apple), transform 0.4s var(--ease-apple);
    border: 1px solid var(--border);
  }
  .project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
  }
  .project-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
  }
  .project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.7);
    transition: transform 0.5s var(--ease-apple);
  }
  .pi-1 { background: linear-gradient(135deg, var(--sage-dark), var(--sage-light)); }
  .pi-2 { background: linear-gradient(135deg, #5a8a6e, #9abba6); }
  .pi-3 { background: linear-gradient(135deg, #3d6b50, #7aab87); }
  .pi-4 { background: linear-gradient(135deg, #6b9e7c, #b0ccb8); }
  
  .project-card:hover .project-placeholder { transform: scale(1.06); }
  .project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .project-card:hover .project-overlay { opacity: 1; }
  .project-overlay span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
  }
  .project-info { padding: 1.5rem; }
  .project-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
  }
  .project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }
  .project-desc {
    font-size: 0.875rem;
    color: var(--text-mid);
    line-height: 1.6;
  }
  
  /* ── Contact Section ─────────────────────────────────────── */
  .contact {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--sage-dark) 0%, #3d6b50 50%, #2d5040 100%);
    overflow: hidden;
  }
  .blob-contact-tl {
    width: 500px;
    height: 420px;
    top: -100px;
    left: -150px;
    background: rgba(255,255,255,0.07);
    animation: blobFloat1 20s ease-in-out infinite;
  }
  .botanical-contact {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    width: 160px;
    opacity: 0.4;
    animation: leafSway 12s ease-in-out infinite;
  }
  .contact-inner { text-align: center; position: relative; z-index: 1; }
  .contact-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.2rem;
  }
  .contact-title span {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
  }
  .contact-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin: 0 auto 3rem;
    line-height: 1.6;
  }
  .contact-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .contact-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    min-width: 200px;
    text-align: center;
    color: var(--white);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  }
  .contact-card:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }
  .cc-icon {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.8rem;
  }
  .cc-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
  }
  .cc-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    word-break: break-all;
  }
  
  /* ── Footer ───────────────────────────────────────────────── */
  .footer {
    background: #1a2e22;
    padding: 2rem 0;
  }
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--sage);
    letter-spacing: -0.04em;
  }
  .footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.02em;
  }
  .footer-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
  }
  .footer-top:hover {
    background: var(--sage-dark);
    color: var(--white);
    transform: translateY(-3px);
  }
  
  /* ── Responsive ───────────────────────────────────────────── */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo-wrap {
      position: static;
      max-width: 300px;
      margin: 0 auto;
    }
    .exp-edu-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .htg-row { gap: 2px; }
    .ht-letter { font-size: clamp(3rem, 12vw, 5rem); }
    .hero-photo-wrapper { width: 80px; height: 110px; }
  }
  @media (max-width: 600px) {
    .exp-edu-grid { gap: 3rem; }
    .contact-card { min-width: 260px; width: 100%; }
    .htg-row-2 { gap: 4px; }
    .ht-letter { font-size: clamp(2.2rem, 10vw, 3.5rem); }
    .hero-photo-wrapper { width: 65px; height: 90px; }
    .section-header { margin-bottom: 3rem; }
    .contact-sub { font-size: 0.95rem; }
  }
  