/* Custom Styles for AutoSwitchTheme Website */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00D4FF, #E91E63);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00B4DF, #C91E53);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Selection color */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: inherit;
}

.dark ::selection {
    background: rgba(0, 212, 255, 0.5);
}

/* Theme toggle icon states - Icons are now inversed */
/* Moon shown in light mode, sun shown in dark mode */

/* Sun/Moon hero animation */
.sun-moon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-img,
.moon-img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

.dark .moon-img {
    filter: drop-shadow(0 4px 20px rgba(148, 163, 184, 0.3));
}

/* Glassmorphism effect for cards on hover */
.glass-effect {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    animation: gradient-shift 8s ease infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature card hover effects */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Button press effect */
button:active,
a:active {
    transform: scale(0.98);
}

/* Navigation blur effect enhancement */
nav {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Hero mockup window shadow */
.dark .mockup-window {
    box-shadow: 0 25px 50px -12px rgba(0, 212, 255, 0.15);
}

/* Floating animation with different delays */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1s;
}

/* Pulse glow effect */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Step connector line */
.step-connector {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00D4FF, #E91E63);
    transform: translateY(-50%);
}

/* Mobile menu animation */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu.open {
        transform: translateX(0);
    }
}

/* Download button shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    nav,
    .animate-float,
    .absolute {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}
