/* Custom styles for Thats Just Too Bright Inc */

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

/* Custom selection color */
::selection {
    background-color: rgba(174, 85, 255, 0.2);
    color: #47135b;
}

/* Service card gradient overlay on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(174, 85, 255, 0.05) 0%, rgba(255, 194, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* Image hover zoom effect */
.rounded-2xl.overflow-hidden img,
.rounded-3xl.overflow-hidden img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rounded-2xl.overflow-hidden:hover img,
.rounded-3xl.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* Subtle float animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Navbar scroll state */
nav.scrolled #nav-bg {
    opacity: 1;
}

/* Form input focus animation */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(174, 85, 255, 0.1);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .rounded-2xl.overflow-hidden img,
    .rounded-3xl.overflow-hidden img {
        transition: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero text gradient accent */
.gradient-text {
    background: linear-gradient(135deg, #ae55ff 0%, #ffc200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

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

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Aspect ratio utilities */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

.aspect-\[3\/4\] {
    aspect-ratio: 3 / 4;
}

/* Print styles */
@media print {
    nav, .scroll-indicator, #contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
