@font-face{ 
    font-family: 'theGridFont';
    src: url('../FONTS/Corbert-Regular-webfont.eot');
    src: url('../FONTS/Corbert-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../FONTS/Corbert-Regular-webfont.woff') format('woff'),
         url('../FONTS/Corbert-Regular-webfont.ttf') format('truetype'),
         url('WebFont.svg#webfont') format('svg');
  }
  
  
  body, html{ 
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'theGridFont';
  }
  
  .tile_component::-webkit-scrollbar{
    display: none;
  }
  
  .tile_component { 
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 80%;
    top:30px;
    margin:0;
    font-size: 13px;
    overflow-y: auto;
    z-index: 3;
    font-family: "Arvo", monospace;
    perspective: 1200px;
  }

  /* back button (matching pageAnimeTest.html) */
  .backTab {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: rgb(37, 37, 37);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

   .mainBackTab {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: rgb(37, 37, 37);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .backTab span {
    color: white;
    font-size: 20px;
    line-height: 1;
  }

  .titleContainer {
    text-align: center;
  }
  
  .material-symbols-outlined.menuBar {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
  }
  
  
  .hamburgerMenu {
    position:absolute;
    left:5px;
    top:5px;
    z-index: 15;
    cursor: pointer;
  }
  
  .closeMenu {
    position:absolute;
    left:5px;
    top:5px;
    z-index: 120;
    cursor: pointer;
  }
  
  .menuWall {
    position:absolute;
    width:30%;
    height:100%;
    background:black;
    top:0;
    left:0;
    z-index:110;
    opacity:.8;
    box-sizing: border-box;
    padding: 40px 30px;
    overflow: hidden;
  }

  @media screen and (max-width: 768px) {
    .menuWall {
      width: 100%;
      left: 0;
      right: 0;
      opacity: 0.95;
      padding: 30px 20px;
    }

    .menuWall .menuContent {
      justify-content: flex-start;
    }
  }

  .menuWall .menuContent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    color: #fff;
    justify-content: center;
  }

  .menuWall h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .menuWall h2 {
    font-family: 'theGridFont', Arial, sans-serif;
    font-weight: 400;
  }

  .menuWall .menuPlaceholders {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
  }

  .menuWall .menuPlaceholder {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding: 18px 18px;
    font-family: 'theGridFont', Arial, sans-serif;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all 0.25s ease;
    cursor: pointer;
  }

  .menuWall .menuPlaceholder:hover {
    background: #ffeb3b;
    border-bottom-color: #ffd54a;
    color: #000;
    opacity: 1;
  }

  .menuWall .menuPlaceholder:hover .menuLink {
    color: #000;
    text-decoration: none;
  }

  .menuWall .menuPlaceholder .menuLink {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-family: 'theGridFont', Arial, sans-serif;
    font-size: 0.9rem;
  }

  .menuWall .menuIcon {
    width: 28px;
    height: auto;
    display: inline-block;
    flex: 0 0 28px;
  }

  /* Force icons to white for visibility on dark menu background */
  .menuWall .menuIcon {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.95;
  }

  .menuWall .menuPlaceholder .menuLink:hover {
    text-decoration: none;
  }

  body, html {
    scroll-behavior: smooth;
  }

  .menuWall .menuFooter {
    margin-top: auto;
    opacity: 0.75;
    font-size: 0.9rem;
  }

  .message {
    border: 1px solid #d2d0d0;
    padding: 2em;
    font-size: 1.7vw;
    box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
  }
  @supports (display: grid) {
    .message {
      display: none;
    }
  }
  
  .section {
    display: none;
    padding: 2rem;
  }
  @media screen and (min-width: 768px) {
    .section {
      
    }
  }
  @supports (display: grid) {
    .section {
      display: block;
    }
  }
  
  h1 {
    font-size: 2rem;
    margin: 0 0 1.5em;
  }
  
  .grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: row dense;
  }

 .card-title {
   font-size: 3em;
   font-weight: bold;
   top: 15px;
   /* margin-bottom: 95px; */
   z-index: 90;
   position: relative;
   font-family: 'theGridFont';
   color: white;
   left: 15px;
 }

.card-description {
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 525;
  margin-bottom: 0;
  z-index: 100;
  position: relative;
  font-family: 'Arial';
  width: 275px;
  color: rgb(56, 55, 55);
  top: 10px;
  left: 15px;
}

.arrow_circle_right {
  position: relative;
  top: 7px;
  left: 10px;
}


