/* Base Styles & Typography Overrides */
:root {
    /* Updated to Navy & Silver Palette */
    --silver-primary: #94A3B8;
    /* Matching tailwind silver-400 */
    --silver-glow: rgba(148, 163, 184, 0.5);

    --navy-bg: #0F172A;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
    background-color: var(--silver-primary);
    color: #000;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-bg);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--silver-primary);
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(30, 41, 59, 0.6);
    /* navy-800 with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.1);
    /* silver-200 with low opacity */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Premium Button Animation */
.premium-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.premium-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -2;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Star hidden */
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Input Auto-fill style fix for dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1E293B inset !important;
    /* navy-800 */
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Hover effects for cards */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(148, 163, 184, 0.15);
}