/* Custom Styles for Dr. Prakash S Kancherla Website */

/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

/* Custom Font Families */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-lora {
    font-family: 'Lora', serif;
}

.font-crimson {
    font-family: 'Crimson Text', serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2f4f2f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d663d;
}

/* Selection Color */
::selection {
    background-color: #2f4f2f;
    color: #fefdf8;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Card Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.float-card-1 {
    animation: float 4s ease-in-out infinite;
}

.float-card-2 {
    animation: float-reverse 4.5s ease-in-out infinite;
}

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

/* Hover Effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* 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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Navbar Transition */
#navbar {
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4a7c4a;
    box-shadow: 0 0 0 3px rgba(74, 124, 74, 0.1);
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Print Styles */
@media print {
    nav,
    #contactForm,
    .btn-primary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
