/* 
    assets/css/style.css 
    Theme: Palaniyappa Homoeo & Cosmetic Clinic
    Colors:
    Primary: #5f28a8
    Secondary: #3fbbbf
    Background: #ffffff
    Accent: #f7f8fc
    Text: #222222
*/

:root {
    --primary-color: #5f28a8;
    --primary-color-hover: #4a1f85;
    --secondary-color: #3fbbbf;
    --secondary-color-hover: #329ea1;
    --bg-color: #ffffff;
    --accent-color: #f7f8fc;
    --text-color: #222222;
    --text-light: #555555;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.tamil-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Mukta Malar', sans-serif; /* Recommended for Tamil */
}

/* Global Hover Animation */
a, p, h1, h2, h3, h4, h5, h6, .card-body, .btn, img {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* General Text Hover Animation for paragraphs and headings */
.hover-animate {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), color 0.4s ease;
}
.hover-animate:hover {
    transform: translateY(-3px);
    color: var(--secondary-color);
}

/* Utilities */
.bg-primary-custom { background-color: var(--primary-color) !important; color: white; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; color: white; }
.bg-accent { background-color: var(--accent-color) !important; }
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-primary-custom:hover {
    background-color: var(--primary-color-hover);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(95, 40, 168, 0.3);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-secondary-custom:hover {
    background-color: var(--secondary-color-hover);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(63, 187, 191, 0.3);
    transform: translateY(-2px);
}

/* Specific Helpers */
.doctor-name {
    white-space: nowrap;
}

.glassy-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.glassy-card::before {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    z-index: 1;
}
.glassy-card:hover::before {
    left: 150%;
}
.glassy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.9rem;
}
.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}
.top-bar a:hover {
    color: var(--secondary-color);
}

/* Navbar - Glassy Look */
.glass-nav {
    padding: 5px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1040;
}
.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.98) !important;
}
.navbar-brand img.nav-logo {
    transition: max-height 0.4s ease;
}
.navbar.sticky .navbar-brand img.nav-logo {
    max-height: 90px !important;
}
.hero-logo {
    max-height: 120px;
    mix-blend-mode: multiply;
    transition: max-height 0.4s ease;
}
.navbar.sticky .hero-logo, .navbar.sticky .navbar-brand img {
    max-height: 70px !important;
}
.nav-link {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 10px 15px !important;
    transition: color 0.3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 30px);
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-slider .swiper-slide {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay */
}
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}
.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content .tamil-subtitle {
    color: var(--secondary-color);
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--secondary-color);
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.service-card .tamil-title {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-family: 'Mukta Malar', sans-serif;
}

/* Floating Buttons */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

.floating-call {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s;
}
.floating-call:hover {
    transform: scale(1.1);
    color: white;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    z-index: 999;
    transition: background-color 0.3s;
}
#backToTop:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    padding-top: 60px;
}
footer h4 {
    margin-bottom: 20px;
}
footer a {
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
footer a:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}
.footer-links a {
    color: var(--text-muted, #6c757d);
}
.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

/* Page Banner */
.page-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}
.page-banner h1 {
    color: white;
}
.page-banner .breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}
.page-banner .breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
}
.page-banner .breadcrumb-item.active {
    color: #ccc;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.preloader-logo {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
#preloader-text {
    transition: opacity 0.3s ease-in-out;
    min-height: 30px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .tamil-subtitle {
        font-size: 1.2rem;
    }
}

/* Dropdown Animations Removed as per request to revert to standard click */
@media (min-width: 992px) {
    .dropdown-item {
        transition: background-color 0.3s, color 0.3s;
        padding: 8px 20px;
        font-weight: 500;
    }
    .dropdown-item:hover {
        background-color: var(--accent-color);
        color: var(--primary-color);
    }
}
@media (max-width: 991px) {
    .dropdown-menu {
        border: none;
        background: transparent;
        padding-left: 20px;
        box-shadow: none;
    }
    .dropdown-item {
        padding: 10px 0;
    }
}

/* Mobile Header Text Scaling */
@media (max-width: 576px) {
    .navbar-brand h4 {
        font-size: 0.95rem !important;
    }
    .navbar-brand .tamil-subtitle {
        font-size: 0.75rem !important;
    }
    .navbar-brand img {
        max-height: 50px !important;
    }
}

/* Ensure Swiper Navigation is Clickable */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    z-index: 99 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}
