/* Custom styles for premium dark luxury medical website */

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #fefdf8;
    --cream-100: #fdf9ee;
    --gold-500: #d4a853;
    --gold-400: #e2be7a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--emerald-950);
    color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--emerald-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--emerald-700), var(--emerald-900));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-500), var(--emerald-700));
}

/* Selection color */
::selection {
    background: rgba(212, 168, 83, 0.3);
    color: var(--cream-50);
}

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Responsive typography */
@media (max-width: 640px) {
    .font-display {
        font-size: 1.875rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .font-display {
        font-size: 2.25rem;
    }
}

@media (min-width: 769px) {
    .font-display {
        font-size: 3rem;
    }
}

/* Animation keyframes */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Gold shimmer effect */
.gold-shimmer {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400), var(--gold-500));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Hover effects for cards */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Glass morphism effect */
.glass {
    background: rgba(6, 78, 59, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive grid gaps */
@media (max-width: 640px) {
    .grid {
        gap: 1rem;
    }
}

@media (min-width: 641px) {
    .grid {
        gap: 1.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .gold-gradient,
    .emerald-gradient {
        background: none !important;
        border: 1px solid #ccc;
    }
}
