/* Custom Styles for Guangzhou Hengjin Health Management Website */

/* Base Styles */
body {
    font-family: 'Noto Sans SC', sans-serif;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Scrolled State */
#header.scrolled {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

#header.scrolled #logo-icon {
    background-color: rgb(30 58 138);
    color: white;
}

#header.scrolled #logo-text {
    color: rgb(30 58 138);
}

#header.scrolled #logo-subtext {
    color: rgb(100 116 139);
}

#header.scrolled .nav-link {
    color: rgb(51 65 85);
}

#header.scrolled .nav-link:hover {
    color: rgb(96 165 250);
}

#header.scrolled #cta-button {
    background-color: rgb(30 58 138);
    color: white;
}

#header.scrolled #cta-button:hover {
    background-color: rgb(30 64 175);
}

#header.scrolled #mobile-menu-button {
    color: rgb(30 41 59);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    display: block;
    max-height: 500px;
}

/* Pulse Animation for Badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover Effects for Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Image Hover Effects */
.image-hover {
    transition: transform 0.7s ease;
}

.image-hover:hover {
    transform: scale(1.05);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(59 130 246);
    border-color: transparent;
}

/* Button Hover Effects */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-1px);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero-section {
        height: 600px;
    }
}

/* Loading State for Images */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    #mobile-menu {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
a:focus,
button:focus {
    outline: 2px solid rgb(59 130 246);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Icon Sizing */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Form Validation States */
input:invalid:not(:placeholder-shown) {
    border-color: rgb(239 68 68);
}

input:valid:not(:placeholder-shown) {
    border-color: rgb(34 197 94);
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, rgb(30 58 138) 0%, rgb(59 130 246) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shadow Hover */
.card-hover-shadow {
    transition: box-shadow 0.3s ease;
}

.card-hover-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Floating Animation for Badge */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Success Message */
.success-message {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Error Message */
.error-message {
    background-color: rgb(254 226 226);
    color: rgb(153 27 27);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
