@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root{
	--main-background: #000000;
	--main-fonts-color: #ffffff;
	--main-decor-color: #00ff00;
    --main-header-background: #0b0b0b;
	--main-font-family: 'Share Tech Mono', monospace;
    --blue-pill-color: #0078ff;
    --red-pill-color: #ff0033;
    --neo-pill-color: #7a00ff;
}

*{
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font-family);
    background: var(--main-background);
    color: var(--main-fonts-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none; /* Allow clicks to pass through */
    will-change: transform; /* Performance optimization */
    visibility: visible !important; /* Ensure it stays visible */
}

.loader-content {
    text-align: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.loader-text {
    color: var(--main-decor-color);
    font-size: 24px;
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    text-align: center;
    letter-spacing: 3px;
    animation: blink 1s infinite;
    z-index: 1;
    text-shadow: 0 0 10px var(--main-decor-color), 0 0 20px var(--main-decor-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

#loader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

main{
	padding: 0;
	width: 100%;
	height: 100%;
	background: var(--main-background);
}

.container {
    position: relative;
    z-index: 1;
}

/* Matrix text animation */
.matrix-text {
    animation: matrix-text 5s infinite;
    text-shadow: 0 0 8px var(--main-decor-color);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--main-decor-color);
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes matrix-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Matrix logo */
.matrix-logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--main-decor-color);
    position: relative;
    animation: logo-pulse 2s infinite alternate;
}

.highlight {
    color: var(--main-decor-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--main-decor-color);
    animation: flicker 3s infinite;
}

@keyframes logo-pulse {
    0% { text-shadow: 0 0 5px var(--main-decor-color); }
    100% { text-shadow: 0 0 15px var(--main-decor-color), 0 0 30px var(--main-decor-color); }
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 1; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.5; }
}

/*────────────────── 
       header
──────────────────*/

header{
	margin: 0 auto;
	width: 100%;
	height: 70px;
	display: flex;
    align-items: center; 
	justify-content: space-around; 
    background: rgba(0, 0, 0, 0.9);
	position: fixed;
	top: 0;
	transition: 0.3s;
	z-index: 5;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.nav-show{
	opacity: 0;
}

header:hover{
	opacity: 1;
	background: var(--main-header-background);
}

.logo {
	padding-top: 5px;
	height: 50px;
	cursor: pointer;
    text-decoration: none;
    color: var(--main-fonts-color);
}

.nav-bar{
	list-style: none;
	position: relative;
	display: inline-flex;
}

a.nav-link{
	margin: 2px;
	padding: 5px 10px;
	text-decoration: none;
	color: var(--main-fonts-color);
	font-family: var(--main-font-family);
	cursor: pointer;
	text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

a.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--main-decor-color);
    transition: width 0.3s ease;
}

a.nav-link:hover:after {
    width: 100%;
}

.active{
	background: var(--main-decor-color);
    color: #000;
}

.nav-link:hover {
	color: var(--main-decor-color);
}

/*──────────────────
       home
──────────────────*/

#home{ 	
	margin: auto;
	height: 100vh;
	color: var(--main-fonts-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}

#home .filter{
	background: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat;
	background-size: cover;
	background-position: center;
    position: absolute;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
	opacity: 0.15;
}  

.intro {
	text-align: center;
    color: var(--main-fonts-color);
	z-index: 1;
	margin: auto;
	padding: 20px;
}

.intro p{
    margin: 15px;
	font-size: 1.3rem;
	font-family: var(--main-font-family);
	text-align: center;
}

h3{
	padding-bottom: 15px;
    letter-spacing: normal;
    font-family: var(--main-font-family);
	font-style: normal;
	font-size: 60px;
	color: var(--main-fonts-color);
	text-shadow: 0px 0px 40px var(--main-decor-color);
}

/*──────────────────
    social media
──────────────────*/

.social-media{
	padding: 10px;
	display: flex;
	position: center;
    align-items: space-around;
	justify-content: center;
}

.social-media a {
    margin: 10px;
    font-size: 2rem;
    text-align: center;
    display: inline-block;
	color: var(--main-fonts-color);
    transition: all 0.3s ease;
}

.social-media a i{
	cursor: pointer;
}

.social-media a:hover {
	color: var(--main-decor-color);
	text-shadow: 0 0 50px var(--main-decor-color);
    transform: translateY(-5px);
}

/*──────────────────
      services
──────────────────*/

#services{
	margin-top: 0;
    padding: 30px 0 50px;
    min-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
    justify-content: center;
	text-align: center;
	color: var(--main-fonts-color);
}

#services h3{
    padding-top: 70px;
}

#services p{
	font-family: var(--main-font-family);
	font-size: 1.2rem;
	padding: 10px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    width: 300px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.service-header {
    padding: 20px;
    color: #fff;
}

.blue-pill {
    background: var(--blue-pill-color);
}

.red-pill {
    background: var(--red-pill-color);
}

.neo-pill {
    background: var(--neo-pill-color);
}

.service-header h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
}

.service-content {
    padding: 20px;
}

