/* CareBloom Custom Styles - World-Class Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

/* Base styles and color variables */
:root {
    /* Cultural-Inspired Color Palette */
    --primary: #FFA07A; /* Saffron - Symbolizing optimism, warmth, and Indian cultural heritage */
    --secondary: #2E4057; /* Indigo - Conveying trustworthiness, stability, and professional expertise */
    --accent: #FF6F61; /* Coral - Adding energy, modernity, and visual interest */
    --neutral-light: #F5F5F5; /* Soft Light Gray - Ensuring readability and balance */
    --neutral-white: #FFFFFF; /* Crisp White - Ensuring readability and balance */
    
    /* Shadows and effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Grid */
    --container-width: 1200px;
    --grid-gap: 20px;
}

/* Base HTML elements */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: #000000;
    line-height: 1.5;
    background-color: var(--neutral-white);
    margin: 0;
    padding: 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-top: 0;
    color: var(--secondary);
}

h1 {
    font-size: 48px;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    line-height: 1.3;
}

h3 {
    font-size: 20px;
    line-height: 1.4;
}

/* Navigation */
nav a {
    font-size: 18px;
    font-weight: 600;
}

/* Buttons */
button, .btn {
    font-size: 16px;
    font-weight: 700;
}

/* Testimonial quotes */
.testimonial-card p {
    font-size: 18px;
    font-style: italic;
}

/* Increase font size button */
.font-size-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 5px;
}

.font-size-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #38b2ac;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.font-size-btn:hover {
    background-color: #2c7a7b;
}

/* Enhanced button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--neutral-white);
    box-shadow: var(--shadow-sm);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    background-color: var(--neutral-white);
    color: var(--secondary);
    border: 1px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--neutral-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Enhanced animations */
.fade-in {
    animation: fadeIn 0.7s ease-in-out;
}

.slide-in-left {
    animation: slideInLeft 0.7s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.7s ease-in-out;
}

.zoom-in {
    animation: zoomIn 0.7s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced card styles */
.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Testimonial card styles */
.testimonial-card {
    position: relative;
    transition: var(--transition-normal);
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 1;
}

/* App feature enhanced styles */
.app-feature {
    transition: var(--transition-normal);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary);
}

.app-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--secondary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.app-feature:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
}

/* Enhanced form elements */
.custom-input {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: var(--transition-normal);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.custom-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.3);
}

.custom-input::placeholder {
    color: var(--text-light);
}

.custom-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.custom-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transition: var(--transition-normal);
    z-index: -1;
}

.custom-button:hover::before {
    left: 0;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Language selector styling */
.language-selector {
    position: relative;
}

.language-selector select {
    appearance: none;
    padding-right: 2rem;
}

.language-selector::after {
    content: '\25BC';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #38b2ac;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    left: 0;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background-color: #38b2ac;
    color: white;
    z-index: 9999;
}

/* Header and Navigation Styles */
header {
    background-color: var(--primary);
    color: var(--neutral-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header a {
    color: var(--neutral-white);
    transition: all 0.3s ease;
}

header a:hover {
    transform: scale(1.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
}

/* Sticky header effect */
.sticky-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.hamburger-menu {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    .desktop-menu {
        display: none;
    }
}

/* Hero section enhancements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-pattern.svg');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Section styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Pricing table enhancements */
.pricing-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Carousel navigation buttons */
.carousel-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.carousel-nav-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: #0000EE;
        text-decoration: underline;
    }
    
    button, .custom-button {
        border: 2px solid black;
    }
}