@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
        
:root {
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #8a2be2;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    perspective: 1000px; 
}

.header {
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    z-index: 2000;
    transition: background-color 0.3s ease;
    transform: translateZ(20px);
}

.header:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue);
    animation: neon-flicker 1.5s infinite alternate;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--neon-pink);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.hero {
    height: 100vh;
    position: relative;
    /* overflow: hidden; */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    /* background: #ddd; */
}

.hero-content {
    max-width: 1500px;
    position: relative;
    top: 30%;
    z-index: 1;
    transform: translateZ(100px);
    opacity: 0;
    animation: fade-in 1s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateZ(100px) translateY(50px); }
    to { opacity: 1; transform: translateZ(100px) translateY(0); }
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--neon-purple), 0 0 20px var(--neon-purple);
    text-align: center;
}

/* New Start Exploring button styles */
/* .cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    color: var(--neon-blue);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-blue);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.cta-button:hover {
    color: #000;
    background: var(--neon-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-blue);
}

.cta-button:hover:before {
    left: 100%;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0.7;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
} */



.features {
    display: flex;
    justify-content: space-around;
    padding: 100px 50px;
    background-image: url('../image/image4.jpg'); 
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    transform-style: preserve-3d;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.feature {
    text-align: center;
    max-width: 300px;
    position: relative;
    z-index: 1;
    transform: translateZ(50px);
    transition: transform 0.3s ease;
    will-change: transform;
}

.feature:hover {
    /* transform: translateZ(75px) scale(1.05); */
    transform: scale(1.05) translateZ(75px);
}

.feature img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.feature:hover img {
    transform: scale(1.1);
}

.upload-section {
    background-color: #111111;
    padding: 100px 50px;
    text-align: center;
    position: relative;
    /* overflow: hidden; */
    transform-style: preserve-3d;
    background: #ddd; 
}

#space-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#image-upload {
    display: none;
}

/* Upload button container to center it */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.upload-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    padding: 15px 25px;
    line-height: normal;
    color: #fff;
    margin: 30px auto;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    transition: .3s;
    z-index: 1;
    background: #3aaeff;
    cursor: pointer;
    border-radius: 6px;
    width: 200px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(58, 174, 255, 0.7);
}

.upload-btn::before {
    pointer-events: none;
    position: absolute;
    z-index: -1;
    content: "";
    top: 100%;
    left: 5%;
    height: 8px;
    width: 85%;
    opacity: 0;
    background: radial-gradient(ellipse at center, #000 0%, rgb(99 103 203 / 0%) 80%);
    transition-duration: 0.3s;
    transition-property: transform opacity;
}

.upload-btn:hover::before {
    opacity: 1;
    transform: translateY(5px);
}

.upload-btn:hover {
    background: var(--neon-blue);
    transform: translateY(-5px);
}

.image-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.original-image, .processed-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

#image-preview, #processed-preview {
    max-width: 100%;
    max-height: 400px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    display: none;
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

#image-preview:hover, #processed-preview:hover {
    transform: translateZ(50px) scale(1.05);
}

#result {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    position: relative;
    z-index: 1;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
}

.loading {
    display: none;
    color: var(--neon-pink);
    font-size: 1.2em; 
    margin-top: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px var(--neon-pink); 
}

.loading:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0% { content: '.'; }
    20% { content: '..'; }
    40% { content: '...'; }
    60% { content: '....'; }
    80% { content: '.....'; }
    100% { content: '......'; }
}

.footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.9em;
    color: #ffffff;
    position: relative;
    box-shadow: 0 0 10px var(--neon-blue);
    transform: translateZ(10px);
}

.footer p {
    margin: 0;
}
p{
    text-align: center;
}


/* Adding smooth transitions between sections */
.section {
    position: relative;
    padding: 100px 50px;
    opacity: 0;
    /* transition: opacity 1s ease-in-out;
    transform: translateZ(0); */
    transform: translateY(50px); /* Start off-screen */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Adding gradient overlay for smooth transition effect */
.section::before, .section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.section::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

.section::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Adjusting the visibility on scroll */
.features, .upload-section {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.features.visible, .upload-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.features {
    opacity: 0;
    transform: translateY(50px);
}

.upload-section {
    opacity: 0;
    transform: translateY(50px);
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 4px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue), 0 0 40px var(--neon-pink), 0 0 70px var(--neon-pink), 0 0 80px var(--neon-pink), 0 0 100px var(--neon-pink);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}
