/* 🌌 Background Container - Preserved for Header and Footer */
.dlms-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-image 1s ease-in-out;
} 

/* Preserve header and footer background changes */
html.dlms-dark-mode header, 
html.dlms-dark-mode footer {
    background-color: #111 !important;
    color: #f2f2f2 !important;
}
/* main.dlms-dark-mode .wpcf7-form-control.wpcf7-email::placeholder{
    color: white !important;
} */
/* Dark Mode Styles for Body */
html.dlms-dark-mode body h1, 
html.dlms-dark-mode body h2, 
html.dlms-dark-mode body h3, 
html.dlms-dark-mode body h4, 
html.dlms-dark-mode body h5, 
html.dlms-dark-mode body h6,
html.dlms-dark-mode body p,
html.dlms-dark-mode body span,
html.dlms-dark-mode body div,
html.dlms-dark-mode body a,
html.dlms-dark-mode body li,
html.dlms-dark-mode .elementor-widget-heading *,
html.dlms-dark-mode .elementor-widget-text-editor *,
html.dlms-dark-mode .elementor-widget-icon-box *,
html.dlms-dark-mode .elementor-widget-image *,
html.dlms-dark-mode .elementor-widget-divider * {
   color: #D6D0C5 !important;
}

/* Light Mode Styles for Body */
html.dlms-light-mode body h1, 
html.dlms-light-mode body h2, 
html.dlms-light-mode body h3, 
html.dlms-light-mode body h4, 
html.dlms-light-mode body h5, 
html.dlms-light-mode body h6,
html.dlms-light-mode body p,
html.dlms-light-mode body span,
html.dlms-light-mode body div,
html.dlms-light-mode body a,
html.dlms-light-mode body li,
html.dlms-light-mode .elementor-widget-heading *,
html.dlms-light-mode .elementor-widget-text-editor *,
html.dlms-light-mode .elementor-widget-icon-box *,
html.dlms-light-mode .elementor-widget-image *,
html.dlms-light-mode .elementor-widget-divider * {
    color: #111 !important;
}

main.dlms-dark-mode .freezy-bordersection {
    border: 1px solid #ffffff !important;
}

main.dlms-dark-mode .elementor-button span {
    color: black !important;
}

/* ✅ In dark mode, change all existing border colors inside body to white */
html.dlms-dark-mode body * {
    border-color: #f2f2f2 !important;
}

/* ✅ In light mode, restore original (Elementor-defined) border colors */
html.dlms-light-mode body * {
    border-color: initial !important;
}


/* Toggle Button Styles */
.dlms-toggle {
    position: fixed;
    top: 40px;
    right: 20px;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 10px 5px;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    width: 120px;
    font-size: 14px
}

/* Main Content Dark Mode */
main.dlms-dark-mode * {
    color: #D6D0C5 !important;
}

/* Main Content Light Mode */
main.dlms-light-mode * {
    color: #111 !important;
}

xclude Header and Footer */
header, footer {
    background-color: initial !important;
    color: initial !important;
}



/* 🌌 Star Styles */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Shooting Star Styles */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    opacity: 0;
    z-index: 2;
    transform: rotate(45deg);
    animation: shoot 1s linear forwards;
}

@keyframes shoot {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(500px, 500px) rotate(45deg);
        opacity: 0;
    }
}
/* html.dlms-dark-mode .wpcf7-form-control.wpcf7-email::placeholder {
  color: white !important;
} */
html.dlms-light-mode .wpcf7-form-control.wpcf7-email::placeholder {
  color: black !important;
}


/* Hide toggle button on mobile and tablet */
@media (max-width: 1023px) {
  .dlms-toggle {
    display: none !important;
  }
}
