/* Background color */
body {
	background: linear-gradient(60deg, #0b0d1a, #050354, #252e4e, #000000);
	background-size: 300% 300%;
}
html {
	scroll-behavior: smooth;
	scroll-timeline: auto;
}
/* Center Section 1 */
#section1 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	min-height: 30vh; 
	margin-bottom: 0;
	margin-top: 40px;
}
#section1 h2 {
	margin-bottom: 20px;
}
#section1 .nav-button {
	margin-top: 20px;
}
/* Section 2 */
#section2 {
	display: flex; 
	justify-content: space-between; 
	margin-top: 0;
	width: 100%;
}
.image-container {
	position: relative;
	width: 60%; 
	height: 800px;
	display: flex;
	justify-content: center;
}
#vr-back {
	width: 40%; 
	max-width: 400px;
	height: auto;
	top: 250px;
}
.curved {
	width: 90%; 
	max-width: 1000px;
	height: auto;
	top: 0; 
}
#curved-img{
	transition: opacity 1s ease-out;
	opacity: 1;
}
#curved-img{
	transition: opacity 1s ease-in;
	opacity: 1;
}
#curved-img.hidden {
	opacity: 0; 
}
.image-container img {
	position: absolute;
}
#section2text {
	width: 35%; 
	padding: 140px 40px 0 0;
	margin-left: -40px;
}
#section2 h2 {
	margin-bottom: 10px;
}
/* Sections Info  */
#contacts {
	display: flex; 
	justify-content: space-around; 
	width: 100%;
	padding: 20px;
	margin-bottom: 40px;
	margin-top: 80px;
}
#feedback-b, .email-link, .fa-linkedin{
	margin-top: 1rem;
}






/* Popup overlay */
#popup-login {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
	z-index: 1000;
  }

/* Popup box */
.popup-content {
	background-color: #252e4e;
	padding: 30px;
	border-radius: 20px;
	width: 80%;
	height: 60%;
	max-width: 1000px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	position: relative;
	display: flex; /* Apply flex here to center the inner content */
	justify-content: center;
	align-items: center;
  }
  
  /* Close button */
  .close-btn {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: white;
  }
  
/* Flex layout for picture and forms */
.popup-content-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%; /* Ensure it stretches across */
  	height: 100%;
  }
  
  /* Logo styling */
  .popup-picture {
	display: flex;
	width: 40%;
	flex-direction: column; /* stack children vertically */
	align-items: center;
	justify-content: center;
	gap: 35px; /* optional spacing between stacked items */
  }
  
  
#vr-front {
	max-width: 250px;
	width: 100%; /* optional: scale to container */
	height: auto;
  }
  
  .popup-log {
	display: flex; /* <- this is missing */
	flex-direction: column; /* ensure form stacks vertically */
	align-items: center;
	justify-content: center;
	gap: 10px;
	width:60%; 
  }
  
  .auth-section {
	display:  flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
  }
  
  .popup-content input {
	width: 200px;
	width: 80%;
	padding: 10px;
	font-size: 16px;
	box-sizing: border-box;
	border: none;
	border-radius: 5px;
  }
  
  .popup-content  button {
	background-color: #9333EA;
	color: white;
	cursor: pointer;
	margin-top: 10px;
	width: 80%;
	padding: 10px;
	font-size: 16px;
	box-sizing: border-box;
	border: none;
	border-radius: 5px;
  }
  


  .popup-content h2 {
	text-align: center;
	color: white;
  }
  
  .popup-content a {
	color: #82caff;
	text-decoration: none;
  }
  
  .popup-content a:hover {
	text-decoration: underline;
  }
  
  .hidden-popup {
	display: none !important;
  }
  

#register-password {
	margin-top: 0.8rem;
}

#show-register, #show-login{
	margin-top: -12px;
	margin: auto;
}




@media (max-width: 385px) {

	#log{
		font-size: 1.35rem; 
	}
	#section1 {
		padding: 20px;
		min-height: 30vh; 
		margin-bottom: 0;
		margin-top: 0px;
	}
	#section1 h2 {
		margin-bottom: 10px;
		font-size: 3rem;
	}
	#section2, #contacts {
		flex-direction: column;
		align-items: center;
	}
	#section2 .image-container, #section2text, #contacts > div {
		width: 100%;
		max-width: none;
		padding: 10px;
	}
	#image-container {
		margin-bottom: 0px;
		margin-top: 0px;
	}
	#section2text {
		margin: 0;
		margin-bottom: 20px;
		margin-top: -400px;
	}
	/* Resize images for smaller screens */
	#section2 .image-container img {
		width: 100%;  /* Reduce image width */
		height: auto;
	}
	#vr-back {
		width: 40%;  /* Increase width for better visibility */
		max-width: 250px; /* Adjust max size */
		top: 80px;  /* Move it higher */
	}
	.curved {
		width: 40%;  /* Reduce width to fit smaller screens */
		max-width: 1000px; /* Reduce max width */
		height: auto;
		top: 0;
	}
	#contacts {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	#contacts div {
		margin-bottom: 20px; 
	}
	.popup-content{
		width: 80%;
		height: 96%;
	  }

	  .popup-content-inner {
		flex-direction: column;
		gap: 30px;
	  }


	#show-register, #show-login{
		margin-top: -8px; 
	}

	.popup-content input {
		width: 140%;
	}

	.popup-content button {
		width: 140%;
	}

	#vr-front {
		max-width: 450px;
		width: 100%; /* optional: scale to container */
		height: auto;
	  }

  }


