#hero_headline{
	font-size: 90px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
	margin-top: 140px !important;
}

/* Engraved Text */
.ep-text-engraved {
    color: #b9b9b9;
    text-shadow: 0px 1px 0px rgba(255,255,255,.3), 0px -1px 0px rgba(0,0,0,.7);
    font-size: 32px;
    font-family: mont-bold;
}

.text-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 40px; /* Single sentence height */
    overflow: hidden;
}

.sentence-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideUp 10s infinite linear; 
}

.sentence {
    position: relative;
    height: 40px;
    line-height: 40px;
}

/* Initially hide text content */
.text-content {
    display: block;
    position: relative;
    z-index: 0;
    opacity: 0; /* Start invisible, revealed by animation */
}

.reveal-block {
    position: absolute;
    width: 100%;
    background-color: #f5f5f5;
    z-index: 1;
}

.reveal-top {
    top: 0;
    height: 40%;
    transform-origin: right;
    animation: engraveTop 2.5s infinite;
}

.reveal-middle {
    top: 40%;
    height: 20%;
    transform-origin: left;
    animation: engraveMiddle 2.5s infinite;
}

.reveal-bottom {
    bottom: 0;
    height: 40%;
    transform-origin: right;
    animation: engraveBottom 2.5s infinite;
}

/* Adjusted slideUp animation */
@keyframes slideUp {
    /* Sentence 1: Starts visible */
    0% { transform: translateY(0); }
    15% { transform: translateY(0); }      
    25% { transform: translateY(-40px); }   
    
    /* Sentence 2: Moves into view */
    25% { transform: translateY(-40px); }
    40% { transform: translateY(-40px); }   
    50% { transform: translateY(-80px); }   
    
    /* Sentence 3: Moves into view */
    50% { transform: translateY(-80px); }
    65% { transform: translateY(-80px); }   
    75% { transform: translateY(-120px); }  
    
    /* Sentence 4: Moves into view */
    75% { transform: translateY(-120px); }
    90% { transform: translateY(-120px); }  
    100% { transform: translateY(-160px); } 
}

/* Opacity control for text content */
.sentence:nth-child(1) .text-content { animation: fadeText 10s infinite; }
.sentence:nth-child(2) .text-content { animation: fadeText 10s infinite 2.5s; }
.sentence:nth-child(3) .text-content { animation: fadeText 10s infinite 5s; }
.sentence:nth-child(4) .text-content { animation: fadeText 10s infinite 7.5s; }

@keyframes fadeText {
    0% { opacity: 0; }
    5% { opacity: 1; }   /* Fade in over 1s (1/20s) */
    15% { opacity: 1; }  /* Hold visible (2s) */
    25% { opacity: 0; }  /* Fade out (2s) */
    100% { opacity: 0; }
}

/* Engraving animations (sped up) */
@keyframes engraveTop {
    0% { transform: scaleX(1); }
    20% { transform: scaleX(0); } /* 1s reveal (down from 1.5s) */
    100% { transform: scaleX(0); }
}

@keyframes engraveMiddle {
    0%, 20% { transform: scaleX(1); }
    40% { transform: scaleX(0); } /* 1s reveal after top */
    100% { transform: scaleX(0); }
}

@keyframes engraveBottom {
    0%, 40% { transform: scaleX(1); }
    60% { transform: scaleX(0); } /* 1s reveal after middle */
    100% { transform: scaleX(0); }
}

/* Delay each sentence's reveal blocks */
.sentence:nth-child(1) .reveal-top,
.sentence:nth-child(1) .reveal-middle,
.sentence:nth-child(1) .reveal-bottom { animation-delay: 0s; }
.sentence:nth-child(2) .reveal-top,
.sentence:nth-child(2) .reveal-middle,
.sentence:nth-child(2) .reveal-bottom { animation-delay: 2.5s; }
.sentence:nth-child(3) .reveal-top,
.sentence:nth-child(3) .reveal-middle,
.sentence:nth-child(3) .reveal-bottom { animation-delay: 5s; }
.sentence:nth-child(4) .reveal-top,
.sentence:nth-child(4) .reveal-middle,
.sentence:nth-child(4) .reveal-bottom { animation-delay: 7.5s; }

