/* Custom styles for TearDx website */

/* WordPress-matching styles */
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #262626;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 28px;
}

/* Bio-specific styling from WordPress */
.bios a {
    font-size: 100%;
}

.bios span {
    display: block;
    padding-top: 5px;
    font-weight: 300;
    font-size: 90%;
    font-style: italic;
    opacity: 0.7;
}

/* Link colors */
a {
    color: #00a0e3;
}

a:hover {
    color: #006caa;
}

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

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Apply fade-in animation to sections */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Hover effects for cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.15);
}

/* Custom gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #0066CC 0%, #00A3A3 100%);
}

.gradient-light {
    background: linear-gradient(135deg, #E6F2FF 0%, #F5F7FA 100%);
}

/* Button styles */
.btn-primary {
    background: #0066CC;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    border: 2px solid #0066CC;
    color: #0066CC;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background: transparent;
}

.btn-secondary:hover {
    background: #0066CC;
    color: white;
    transform: translateY(-2px);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #0066CC;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003366;
}

/* Section divider */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00A3A3);
    margin: 0 auto;
    border-radius: 2px;
}

/* Team member card hover effect */
.team-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.2);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066CC, #00A3A3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* Navigation shadow on scroll */
nav.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Loading animation for images */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .section-divider {
        width: 60px;
    }
}

/* Accessibility improvements */
a:focus,
button:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

/* Skip navigation for accessibility */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066CC;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

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

/* Print styles */
@media print {
    nav,
    footer,
    .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* Hero section text shadow for readability */
.hero-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Feature icon styles */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Pulse animation for call-to-action */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #0066CC 0%, #00A3A3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #E6F2FF;
    color: #0066CC;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Contact form success message */
.form-success {
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.form-success.show {
    display: block;
    animation: slideInLeft 0.5s ease-out;
}

/* Error message */
.form-error {
    background: #EF4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.show {
    display: block;
    animation: slideInLeft 0.5s ease-out;
}