@media (min-width: 386px) and (max-width: 764px) {
	/* Transform section2 and contacts to column layout */
	#log{
		font-size: 1.35rem; 
	}
	#section1 {
		padding: 20px;
		min-height: 30vh; 
		margin-bottom: 0;
		margin-top: 0px;
	}
	#section1 h2 {
		margin-bottom: 10px;
		font-size: 3rem;
	}
	#section2, #contacts {
		flex-direction: column;
		align-items: center;
	}
	#section2 .image-container, #section2text, #contacts > div {
		width: 100%;
		max-width: none;
		padding: 10px;
	}
	#image-container {
		margin-bottom: 0px;
		margin-top: 0px;
	}
	#section2text {
		margin: 0;
		margin-bottom: 20px;
		margin-top: -400px;
	}
	/* Resize images for smaller screens */
	#section2 .image-container img {
		width: 100%;  /* Reduce image width */
		height: auto;
	}
	#vr-back {
		width: 40%;  /* Increase width for better visibility */
		max-width: 250px; /* Adjust max size */
		top: 80px;  /* Move it higher */
	}
	.curved {
		width: 40%;  /* Reduce width to fit smaller screens */
		max-width: 1000px; /* Reduce max width */
		height: auto;
		top: 0;
	}
	#contacts {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	#contacts div {
		margin-bottom: 20px; 
	}


	.popup-content-inner {
		flex-direction: column;
		gap: 30px;
	  }

	.popup-content{
		width: 85%;
		height: 95%;
	  }

	#show-register, #show-login{
		margin-top: -8px; 
	}

	.popup-content input {
		width: 140%;
	}

	.popup-content button {
		width: 140%;
	}

	#vr-front {
		max-width: 450px;
		width: 100%; /* optional: scale to container */
		height: auto;
	  }
}

@media (min-width: 765px) and (max-width: 770px) {
	
	#section1 {
		padding: 20px;
		min-height: 30vh; 
		margin-bottom: 0;
		margin-top: 0px;
	}
	#section1 h2 {
		margin-bottom: 10px;
		font-size: 4rem;
	}
	#section2, #contacts {
		flex-direction: column;
		align-items: center;
	}
	#section2 .image-container, #contacts > div {
		width: 100%;
		max-width: none;
		padding: 10px;
	}
	#image-container {
		margin-bottom: 0px;
		margin-top: 0px;
	}
	#section2text {
		margin: 0;
		margin-bottom: 60px;
		margin-top: -100px;
		width: 100%;
		max-width: none;
		padding-left: 20px;
		padding-right: 20px;
	}
	#section2{
		margin-top: -120px;
	}
	#section2 h2 {
		font-size: 3rem;
	}
	/* Resize images for smaller screens */
	#section2 .image-container img {
		width: 100%;  /* Reduce image width */
		height: auto;
	}
	#vr-back {
		width: 40%;  /* Increase width for better visibility */
		max-width: 400px; /* Adjust max size */
		top: 300px;  /* Move it higher */
	}
	.curved {
		width: 80%;  /* Reduce width to fit smaller screens */
		max-width: 1200px; /* Reduce max width */
		height: auto;
		top: 0;
	}
	#contacts {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	#contacts div {
		margin-bottom: 20px; 
	}

	.popup-content-inner {
		flex-direction: column;
		gap: 30px;
	  }

	.popup-content{
		width: 80%;
		height: 75%;
	  }

	#show-register, #show-login{
		margin-top: -8px; 
	}

	.popup-content input {
		width: 100%;
	}

	.popup-content button {
		width: 100%;
	}

	#vr-front {
		max-width: 450px;
		width: 100%; /* optional: scale to container */
		height: auto;
	  }


}


