* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    font-family: "Italiana", serif;
    height: 100%;
    background-color: black;
  }
  
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e7d32;
    padding: 0 30px;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 30;
  }
  
  .nav-links {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex: 1;
  }
  
.navbar a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
  }
  
.icon {
    height: 60px;
    width: auto;
    cursor: pointer;
    display: block;
  }

  .nav-links a.active {
    position: relative;
  }

  .nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    background: linear-gradient(90deg, #1b5e20, #66bb6a);
  }
  
  
  .hero {
    position: relative;
    background-image: url("pictures/background.png");
    background-size: cover;
    background-position: center;
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 12px;
  }
  
  
  .hero-content {
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 12px;
  }
  
  .hero-content h1 {
    font-size: 95px;
    letter-spacing: 10px;
    margin-bottom: 10px;
  }
  
  .hero-content h2 {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
  }
  
  .buttons button {
    background-color: #2e7d32;
    font-family: "Italiana", serif;
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    font-size: 22px;
    border-radius: 25px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background 0.3s ease;
  }
  
.buttons button:hover {
    background-color: #1b5e20;
  }

  .hero-content.contact {
    max-width: 900px;
    width: 100%;
  }

  .hero-content.contact p {
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 300;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-details {
    display: grid;
    gap: 16px;
  }

  .detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .detail .label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }

  .detail a {
    color: white;
    font-size: 18px;
    text-decoration: none;
  }

  .detail a:hover {
    text-decoration: underline;
  }

  .contact-form {
    display: grid;
    gap: 12px;
  }

  .contact-form label {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 16px;
    outline: none;
  }

  .contact-form textarea {
    resize: vertical;
    min-height: 140px;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.3);
  }

  .contact-form button {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background 0.3s ease, transform 0.1s ease;
  }

  .contact-form button:hover {
    background-color: #1b5e20;
  }

  .contact-form button:active {
    transform: translateY(1px);
  }

  /* About page */
.hero.about-hero {
    align-items: flex-start;
    padding: 60px 24px;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
    background: none;
  }

  .hero.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url("pictures/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
  }

  .hero-content.about {
    max-width: 1200px;
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(27, 94, 32, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
  }

  .about-lede h1 {
    font-size: 52px;
    letter-spacing: 6px;
    margin-bottom: 12px;
  }

  .eyebrow {
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
  }

  .lede-text {
    max-width: 640px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
  }

  .experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 24px;
    margin-top: 36px;
    align-items: start;
  }

  .stacked-section {
    display: grid;
    gap: 16px;
    margin-top: 32px;
  }

  .section-header h2 {
    font-size: 30px;
    letter-spacing: 2px;
  }

  .info-grid {
    display: grid;
    gap: 12px;
  }

  .info-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    color: white;
  }

  .club-card {
    flex-direction: column;
    gap: 16px;
  }

  .club-header {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .club-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 8px 10px;
  }

  .role-list {
    display: grid;
    gap: 12px;
    width: 100%;
    position: relative;
    padding-left: 18px;
  }

  .role-list::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(102, 187, 106, 0.9), rgba(255, 255, 255, 0));
  }

  .role-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
  }

  .role-entry::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 18px;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    border: 2px solid #66bb6a;
    background: #0b0b0b;
    box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.12);
  }

  .role-entry h4 {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .role-entry .pill {
    align-self: center;
  }

  .highlights-card .company {
    max-width: 780px;
  }

  .edu-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    align-self: center;
  }

  .edu-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    justify-content: start;
  }

  .edu-details {
    display: grid;
    gap: 6px;
    align-items: start;
  }

  .edu-dates {
    justify-self: start;
  }

  .info-card.subtle {
    border-style: dashed;
    color: rgba(255, 255, 255, 0.82);
  }

  .experience-list {
    display: grid;
    gap: 12px;
  }

  .experience-card {
    width: 100%;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    min-height: 110px;
    color: white;
    cursor: pointer;
    transition: border 0.2s ease, background 0.3s ease;
    transform: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
  }

  .experience-card:hover:not(.disabled) {
    border-color: #66bb6a;
    transform: none;
  }

  .experience-card:focus-visible {
    outline: 2px solid #66bb6a;
    outline-offset: 2px;
  }

  .experience-card:active {
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .experience-card:focus {
    outline: none;
    box-shadow: none;
  }

  .experience-card.active {
    background: linear-gradient(120deg, rgba(46, 125, 50, 0.25), rgba(255, 255, 255, 0.04));
    border-color: #66bb6a;
    transform: none;
  }

  .experience-card.disabled {
    cursor: default;
    opacity: 0.5;
  }

  .card-main {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
  }

  .company {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 2px;
  }

  .experience-logo,
  .detail-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 12px;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
  }

  .pill-ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
  }

