@import url('fonts.css');

/* Reset and general styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
	height: 100%;
	font-family: 'Poppins', sans-serif; /* Instagram-like font */
	background-color: #000;
	overflow: hidden; /* Prevent scrolling */
	justify-content: center;
	align-items: flex-start; /* Align from the top */
	
	font-family: 'Lab Grotesque', sans-serif;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.9);
	
	line-height: 1.3;
}
/* Backgrounds */
.background-container {
	position: relative;
	width: 100%;
	height: 100vh;
	visibility: hidden; /* Hide content until loader is done */
}
/* Rotating background (Image 3) */
.rotating-bg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 200%;
	height: 200%;
	background: url('../bg_img/StarClusterMile.jpg') no-repeat center center;
	background-size: contain;
	transform-origin: center center;
	animation: rotate-bg 120s linear infinite;
	z-index: 2;
}
/* Foreground (Image 2) */
.foreground-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../bg_img/Cheiz_LightControl.png') no-repeat center center/cover;
	z-index: 3;
	transition: transform 0.5s ease; /* Smooth transition for scaling */
}
/* Animation for rotating background */
@keyframes rotate-bg {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
/* Countdown timer container */
.countdown-container {
	display: flex;
	justify-content: center;
	align-items: center;
	/*background-color: #000;*/
	color: #fff;
	font-size: 1.8rem; /* Reduced size by 30% */
	text-align: center;
	padding: 10px 30px;
	border-radius: 2px;
	position: absolute;
	top: 10%; /* Vertical alignment 10% from the top */
	width: 100%;
	max-width: 100%; /* Ensure it doesn't overflow */
	overflow: hidden;
	white-space: nowrap; /* Prevent wrapping */
	z-index: 4; /* Ensure it's above the background */
}
.countdown-container .time-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 0 10px;
	padding: 15px;
	font-size: 2.8rem; /* Reduced number size by 30% */
	background-color: #1c1c1c;
	border-radius: 5px;
	min-width: 100px;
	min-height: 50px;
	text-align: center;
	transition: background-color 0.3s ease-in-out;
	position: relative;
	flex-shrink: 0; /* Prevent blocks from shrinking */
opacity: 0.7; /* 80% opacity */
}
.time-block .number {
	font-size: 1.5rem;
}
.time-block .unit {
	font-size: 0.7rem;
	text-transform: uppercase;
	color: #ccc;
}
.countdown-container .time-block:hover {
	background-color: #444;
}
/* Preloader styles */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
/* Spinner animation */
.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #fff;
	border-top: 5px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}
/* Loading text */
.loading-text {
	margin-top: 20px;
	color: #fff;
	font-size: 18px;
	font-family: Arial, sans-serif;
}
/* Responsive adjustments */
@media (max-width: 768px) {
	.countdown-container {
		font-size: 1.5rem;
		padding: 10px 20px;
	}
	.countdown-container .time-block {
		font-size: 2.5rem;
		padding: 10px;
	}
	.foreground-bg {
		bottom: 0;
		background-position: center bottom;
		background-size: 150%; /* Reduce the size of the background */
		z-index: 2;
	}
}
@media (max-width: 480px) {
	.countdown-container {
		font-size: 1.2rem;
		padding: 5px 10px;
	}
	.countdown-container .time-block {
		font-size: 2rem;
		padding: 5px;
		min-width: 60px; /* Prevent the blocks from getting too wide */
	}
}

.time-block {
  cursor: pointer;
}

.time-block:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Mount point positioning */
#content_loader {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%) translateY(var(--content-lift, 0px));
  width: 100%;
  padding: 0 16px;
  z-index: 5;
  pointer-events: none; /* important */
}

/* Outer panel */
.content-panel {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  backdrop-filter: blur(1px);
  pointer-events: auto; /* re-enable interaction */
}

/* Scrollable content */
.content-scroll {
  max-height: 45vh;
  overflow-y: auto;
  padding: 20px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  
}
.content-scroll_centar {
  max-height: 45vh;
  overflow-y: auto;
  padding: 20px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align:center;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .content-scroll {
    max-height: 55vh;
    font-size: 0.9rem;
    padding: 16px;
  }
}


