/* Custom styles for GoPharma */

/* Typography */
body {
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
}

p, span, a {
    font-family: 'Source Serif 4', Georgia, serif;
}

/* Override for UI elements */
button,
a.inline-flex,
nav a,
.text-xs,
.text-sm,
label,
input,
textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00AE9B 0%, #006A9B 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00699b;
}

/* Selection color */
::selection {
    background: #00af9b;
    color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #00af9b;
    outline-offset: 2px;
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 1 !important;
}

/* Form input placeholder color fix */
input::placeholder,
textarea::placeholder {
    opacity: 0.7;
}

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

/* Image loading placeholder */
img {
    background-color: #f3f4f6;
}

/* Feature card hover effects */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Accordion item styles */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-item:hover .w-10 {
    background-color: #e6f7f5;
}

.accordion-item:hover i {
    color: #00af9b;
}

/* Dashboard preview animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* Header scroll state */
#main-header.scrolled {
    background-color: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Platform section patterns */
.dot-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -5px rgba(0, 175, 155, 0.4);
}

/* Card shine effect on hover */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.card-shine:hover::before {
    left: 100%;
}

/* Stats counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

/* CTA section wave pattern */
.wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Footer link hover */
footer a {
    transition: color 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-12 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .col-span-2,
    .col-span-10 {
        grid-column: span 1;
    }
}

/* Dark mode section background */
.bg-dark-800 {
    background-color: #1a2332;
}

.bg-dark-900 {
    background-color: #0f1419;
}

/* Pulse animation for status indicators */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Progress bar animation */
@keyframes progress {
    from {
        width: 0;
    }
}

.progress-bar {
    animation: progress 1s ease-out forwards;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}
