/* Custom styles for Nephrology Specialists website */

:root {
    --midnight-950: #0a1628;
    --midnight-900: #102a43;
    --midnight-800: #243b53;
    --midnight-700: #334e68;
    --midnight-600: #486581;
    --mint-500: #22c55e;
    --mint-400: #4ade80;
    --mint-300: #86efac;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--midnight-950);
    color: #ffffff;
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Reveal animation for scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 22, 40, 0.15);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #166534, #15803d);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14532d, #166534);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 101, 52, 0.3);
}

.btn-secondary {
    border: 2px solid #4ade80;
    color: #4ade80;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4ade80;
    color: #0a1628;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: #22c55e;
    border-color: #22c55e;
}

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

::-webkit-scrollbar-track {
    background: #102a43;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(135deg, #0a1628 0%, #102a43 25%, #1a365d 50%, #1e5f5f 75%, #166534 100%);
    }
}

/* Print styles */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    nav,
    .animate-bounce {
        display: none;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0a1628;
    color: #4ade80;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
