/* Reset section backgrounds */
.hero-section,
.features-section,
.advantages-section,
.story-section,
.values-section,
.features-grid-section,
.demo-types-section,
.expect-section,
.stats-section,
.cta-section,
.search-preview,
.booking-section,
.page-header {
    background-image: none !important;
    background-color: transparent !important;
}

/* Remove all section background pseudo-elements */
.hero-section::before,
.hero-section::after,
.features-section::before,
.features-section::after,
.advantages-section::before,
.advantages-section::after,
.story-section::after,
.values-section::before,
.values-section::after,
.features-grid-section::before,
.features-grid-section::after,
.demo-types-section::before,
.demo-types-section::after,
.expect-section::before,
.expect-section::after,
.stats-section::after,
.page-header::before,
.page-header::after {
    display: none !important;
}

/* Unified Page Background */
body {
    background-color: #FCFCFC;
    position: relative;
}

body.dark-mode {
    background-color: #121215;
}

/* Fixed Background Container */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Light Path Elements */
.light-path {
    position: absolute;
    opacity: 0.6;
    filter: blur(3px);
    mix-blend-mode: screen;
}

/* Arc Path with Glowing Dot */
.arc-path {
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 2px solid rgba(126, 173, 255, 0.5);
    position: absolute;
    bottom: -40vw;
    right: -30vw;
    transform: rotate(-45deg);
    animation: rotate-slow 120s linear infinite;
}

/* Dot on the arc */
.arc-path::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    top: 5%;
    left: 50%;
    box-shadow: 0 0 15px 5px rgba(126, 173, 255, 0.6);
    animation: pulse 4s ease-in-out infinite;
}

/* Diagonal Line with Dot */
.diagonal-path {
    height: 1px;
    width: 60vw;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(91, 44, 131, 0.3) 20%, 
                white 50%, 
                rgba(91, 44, 131, 0.3) 80%, 
                transparent);
    position: absolute;
    top: 15%;
    left: -10%;
    transform: rotate(20deg);
    box-shadow: 0 0 20px rgba(91, 44, 131, 0.2);
    animation: float 15s ease-in-out infinite alternate;
}

/* Dot on the diagonal line */
.diagonal-path::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    top: -3px;
    left: 65%;
    box-shadow: 0 0 15px 5px rgba(126, 173, 255, 0.6);
    animation: pulse 3s ease-in-out infinite;
}

/* Curved Path */
.curved-path {
    position: absolute;
    top: 60%;
    left: 5%;
    width: 40vw;
    height: 20vw;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 1px solid rgba(68, 187, 164, 0.4);
    transform: rotate(-20deg);
    animation: float-rotate 20s ease-in-out infinite alternate;
}

/* Second Curved Path */
.curved-path-2 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 30vw;
    height: 15vw;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top: 1px solid rgba(126, 173, 255, 0.4);
    transform: rotate(30deg);
    animation: float-rotate-reverse 25s ease-in-out infinite alternate;
}

/* V-shaped Element */
.v-path {
    position: absolute;
    width: 40vw;
    height: 40vw;
    top: 40%;
    left: 30%;
    opacity: 0.5;
}

.v-path::before,
.v-path::after {
    content: "";
    position: absolute;
    width: 20vw;
    height: 1px;
    background: linear-gradient(90deg, 
                transparent, 
                rgba(91, 44, 131, 0.2), 
                white, 
                rgba(91, 44, 131, 0.2), 
                transparent);
    box-shadow: 0 0 15px rgba(126, 173, 255, 0.2);
}

.v-path::before {
    transform: rotate(30deg);
    left: 0;
    top: 0;
}

.v-path::after {
    transform: rotate(-30deg);
    right: 0;
    top: 0;
}

/* Full Orbit Element */
.orbit-path {
    position: absolute;
    width: 30vw;
    height: 30vw;
    border: 1px solid transparent;
    border-top: 1px solid rgba(126, 173, 255, 0.3);
    border-right: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-left: 1px solid rgba(68, 187, 164, 0.3);
    border-radius: 50%;
    top: 10%;
    left: 30%;
    animation: orbit 60s linear infinite;
}

