/* Custom styles for Kingdom Of Pets Inc */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Decorative circles */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.c1 {
    width: 400px;
    height: 400px;
    background: white;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.c2 {
    width: 300px;
    height: 300px;
    background: white;
    bottom: 10%;
    right: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.c3 {
    width: 200px;
    height: 200px;
    background: white;
    top: 40%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.c4 {
    width: 150px;
    height: 150px;
    background: white;
    top: 20%;
    right: 20%;
    animation: float 7s ease-in-out infinite reverse;
}

/* Paw prints */
.paw-print {
    position: absolute;
    animation: float 12s ease-in-out infinite;
}

.p1 {
    width: 120px;
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.p2 {
    width: 80px;
    bottom: 25%;
    right: 8%;
    transform: rotate(25deg);
    animation-delay: -4s;
}

.p3 {
    width: 100px;
    top: 60%;
    left: 15%;
    transform: rotate(-30deg);
    animation-delay: -2s;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-20px) rotate(var(--rotate, 0deg));
    }
}

.paw-print {
    --rotate: -15deg;
}

.p2 {
    --rotate: 25deg;
}

.p3 {
    --rotate: -30deg;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.scroll-reveal[data-reveal].stagger-1 { transition-delay: 0.1s; }
.scroll-reveal[data-reveal].stagger-2 { transition-delay: 0.2s; }
.scroll-reveal[data-reveal].stagger-3 { transition-delay: 0.3s; }
.scroll-reveal[data-reveal].stagger-4 { transition-delay: 0.4s; }
.scroll-reveal[data-reveal].stagger-5 { transition-delay: 0.5s; }
.scroll-reveal[data-reveal].stagger-6 { transition-delay: 0.6s; }

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #064e3b !important;
}

.nav-scrolled .logo-text {
    color: #064e3b !important;
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Button hover effects */
a, button {
    cursor: pointer;
}

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

::-webkit-scrollbar-track {
    background: #ecfdf5;
}

::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
