/* Custom styles for Flying Colors Painting */

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

/* Body background */
body {
    background-color: #0f172a;
}

/* Selection color */
::selection {
    background-color: rgba(20, 184, 166, 0.3);
    color: #f8fafc;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Navbar transitions */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #f59e0b);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.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);
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
    transition: left 0.5s ease;
}
.service-card:hover::before {
    left: 100%;
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    pointer-events: none;
    transition: border-color 0.3s ease;
}
.gallery-item:hover::after {
    border-color: rgba(20, 184, 166, 0.2);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible > * {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in.visible > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in.visible > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Pulse animation for hero dots */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}