.experience-detail {
    background-color: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px;
    display: grid;
    gap: 18px;
  }

  .experience-detail.collapsed {
    display: none;
  }

  .experience-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
  }

  .experience-placeholder.show {
    display: flex;
  }

  .detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .impact-list {
    list-style: none;
    display: grid;
    gap: 10px;
  }

  .impact-list li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
  }

  .toolkit {
    display: grid;
    gap: 10px;
  }

  .tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .tool-pills .pill {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.5);
    color: #d8f3dc;
  }

  .tool-images {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .tool-images img {
    height: 42px;
    width: auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
  }

  .close-detail {
    margin-left: auto;
  }

  /* Projects */
  .hero.projects-hero {
    align-items: flex-start;
    padding: 70px 24px 80px;
    min-height: 100vh;
    height: auto;
    background: none;
  }

  .hero.projects-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("pictures/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
    pointer-events: none;
    filter: brightness(0.4);
  }

  .hero-content.projects {
    width: 100%;
    max-width: 1200px;
    text-align: left;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(27, 94, 32, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
  }

  .projects-header {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
  }

  .projects-header h1 {
    font-size: 46px;
    letter-spacing: 5px;
  }

  .projects-sections {
    display: grid;
    gap: 36px;
  }

  .project-section {
    display: grid;
    gap: 16px;
  }

  .section-intro {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    max-width: 820px;
    line-height: 1.6;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    grid-auto-rows: 1fr;
  }

  .project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    word-break: break-word;
  }

  .project-card:hover {
    border-color: #66bb6a;
  }

  .project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .project-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
  }

  .project-points {
    list-style: none;
    display: grid;
    gap: 8px;
    flex: 1;
  }

  .project-points li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
  }

  .tool-stack {
    display: grid;
    gap: 8px;
  }

  .tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(46, 125, 50, 0.12);
    border: 1px solid rgba(46, 125, 50, 0.4);
    color: #d8f3dc;
  }

  .tool-icon {
    height: 36px;
    width: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
  }

  .tool-icon img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
  }

  .tool-icon.generated {
    background: linear-gradient(140deg, rgba(102, 187, 106, 0.25), rgba(46, 125, 50, 0.6));
    color: #f0fff4;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
  }

  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2e7d32;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .project-link:hover {
    background: #1b5e20;
  }

  .project-link.ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
  }

  .media-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 220px;
  }

  .media-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), var(--thumb);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: block;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  }

  .media-thumb:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .media-preview {
    padding: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(102, 187, 106, 0.25), rgba(0, 0, 0, 0.85));
    display: grid;
    gap: 10px;
  }

  .media-preview h3 {
    font-size: 22px;
  }

  .media-footer {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
  }

  .media-footer a {
    color: #d8f3dc;
    text-decoration: none;
  }

  .media-footer a:hover {
    text-decoration: underline;
  }

  @media (min-width: 900px) {
    .hero-content.contact {
      text-align: left;
    }

    .contact-grid {
      grid-template-columns: 1fr 1.1fr;
      gap: 32px;
    }

    .hero.about-hero {
      padding: 80px 40px;
    }
  }

  @media (max-width: 900px) {
    .about-lede h1 {
      font-size: 38px;
      letter-spacing: 4px;
    }

    .experience-grid {
      grid-template-columns: 1fr;
    }

    .detail-meta {
      flex-direction: column;
      align-items: flex-start;
    }

    .info-card {
      flex-direction: column;
      align-items: flex-start;
    }

    .role-list {
      padding-left: 14px;
    }

    .role-list::before {
      left: 8px;
    }

    .role-entry::before {
      left: -10px;
    }

    .club-header,
    .role-entry {
      flex-direction: column;
      align-items: flex-start;
    }

    .edu-logo {
      margin-top: 6px;
    }

    .edu-card {
      grid-template-columns: 1fr;
    }

    .hero.projects-hero {
      padding: 60px 16px 70px;
    }

    .projects-header h1 {
      font-size: 34px;
    }

    .project-head {
      align-items: flex-start;
      flex-direction: column;
    }

    .project-grid {
      grid-template-columns: 1fr;
    }
  }