@media (min-width: 771px) and (max-width: 1024px) {  /* Targets iPads and tablets */
	#section1 {
		padding: 20px;
		min-height: 30vh; 
		margin-bottom: 0;
		margin-top: 0px;
	}
	#section1 h2 {
		margin-bottom: 10px;
		font-size: 4rem;
	}
	#section2, #contacts {
		flex-direction: column;
		align-items: center;
	}
	#section2 .image-container, #contacts > div {
		width: 100%;
		max-width: none;
		padding: 10px;
	}
	#image-container {
		margin-bottom: 0px;
		margin-top: 0px;
	}
	#section2text {
		margin: 0;
		margin-bottom: 60px;
		margin-top: -100px;
		width: 100%;
		max-width: none;
		padding-left: 20px;
		padding-right: 20px;
	}
	#section2{
		margin-top: -120px;
	}
	#section2 h2 {
		font-size: 3rem;
	}
	/* Resize images for smaller screens */
	#section2 .image-container img {
		width: 100%;  /* Reduce image width */
		height: auto;
	}
	#vr-back {
		width: 40%;  /* Increase width for better visibility */
		max-width: 400px; /* Adjust max size */
		top: 350px;  /* Move it higher */
	}
	.curved {
		width: 80%;  /* Reduce width to fit smaller screens */
		max-width: 1200px; /* Reduce max width */
		height: auto;
		top: 0;
	}
	#contacts {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	#contacts div {
		margin-bottom: 20px; 
	}


	.popup-content-inner {
		flex-direction: column;
		gap: 30px;
	  }

	.popup-content{
		width: 75%;
		height: 75%;
	  }

	#show-register, #show-login{
		margin-top: -8px; 
	}

	.popup-content input {
		width: 100%;
	}

	.popup-content button {
		width: 100%;
	}

	#vr-front {
		max-width: 450px;
		width: 100%; /* optional: scale to container */
		height: auto;
	  }

}

@media (min-width: 2100px) {
    /* Make all text bigger */
    body {
        font-size: 2rem; /* Increase body text size */
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 4rem; /* Increase heading sizes */
    }

    p {
        font-size: 1.5rem; /* Increase paragraph text size */
    }

    /* Improve section spacing */
    #section1 {
        min-height: 40vh;
        padding: 40px;
        margin-top: 60px;
    }

    #section2 {
        margin-top: 40px;
        padding: 0 60px;
    }

    #section2text {
        padding: 180px 60px 0 0;
        width: 40%;
    }

    .image-container {
        width: 55%;
        height: 1000px;
    }

    #vr-back {
        width: 45%;
        max-width: 500px;
        top: 350px;
    }

    .curved {
        width: 85%;
        max-width: 1400px;
    }

    #contacts {
        margin-top: 40px;
        padding: 40px 60px;
        gap: 40px;
    }

    #contacts div {
        margin-bottom: 30px;
        margin-top: 0;
    }

    /* Example of adjusting text in other elements */
    #section1 h2 {
        font-size: 5rem;
        margin-bottom: 30px;
    }

    #section2 h2 {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    #contacts h2 {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    button {
        font-size: 3.5rem;
        padding: 15px 30px;
    }

    /* Improve popup spacing */
    .popup-content {
        padding: 50px;
        width: 70%;
        max-width: 1400px;
    }

    .popup-content input {
        padding: 15px;
        font-size: 1.8rem;
    }

    .popup-content button {
        padding: 15px 30px;
        font-size: 1.8rem;
    }
}

/* Section 3 - Trailer */
#section3 {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    padding: 0 20px;
    margin-top: -70px;
}

.trailer-container {
    width: 80%;
    height: 100%;
    position: relative;
    border-radius: 32px !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    -webkit-border-radius: 32px !important;
    -moz-border-radius: 32px !important;
}

#trailer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 32px !important;
    -webkit-border-radius: 32px !important;
    -moz-border-radius: 32px !important;
}

.trailer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 40px;
    background: linear-gradient(
        to bottom,
        rgba(11, 13, 26, 0.3),
        rgba(5, 3, 84, 0.7)
    );
}

.trailer-overlay h2 {
    font-size: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Section 3 */
@media (max-width: 768px) {
    #section3 {
        height: 40vh;
        margin: 20px 0;
        padding: 0 10px;
    }

    .trailer-container {
        width: 95%;
        height: 100%;
        border-radius: 20px !important;
        -webkit-border-radius: 20px !important;
        -moz-border-radius: 20px !important;
    }

    #trailer-video {
        border-radius: 20px !important;
        -webkit-border-radius: 20px !important;
        -moz-border-radius: 20px !important;
    }

    .trailer-overlay {
        border-radius: 20px !important;
        -webkit-border-radius: 20px !important;
        -moz-border-radius: 20px !important;
    }

    .trailer-overlay h2 {
        font-size: 1.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #section3 {
        height: 50vh;
        margin: 30px 0;
    }

    .trailer-container {
        width: 90%;
        border-radius: 24px !important;
    }

    .trailer-overlay {
        padding-bottom: 30px;
    }

    .trailer-overlay h2 {
        font-size: 2.2rem;
    }
}

@media (min-width: 2100px) {
    #section3 {
        height: 90vh;
        margin: 60px 0;
        padding: 0 40px;
		margin-top: 60px;
		margin-bottom: 40px;
    }

    .trailer-container {
        width: 75%;
        border-radius: 40px;
    }

    .trailer-overlay {
        padding-bottom: 60px;
    }

    .trailer-overlay h2 {
        font-size: 4rem;
    }
}


