/* Base styles and custom utilities */
:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-700: #7c3aed;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Scroll reveal — progressive enhancement, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .floating-card-1 {
        animation: float1 6s ease-in-out infinite;
    }
    
    .floating-card-2 {
        animation: float2 5s ease-in-out infinite;
    }
    
    .floating-card-3 {
        animation: float3 7s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(59, 7, 100, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #581c87 !important;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9333ea;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, background-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Gallery image hover */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #c084fc;
    color: #3b0764;
}
