/* Custom CSS for Clinic Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --medical-blue-50: #f0f9ff;
    --medical-blue-100: #e0f2fe;
    --medical-blue-200: #bae6fd;
    --medical-blue-300: #7dd3fc;
    --medical-blue-400: #38bdf8;
    --medical-blue-500: #0ea5e9;
    --medical-blue-600: #0284c7;
    --medical-blue-700: #0369a1;
    --medical-blue-800: #075985;
    --medical-blue-900: #0c4a6e;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', 'Kanit', sans-serif;
    line-height: 1.7;
    color: #374151;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    min-height: 100vh;
    font-size: 16px;
    letter-spacing: 0.025em;
}

/* Hero Background with Real Image */
.gradient-bg {
    background: linear-gradient(135deg, var(--medical-blue-100) 0%, var(--medical-blue-200) 50%, var(--medical-blue-300) 100%);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    max-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/clinic-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    pointer-events: none;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.6) 0%, rgba(186, 230, 253, 0.6) 50%, rgba(125, 211, 252, 0.6) 100%);
    pointer-events: none;
}

/* Services Section - With Background Image */
.services-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/clinic-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.35;
    pointer-events: none;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(241, 245, 249, 0.7) 100%);
    pointer-events: none;
}



/* Copy Button Styles */
.copy-btn {
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Service Button Styles */
.service-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.service-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-button:hover::before {
    left: 100%;
}

.service-button:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Service Button Components */
.service-image {
    flex-shrink: 0;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image i {
    transition: transform 0.3s ease;
}

.service-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Service Button Color Variants - Custom Colors */
.service-button-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #1e40af;
}

.service-button-blue:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #1e40af;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.service-button-purple {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #8b5cf6;
}

.service-button-purple:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.service-button-light-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #0ea5e9;
}

.service-button-light-blue:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.service-button-light-blue-soft {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #0284c7;
}

.service-button-light-blue-soft:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #0284c7;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
}

.service-button-indigo {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #1e40af;
}

.service-button-indigo:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #1e40af;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.service-button-red {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #dc2626;
}

.service-button-red:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.service-button-teal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #0284c7;
}

.service-button-teal:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #0284c7;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15);
}

/* New color variants - All Dark Blue */
.service-button-light-blue {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #1e40af;
}

.service-button-light-blue:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #1e40af;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.service-button-light-blue-soft {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #1e40af;
}

.service-button-light-blue-soft:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #1e40af;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.service-button-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #0ea5e9;
}

.service-button-white:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #0ea5e9;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
}

.service-button-dark-green {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid transparent;
    color: #059669;
}

.service-button-dark-green:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #059669;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

/* Responsive Design for Service Buttons */
@media (max-width: 768px) {
    .service-button {
        padding: 20px 12px;
        min-height: 120px;
    }
    
    .service-title {
        font-size: 12px;
    }
    
    .service-image img {
        width: 48px;
        height: 48px;
    }
    
    .service-image img.w-20 {
        width: 60px !important;
        height: 60px !important;
    }
    
    .service-image i {
        font-size: 3rem !important;
    }
}

/* Image and Icon hover effects */
.service-button:hover .service-image img,
.service-button:hover .service-image i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Badge Animation */
.badge {
    animation: pulse 2s infinite;
    position: relative;
}

.badge::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Floating Animation - Disabled */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: none;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Icon Hover Effects - Disabled */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: none;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-blue-500), var(--medical-blue-300));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--medical-blue-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--medical-blue-500);
}

/* Header Glass Effect */
.header-glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Glass Effect */
.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--medical-blue-600), var(--medical-blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Section Styles */
.contact-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.15);
}

.copy-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 4px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Services Section Header Styles */
.services-section h3 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.services-section .gradient-line {
    background: linear-gradient(90deg, var(--medical-blue-500), var(--medical-blue-300));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Contact Section Header Styles */
#contact h3 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-item .flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item .copy-btn {
        align-self: center;
    }
    
    .services-section h3 {
        font-size: 2.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .floating {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .badge,
    .card-hover::before,
    .btn-primary::before {
        display: none;
    }
    
    .card-hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus,
a:focus {
    outline: 2px solid var(--medical-blue-500);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #000;
    }
    
    .badge {
        border: 1px solid #000;
    }
}
