/* Custom Styles for MedRecords Landing Page */

/* Root Variables */
:root {
    --blue-900: #1e3a8a;
    --blue-800: #1e40af;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --cyan-300: #67e8f9;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --green-500: #10b981;
    --red-500: #ef4444;
}

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

/* Background Patterns */
.dot-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.3) 1px, transparent 0);
    background-size: 40px 40px;
}

.diagonal-lines {
    background-image: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    background-size: 20px 20px;
}

.gradient-overlay {
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%), 
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

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

@keyframes fadeInDelay {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeInDelay 0.8s ease-out 0.2s forwards;
}

/* Feature Cards Animation */
.feature-card {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Glass Morphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue-500), var(--cyan-500));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--blue-600), var(--cyan-500));
}

/* Navigation Styles */
nav {
    transition: all 0.3s ease;
    z-index: 1000 !important;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Section z-index management */
section {
    position: relative;
    z-index: 1;
}

/* Ensure Problem/Solution cards don't overlap */
.problem-solution-section {
    isolation: isolate;
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pricing Table Hover */
.pricing-features > div:hover {
    background-color: rgba(59, 130, 246, 0.05);
    transition: background-color 0.3s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--blue-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--green-500), #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--red-500), #dc2626);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideInRight 0.5s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fade-in,
    .fade-in-delay {
        animation-duration: 0.5s;
    }
    
    /* Mobile navigation fix */
    nav {
        padding: 0.75rem 0;
    }
    
    /* Pricing table mobile scroll */
    .pricing-table {
        min-width: 600px;
    }
    
    /* Touch-friendly buttons */
    button {
        min-height: 44px;
    }
    
    /* Better mobile spacing */
    section {
        scroll-margin-top: 60px;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-400), var(--cyan-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shadows */
.card-shadow {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-shadow:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.06);
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}