/* Center icons */
.ep-center-icons img {
  height: 60px;
  display: block;
  margin: 0 auto;
}
.ep-emo-icon {
  height: 21px;
}

/* Slider and other styles */
.uk-grid-xsmall > *:not(.uk-first-column) {
  padding-left: 5px;
}
.uk-grid-xsmall > .uk-first-column {
  padding-left: 0;
}

.slider-container {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  height: 600px;
  position: relative;
}

.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 500ms ease;
}

.background-image.active {
  opacity: 1;
}

.slider-items {
  display: flex;
  justify-content: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.slider-card {
  min-width: 200px;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  transition: min-width 800ms ease, flex 800ms ease, max-height 800ms ease-in-out;
  overflow: visible;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  will-change: max-height;
  position: relative;
}

.slider-card:last-child {
  border-right: 2px solid rgba(255, 255, 255, 0.25);
}

.slider-card.initial-state {
  min-width: 200px;
  max-width: 300px;
  flex: 1;
  cursor: pointer;
  background: rgba(0, 186, 219, 0);
  transition: background .3s ease, max-height 800ms ease-in-out;
}

.slider-card.ep-active {
  min-width: 420px;
  flex: 4;
}

.slider-card.ep-shrunk {
  min-width: 60px;
  flex: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  cursor: pointer;
  background: rgba(0, 186, 219, 0);
  transition: background .3s ease, max-height 800ms ease-in-out;
}

.slider-card.initial-state:hover, .slider-card.ep-shrunk:hover {
  background: rgba(0, 186, 219, 0.25);
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
}

.card-content {
  height: 100%;
  box-sizing: border-box;
}

.open-view {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: opacity 300ms ease, max-height 800ms ease-in-out;
}

.open-view img, .initial-state img {
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
}

.closed-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  transition: opacity 300ms ease, max-height 800ms ease-in-out;
}

.closed-view img {
  width: 100px;
  height: 30px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin: 35px 0 10px;
  transform: rotate(90deg);
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
}

