/* ==========================================================================
   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #00827f;
    --primary-dark: #004d4b;
    --primary-light: #e6f6f5;
    --primary-gradient: linear-gradient(135deg, #00827f 0%, #004d4b 100%);
    --secondary-color: #ff6b6b;
    
    /* Neutral Palette */
    --text-main: #2d3748;
    --text-muted: #4a5568;
    --text-light: #718096;
    --bg-main: #f0f7f7; /* Very soft teal tint instead of gray */
    --bg-white: #ffffff;
    --bg-alt: #e2e8f0;
    
    /* Layout & Effects */
    --container-max: 1280px;
    --container-pad: 24px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions & Shadows */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 130, 127, 0.15);
    --shadow-hover: 0 30px 60px rgba(0, 130, 127, 0.25);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; color: var(--bg-white); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p { margin-bottom: 1.25rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.tag-light {
    background-color: rgba(255,255,255,0.15);
    color: var(--bg-white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    line-height: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}

.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.15); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s ease; z-index: -1;
}

.btn:hover::before { transform: scaleX(1); transform-origin: left; }

.btn-primary { background: var(--bg-white); color: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-outline { background-color: transparent; border-color: var(--bg-white); color: var(--bg-white); }
.btn-outline:hover { background-color: var(--bg-white); color: var(--primary-dark); transform: translateY(-3px); }

.btn-accent { background: var(--secondary-color); color: var(--bg-white); box-shadow: var(--shadow-md); border-color: var(--secondary-color); }
.btn-accent:hover { background: #ff4747; color: var(--bg-white); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Layout Sections
   ========================================================================== */
section { padding: 120px 0; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-main); }
.bg-teal { background-color: var(--primary-color); color: var(--bg-white); }
.bg-warm { background: linear-gradient(135deg, #fff5f3 0%, #ffe4e1 100%); }

.section-header { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section-header p { font-size: 1.125rem; }

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar {
    background: var(--primary-dark); color: var(--bg-white); padding: 10px 0; font-size: 0.875rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 24px; }
.top-contact a { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.9); }
.top-contact a:hover { color: var(--bg-white); }
.us-badge {
    display: flex; align-items: center; gap: 8px; font-weight: 500;
    background: rgba(255, 255, 255, 0.15); padding: 4px 14px; border-radius: 20px;
}

header {
    background-color: var(--bg-white);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.5rem; font-weight: 800; color: var(--primary-dark);
}
.logo i { font-size: 2rem; color: var(--primary-color); }
.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a:not(.btn) { font-weight: 600; color: var(--text-main); position: relative; padding: 8px 0; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px;
    background: var(--primary-gradient); transition: var(--transition); transform: translateX(-50%); border-radius: 3px;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after { width: 100%; }
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active { color: var(--primary-color); }

.nav-links .btn-accent {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.nav-links .btn-accent:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none; background: transparent; border: none; font-size: 1.75rem;
    color: var(--primary-dark); cursor: pointer; z-index: 1001; transition: var(--transition);
    width: 48px; height: 48px; align-items: center; justify-content: flex-end; padding: 0;
}
.mobile-menu-toggle:hover { color: var(--primary-color); transform: scale(1.1); }
.header-call-btn-mobile { display: none; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-image: url('happier_aging.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    position: relative; padding: 100px 0 160px; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 130, 127, 0.9) 0%, rgba(0, 77, 75, 0.95) 100%);
    z-index: 1;
}

.hero::after {
    content: ''; position: absolute; bottom: -50px; left: 0; width: 100%; height: 100px;
    background: var(--bg-white); transform: skewY(-2deg); z-index: 2;
}

.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; position: relative; z-index: 3; }

.hero-content { position: relative; z-index: 3; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; color: rgba(255,255,255,0.9); }

.hero-badges {
    display: flex; gap: 24px; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-badge { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--bg-white); white-space: nowrap; }
.hero-badge i {
    width: 40px; height: 40px; background: rgba(255,255,255,0.15); color: var(--bg-white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

.hero-image-wrapper { position: relative; animation: float 6s ease-in-out infinite; }
.hero-image {
    width: 100%; aspect-ratio: 4/4.5; border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.experience-card {
    position: absolute; bottom: -30px; left: -40px;
    background: var(--bg-white); padding: 24px 32px; border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 20px;
}
.experience-card .number { font-size: 3.5rem; font-weight: 800; color: var(--primary-color); line-height: 1; }
.experience-card .text { font-weight: 700; color: var(--primary-dark); line-height: 1.3; }

/* ==========================================================================
   Partners Strip
   ========================================================================== */
.partners { padding: 40px 0; background: var(--bg-white); }
.partners-inner {
    display: flex; justify-content: center; align-items: center; gap: 80px; flex-wrap: wrap;
    opacity: 0.7; transition: var(--transition); filter: grayscale(100%);
}
.partners:hover .partners-inner { opacity: 1; filter: grayscale(0%); }
.partner-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.125rem; color: var(--primary-dark); }

/* ==========================================================================
   What is Home Care
   ========================================================================== */
.what-is-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.what-is-features {
    display: flex; flex-direction: column; gap: 24px;
}
.feature-box {
    display: flex; flex-direction: column; padding: 32px;
    background: var(--bg-main); border-radius: var(--border-radius-md);
    border-left: 6px solid var(--primary-color);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-box:hover {
    transform: translateX(-10px); box-shadow: var(--shadow-md); background: var(--bg-white);
}
.feature-box i {
    font-size: 2rem; color: var(--primary-color); margin-bottom: 16px;
}
.feature-box h4 {
    font-size: 1.25rem; margin-bottom: 8px; color: var(--primary-dark);
}
.feature-box p {
    margin-bottom: 0; font-size: 1rem;
}

/* ==========================================================================
   The Difference
   ========================================================================== */
.difference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.difference-img {
    border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
    transition: var(--transition);
}
.difference-img:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }

.check-list { display: flex; flex-direction: column; gap: 20px; margin-top: 2rem; }
.check-list li {
    display: flex; align-items: center; gap: 16px; font-size: 1.125rem; color: var(--text-main); font-weight: 600;
    background: var(--bg-white); padding: 16px 24px; border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm); transition: var(--transition); border-left: 4px solid var(--primary-color);
}
.check-list li:hover { transform: translateX(10px); background: var(--primary-light); }
.check-list i { color: var(--primary-color); font-size: 1.5rem; }

/* ==========================================================================
   Services Grid (Highlighted)
   ========================================================================== */
.services-highlight {
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}
.services-highlight::before {
    content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.services-highlight .section-header h2 { color: var(--bg-white); }
.services-highlight .section-header p { color: rgba(255,255,255,0.8); }
.services-highlight .section-tag { background: rgba(255,255,255,0.15); color: var(--bg-white); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; position: relative; z-index: 2; }

.service-card {
    background: var(--bg-white); padding: 48px 32px; border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: var(--transition);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    border-bottom: 4px solid transparent;
}
.service-card::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 150px; height: 150px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255,255,255,0) 70%);
    opacity: 0; transition: var(--transition); border-radius: 50%; transform: translate(50%, 50%);
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.25); border-color: var(--primary-color); }
.service-card:hover::after { opacity: 1; transform: translate(30%, 30%); }

.service-icon {
    width: 80px; height: 80px; background: var(--primary-light); color: var(--primary-color);
    border-radius: var(--border-radius-md); display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin-bottom: 2rem; transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--primary-color); color: var(--bg-white); transform: scale(1.1) rotate(-5deg); }

.service-card p { flex-grow: 1; font-size: 1.05rem; }
.service-link {
    color: var(--primary-color); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-top: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.875rem;
}
.service-link:hover { gap: 16px; }

/* ==========================================================================
   Process (How It Works with Image)
   ========================================================================== */
.consult-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.consult-img {
    border-radius: var(--border-radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5;
    position: relative; z-index: 2;
}
.process-steps { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; position: relative; }
.process-steps::before {
    content: ''; position: absolute; left: 30px; top: 20px; bottom: 20px; width: 2px;
    background: var(--primary-light); z-index: 1;
}
.process-step { display: flex; gap: 24px; position: relative; z-index: 2; }
.step-number {
    width: 60px; height: 60px; background: var(--primary-color); color: var(--bg-white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; flex-shrink: 0; box-shadow: 0 0 0 8px var(--bg-white);
}

/* ==========================================================================
   Testimonials (Teal Background)
   ========================================================================== */
.testimonials { background: var(--primary-gradient); color: var(--bg-white); text-align: center; }
.testimonials h2 { color: var(--bg-white); }
.testimonial-card {
    background: rgba(255,255,255,0.1); padding: 60px; border-radius: var(--border-radius-lg);
    max-width: 900px; margin: 0 auto; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2);
}
.testimonial-card p { font-size: 1.75rem; font-style: italic; color: var(--bg-white); margin-bottom: 2.5rem; line-height: 1.5; }
.author strong { color: var(--bg-white); font-size: 1.25rem; font-weight: 800; display: block; }
.author span { color: rgba(255,255,255,0.8); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px; }

/* ==========================================================================
   Modern Split CTA
   ========================================================================== */
.cta-section { padding: 80px 0 140px; background: var(--bg-white); }
.cta-split-modern {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.cta-card {
    padding: 60px 48px; border-radius: var(--border-radius-lg);
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    align-items: flex-start; text-align: left; transition: var(--transition);
}
.cta-card:hover { transform: translateY(-10px); }

.cta-icon {
    width: 64px; height: 64px; background: rgba(255,255,255,0.2);
    color: var(--bg-white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 32px; position: relative; z-index: 2;
}

.cta-card h2 { color: var(--bg-white); font-size: 2.5rem; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-card p { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-bottom: 40px; position: relative; z-index: 2; }
.cta-card .btn { position: relative; z-index: 2; margin-top: auto; }

/* Franchise Side (Modern Gradient & Glow) */
.cta-franchise {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
}
.cta-franchise::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 300px; height: 300px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.3; border-radius: 50%; filter: blur(40px); z-index: 1; pointer-events: none;
}

/* Careers Side (Image Background) */
.cta-careers {
    background-image: url('services.png');
    background-size: cover; background-position: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.cta-careers::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 77, 75, 0.85); z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer { background: #111827; color: var(--bg-white); padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; }
.footer-brand .logo { color: var(--bg-white); margin-bottom: 1.5rem; }
.footer-brand p { color: #9ca3af; margin-bottom: 2rem; max-width: 320px; }

.social-icons { display: flex; gap: 16px; }
.social-icons a {
    width: 44px; height: 44px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: var(--transition); color: var(--bg-white);
}
.social-icons a:hover { background: var(--primary-color); transform: translateY(-4px); }

.footer-links h4, .footer-contact h4 { color: var(--bg-white); font-size: 1.25rem; margin-bottom: 1.5rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #9ca3af; font-weight: 500; }
.footer-links a:hover { color: var(--bg-white); padding-left: 8px; }

.footer-contact li { display: flex; gap: 16px; margin-bottom: 24px; color: #9ca3af; align-items: flex-start; }
.footer-contact i { color: var(--primary-color); font-size: 1.25rem; margin-top: 4px; }
.footer-contact strong { color: var(--bg-white); font-size: 1.125rem; font-weight: 600; }

.footer-bottom { padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; color: #6b7280; font-size: 0.875rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--bg-white); }

/* ==========================================================================
   AI Chatbot Widget
   ========================================================================== */
.chatbot-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }

.chatbot-toggle {
    width: 65px; height: 65px; background: var(--primary-color); color: var(--bg-white);
    border: none; border-radius: 50%; font-size: 1.75rem; box-shadow: var(--shadow-lg);
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
    animation: float 4s ease-in-out infinite; position: relative;
}
.chatbot-toggle:hover { transform: scale(1.1); background: var(--primary-dark); }

.chatbot-window {
    position: absolute; bottom: 85px; right: 0; width: 350px;
    background: var(--bg-white); border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2); overflow: hidden; display: flex; flex-direction: column;
    opacity: 0; pointer-events: none; transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-window.active { opacity: 1; pointer-events: all; transform: translateY(0); }

.chatbot-header {
    background: var(--primary-gradient); color: var(--bg-white); padding: 16px 20px;
    display: flex; justify-content: space-between; align-items: center; font-weight: 600;
}
.chatbot-header div { display: flex; align-items: center; gap: 10px; }
.chatbot-header i.fa-robot { font-size: 1.25rem; }

.chatbot-close {
    background: transparent; border: none; color: var(--bg-white); font-size: 1.25rem;
    cursor: pointer; opacity: 0.8; transition: var(--transition);
}
.chatbot-close:hover { opacity: 1; transform: scale(1.1); }

.chatbot-messages {
    height: 280px;
    padding: 20px;
    background: var(--bg-main);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: var(--bg-white);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

.user-message {
    background: var(--primary-color);
    color: var(--bg-white);
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
    align-self: flex-end;
}

/* Typing Indicator Animation */
.typing-bubble {
    align-self: flex-start;
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

.typing-bubble span {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Quick Replies */
.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 4px;
    align-self: flex-start;
}

.quick-reply-btn {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.chatbot-input { display: flex; padding: 16px; background: var(--bg-white); border-top: 1px solid rgba(0,0,0,0.05); }
.chatbot-input input {
    flex-grow: 1; border: none; outline: none; background: var(--bg-main);
    padding: 12px 16px; border-radius: 20px; font-size: 0.95rem; font-family: inherit;
}
.chatbot-input button {
    background: var(--secondary-color); color: var(--bg-white); border: none;
    width: 44px; height: 44px; border-radius: 50%; margin-left: 12px;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.chatbot-input button:hover { background: #ff4747; transform: scale(1.05); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .hero .container, .difference-grid, .consult-grid { gap: 40px; grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 1024px) {
    .hero {
        background-attachment: scroll;
    }
    .hero .btn-group {
        flex-wrap: nowrap;
        gap: 12px;
    }
    .hero .btn-group .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 992px) {
    section { padding: 80px 0; }
    .hero .container, .difference-grid, .consult-grid, .what-is-grid { grid-template-columns: 1fr; }
    .hero { text-align: center; padding-bottom: 60px; background-attachment: scroll; }
    .hero-content p { margin: 0 auto 1.5rem; }
    .btn-group { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-image-wrapper { max-width: 600px; margin: 0 auto; animation: none; }
    .experience-card { left: 20px; right: 20px; bottom: -20px; justify-content: center; }
    
    .feature-box:hover { transform: translateY(-5px); }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    
    /* Mobile App-Style Menu Overrides */
    .mobile-menu-toggle { display: flex; }
    .header-call-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 18px;
        background: var(--primary-gradient);
        color: var(--bg-white);
        border-radius: 30px;
        font-size: 0.95rem;
        font-weight: 700;
        margin-left: auto;
        margin-right: 16px;
        box-shadow: var(--shadow-sm);
        transition: var(--transition);
        z-index: 1001;
        white-space: nowrap;
    }
    .header-call-btn-mobile i {
        font-size: 1rem;
    }
    .header-call-btn-mobile:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-md);
    }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-white); flex-direction: column; justify-content: center;
        gap: 40px; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .nav-links a:not(.btn) { font-size: 1.5rem; }
    .nav-links .btn { font-size: 1.25rem; padding: 20px 48px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    /* Strictly Fix Header on Mobile */
    header { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; }
    .hero { padding-bottom: 60px; background-attachment: scroll; }
    .hero::after { display: none; }
    .hero-image-wrapper { display: none; }
    
    .cta-split-modern { grid-template-columns: 1fr; }
    .cta-card { padding: 40px 30px; }
    .testimonial-card { padding: 40px 20px; }
    .testimonial-card p { font-size: 1.15rem; }
    
    /* Fix Header Logo for Mobile */
    .logo { font-size: 1.25rem; gap: 8px; }
    .logo i { font-size: 1.5rem; }
    .logo-img { height: 45px; }
    
    /* Global Typography & Spacing Fixes for Mobile */
    h1 { font-size: 2.25rem; margin-bottom: 1rem; }
    h2 { font-size: 1.75rem; margin-bottom: 1rem; }
    h3 { font-size: 1.25rem; }
    p, li { font-size: 0.95rem; line-height: 1.5; }
    
    .hero-content p { font-size: 1rem; margin-bottom: 1.5rem; }
    .hero-badges { flex-wrap: nowrap; justify-content: center; gap: 12px; margin-top: 2rem; padding-top: 1.5rem; width: 100%; }
    .hero-badge { font-size: 0.85rem; gap: 8px; }
    .hero-badge i { width: 32px; height: 32px; font-size: 1rem; }
    .hero .btn-group { flex-wrap: nowrap; gap: 10px; width: 100%; }
    .hero .btn-group .btn { flex: 1; padding: 12px 16px; font-size: 0.85rem; white-space: nowrap; letter-spacing: -0.01em; }
    
    .experience-card .number { font-size: 2.5rem; }
    .experience-card .text { font-size: 0.9rem; }
    
    .btn { padding: 14px 28px; font-size: 0.95rem; }
    .section-tag { font-size: 0.75rem; padding: 6px 12px; margin-bottom: 1rem; }
    
    .service-card { padding: 32px 24px; }
    .feature-box { padding: 24px; }
    
    .cta-card h2 { font-size: 2rem; }
    .cta-card p { font-size: 1rem; margin-bottom: 24px; }
    .cta-icon { width: 50px; height: 50px; font-size: 1.25rem; margin-bottom: 20px; }
    
    /* Mobile Menu Typography Fixes */
    .nav-links { gap: 24px; }
    .nav-links a:not(.btn) { font-size: 1.25rem; }
    .nav-links .btn { font-size: 1.1rem; padding: 16px 36px; }
}

@media (max-width: 480px) {
    .header-inner { height: 70px; }
    .hero { padding-bottom: 40px; }
    .hero .container { gap: 24px; }
    .hero .btn-group .btn { padding: 10px 8px; font-size: 0.75rem; }
    .hero-badges { gap: 10px; }
    .hero-badge { font-size: 0.75rem; gap: 6px; }
    .hero-badge i { width: 28px; height: 28px; font-size: 0.9rem; }
    .logo { font-size: 1.1rem; }
    .logo i { font-size: 1.25rem; }
    .logo-img { height: 40px; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    /* Very Small Device Menu Fixes */
    .nav-links { gap: 20px; }
    .nav-links a:not(.btn) { font-size: 1.15rem; }
    .nav-links .btn { font-size: 1rem; padding: 14px 28px; width: 85%; max-width: 280px; justify-content: center; }
}

@media (max-width: 360px) {
    .hero .btn-group .btn { padding: 10px 4px; font-size: 0.7rem; }
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 0.7rem; gap: 4px; }
    .hero-badge i { width: 24px; height: 24px; font-size: 0.8rem; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .process-steps::before { left: 20px; }
    .step-number { width: 40px; height: 40px; font-size: 1rem; box-shadow: 0 0 0 4px var(--bg-white); }
    
    .chatbot-window {
        position: fixed; bottom: 0; right: 0; left: 0; top: 0;
        width: 100%; height: 100%; border-radius: 0; z-index: 10000;
    }
    .chatbot-messages { height: calc(100vh - 130px); }
}