/*MODAL*/
.portfolio_modal 
{
	border: 2px solid #000;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95vw;
	height: 95vh;
	background-color: rgba(0, 0, 0, 0.7); /* Must be semi-transparent */
	backdrop-filter: blur(6px);           /* <--- This is the magic */
	-webkit-backdrop-filter: blur(6px);   /* Safari support */
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.8s ease;
	
	flex-direction: column;
  min-height: 0;
}

.portfolio_modal.visible 
{
	display: flex;
	opacity: 1;
}

.portfolio_modal.fade-out 
{
	opacity: 0;
}

.ul_portfolio 
{
  /*list-style: square; */
  list-style: none;
  list-style-position: inside;
  margin: 0px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px; 
  margin-left: 15px;
}

.ul_portfolio li 
{
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.25) 0%,
		rgba(255, 255, 255, 0.1) 80%,
		rgba(255, 255, 255, 0.03) 100%
	  );
	padding: 12px 16px;
	border-radius: 0px;
	font-weight: 300;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 1);
	line-height: 1.6;
	border-left: 1px solid rgba(236, 155, 0, 0.5); 
	transition: background 0.3s ease;
}

.ul_portfolio li:hover 
{
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    rgba(255, 255, 255, 0) 50%
  );
}

.spn_close_modal 
{
	font-size: 2.1rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 12px 16px;
	color: #fdb527;
	cursor: pointer;
	opacity: 0.8;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10000;
	transition: opacity 0.2s ease;
}

.spn_close_modal:hover 
{
	opacity: 1;
}


.spn_nav_left, 
.spn_nav_right 
{
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2.2rem;
	color: #fdb527;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	z-index: 10000;
}

.spn_nav_left:hover, 
.spn_nav_right:hover 
{
	opacity: 1;
}

.spn_nav_left 
{
	left: 16px; /* matches padding-left of close icon */
}

.spn_nav_right 
{
	right: 16px; /* matches padding-right of close icon */
}


#portfolioImageLoader {
	
	flex: 1 1 auto;
  min-height: 0;

  width: 93%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#portfolioImageLoader img {
	height: 100%;
  width: auto;
  max-height: 100%;
  max-width: 100%;

  object-fit: contain;

  opacity: 0.3;
  filter: grayscale(100%) blur(3px);
  transition: opacity 1.8s ease, filter 1.2s ease;
}

#portfolioImageLoader img.loaded {
	opacity: 0.9;
	filter: grayscale(0%) blur(0px);
}


.portfolio_image_wrapper {
	height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio_image_caption {
	position: absolute;
	bottom: 8px;
	right: 8px;
	padding: 6px 12px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #f1f1f1;
	font-size: 0.85rem;
	font-family: 'Courier New', monospace;
	border-radius: 6px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
	opacity: 0.9;
	white-space: nowrap;
	pointer-events: none;
}

.text_note_smaller
{
	
	font-size:0.9rem;
	font-style:italic;
}

.text_note_smaller_ni
{
	
	font-size:0.8rem;
}
/*MODAL END*/

a 
{
	color: #fdb527;
	text-decoration: none;
	font-weight: 500;
	position: relative;
	transition: color 0.3s ease;
	word-break: break-word;
	background-image: linear-gradient(to right, rgba(106, 183, 255, 0.25), rgba(106, 183, 255, 0.15));
	background-repeat: no-repeat;
	background-size: 0% 100%;
	background-position: 0 0;
	transition: color 0.3s ease, background-size 0.3s ease;
}

a::after 
{
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 1px;
	background-color: #6ab7ff;
	opacity: 0.3;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease, opacity 0.2s ease 0.1s;
}

a:hover 
{
	color: #ffd56a;
	background-size: 100% 100%;
}

a:hover::after 
{
	transform: scaleX(1);
	opacity: 0.6;
}

a:focus 
{
	outline: none;
	box-shadow: 0 0 0 2px rgba(106, 183, 255, 0.05);
	border-radius: 0px;
}