/* Small diagonal lines */
.line-path-1 {
    position: absolute;
    height: 1px;
    width: 15vw;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    top: 75%;
    left: 15%;
    transform: rotate(-15deg);
    opacity: 0.3;
    animation: pulse 7s ease-in-out infinite;
}

.line-path-2 {
    position: absolute;
    height: 1px;
    width: 20vw;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    top: 30%;
    right: 25%;
    transform: rotate(25deg);
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
}

/* Extra dots */
.dot-path-1 {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    top: 35%;
    left: 25%;
    box-shadow: 0 0 10px 3px rgba(68, 187, 164, 0.5);
    animation: pulse 5s ease-in-out infinite;
}

.dot-path-2 {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    bottom: 20%;
    right: 15%;
    box-shadow: 0 0 10px 3px rgba(91, 44, 131, 0.5);
    animation: pulse 6s ease-in-out infinite;
}

/* Dark Mode Adjustments */
body.dark-mode .arc-path {
    border-top-color: rgba(139, 98, 179, 0.5);
}

body.dark-mode .arc-path::after,
body.dark-mode .diagonal-path::after {
    box-shadow: 0 0 15px 5px rgba(74, 155, 236, 0.6);
}

body.dark-mode .diagonal-path {
    background: linear-gradient(90deg, 
                transparent, 
                rgba(139, 98, 179, 0.4) 20%, 
                white 50%, 
                rgba(139, 98, 179, 0.4) 80%, 
                transparent);
    box-shadow: 0 0 20px rgba(74, 155, 236, 0.2);
}

body.dark-mode .curved-path {
    border-top-color: rgba(82, 209, 185, 0.4);
}

body.dark-mode .curved-path-2 {
    border-top-color: rgba(139, 98, 179, 0.4);
}

body.dark-mode .v-path::before,
body.dark-mode .v-path::after {
    background: linear-gradient(90deg, 
                transparent, 
                rgba(139, 98, 179, 0.3), 
                white, 
                rgba(139, 98, 179, 0.3), 
                transparent);
    box-shadow: 0 0 15px rgba(74, 155, 236, 0.3);
}

body.dark-mode .orbit-path {
    border-top-color: rgba(139, 98, 179, 0.3);
    border-left-color: rgba(82, 209, 185, 0.3);
}

body.dark-mode .dot-path-1 {
    box-shadow: 0 0 10px 3px rgba(82, 209, 185, 0.6);
}

body.dark-mode .dot-path-2 {
    box-shadow: 0 0 10px 3px rgba(74, 155, 236, 0.6);
}

/* Higher Z-index for content sections */
.container {
    position: relative;
    z-index: 2;
}

.preview-box,
.feature-card,
.advantage-card,
.value-card,
.story-card,
.stat-card,
.demo-type-card,
.expect-card,
.booking-form,
.feature-extended-card {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes rotate-slow {
    from { transform: rotate(-45deg); }
    to { transform: rotate(315deg); }
}

@keyframes float {
    0% { transform: rotate(20deg) translateY(0); }
    50% { transform: rotate(22deg) translateY(-20px); }
    100% { transform: rotate(20deg) translateY(0); }
}

@keyframes float-rotate {
    0% { transform: rotate(-20deg) translateY(0); }
    50% { transform: rotate(-25deg) translateY(-10px); }
    100% { transform: rotate(-20deg) translateY(0); }
}

@keyframes float-rotate-reverse {
    0% { transform: rotate(30deg) translateY(0); }
    50% { transform: rotate(35deg) translateY(-15px); }
    100% { transform: rotate(30deg) translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Media queries for mobile optimization */
@media (max-width: 768px) {
    .bg-animation-container {
        opacity: 0.7;
    }
    
    .diagonal-path,
    .curved-path,
    .curved-path-2,
    .v-path,
    .line-path-1,
    .line-path-2 {
        transform-origin: center;
        width: 70vw;
    }
}