/* Custom styles that complement Tailwind */

/* Smooth focus outlines for accessibility */
*:focus-visible {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

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

/* Reduce motion for users who prefer it */
@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; }
}

/* Navbar transition */
#navbar.scrolled {
    background-color: rgba(250, 245, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(107, 33, 168, 0.1);
}

/* Mobile menu button animation */
.menu-line:nth-child(1) {
    transform-origin: top;
}
.menu-line:nth-child(2) {
    opacity: 1;
}
.menu-line:nth-child(3) {
    transform-origin: bottom;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Service card gradient borders */
.service-card {
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.08);
}

.service-card:hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, #a855f7, #fbbf24);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hero text gradient */
h1 .text-amber-400 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}
