/* Custom Styles for Oral Health Consultants */

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

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

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

/* Selection Color */
::selection {
    background-color: #0d9488;
    color: white;
}

/* Navbar Transition */
#navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* Image Hover Effects */
.group img {
    transition: transform 0.7s ease;
}

.group:hover img {
    transform: scale(1.03);
}

/* Service Card Hover */
.group {
    transition: all 0.5s ease;
}

/* Mobile Menu Transitions */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Subtle Line Animations */
@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 3rem;
    }
}

.inline-flex > div:first-child {
    animation: expandWidth 0.6s ease-out forwards;
}

/* Process Step Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.relative.flex.items-start {
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
}

.relative.flex.items-start:nth-child(1) { animation-delay: 0.1s; }
.relative.flex.items-start:nth-child(2) { animation-delay: 0.2s; }
.relative.flex.items-start:nth-child(3) { animation-delay: 0.3s; }
.relative.flex.items-start:nth-child(4) { animation-delay: 0.4s; }

/* Loading State for Buttons */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Map Grayscale Override on Hover */
iframe:hover {
    filter: grayscale(50%) opacity(1);
    transition: filter 0.3s ease;
}

/* Print Styles */
@media print {
    #navbar,
    #mobile-menu,
    button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .group {
        break-inside: avoid;
    }
}
