

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html, body {
    font-family: "AUTHENTIC";
    position: relative;
    background-color: #1e1e1e; /* dark gray background */
    color: white;
  }
  
  @font-face {
    font-family: "AUTHENTIC";
    src: url("Assets/authentic-sans-90.otf");
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
  
  h1 {
    font-size: 55px;
    color: white;
  }
  
  .small-text {
    font-size: 0.23em;
    margin-left: 10px;
    color: white;
  }
  
  h2.right-title {
    font-size: 25px;
    padding-left: 10px;
    color: white;
  }
  
  /* Nav */
  nav {
    padding: 10px 0;
    margin-left: 20px;
  }
  
  .nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
  }


  
  .nav-item {
    position: relative;
    margin: 0 20px;
  }
  
  .nav-link {
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: #c0a4f4;
  }
  
  .tooltip a {
    color: #c0a4f4; /* soft purple, change as desired */
    text-decoration: underline;
    transition: color 0.3s ease;
  }

  .tooltip.visible {
    display: block;
  }
  
  .tooltip .tooltip-close {
    position: absolute;
    top: 7px;
    right: 7px;
    background: none;
    border: none;
    color: #c0a4f4;
    font-size: 18px;     /* Smaller size */
    font-weight: 100;     /* Thinner weight */
    line-height: 1;
    cursor: pointer;
    font-family: "AUTHENTIC";  /* Optional: use a clean font */
  }

  .tooltip strong {
    color: #cfa9ff;
    font-weight: bold;
  }



  .tooltip a {
    color: white;
    text-decoration: underline; /* optional */
  }
  
  .tooltip a:hover {
    color: #cfa9ff; /* or whatever hover color you like */
  }

  .roots-tooltip {
    width: 600px;
    max-width: 600px;
  }
  



  @media (max-width: 600px) {
    .tooltip {
      width: 60vw !important ;
      max-width: 60vw !important;
      left: 5vw !important;
      right: auto !important;
      transform: none !important;
      top: 45px;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
  }


  /* Tooltip */
  .tooltip {
        display: none;
        pointer-events: auto; /* allow interaction */
        position: absolute;
        top: 30px;
        left: 0;
        background: #000000;
        color: white;
        padding: 16px;
        border-radius: 8px;
        font-size: 14px;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
        max-height: 500px;
        overflow-y: auto;
        z-index: 10;
        width: 600px;
        max-width: 600px;
          opacity: 0;
          transform: translateY(-10px);
          transition: opacity 0.5s ease, transform 0.5s ease;
          display: block;
          visibility: hidden;
          width: 600px;
          max-width: 600px;
          box-shadow: 0 0 0px rgba(255, 255, 255, 0.2);
        }
        
        
        .tooltip.visible {
          opacity: 1;
          transform: translateY(0);
          visibility: visible;
          
        }








        /* Desktop default */
       
  


      /* ✅ MOBILE OVERRIDE */
     

  .contact-tooltip {
    width: 210px; 
  }

  @media (max-width: 600px) {
    .contact-tooltip {
      width: 40vw !important;
      max-width: 40vw!important;
      left: 5vw !important;
      right: auto;
      transform: none;
      top: 45px;
    }
  }


  
  @media (max-width: 600px) {
    .nav-item {
      margin: 10px;
    }
  }


  
  /* Grid */
  .portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  /* Flex rows for 2-item sections */
  .portfolio-row-center {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  /* Make flex items same width as grid items */
  .portfolio-row-center .portfolio-item {
    flex: 0 1 calc(33.333% - 20px);
  }
  
  /* Portfolio item */
  .portfolio-item {
    background: black; /* now black instead of gray */
    border-radius: 15px;
    padding: 15px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    max-width: 100%;
    position: relative;
  }
  
  .portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Hover Glow + Zoom Effect */
  .portfolio-item:hover {
    transform: translateY(-5px) scale(1.01);
    background: linear-gradient(145deg, #111111, #222222); /* subtle black gradient */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
  }
  
  /* Video */
  .youtube-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 1s ease;
  }
  
  .portfolio-item:hover .youtube-player {
    transform: scale(1.03);
  }
  
  .youtube-player iframe {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .youtube-player iframe.loaded {
    opacity: 1;
    transform: scale(1);
  }
  
  /* Text inside portfolio */
  .portfolio-item h3 {
    font-size: 24px;
    margin-bottom: 0;
    color: white;
  }
  
  .portfolio-item p {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 0;
    color: white;
  }
  
  /* Responsive */
  @media (max-width: 1000px) {
    .portfolio {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .portfolio-row-center {
      grid-column: 1 / -1;
    }
  
    .portfolio-row-center .portfolio-item {
      flex: 0 1 calc(50% - 20px);
    }
  }
  
  @media (max-width: 600px) {
    .portfolio {
      grid-template-columns: 1fr;
    }
  
    .portfolio-row-center {
      flex-direction: column;
      align-items: center;
    }
  
    .portfolio-row-center .portfolio-item {
      flex: 0 1 100%;
    }
  }
  


  .video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    transition: transform 0.4s ease;
    min-height: 200px; /* ✅ prevents collapse */
  }
  
  .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  
  .video-thumbnail iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
    aspect-ratio: 16 / 9;
    opacity: 1 !important; /* ✅ ensures visibility */
    visibility: visible;
    }

  
/* 1. Responsive header layout for mobile */
@media (max-width: 600px) {
    .header-container {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }
  
    .small-text {
      display: block;
      margin-left: 0;
      margin-top: 4px;
    }
  }
  
  /* 2. Better grid layout on mobile: force single-column */
  @media (max-width: 1000px) {
    .portfolio {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    .portfolio-row-center {
      flex-direction: row;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }
  
    .portfolio-row-center .portfolio-item {
      flex: 0 1 calc(50% - 20px);
    }
  }
  
  @media (max-width: 600px) {
    .portfolio-row-center {
      flex-direction: column;
      align-items: center;
    }
  
    .portfolio-row-center .portfolio-item {
      flex: 0 1 100%;
    }
  
    .portfolio-item {
      padding: 12px;
    }
  }
  
