/* Master styles */
html, body {
	height: 100%;
	margin: 0px;
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden; /* Hide scrollbar */
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/*preloader*/
.preload * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} 

:root {
  --preloader: 10%;
}

@import url("http://fonts.cdnfonts.com/css/monument-extended");

.preload {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background: #ffffff;
}

.preload h1 {
  font-family: "Monument Extended", sans-serif;
  font-size: 100px;
  position: relative;
  -webkit-text-stroke: 1px #147cd1;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transform: translateY(100%);
  letter-spacing: 1px;
  font-weight: 900;
  text-transform: uppercase;
}

.preload h1::before {
  content: attr(data-title);
  position: absolute;
  background: #147cd1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: var(--preloader);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: all ease 0.1s;
}

.hide-text {
  display: inline-flex;
  overflow: hidden;
}

.count {
  font-family: "Monument Extended", sans-serif;
  font-size: 300px;
  color: transparent;
  position: absolute;
  -webkit-text-stroke: 1.5px rgb(224, 220, 220);
  transition: all ease 1s;
  font-weight: 900;
  text-transform: uppercase;
}

body.preload-active {
  overflow: hidden !important; /* Prevent scrolling */
}

.smooth-scroll.preload-active {
  overflow: hidden !important; /* Prevent scrolling */
}

/*fonts*/
@font-face {
  font-family: 'productsans';
  src: url(fonts/Product\ Sans\ Regular.ttf);
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: 'productsans';
  src: url(fonts/Product\ Sans\ Bold.ttf);
  font-style: bold;
  font-weight: 200;
}

/*scrollbar*/

::-webkit-scrollbar {
width: .5em;

}

::-webkit-scrollbar-track {
  position: absolute;
  z-index: 99;
  background: white;
  border-radius: 100vw;
  margin-block: .5em;
  }

::-webkit-scrollbar-thumb {
background: gray;
border-radius: 100vw;
border: .1em solid white;

}


/* Nav styles */
.nav_bar {
    height: 90px;
    background-color: rgba(39, 40, 43, 0);
    font-family: productsans;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    position: sticky;
    top: 0;
  }
  
  .left_section {
    width: 200px;
    margin-left: 40px;
    display: flex;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: white;
    position: relative; /* Add position relative for the hover effect */
  }
  
  .logo {
    height: 60px;
    border-radius: 60px;
    margin-right: 15px;
    transition: transform 0.1s ease; /* Smooth transition while moving */
  }
  
  .logo:hover {
    transform: none; /* Remove transform effect */
  }
  
  .logo-text {
    position: absolute;
    left: 80px; /* Adjust the distance from the logo */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition for text */
    font-family: productsans;
    font-weight: bold;
    font-size: 1.5rem; /* Adjust the font size */
    color: white;
    pointer-events: none; /* Prevent the text from being hovered */
  }
  
  .left_section:hover .logo-text {
    opacity: 1;
    transform: none; /* Remove transform effect */
  }
  
  .right_section {
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-left: 70px;
    margin-right: 70px;
    max-width: 400px; /* Adjusted max-width */
  }
  
  .right_section a {
  color: white; 
  text-decoration:none;
  transition: color 0.5s;
  transition: 0.15s;
  }

  .nav_bar .right_section a {
    position: relative;
    color: white;
    text-decoration: none;
    transition: color 0.5s;
    display: inline-block; /* Ensure the underline is only as long as the word */
  }
  
  .nav_bar .right_section a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    transition: width 0.4s ease;
    -webkit-transition: width 0.4s ease;
  }
  
  .nav_bar .right_section a:hover::after {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
  }
  
  .link_nav {
    display: block;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(34, 49, 78, 0);
    transition: 0.15s;
    height: 80px;
    width: 110px;
  }
  
  .link_text {
    display: block;
    text-align: center;
    margin-top: 30px;
    transition: 0.15s;
  }
  
  .About, .Works, .Experiences {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(34, 49, 78, 0);
    width: 200px; /* Adjusted width */
    transition: 0.15s;
    position: relative;
  }
  
  .About a:hover {
    transition: 0.15s;
  }
  
  .Works a:hover {
    transition: 0.15s;
  }
  .Experiences a:hover {
    transition: 0.15s;
  }
  
  .right_section {
    width: 120px;
    margin-right: 50px;
    display: flex;
    justify-content: space-between;
  }
  
  #Home {
    scroll-margin-block-start: 50vh;
    scroll-margin-block-end: 150vh;
    
  }

  #About {
    scroll-margin-block-start: 30vh;
    scroll-margin-block-end: 150vh;
    
  }

  #Works {
    scroll-margin-block-start: 20vh;
    scroll-margin-block-end: 150vh;
    
  }
  
  #Experiences {
    scroll-margin-block-start: 25vh;
    scroll-margin-block-end: 175vh;
  
  }

 /*backgrounds*/
 .gridbg {
	background-image: url(images/grid.png);
	background-repeat: repeat;
  background-size: 50%; /* Make the grid image smaller */
  position: relative;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Add subtle drop shadow */
  
}