.service-content ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.service-content ul li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    position: relative;
}

.service-content ul li:before {
    content: '>';
    color: var(--main-decor-color);
    margin-right: 10px;
    font-weight: bold;
}

.service-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: var(--main-font-family);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    width: 100%;
}

.blue-btn {
    background: var(--blue-pill-color);
}

.red-btn {
    background: var(--red-pill-color);
}

.neo-btn {
    background: var(--neo-pill-color);
}

.service-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.featured {
    transform: scale(1.05);
    border: 2px solid var(--main-decor-color);
}

.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

/*──────────────────
      showcase
──────────────────*/

#showcase{
	margin-top: 50px;
    padding: 50px 0;
    min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
    justify-content: center;
	text-align: center;
	color: var(--main-fonts-color);
}

#showcase h3{
    padding-top: 70px;
}

#showcase p{
	font-family: var(--main-font-family);
	font-size: 1.2rem;
	padding: 10px;
}

.work-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.jam-video-link {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
}

.jam-video-link a {
    display: inline-block;
    margin-bottom: 15px;
    padding: 12px 24px;
    min-width: 250px;
    transition: all 0.3s ease;
}

.jam-video-link a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 151, 251, 0.5);
}

.jam-video-link p {
    color: var(--main-fonts-color);
    opacity: 0.9;
}

.work{
	display: flex; 
	flex: 1;
    flex-wrap: wrap;
    justify-content: center;
	align-items: center;
	padding: 20px;
}

.card{
	display: flex;
	flex-direction: column;
	margin: 20px;
	width: 330px;
	height: 250px;
	border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card .work-content{
	text-align: center;
	padding: 10px 5px;
	font-size: 1rem;
	color: var(--main-fonts-color);
	font-family: var(--main-font-family);
	cursor: pointer;
}

.card:hover{
	transform: translateY(-10px);
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/*──────────────────
    Testimonials
──────────────────*/

#testimonials {
    margin-top: 50px;
    padding: 50px 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--main-fonts-color);
    background: rgba(0, 0, 0, 0.7);
    position: relative;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center;
    opacity: 0.07;
    z-index: -1;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.testimonial {
    width: 350px;
    padding: 30px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--main-decor-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 15px;
    border: 2px solid var(--main-decor-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    font-size: 1rem;
    color: var(--main-decor-color);
}

.author-company {
    font-size: 0.9rem;
    opacity: 0.7;
}

/*──────────────────
      Contact
──────────────────*/

#contact{
	margin: auto;
	padding: 50px 0;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--main-fonts-color);
}

