
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');

@media screen and (max-width: 750px) {
  #link {
    display: none;

  }
}


@media screen and (min-width: 751px) {

  body {

    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    font-weight: 300;
    min-height: 100vh;
    text-decoration: none;
    background-size: 100vw, auto;
    background-repeat: no-repeat;
    background-position: bottom;
  }
}




a.glow:hover,
a.glow:focus {
  color: rgb(255, 255, 255);
  text-shadow: 0px 0px 2px  rgb(223, 0, 85);
}

.textshadow a.backlit:hover,
.textshadow a.backlit:focus {
  color: rgb(255, 255, 255);
}




span.glow,
span.glow:hover,
span.glow:focus {
  text-decoration: none;
  text-shadow: none;
  -webkit-transition: 1s ease-out;
  -moz-transition: 1s ease-out;
  -o-transition: 1s ease-out;
  transition: 1s ease-out;
  outline: 0 none;
}

span.glow:hover,
span.glow:focus {

  -webkit-text-stroke-width: 1px;
}

.textshadow span.backlit:hover,
.textshadow span.backlit:focus {
  color: rgba(255, 255, 255, 0);
}

@media screen and (min-width: 751px) {

.sub-menu li {
  list-style: none;
  display: block;
  position: relative;
  font-size: 25px;
  text-decoration: none;
  transform: scale(0);
  -webkit-transform: scale(0);
  transition: all 300ms ease-in-out;
  margin-top: 0px;
}


.sub-menu {
  margin-top: -100px;
  margin-left: 6vw;
  transform: scale(0);
  -webkit-transition: all 300ms ease-out;
  -moz-transition: all 300ms ease-out;
  -o-transition: all 300ms ease-out;
  -ms-transition: all 300ms ease-out;
  transition: all 300ms ease-out;

}

/* Only open the sub-menu when hovering the ball icon itself
   (not the whole <li>, which was much bigger than the visible
   icon because the sub-menu keeps its layout footprint even
   while scaled to 0). Also keep it open while hovering the
   sub-menu itself, so the mouse can travel from the icon down
   into the menu without it closing. */
.menuimg:hover + .sub-menu,
.sub-menu:hover {
  transform: scale(1);
}

.menuimg:hover + .sub-menu li,
.sub-menu:hover li {
  transform: scale(1);
}

  .menu {
align-items: left;
display:inline-block ;
position: relative;
margin-left: 10vw;
margin-top: 75px;
    
  }

  .menuimg {
    height: 100px;
  
  }



}

  
 /* =========================================================
   RESET / BASE
   ========================================================= */
* {
  box-sizing: border-box;
}


/* =========================================================
   GRID CONTAINER
   - 10vw margin on left and right
   - 6 columns, adaptive width, fixed 25px gap
   - fluid down to a min-width viewport of 751px
   ========================================================= */
.grid-container {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 25px;
  margin-left: 10vw; 
  margin-right: 10vw;
  margin-top: 75px;

}

/* Each grid cell: reserves the normal grid space and stays put.
   overflow: visible lets the square inside grow past it on hover
   without affecting the grid track sizes or shifting other cells. */
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

/* =========================================================
   GRID ITEM (each square)
   - Fills its cell exactly at rest (inset: 0).
   - background-size is in vw (viewport units), NOT %.
     That means the image's size is fixed relative to the
     viewport only -- completely independent of this box's
     own size. So the image never rescales or shifts.
   - overflow: hidden clips that fixed-size image to the
     box's current bounds, acting as a "window" onto it.
   ========================================================= */
.grid-item {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22vw;   /* fixed to viewport -> image itself never moves/scales */


  z-index: 1;

  transition: inset 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s ease,
              border-color 0.55s ease;
}

/* =========================================================
   HOVER STATE
   - "inset" shrinks toward negative values, which grows the
     box equally on all sides (still centered on the same
     spot). This changes the box's SIZE only -- no transform,
     no scaling -- so the image itself stays perfectly still.
   - As the window (box) gets bigger, more of the fixed-size
     background image is revealed underneath it.
   ========================================================= */
.grid-item:hover,
.grid-item:focus-visible {
  inset: -70%;
  z-index: 10;
  border-color: rgb(0, 0, 0);
  box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.3);
}

/* Keyboard accessibility */
.grid-item:focus-visible {
  outline: none;
}

