  :root {
    --gap: 24px;
    --radius: 20px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f9f9f9;
    color: black;
    line-height: 1.5;
  }



  /* NAVIGATION */
  nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 2rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  }

.nav-left {
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 2px;
  flex-wrap: wrap;
}

.brand-name {
  font-weight: 900;
  font-size: 2.5rem; /* bigger and bold */
  letter-spacing: -1px; /* optional for wide look */
}

.byline {
  display: block; /* <- forces it onto a new line */
  font-weight: 550;
  font-size: 0.85rem;
  letter-spacing: 1px;
  translate: 0.1rem -0.4rem;
}


  .nav-center {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-center a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .nav-center a:hover {
    color: black;
  }

  .nav-right a {
    text-decoration: none;
    background: black;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
      transition: color 0.3s ease;
  }

  .nav-right a:hover {
    background: #ffeb0f;
    color: black;
  }

.read-more {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  margin-right: 1.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #888;
}


  /* ABOUT SECTION */
  .about-section {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    color: white;
    overflow: hidden;
    margin-bottom: 0;
    padding: 6rem 0;
  }

  .about-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5);
  }

  .about-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    text-align: center;
    margin-bottom: 2rem;
  }

  .about-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }



  /* LOGOS SECTION */
  section#logos {
    margin: 0;
    padding: 3rem 1rem;
    background-color: black;
  }

  #logos h2 {
    color: white;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
  }

#logos p {
  color: white;
  text-align: center;        /* ← center the text */
  margin: 0 auto 2.5rem;     /* ← center horizontally and add bottom margin */
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 1px;
  word-wrap: break-word;
  max-width: 900px;          /* ← control the max width so it doesn’t run too wide */
}


  .about-logos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .logo-item {
    text-align: center;
    flex: 1 1 80px;
    max-width: 120px;
  }

  .logo-item img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s ease;
  }

  .logo-item img:hover {
    opacity: 0.5;
  }

  .logo-item p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: white;
    max-width: 170px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
  }




  /* PROJECTS SECTION */
  section#projects {
    padding: 3rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
  }

  section#projects h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    font-weight: 800;
  }


  .bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--gap);
    justify-content: center;

  }

  .bento-box {
    border-radius: var(--radius);
    height: 300px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    cursor: pointer;
    .bento-box {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

    display: flex;
    flex-direction: column;
  }

  .bento-box:hover {
    transform: scale(1.03);
  }

  .bento-image {
    height: 65%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    flex-shrink: 0;
    width: 100%;
  }

  .bento-content {
    height: 40%;
    padding: 0.45rem;
    padding-left: 1rem;
    background: white;
    opacity: 1;
    /* transition: opacity 0.5s ease; */
  }

  /* .bento-box.minimized .bento-image {
  opacity: 60%;
} */

  .bento-title {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 0.05rem;
    color: #111;
  }

    .bento-subtitle {
    font-size: 1rem;
    color: #191919;
    margin-bottom: 0.4rem;
    font-weight: 600;
  }

.bento-description {
  font-size: 0.9rem;
  color: #555;
  font-weight: 400;
  position: relative;
  padding-right: 1.5rem;
  overflow: hidden;
}

.bento-box.minimized .bento-description {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  mask-image: linear-gradient(to right, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent);
}


/* EXPANDED = show all, no fade */
.bento-box.expanded .bento-description {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
  overflow: visible;
}




  /* Expanded styling */
  .bento-grid.expanded-mode {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bento-box.expanded {
    display: block;
    width: 100%;
    height: 700px;
    margin: 8px;
    /* order: -1; */
    /* transition: transform 1s ease, height 1s ease; */
    transform: scale(1);
    /* transition: all 5.5s ease; */
  }

  .bento-box.expanded:hover {
    transform: none !important;
  }

  .bento-box.minimized {
    opacity: 1;
    width: 22%;
    height: 300px;
    margin: 7px;
    flex: 0 0 auto;
    transform: scale(1);
    /* transition: all 0.5s ease; */
    pointer-events: auto;
  }

  .bento-box.minimized:hover {
    transform: scale(1.03);

  }

  .bento-box.frozen {
  position: absolute;
  transition: none !important;
}







/* SOCAL SECTION */
  .social-section {
  text-align: center;
  padding: 2rem 0rem;
  height: auto;
  background: black;
  font-size: 2.5rem;
}

.social-section h2 {
  margin-bottom: 1rem;
  justify-content: center;
  font-weight: 800;
  color: white;
  letter-spacing: 2rem;
  margin-left: 1.2rem;
}
.social-section h1 {
  margin-bottom: 2rem;
  justify-content: center;
  font-weight: 650;
  font-size: 29px;
  color: white;
  letter-spacing: 0.65rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a img {
  width: 75px;
  height: 75px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  justify-items: center;
  transition: opacity 0.3s ease;
}

.social-links a img:hover {
  opacity: 0.5;
}

.social-links p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: white;
  max-width: 170px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4px;
  justify-content: center;
  word-wrap: break-word;
  }
.social-links a {
  text-align: center;
  text-decoration: none;
  justify-content: center;
  width: 80px;
  justify-content: center;
  color: rgb(62, 62, 62);          /* force initial color */
  transition: color 0.4s ease; /* smooth transition on color */
}

.social-links a:hover {
  color: rgb(131, 131, 131);
  text-decoration: none;
}


.social-links a:visited,
.social-links a:link,
.social-links a:active {
  color: white;
  text-decoration: none;
}

  footer {
    background: black;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
  }

  footer p {
    margin-bottom: 0rem;
    font-size: 0.75rem;
  }

  footer a {
    color: white;
    font-weight: 500;
    text-decoration: underline;
  }




/* for phones */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr; /* Stack one per row */
  }

  .bento-box {
    width: 100%;
    min-width: 0;
  }

  .bento-image {
    height: 200px; /* Optional: smaller image for mobile */
  }

  .bento-content {
    padding: 16px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}
