html {
    scroll-behavior: smooth;
}

header {
    background-image: url('./banner.avif');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 2rem;
    position: relative; /* Ensure the wrapper is positioned correctly */
}

@media (max-width: 768px) {
    header {
        background-image: url('./banner-mobile.avif') !important; /* Mobile background image */
    }
}

.logo-container {
    position: fixed;
    top: 45px; /* Adjust as needed to position the logo on top of the navbar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100; /* Ensure it is above the navbar */
}

.logo {
    height: 6rem; /* Adjust the height as needed */
    transition: width 0.5s, height 0.5s, opacity 0.5s;;
}

.logo.fade-out {
    opacity: 0;
}

.logo.fade-in {
    opacity: 1;
}

.small-logo {
    margin-top: 20px; 
    height: 50px; /* Maintain aspect ratio */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 40px; /* Rounded corners */
    padding: 10px 30px; /* Padding */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    z-index: 50; /* Ensure it is above other content */
    top: 120px; /* Adjust to place the navbar below the logo */
    width: 60%; /* Default width for mobile devices */
    max-width: 600px; /* Maximum width */
}

.navbar ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar li {
    margin: 0 15px; /* Spacing between items */
}

.navbar a {
    color: white; /* Text color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    transition: color 0.3s; /* Smooth transition */
}

.navbar a:hover {
    color: #00fb00; /* Change color on hover */
}

/* Media query for larger screens */
@media (min-width: 1024px) {
    .navbar {
        width: 20%; /* Increase width for larger screens */
        max-width: none; /* Remove maximum width constraint */
    }
}

.wrapper { 
    height: 100%;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    background: linear-gradient(124deg, #710087, #002087, #5c1400, #165e00, #02006b, #008da6);
    background-size: 1800% 1800%;
    z-index: -1; /* Ensure it is behind the content */
    -webkit-animation: rainbow 6s ease infinite;
    -moz-animation: rainbow 6s ease infinite;
    -o-animation: rainbow 6s ease infinite;
    animation: rainbow 6s ease infinite;
}


@-webkit-keyframes rainbow {
    0% { background-position: 0% 82%; }
    50% { background-position: 100% 19%; }
    100% { background-position: 0% 82%; }
}

@-moz-keyframes rainbow {
    0% { background-position: 0% 82%; }
    50% { background-position: 100% 19%; }
    100% { background-position: 0% 82%; }
}

@-o-keyframes rainbow {
    0% { background-position: 0% 82%; }
    50% { background-position: 100% 19%; }
    100% { background-position: 0% 82%; }
}

@keyframes rainbow { 
    0% { background-position: 0% 82%; }
    50% { background-position: 100% 19%; }
    100% { background-position: 0% 82%; }
}

.btn-liquid {
    display: inline-block;
    position: relative;
    width: 240px;
    height: 60px;
    margin-top: 20px;
    border-radius: 27px;
    color: #fff;
    font: 700 14px/60px "Droid Sans", sans-serif;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background: linear-gradient(90deg, #004d40, #00796b); /* Green-blue gradient */
    overflow: hidden; /* Ensure no overflow */
}

.btn-liquid .inner {
    position: relative;
    z-index: 2;
    background: none; /* Remove background */
}

.btn-liquid canvas {
    position: absolute;
    top: -50px;
    right: -50px;
    bottom: -50px;
    left: -50px;
    z-index: 1;
    background: none; /* Remove background */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #000;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

.cta-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 1rem;
    padding-bottom: 100px; /* Ensure there is space for the footer */
    flex: 1 0 auto;
}

/* Ensure the text section has enough margin to avoid overlap */
.cta-section p {
    margin-bottom: 40px; /* Add margin to separate from the form below */
}

/* Ensure the form has enough margin to avoid overlap */
.cta-section form {
    margin-bottom: 40px; /* Add margin to separate from the footer */
}

.cta {
    background-color: transparent; /* Remove background opacity */
    max-width: 100%; /* Ensure it fits within the screen */
    z-index: 20; /* Ensure form is on top */
}

footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    margin-top: auto;
    padding: 2rem 0; /* Adjust padding as needed */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

footer p {
    margin-bottom: 1rem;
}

footer ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0;
    list-style-type: none;
}

footer ul li {
    display: inline;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: #38b2ac;
}

@media (max-width: 768px) {
    .cta-section {
        padding-bottom: 40%; /* Increase padding for mobile to accommodate footer */
    }

    footer {
        font-size: 0.6rem; /* Smaller font size for mobile */
    }

    footer ul {
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
    }
}

input[type="email"] {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Light border */
    color: white; /* Text color */
    padding: 0.5rem; /* Padding */
    border-radius: 0.25rem; /* Rounded corners */
    transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
    text-align: center; /* Center align text */
    width: 100%; /* Ensure it fits within the container */
}

input[type="email"]::placeholder {
    color: white; /* White placeholder text */
    opacity: 1; /* Ensure placeholder is fully opaque */
}

input[type="email"]:focus {
    background-color: rgba(255, 255, 255, 0.2); /* Slightly less transparent on focus */
    border-color: rgba(255, 255, 255, 0.5); /* Darker border on focus */
    outline: none; /* Remove default outline */
}

footer .flex.items-center.space-x-4 {
    justify-content: center; /* Center the Twitter link */
    margin-top: 1rem; /* Add some margin to the top */
}

#space {
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center center;
    overflow: hidden;
    --perspective: 100px;
    perspective: var(--perspective);
    transform-style: preserve-3d;
    z-index: -1;
}
#space:after {
    display: block;
    content: "";
    grid-area: 1/1;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, blue, transparent, yellow), linear-gradient(to right, #008aff, transparent, #e10019), linear-gradient(to bottom, green, cyan, purple);
    mix-blend-mode: overlay;
}

#space time {
    grid-area: 1/1;
    width: 100px;
    height: 100px;
    transform-origin: 50% 0%;
    will-change: transform;
    background-color: white;
    box-shadow: 0 0 0.5rem white, 0 0 1rem white;
}
@supports (-moz-transition: all) {
    #space time {
        box-shadow: 0 0 0.5rem white;
    }
}

.line-through-decorator {
    position: relative;
    display: inline-block;
}

.line-through-decorator::before,
.line-through-decorator::after {
    content: '';
    position: absolute;
    top: 50%; /* Align the lines with the text */
    left: 10%; /* Adjust spacing from the left */
    width: 80%; /* Shorter width for subtle crosses */
    height: 2px; /* Line thickness */
    background-color: red; /* Line color */
    transform-origin: center;
}

.line-through-decorator::before {
    transform: rotate(-10deg); /* First line at a slight angle */
}

.line-through-decorator::after {
    transform: rotate(10deg); /* Second line at the opposite angle */
}