#contact p{
	padding: 10px;
	text-align: center;
	font-size: 1.2rem;
	font-family: var(--main-font-family);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: var(--main-fonts-color);
    font-family: var(--main-font-family);
    transition: all 0.3s ease;
    position: relative;
    z-index: 15;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px; /* Prevents iOS zoom on focus */
    width: 100%;
    max-width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--main-decor-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.contact-form .input-error {
    border-color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.contact-form .input-error::placeholder {
    color: rgba(255, 51, 51, 0.7);
}

.contact-form .submit-btn {
    padding: 12px;
    background: var(--main-decor-color);
    color: #000;
    border: none;
    border-radius: 4px;
    font-family: var(--main-font-family);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .submit-btn:hover {
    background: #00cc00;
    transform: scale(1.05);
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.faq-section h4 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--main-fonts-color);
    text-align: center;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--main-decor-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.6;
    opacity: 0;
    visibility: hidden;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    display: block !important;
}

/*────────────────── 
       footer
──────────────────*/

footer {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background-color: var(--main-header-background);
    overflow: hidden;
}

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

.footer-content {
    position: relative;
    z-index: 1;
}

.copyright {
    color: #fff;
    font-size: 1.2rem;
    line-height: 40px;
    text-align: center;
}

.copyright a{
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    margin: 0 10px;
}

.copyright a:hover{
    color: var(--main-decor-color);
}

/*──── hr ─────*/

hr {
    background: var(--main-decor-color);
    margin: 2px;
    height: 3px;
    width: 150px;
    border-radius: 5px;
    border: hidden;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

/*────────────────── 
     Scrollbar
──────────────────*/
::-webkit-scrollbar{
    width: 5px; 
    background: rgba(5, 5, 5, 1);
}
::-webkit-scrollbar-thumb{
    border-radius: 10px;
    background: var(--main-decor-color);
    box-shadow: inset 0 0 20px var(--main-decor-color);
}
::-webkit-scrollbar-track{
    margin-top: 80px;
    border-radius: 10px;
}

/*────────────────── 
     hamburger
──────────────────*/
.hamburger {
    display: none;
}

.hamburger div{
    width: 30px;
    height: 3px;
    background: var(--main-decor-color);
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2{
    opacity: 0;
}

.toggle .line3{
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translatex(50px);
    }
    to{
        opacity: 1;
        transform: translatex(0px);
    }
}

/*────────────────── 
    Video Sections Page
──────────────────*/

.video-section {
    margin-top: 70px;
    padding: 70px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: var(--main-fonts-color);
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.video-section:first-child {
    padding-top: 100px;
}

.video-section:last-child {
    border-bottom: none;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 0 20px;
    position: relative;
    min-height: 200px;
}

.carousel-item .video-container {
    border: 2px solid var(--main-decor-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.video-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
}

.video-info h4 {
    font-size: 1.3rem;
    color: var(--main-decor-color);
    margin-bottom: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--main-decor-color);
    border: 1px solid var(--main-decor-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: var(--main-decor-color);
    color: #000;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button.hidden {
    display: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 0, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--main-decor-color);
}

.jam-description, .matrix-description {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    text-align: left;
}

.jam-description h4, .matrix-description h4 {
    font-size: 1.5rem;
    color: var(--main-decor-color);
    margin-bottom: 20px;
}

.jam-description p, .matrix-description p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/*────────────────── 
    media queries
──────────────────*/

@media only screen and (max-width: 1100px) {
    .services-container {
        padding: 20px;
    }

    h3 {
        font-size: 40px;
    }
}

@media only screen and (max-width: 500px) {
    body {
        overflow-x: hidden;
        width: 100%;
        -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust */
    }

    #home, #services, #showcase, #contact, .video-section {
        overflow-x: hidden;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .scroll-arrow {
        bottom: 15px;
        font-size: 1.5rem;
    }
    
    #services {
        padding-top: 20px;
    }

    header{
        background-color: var(--main-header-background);
    }

    .logo{
        position: absolute;
        top: 2px;
        left: 15px;
        font-size: 20px;
    }

    .nav-show{
        opacity: 1;
    }

    .nav-bar{
        position: fixed;
        top: 0px;
        right: 0;
        width: 75%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
        background: rgba(0, 0, 0, 0.98);
        transform: translatex(100%);
        transition: transform 0.5s ease-in;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .hamburger{
        position: absolute;
        top: 17px;
        right: 25px;
        display: block;
        cursor: pointer;
        z-index: 101;
    }

    .nav-bar li{
        opacity: 0;
    }

    h3 {
        font-size: 28px;
    }

    p {
        font-size: 16px !important;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
        max-width: 330px;
        margin-bottom: 20px;
    }

    .featured {
        transform: none;
    }

    .featured:hover {
        transform: translateY(-10px);
    }

    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        width: 90%;
        margin-bottom: 20px;
    }

    .carousel-container {
        width: 95%;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
    }

    .video-info h4 {
        font-size: 16px;
    }

    .video-info p {
        font-size: 14px !important;
    }

    .faq-section {
        padding: 0 10px;
    }

    .faq-question {
        font-size: 16px;
    }

    .contact-form {
        width: 90%;
    }
}

.nav-active{
    transform: translatex(0%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--main-decor-color);
    color: var(--main-decor-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--main-decor-color);
    color: #000;
}

@media only screen and (max-width: 500px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Matrix Videos Section */
#matrix-videos {
    margin-top: 70px; /* Adjust as needed */
    padding: 20px 0;
}

#matrix-videos .carousel-container {
    width: 80%; /* Adjust width as needed */
    max-width: 1000px;
}

#matrix-videos .carousel-item {
  /* Style each video item */
    margin-bottom: 10px;
}

#matrix-videos .carousel-item img { /* Assuming images are used as placeholders */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,255,0, 0.3);
}

#matrix-videos .carousel-item iframe {
  max-width: 100%;
  height: auto;
}

/* Matrix and Jam Videos Page Styles */
#matrix-videos,
#jam-videos {
  background-color: var(--main-background); /* Use existing background color */
  padding: 60px 0;
  text-align: center;
}

#matrix-videos {
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  padding-bottom: 80px;
  margin-bottom: 20px;
}

#matrix-videos h3,
#jam-videos h3 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.matrix-description {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 20px;
  color: var(--main-fonts-color); /* Use existing text color */
  text-align: left;
}

.timer-display {
  font-size: 24px;
  margin-top: 20px;
}

/* Legal Pages Styling */
.legal-content {
  max-width: 800px;
  margin: 100px auto 50px;
  padding: 20px;
  color: var(--main-fonts-color);
  line-height: 1.6;
}

.legal-content h1 {
  color: var(--main-decor-color);
  text-align: center;
  margin-bottom: 20px;
}

.legal-content .last-updated {
  text-align: center;
  margin-bottom: 40px;
  font-style: italic;
  opacity: 0.7;
}

.legal-content h2 {
  color: var(--main-decor-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 15px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content section {
  margin-bottom: 30px;
}

.legal-content strong {
  color: var(--main-decor-color);
}

/* Thank you page styles */
.thanks-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 20px;
  color: var(--main-fonts-color);
}

.thanks-container h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.matrix-icon {
  font-size: 5rem;
  color: var(--main-decor-color);
  margin: 20px 0;
  animation: pulse 2s infinite;
}

.thanks-container p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 10px auto;
}

#user-info {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 5px;
  border: 1px solid rgba(0, 255, 0, 0.3);
  margin: 30px 0;
  text-align: left;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