/*.profilepic {
  background-image: url(images/Profile.png);
  background-position: 50% 0;
  z-index: 1;

}*/

.parallax {
  position: relative;
  height: 20vh; /* Default height for desktop */
  z-index: -1;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.parallax .bg {
  position: fixed; /* Change to fixed to stay behind content */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100vh; /* Make it full viewport height */
  min-width: 100vw; /* Ensure it covers full width */
  pointer-events: none;
  object-fit: cover; /* Ensure proper scaling */
  transition: transform 0.1s linear; /* Smooth transition */
}

.parallax img {
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.maintext {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  margin-bottom: 0; /* Reduced space under the maintext */
}

.maintext p {
  display: inline-block;
  color: white;
  font-size: 18.5em; /* Increased font size */
  font-family: productsans;
  animation: scrollText 140s linear infinite; /* Slowed down the speed further */
}

.maintext p::before,
.maintext p::after {
  content: " Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. — Dennis Layson Jr. —";
}

@keyframes scrollText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.content1 {
 background-color: #147cd1;
 background-repeat: repeat;
 display: flex;
 width: 100%; 
 margin: auto;
}

.content2 {
  display: flex;
  position: relative;
  padding-bottom: 200px;
  border-bottom: 1px solid #a7a6a6; /* Add a line between content2 and content3 */
  margin-left: 60px; /* Add space at the sides of the line */
  margin-right: 60px; /* Add space at the sides of the line */
}

.content3 {
  display: flex;
  padding-top: 20px; /* Add some space above content3 */
  align-items: flex-start;
}

/*text/buttons*/

.textbox {
  font-size: 1.33vw;
  color: white;
  padding-right: 20px;
}
.textbox h1 {
  font-family: productsans;
  font-style: bold;
  padding-top: 8px;
 }

 .textbox p {
  font-family: productsans;
  font-weight: normal;
 }

 .textboxdark {
  font-size: 1.33vw;
  color: black;
  font-family: productsans;
  font-weight: bold;
  text-align: center;
  padding: 60px;
  padding-top: 120px;
 
 }

 .textboxdark h1 {
  font-family: productsans;
  font-weight: bold;
 }

 .textboxdark p {
  font-family: productsans;
  font-weight: normal;
 }

 .textboxdark2 {
  font-size: 1.33vw;
  color: black;
  padding: 60px;
  flex: 1;
 }

 .textboxdark2 h1 {
  font-family: productsans;
  font-weight: bold;
 }

 .textboxdark2 p {
  font-family: productsans;
  font-weight: normal;
 }

 .spherepadding {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
 }



.btn {
color: #fff;
border: 1px solid #fff;
background: none;
padding: 10px 20px;
font-size: 20px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
cursor: pointer;
margin: 10px;
transition: ease-out 0.3s;
box-shadow: inset 0 0 0 0 #1B2741;
}

.btn:hover{
  box-shadow: inset 200px 0 0 0 #fff;
  color: #147cd1;
}

.btndark {
  color: #147cd1;
  border: 1px solid #147cd1;
  background: none;
  padding: 10px 20px;
  font-size: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  cursor: pointer;
  margin: 10px;
  transition: ease-out 0.3s;
  box-shadow: inset 0 0 0 0 #fff;
  display: inline-block; /* Ensure the button is inline-block */
}

.btndark:hover {
  box-shadow: inset 250px 0 0 0 #147cd1;
  color: #fff;
}

.textboxdark a {
  margin-right: 10px; /* Add space between the buttons */
}

.textboxdark a:last-child {
  margin-right: 0; /* Remove margin from the last button */
}

.containerres {
  width: 80%; 
  margin: auto;
}

.responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/*footer*/
.footer
{
  width: 100%;
  background-color: #ffffff;
  font-family: productsans;
  height: auto;
  position: relative;
  padding: 20px 70px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05); /* Make drop shadow more subtle */
}

.container
{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
}

.aboutus 
{
  margin-right: 30px;
  width: 40%;
  padding-right: 90px;
}

.aboutus h2
{
  color: rgb(0, 0, 0);
  position: relative;
  font-weight: 500;
  margin-bottom: 15px;
}

.aboutus h2:before
{
  content: '';
  position: absolute;
  bottom: -5px;
  Left: 0;
  width: 50px;
  height: 2px;
  background: #147cd1;
}

.aboutus p
{
  color:#949494;
  font-size: 0.9em;
}

.social
{
  margin-top: 20px;
  display: flex;
  padding-left: 0;
}

.social li
{
  list-style: none;
  list-style-position: inside;
}

.social li a
{
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: rgb(255, 255, 255);
  background: #949494;
  justify-content: center;
  align-items:center;
  margin-right: 10px;
  text-decoration: none;
  border-radius: 4px;
  transition: 1.5s ease;
  position: relative;
}

.social li a:hover
{
  background: #147cd1;
}

.quicklinks
{
  position: relative;
  width: 15%;
  color: rgb(0, 0, 0);
}

.quick
{
  padding-left: 0;
  font-size: 0.9em;
}

.quick li
{
  list-style-position: inside;
  list-style: none;
}

.quick li a
{
  text-decoration: none;
  color: grey;
  margin-bottom: 10px;
  display: inline-block;
  transition: 1.5s ease;
  font-size: 1em;
}

.quick li a:hover
{
  color: #147cd1;

}

.quicklinks h2
{
  color: rgb(0, 0, 0);
  position: relative;
  font-weight: 500;
  margin-bottom: 15px;
}

.quicklinks h2:before
{
  content: '';
  position: absolute;
  bottom: -5px;
  Left: 0;
  width: 50px;
  height: 2px;
  background: #147cd1;
}

.contact
{
  width: calc(35% - 60px);
  margin-right: 0 !important;
}

.contact h2
{
  color: rgb(0, 0, 0);
  position: relative;
  font-weight: 500;
  margin-bottom: 15px;
}

.contact h2:before
{
  content: '';
  position: absolute;
  bottom: -5px;
  Left: 0;
  width: 50px;
  height: 2px;
  background: #147cd1;
}

.info
{
  position: relative;
  padding-left: 0;
  font-size: 0.9em;
}

.info li
{
  display: flex;
  list-style-position: inside;
  margin-bottom: 16px;
}

.info li span:nth-child(1)
{
  color:#000000;
  font-size: 20px;
  margin-right: 10px;
}

.info li span
{
  color: grey;
}

.info li span a
{
  color: grey;
  text-decoration: none;
  transition: 1.5s ease;
}

.info li a:hover
{
  color: #147cd1;
}

.botfooter
{
  background: #147cd1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.botfooter p
{
  color: #ffffff;
  font-size: 0.9em;
  font-family: productsans;
}

/*slider*/

.slider {
  height: 250px;
  margin: auto;
  position: relative;
  width: 90%;
  display: grid;
  place-items: center;
}

.slide-track {
  display:flex;
  width: calc(250px * 34);
  animation: scroll 40s linear infinite;
}

.slide-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 17));
  }
}