/* =========================================================
   PROJECT IMAGES
   - Moved out of inline style="" attributes into real CSS
     classes. This avoids repeating the same url() 12 times
     in the HTML (where a stray character is easy to introduce
     via copy/paste) and sidesteps any Content-Security-Policy
     that might block inline styles but allow stylesheet rules.
   ========================================================= */
.icon-01 { background-image: url('assets/SPIKES.jpg'); }
.icon-02 { background-image: url('assets/FACETS.jpg'); }
.icon-03 { background-image: url('assets/DIMPLES.jpg'); }
/* =========================================================
.icon-04 { background-image: url('iconsindex/LELAB.jpg'); }
.icon-05 { background-image: url('iconsindex/ELASTIC.png'); }
.icon-06 { background-image: url('iconsindex/IONOX.jpg'); }
.icon-07 { background-image: url('iconsindex/ICEBERG.jpg'); }
.icon-08 { background-image: url('iconsindex/EXO.jpg'); }
.icon-09 { background-image: url('iconsindex/RECIF.jpg'); }
.icon-10 { background-image: url('iconsindex/CINTA.jpg'); }
.icon-11 {background-image: url('iconsindex/RIOM2.jpg');}
.icon-12 { background-image: url('iconsindex/NEURO.png'); }
.icon-13 { background-image: url('iconsindex/MUG.jpg'); }
.icon-14 { background-image: url('iconsindex/CALCE.png'); }


   RESPONSIVE
   - Grid stays fluid all the way down to 751px.
   - At 750px and below we switch to a placeholder "phone"
     layout. Replace/expand this block when you design the
     dedicated mobile version.
   ========================================================= */
@media (max-width: 750px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    margin-left: 6vw;
    margin-right: 6vw;
    margin-top: 25px;
    gap: 5px;
    padding: 5px 0;
  }

  /* Disable the grow-on-hover effect on touch/small screens
     since there's no real "hover" and it can overflow the
     viewport awkwardly. */
  .grid-item:hover,
  .grid-item:focus-visible {
    inset: 0;
    box-shadow: none;
  }

 
.sub-menu li {
  list-style: none;
  display: block;
  position: relative;
  font-size: 16px;
  text-decoration: none;
  transform: scale(0);
  -webkit-transform: scale(0);
  transition: all 300ms ease-in-out;

}


.sub-menu {
  margin-top: -70px;
  margin-left: 8.5vw;
  transform: scale(0);
  -webkit-transition: all 300ms ease-out;
  -moz-transition: all 300ms ease-out;
  -o-transition: all 300ms ease-out;
  -ms-transition: all 300ms ease-out;
  transition: all 300ms ease-out;

}

/* Only open the sub-menu when hovering the ball icon itself
   (not the whole <li>, which was much bigger than the visible
   icon because the sub-menu keeps its layout footprint even
   while scaled to 0). Also keep it open while hovering the
   sub-menu itself, so the mouse can travel from the icon down
   into the menu without it closing. */
.menuimg:hover + .sub-menu,
.sub-menu:hover {
  transform: scale(1);
}

.menuimg:hover + .sub-menu li,
.sub-menu:hover li {
  transform: scale(1);
}

  .menu {
align-items: left;
display:inline-block ;
position: relative;
margin-left: 8vw;
margin-top: 40px;
    
  }

  .menuimg {
    height: 70px;
  
  }


  
  }




  .home1 {
    display: block;
    position: absolute;
    text-decoration: none;
    margin-top: -38px;
    margin-bottom: 30px;
    z-index: 5;
    margin-left: 8vw;
    color: rgb(240, 0, 130);
    font-size: 20px;


  }

  .pagetitle {

    margin-top: 70px;
    margin-left: 8vw;
    font-size: 20px;
    color: rgb(242, 16, 159);

  }

  .title {

    margin-top: 70px;
    margin-left: 8vw;
    font-size: 20px;
    color: rgb(242, 16, 159);

  }



  li {
   
    font-family: "HelveticaNeue";
    list-style-type: none;
  

  }

  span {
    display: block;
    text-align: left;
    font-family: "Helvetica Neue";


  }

  p {
    text-align: center;
    font-family: "Helvetica Neue";
    font-size: 10px;
    margin-bottom: 0;
    margin-top: 550px;
    /* padding-top: 490px; */
    padding-right: 0px;
    padding-bottom: 20px;
    color: rgb(142, 142, 142);

  }


  footer {
    display: block;
    position: relative;
    text-align: bottom;
  }

