/* ============================================
   CUSTOM STYLING FOR BLUEBIRD MEDSERV
   Modern, Professional Healthcare Theme
   ============================================ */

:root {
    /* Custom Color Palette */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-bg: #1f2937;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

/* ============================================
   ENHANCED HEADER
   ============================================ */

.header {
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.header__top {
    background: var(--gradient-primary);
    padding: 12px 0;
}

.header__top__left li {
    color: var(--white);
    font-size: 13px;
}

.header__top__left li i {
    color: var(--accent-color);
    margin-right: 8px;
}

.header__top__right a {
    color: var(--white);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.header__top__right a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.primary-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(30, 64, 175, 0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero__text h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__text span {
    font-size: 18px;
    color: var(--white);
    line-height: 1.8;
    display: block;
    margin-bottom: 30px;
}

.hero__text .btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ============================================
   CARDS & ITEMS ENHANCEMENT
   ============================================ */

.chooseus__item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    text-align: center;
    border: 2px solid transparent;
    height: 100%;
}

.chooseus__item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.chooseus__item img {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.chooseus__item:hover img {
    transform: scale(1.1) rotate(5deg);
}

.chooseus__item h5 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.chooseus__item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services__item {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.services__item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.services__item__icon {
    flex-shrink: 0;
}

.services__item__icon img {
    width: 60px;
    height: 60px;
}

.services__item__text h5 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.services__item__text p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   CONSULTATION SECTION
   ============================================ */

.consultation__text__item {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.consultation__text__item p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-light);
}

.consultation__video {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.consultation__video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.1);
    transition: background 0.3s ease;
}

.consultation__video:hover::after {
    background: rgba(37, 99, 235, 0.2);
}

/* ============================================
   FEATURE LIST
   ============================================ */

.services__details__feature {
    list-style: none;
    padding: 0;
}

.services__details__feature li {
    padding: 20px 25px;
    margin-bottom: 15px;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.services__details__feature li:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.services__details__feature li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 18px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    background: var(--light-bg);
    padding: 80px 0;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    margin: 20px 10px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    font-size: 80px;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.author-info h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 14px;
    color: var(--text-light);
}

.rating {
    color: var(--accent-color);
    font-size: 14px;
    margin-top: 5px;
}

/* ============================================
   FOOTER ALTERNATE DESIGN
   ============================================ */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 80px 0 0;
}

.footer__content {
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__widget {
    margin-bottom: 40px;
}

.footer__widget h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer__widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer__about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer__about .social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer__about .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer__about .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links ul li {
    margin-bottom: 12px;
}

.footer__links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer__links ul li a::before {
    content: '\f105';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: left 0.3s ease;
}

.footer__links ul li a:hover {
    color: var(--white);
    padding-left: 25px;
}

.footer__links ul li a:hover::before {
    left: 5px;
}

.footer__contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer__contact ul li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 3px;
    font-size: 16px;
    min-width: 20px;
}

.footer__contact ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact ul li a:hover {
    color: var(--white);
}

.footer__bottom {
    padding: 30px 0;
    text-align: center;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 14px;
}

.footer__bottom p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__bottom p a:hover {
    color: var(--primary-light);
}

.footer__bottom p i {
    color: #ef4444;
    margin: 0 5px;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--gradient-primary);
    padding: 60px 0;
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 15px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and below (992px) */
@media (max-width: 991px) {
    .header__top__left li {
        font-size: 12px;
        margin-right: 15px;
    }
    
    .section-title h2 {
        font-size: 36px;
    }
    
    .hero__text h2 {
        font-size: 42px;
    }
    
    .hero__text span {
        font-size: 16px;
    }
    
    .chooseus__item {
        margin-bottom: 30px;
    }
    
    .services__item {
        margin-bottom: 20px;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .footer__widget {
        margin-bottom: 40px;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    /* Header adjustments */
    .header__top {
        display: none;
    }
    
    .header__logo img {
        max-width: 120px;
    }
    
    /* Hero section */
    .hero {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .hero__text h2 {
        font-size: 32px;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .hero__text span {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .hero__text .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero__text .btn-group .primary-btn,
    .hero__text .btn-group .secondary-btn {
        width: 100%;
        text-align: center;
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Section titles */
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 28px;
        padding-bottom: 15px;
    }
    
    .section-title span {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Consultation section */
    .consultation__text__item {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .consultation__text__item p {
        font-size: 15px;
    }
    
    .consultation__video {
        min-height: 300px;
        margin-bottom: 30px;
    }
    
    /* Core values cards */
    .chooseus__item {
        margin-bottom: 20px;
        padding: 30px 20px;
    }
    
    .chooseus__item h5 {
        font-size: 20px;
    }
    
    .chooseus__item p {
        font-size: 14px;
    }
    
    /* Stats section */
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-item {
        margin-bottom: 30px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* Services section */
    .services__item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        margin-bottom: 15px;
    }
    
    .services__item__icon {
        margin-bottom: 15px;
    }
    
    .services__item__text h5 {
        font-size: 20px;
    }
    
    .services__item__text p {
        font-size: 14px;
    }
    
    /* Feature list */
    .services__details__feature li {
        padding: 15px 15px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 50px 0;
    }
    
    .testimonial-card {
        padding: 25px 20px;
        margin: 10px 0;
    }
    
    .testimonial-card::before {
        font-size: 60px;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .author-img {
        width: 50px;
        height: 50px;
    }
    
    .author-info h5 {
        font-size: 16px;
    }
    
    .author-info span {
        font-size: 13px;
    }
    
    /* Primary and secondary buttons */
    .primary-btn,
    .secondary-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    /* Contact widgets */
    .contact__widget {
        margin-bottom: 30px;
    }
    
    .contact__widget__icon i {
        font-size: 40px;
    }
    
    .contact__widget__text h5 {
        font-size: 18px;
    }
    
    .contact__widget__text p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 0;
    }
    
    .footer__content {
        padding-bottom: 30px;
    }
    
    .footer__widget h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer__about .social-links {
        justify-content: flex-start;
    }
    
    .footer__links ul li a {
        font-size: 14px;
    }
    
    .footer__newsletter,
    .footer__address {
        margin-bottom: 30px;
    }
    
    .footer__newsletter h5,
    .footer__address h5 {
        font-size: 18px;
    }
    
    .footer__newsletter form {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer__newsletter form input {
        width: 100%;
        padding: 12px 15px;
    }
    
    .footer__newsletter form button {
        width: 100%;
        padding: 12px 20px;
    }
    
    .footer__map iframe {
        height: 250px;
    }
    
    .footer__copyright {
        padding: 20px 0;
        text-align: center;
    }
    
    .footer__copyright ul {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }
    
    .footer__copyright ul li {
        font-size: 12px;
        margin: 5px 10px;
    }
    
    /* Back to top button */
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        line-height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 14px !important;
    }
}

/* Small mobile devices (576px and below) */
@media (max-width: 576px) {
    .hero__text h2 {
        font-size: 26px;
    }
    
    .hero__text span {
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title span {
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .chooseus__item {
        padding: 25px 15px;
    }
    
    .services__item {
        padding: 20px 15px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .footer__top h2 {
        font-size: 20px;
    }
    
    .footer__top p {
        font-size: 13px;
    }
    
    .primary-btn,
    .secondary-btn {
        padding: 10px 20px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    .contact-form h3 {
        font-size: 20px !important;
    }
}

/* Extra small devices (480px and below) */
@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }
    
    .hero__text h2 {
        font-size: 22px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    .consultation__text__item {
        padding: 20px 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .services__details__feature li {
        padding: 12px 12px;
        font-size: 13px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ============================================ */

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
}

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2);
    }
    
    /* Increase touch target sizes */
    .primary-btn,
    .secondary-btn,
    .header__top__right a,
    .offcanvas__social a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Mobile-optimized spacing */
    .spad {
        padding: 50px 0;
    }
    
    /* Improve readability */
    p {
        line-height: 1.8;
    }
    
    /* Better image scaling */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile menu improvements */
    .offcanvas-menu-wrapper {
        padding: 20px;
    }
    
    .offcanvas__widget li {
        font-size: 13px;
        padding: 8px 0;
        word-wrap: break-word;
    }
}