.item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  box-sizing: border-box;
  background: #2A2A2A;
  color: #fff;
  grid-column-start: auto;
  grid-row-start: auto;
  color: #fff;
  background-position: center;
  box-shadow: -2px 2px 10px 0px rgba(68, 68, 68, 0.4);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  counter-increment: item-counter;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

  /* temporary debug outline removed */
  
  .box_1 {
    position: relative;
    overflow: hidden;
    background: #2A2A2A;
  }

  .box_1 .profile-pic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.12s linear;
  }

  .box_1 .profile-particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .box_1 .item__details {
    position: relative;
    z-index: 3;
  }

    .break-bg {
      position: relative;
      overflow: visible;
      min-height: 250px;
    }
  
    .bg-piece {
      position: absolute;
      display: block;
      will-change: transform;
    }
  
  .box_2 {
    background-image: url("../assets/bg_4.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
  }
  
  .box_3 {
    background-image: url("../assets/design_2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_4 {
    background-image: url("../assets/design_3.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_5 {
    background-image: url("../assets/scene_18.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_6 {
    background-image: url("../assets/design_4.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_7 {
    background-image: url("../assets/design_5.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_8 {
    background-image: url("../assets/scene_11.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .box_9 {
    background-image: url("../assets/scene_12.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_10 {
    background-image: url("../assets/scene_13.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .box_11 {
    background-image: url("../assets/scene_14.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .box_12 {
    background-image: url("../assets/scene_15.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .box_13 {
    background-image: url("../assets/scene_16.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .box_14 {
    background-image: url("../assets/scene_17.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

    .bgPaper {
      /* background-color: rgb(221, 218, 218); */
      background-color:black;
      height: 90px;
      width: 300px;
      z-index: 10;
      position: relative;
      top: -50px;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
      /* box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.25),
        1px 1px 1px rgba(255, 255, 255, 0.9); */
    }
  
  
  .item:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /*background-color: black;*/
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
  }
  .item:hover {
    transform: scale(1.05);
  }
  .item:hover:after {
    opacity: 0;
  }
  .item--medium {
    grid-row-end: span 2;
  }
  .item--large {
    grid-row-end: span 3;
  }
  .item--full {
    grid-column-end: auto;
  }
  @media screen and (min-width: 768px) {
    .item--full {
      grid-column: 1/-1;
      grid-row-end: span 2;
    }
  }
  .item__details {
    position: relative;
    z-index: 1;
    padding: 15px;
    color: white;
    background: black;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: white;
  }
  .item__details:before {
    content: counter(item-counter);
    font-weight: bold;
    font-size: 1.1rem;
    padding-right: 0.5em;
    color: white;
  }
  
  .profilePic {
    position: absolute;
    display: block;
    bottom:50px;
    z-index: 10;
  }
  
  @media screen and (max-width: 480px) {
    .profilePic{
        width:50px;
        height:50px;
    }
  }
  
  @media screen and (min-width: 481px) {
    .profilePic{
        width:50px;
        height:50px;
    }
  }
  
  canvas {
    background-color: #000000;
  background-image: linear-gradient(315deg, #000000 0%, #414141 74%); }
  
  ul.tileMenu {
    position: absolute;
    list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333333;
  color: white;
  }
  
  li.tileMenu {
    display: block;
    float:left;
  color: white;
  text-align: center;
  padding: 16px;

  /* Smooth, continuous pulsing for small UI text. CSS-only for best perf */
  .scroll-text {
    display: inline-block;
    transform-origin: center center;
    will-change: transform, opacity;
    animation: scrollTextPulse 1.6s ease-in-out infinite;
  }

  @keyframes scrollTextPulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.06);
      opacity: 0.85;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }
  text-decoration: none;
  }
  
  title {
    display: block;
    color: white;
    text-align: center;
    padding: 16px;
    text-decoration: none;
  }
  
    
  .horizontalLineSpace {
    position:absolute;
    bottom: 5px;
    left:70px;
    width:1px;
    height:30px;
    background:white;
    z-index: 30;
  }
  
  header {
    position: absolute;
    width:100%;
    height:35px;
    top:0;
    left:0;
    background:black;
    z-index: 10;
  }
  
  footer {
    position: absolute;
    width:100%;
    height:50px;
    bottom:0;
    left:0;
    z-index: 10;
    background:black;
  }
  
  .sideBar {
    position: absolute;
    width: 50px;
    height:270px;
    background: black;
    z-index:20;
    opacity: .5;
  }
  
  .container {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height: 100%;
    inset: -100px;
    background: radial-gradient(200px at left 400px top 150px,#ff53bb 100%,#0000), radial-gradient(200px at right 400px bottom 150px,#00f8d3 100%,#0000);
    filter: blur(250px); 
  }
  
  #enterBtn {
    position: absolute;
    width:200px;
    height:50px;
    background:black;
    bottom:150px;
    left:0;
    color:white;
    line-height: 3;
    font-family:'theGridFont'; 
    cursor: pointer;
    text-align: center;
  }
  
  #title{
  position:absolute; 
  left:0; 
  right:0;
  margin:0; 
  padding:0; 
  width:100%; 
  min-height:15%; 
  cursor:pointer; 
  z-index:600; 
  font-size:8vmin; 
  font-family:'theGridFont'; 
  top:35%;
  } 
  
  
  #title li{
  list-style-type:none; 
  padding:0; 
  z-index:300;  
  width:4%; 
  height:auto; 
  display:inline-block; 
  }
  
  .L{color:#ff4040;}
  .R{margin-left:10px;color:white;}
  .T{margin-left:10px;color:white;}
  .I{margin-left:10px;color:white;}
  .L1{margin-left:20px;color:white;}
  .L2{margin-left:20px;color:white;}
  .I1{margin-left:20px;color:white;}
  .S{margin-left:20px;color:white;}
  
  .titleName {
    position: absolute;
    font-family:'theGridFont'; 
    width:100%;
    left:10px;
    margin:auto;
    top:10px;
    text-align:center;
    font-size: 12px;
    color:white;
    z-index: 10;
    letter-spacing: 10px;
  }
  
  .informationConnect {
    position:absolute;
    width:100%;
    left:105px;
    bottom:5px;
    height:100px;
    line-height: 10px;
    color:white;
    font-family: 'theGridFont';
    font-weight: 700;
    font-size: 10px;
    z-index:15;
  }

  .icon-container {
    position: absolute;
    bottom: 15px;
    left: 20px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
  }

  .icon-container img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
    will-change: transform, opacity;
    cursor: pointer;
  }

    article {
      box-sizing: border-box;
      padding: 5vmin;
      width: 50vw;
      overflow: hidden;
      background: #111;
      color: #ddd;
      border-radius: 5px;
      border-block: 2px solid #eee;
      border-inline: 2px solid #aaa;
      box-shadow: 0 0 0 5px #000;
      font-family: 'Yomogi', cursive;
      place-self: center;
      margin-block: 10vh;
    }
  
    article:last-of-type {
      border-radius: 5px 5px 0 0;
      border-block-end-width: 0;
      margin-block: 80vh;
      margin-block-end: 0;
    }
  
    article h2 {
      font-weight: bold;
      margin: 1ch 0;
    }
  
    a {
      color: inherit;
    }

  .icon-container img:hover {
    transform: translateY(-6px) scale(1.08);
    filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.25));
  }

  .linkedin,
  .resume,
  .github {
    position: static;
    top: auto;
    left: auto;
  }

  span {
    color:red;
  }
  
  
  
/* Card collapse animation support */
.item {
  cursor: pointer;
  will-change: transform, opacity;
  transform-origin: center center;
}

.card-is-collapsing {
  pointer-events: none;
}


/* Three.js interactive profile particles */
.box_1.profile-three-active .profile-pic {
  opacity: 0;
}

.box_1 .profile-three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.box_1 .item__details {
  position: relative;
  z-index: 3;
}

.closeBtn {
  position: absolute;
  background:#2A2A2A;
  width:75px;
  height:40px;
  top: 10px;
  left: 10px;
  cursor: pointer;
}

/* Centered iframe at 95% viewport size */
.iframeContainer {
  position: absolute;
  top: 42%;
  left: 50%;
  /* fit within viewport: prefer 95% of viewport width but ensure it doesn't exceed 95% viewport height (16:9 aspect) */
  width: 70%;
  aspect-ratio: 16 / 9;
  height: 70%;
  transform: translate(-50%, -50%);
  border: none;
  z-index: 50;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-radius: 6px;
  overflow: hidden;
}

/* Make iframe responsive on very small screens */
@media screen and (max-width: 600px) {
  .iframeContainer {
    width: 98vw;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
  }
}

@media screen and (orientation: portrait) and (max-height: 700px) {
  .iframeContainer {
    /* when portrait and short, limit height to 85% */
    width: min(98vw, calc(85vh * (16 / 9)));
  }
}

/* Profile particle image fix */
.box_1 {
  position: relative;
  overflow: hidden;
}

.box_1 .profile-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
}

.box_1.profile-three-active .profile-pic {
  opacity: 0;
}

.box_1 .profile-three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.box_1 .item__details {
  position: relative;
  z-index: 3;
}

/* Final Three.js profile particle overrides */
.box_1 {
  position: relative;
  overflow: hidden;
  background: #2A2A2A;
}

.box_1 .profile-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.15s linear;
}

.box_1.profile-three-active .profile-pic {
  opacity: 0;
}

.box_1 .profile-three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.box_1 .item__details {
  position: relative;
  z-index: 3;
}

/* Final profile Three.js particle effect */
.box_1 {
  position: relative;
  overflow: hidden;
  background: #2A2A2A;
}

.box_1 .profile-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 0;
  opacity: 1;
}

.box_1.profile-three-active .profile-pic {
  opacity: 0;
}

.box_1 .profile-three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.box_1 .item__details {
  position: relative;
  z-index: 3;
}