.closed-view i, .initial-view i{
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.closed-view i:hover, .initial-view i:hover {
  color: #00BADB;
  transform: scale(1.2);
}
.closed-view .open-button{
	position: absolute;
	bottom: 40px;
}	

.initial-view, .open-view, .closed-view {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease, max-height 800ms ease-in-out;
}

.slider-card.initial-state .initial-view {
  display: inline-block;
  opacity: 1;
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;	
}

.slider-card.ep-active .open-view {
  display: flex;
  opacity: 1;
}

.slider-card.ep-shrunk .closed-view {
  display: flex;
  opacity: 1;
}

.slider-card.ep-shrunk .initial-view {
  display: none;  
}

.open-button{cursor: pointer;}
.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

.close-btn:hover {
  color: #00BADB;
  transform: scale(1.2);
}

.preview-btn {
  margin-top: 10px;
}

.slider-card i {
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.laser-tube-type{margin-bottom: 30px !important;}	


/* Logo scroller */
.logo-scroller {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 120px;
}

.logo-scroller-inner {
  display: flex;
  flex-wrap: nowrap;
  animation: scroll 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.logo {
  height: 60px;
  width: auto;
  margin: 0 30px;
}

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

/* Optional pause on hover */
.logo-scroller:hover .logo-scroller-inner {
  animation-play-state: paused;
}

/* Medium styles */
@media (max-width: 1100px) {
   
	
  #emo_fusion-pro, #emo_fusion-edge, #emo_fusion-maker {
    background-position: right;
  }

  #emo_fusion-galvo {
    background-position: 33%;
  }
	.laser-tube-type{margin-bottom: 0 !important;}	
	
.slider-card.initial-state, .slider-card.ep-shrunk {  
  cursor: default;  
}

.uk-position-medium {
  margin: 0 30px !important;
 }
	
  .close-btn{top: 25px; right: 25px;}
	
  .slider-card.initial-state .initial-view {
    height: 150px;
    margin: 0;
	position: relative;
	bottom: auto;
	padding-top: 20px;  
  }	

  .closed-view .uk-position-bottom-center {
    right: 17px;
    bottom: 25px !important;
    left: auto !important;
    margin: 0 !important;  
  }

  .slider-container {
    height: auto;
    min-height: 600px;
    overflow: hidden;
  }

  .slider-items {
    display: flex;
    flex-direction: column !important;
  }

  .slider-card {
    width: 100% !important;
    min-width: unset;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
    transition: height 800ms ease-in-out, opacity 300ms ease, background 0.3s ease;
    box-sizing: border-box;
  }

  .slider-card:last-child {
    border-bottom: none;
  }

  .slider-card.initial-state {
    height: 150px;
    max-width: 1100px;
    background: rgba(0, 0, 0, 0.7);
  }

  .slider-card.ep-active {
    min-width: unset;
    flex: none;
    padding: 0;
    height: auto;
  }

  .ep-active .card, .ep-shrunk {
    background: rgba(0,0,0,0.7) !important;
  }

  .slider-card.ep-shrunk {    
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-bottom: 0;
  }
	.ep-active .initial-view{display: none;}
  .open-view {
    height: auto;
    padding: 0;
    transition: opacity 300ms ease;
  }

  .open-view > .uk-width-xlarge {
    padding: 10px;
    margin: 0;
    box-sizing: border-box;
  }

  .open-view > .uk-width-xlarge * {
    margin: 0;
  }

  .closed-view {
    flex-direction: row;
    transition: opacity 300ms ease;
	position: static; 
	top: 0;
	left: 0;  
	width: 100%;	 
  }
	
	.closed-view .open-button{
		position: absolute;
		right: 25px;
		bottom: auto;
	}	
	
  .closed-view img {
    width: auto !important;
    height: 24px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
    transform: none;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 1));
  }

  .closed-view i {
    margin-top: 5px;
  }

  .card {
    height: 100%;
	min-height: 210px;  
  }

  .card-content {
    height: 100%;
    box-sizing: border-box;
  }

  .initial-view {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 150px;
    padding: 10px;
    box-sizing: border-box;
    transition: opacity 300ms ease;
  }

  .initial-view > img {
    width: auto;
    height: 24px;
    margin-right: 10px;
  }

  .initial-view .uk-text-italic {
    font-size: 14px;
    margin: 0 10px 0 0;
  }

  .initial-view .uk-margin-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    gap: 5px;
  }

  .initial-view .uk-grid-xsmall {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0;
    gap: 5px;
  }

  .initial-view .uk-grid-xsmall > div {
    margin: 0;
  }
  
}

/* Mobile styles */
@media (max-width: 640px) {
  #hero_headline {
    font-size: 60px;
	margin-top: 100px !important;  
  }
	#home_hero{padding-bottom: 120px;} 	
	
 #home_application-switcher .uk-active .uk-child-width-expand .uk-first-column:first-child {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
	padding-left: 0;
	margin-bottom: 20px; 
  }

  #home_application-switcher img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
	
  #home_application-switcher .uk-switcher > .el-item {
    min-height: 0 !important; /* Remove inline min-height */
    height: auto !important; /* Use content height */
  }

  /* Override switcher container height */
  #home_application-switcher .uk-switcher {
    height: auto !important; /* Remove any fixed height */
    min-height: 0;
  }

  /* Remove margins/padding from content */
  #home_application-switcher .uk-switcher > .el-item > .uk-child-width-expand {
    margin: 0;
    padding: 0;
  }

  #home_application-switcher .uk-switcher > .el-item .uk-margin-remove-first-child {
    margin: 0;
    padding: 0;
  }

  /* Ensure content elements have no extra spacing */
  #home_application-switcher .uk-switcher > .el-item .el-title,
  #home_application-switcher .uk-switcher > .el-item .el-meta,
  #home_application-switcher .uk-switcher > .el-item .el-content,
  #home_application-switcher .uk-switcher > .el-item .uk-margin-medium-top {
    margin: 0;
    padding: 0;
  }
	
  .ep-text-engraved{font-size: 24px;}	
}