.slide {
  height: 200px;
  width: 250px;
  display: flex;
  align-items: center;
  padding: 15px;
  perspective: 100px;
}

.slide img{
  width: 100%;
  transition: transform 1s;
}

.slide img:hover{
  transform: translateZ(20px);
}

.slider::before,
.slider::after {
  background: linear-gradient(to right, rgba(255,255,255,1) 0%,
  ;rgba(255,255,255,0) 100%);
  content: '';
  height: 100%;
  position:absolute;
  width: 15%;
  z-index: 2;
}

.slider::before {
  left: 0;
  top: 0;
}

.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}



/*animation*/

/*.animatedshape {
    display: flex;
    justify-content: space-between;
    animation: imgload 3s 1;
    animation-fill-mode: forwards;
    transform: translateY(-20px);
    opacity: 0;
    top: 0;
    left: 0;
    max-width: 100%;
    height: auto;
    width: 100%;
   
}*/

@keyframes imgload {
    0%{
        transform: translateY(-20px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
    
}

.typing {
    top: 0;
    left: 0;
    width: 100%;
    font-family: productsans;
}

.typing h1 {
    font-size: 2.65vw;
    color:white;
}

.Sphere span{
  background: -webkit-linear-gradient( #75d1fc, #5b7ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hidden {
opacity: 0;
transition: all 2s;
filter: blur(5px);
transform: translateX(-100%);
}

.show {
opacity: 1;
filter: blur(0);
transform: translateX(0);
}

 /* Applying CSS to sphere */
 .tagcloud {
  display: inline-block;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: productsans;
  font-size: 30px;
}

/* Change color of each text in sphere on hover   */
.tagcloud--item:hover {
  color: #000000 ;
}

.smooth-scroll {
  overflow: hidden; /* Ensure smooth scroll container does not show scrollbar */
}

/* ...existing code... */

.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px; /* Increase the size for better visibility */
  height: 50px; /* Increase the size for better visibility */
  display: flex; /* Initially hidden */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 200; /* Ensure it is above other elements */
  background-color: rgba(0, 0, 0, 0.5); /* Add a background color for better visibility */
  border-radius: 50%; /* Make it circular */
  padding: 10px; /* Add padding for better spacing */
  transform: scale(0); /* Start with a small circle */
  opacity: 0; /* Start with invisible */
  pointer-events: none; /* Prevent clicking when invisible */
  transition: transform 0.1s ease, opacity 0.1s ease; /* Smooth transition for the pop-up effect */
}

.hamburger-menu.show {
  transform: scale(1); /* Scale up to the full size */
  opacity: 1; /* Make it visible */
  pointer-events: auto; /* Allow clicking when visible */
}

.hamburger-menu div {
  width: 60%; /* Make the symbol smaller */
  height: 3px; /* Make the symbol smaller */
  background-color: white;
  margin: 3px 0; /* Add spacing between the lines */
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease; /* Smooth transition for the 'X' effect */
}

.hamburger-menu.active div:nth-child(1) {
  transform: rotate(45deg) translate(7px, 5px);
  width: 60%; /* Extend by 2 pixels on the right side */
}

.hamburger-menu.active div:nth-child(2) {
  opacity: 0; /* Hide the middle line */
}

.hamburger-menu.active div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -5px); /* Adjust upward to center the 'X' */
  width: 60%; /* Extend by 2 pixels on the right side */
}


@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@600&display=swap');

.sidebar {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 0.25rem; /* Adjust padding for better spacing */
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.1); /* Add drop shadow */
  display: none; /* Hidden by default on desktop */
  flex-direction: column;
  align-items: center;
  z-index: 200; /* Ensure it is above other elements */
  transform: scale(0); /* Start with a small circle */
  opacity: 0; /* Start with invisible */
  pointer-events: none; /* Prevent clicking when invisible */
  transition: transform 0.1s ease, opacity 0.1s ease; /* Smooth transition for the pop-up effect */
  width: 3rem; /* Make the sidebar thinner */
}

.sidebar.show {
  transform: scale(1); /* Scale up to the full size */
  opacity: 1; /* Make it visible */
  pointer-events: auto; /* Allow clicking when visible */
}

/* Hide sidebar during preloader */
body.preload-active .sidebar {
  display: none !important;
  opacity: 0 !important;
  transform: scale(0) !important;
  pointer-events: none !important;
}

.sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem; /* Adjust height */
  width: 3rem; /* Adjust width */
  color: #6a778e;
  transition: 250ms ease all;
  font-family: 'productsans', sans-serif; /* Use productsans font */
}

.sidebar__link span {
  position: absolute;
  right: 100%; /* Change to right */
  transform: translate(2.5rem); /* Adjust translate value */
  margin-right: 0.5rem; /* Adjust margin */
  opacity: 0;
  pointer-events: none;
  color: #147cd1;
  background: #fff;
  padding: 0.5rem; /* Reduce padding */
  transition: opacity 250ms ease, transform 250ms ease; /* Ensure smooth transition */
  border-radius: 8px; /* Reduce corner radius */
  font-family: 'productsans', sans-serif; /* Use productsans font */
  font-size: 0.875rem; /* Make the text a little bit smaller */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add drop shadow */
}

.sidebar__link:hover span {
  opacity: 1;
  transform: translate(0);
}

.sidebar__link:hover {
  color: #147cd1;
  transform: scale(1.2); /* Make the icon larger on hover */
}

.sidebar__menu {
  position: relative;
  list-style: none; /* Remove bullets */
  padding: 0; /* Remove default padding */
  margin: 0; /* Remove default margin */
}

/* Remove the blue gooey background effect on hover */
.sidebar__item:last-child:before {
  content: '';
  position: absolute;
  opacity: 0;
  z-index: -1;
  top: 0;
  left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  background: none; /* Remove background */
  border-radius: 17.5px;
  transition: none; /* Remove transition */
}

.sidebar__item:hover:last-child:before {
  opacity: 0; /* Ensure it stays hidden */
  animation: none; /* Remove animation */
}

.sidebar__link.clicked {
  color: #147cd1; /* Make the icon stay blue when clicked */
}

.sidebar__link.clicked ion-icon {
  color: #147cd1; /* Ensure the icon stays blue when clicked */
}

/* ...existing code... */

#screen-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: 'productsans', sans-serif;
  text-align: center;
}

#screen-warning h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#screen-warning p {
  font-size: 1.25rem;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn, .btndark {
    padding: 12px 24px;
    font-size: 18px;
  }
  
  .sidebar__link {
    height: 3.5rem;
    width: 3.5rem;
  }
  
  .logo:hover,
  .nav_bar .right_section a:hover {
    transform: none;
  }
}

/* Ensure proper box-sizing for all elements */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Improve text readability on mobile */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}