/* Mobile Optimization for Billion-Dollar Experience */

/* ===== MOBILE NAVBAR OPTIMIZATION ===== */
@media (max-width: 768px) {
  /* Clean mobile navbar */
  .cs_navbar {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  
  .cs_navbar_in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Logo optimization for mobile */
  .cs_site_branding {
    display: flex;
    align-items: center;
    z-index: 10000;
  }
  
  .cs_logo_wrap img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
  }
  
  /* Mobile header layout */
  .cs_site_header.cs_style_1 {
    padding: 0 20px;
  }
  
  .cs_site_header.cs_style_1 .cs_main_header_left {
    padding-left: 0;
  }
  
  .cs_site_header.cs_style_1 .cs_main_header_right {
    justify-content: flex-end;
    padding-right: 0;
  }
  
  /* Mobile menu button */
  .cs_nav_toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #31738c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: 0;
  }
  
  .cs_nav_toggler span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
  }
  
  .cs_nav_toggler:hover {
    background: #e55a2b;
    transform: scale(1.05);
  }
  
  /* Modern Mobile Navigation Menu */
  .cs_nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
  }
  
  .cs_nav.active {
    transform: translateX(0);
  }
  
  /* Mobile Menu Header */
  .cs_mobile_menu_header {
    background: linear-gradient(135deg, #31738c, #2c5f7a);
    color: white;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .cs_mobile_menu_logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .cs_mobile_menu_logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 8px;
  }
  
  .cs_mobile_menu_logo_text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .cs_mobile_menu_close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .cs_mobile_menu_close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
  }
  
  .cs_nav_list {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  
  .cs_nav_list li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .cs_nav_list li:last-child {
    border-bottom: none;
  }
  
  .cs_nav_list a {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
  }
  
  .cs_nav_list a:hover {
    background: #f8f9fa;
    color: #31738c;
    padding-left: 30px;
  }
  
  .cs_nav_list a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #31738c;
  }
  
  .cs_nav_list a .menu-arrow {
    margin-left: auto;
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
  }
  
  .cs_nav_list a:hover .menu-arrow {
    color: #31738c;
  }
  
  /* Dropdown functionality */
  .cs_nav_list .menu-item-has-children .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
  }
  
  .cs_nav_list .menu-item-has-children.active .sub-menu {
    max-height: 300px;
  }
  
  .cs_nav_list .menu-item-has-children.active .menu-arrow {
    transform: rotate(180deg);
  }
  
  .cs_nav_list .sub-menu a {
    padding: 15px 20px 15px 55px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
  }
  
  .cs_nav_list .sub-menu a:hover {
    background: #e9ecef;
    color: #31738c;
    padding-left: 65px;
  }
  
  .cs_nav_list .sub-menu a:before {
    content: "•";
    color: #31738c;
    margin-right: 10px;
    font-weight: bold;
  }
  
  /* Mobile contact info */
  .cs_nav_contact {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  
  .cs_nav_contact_item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
  }
  
  .cs_nav_contact_item i {
    margin-right: 10px;
    color: #31738c;
    width: 20px;
  }
  
  /* Mobile Menu CTA Button */
  .cs_mobile_menu_cta {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
  }
  
  .cs_mobile_menu_cta .cs_btn {
    width: 100%;
    background: linear-gradient(135deg, #31738c, #2c5f7a);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(49, 115, 140, 0.3);
    transition: all 0.3s ease;
  }
  
  .cs_mobile_menu_cta .cs_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 115, 140, 0.4);
  }
}

/* ===== MOBILE HERO SECTION ===== */
@media (max-width: 768px) {
  .cs_hero_section {
    padding: 100px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  .cs_hero_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }
  
  .cs_hero_bg_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
  }
  
  .cs_hero_bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(49, 115, 140, 0.3), rgba(255, 140, 66, 0.2));
    z-index: 2;
  }
  
  .cs_hero_text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
  }
  
  .cs_hero_title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 25px;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
  }
  
  .cs_hero_subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
  }
  
  .cs_hero_btns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
  }
  
  .cs_btn {
    width: 100%;
    max-width: 300px;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 35px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
  }
  
  .cs_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(49, 115, 140, 0.3);
  }
  
  .cs_btn.cs_style_1 {
    background: white;
    color: #31738c;
    border: 2px solid white;
  }
  
  .cs_btn.cs_style_1:hover {
    background: transparent;
    color: white;
  }
  
  .cs_btn.cs_style_2 {
    background: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .cs_btn.cs_style_2:hover {
    background: white;
    color: #31738c;
  }
}

/* ===== MOBILE QUICK ACTIONS ===== */
@media (max-width: 768px) {
  .cs_quick_actions {
    padding: 40px 20px;
    background: white;
  }
  
  .cs_quick_actions_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .cs_quick_action_card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .cs_quick_action_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #31738c, #ff8c42);
  }
  
  .cs_quick_action_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  
  .cs_quick_action_icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #31738c, #ff8c42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  }
  
  .cs_quick_action_icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
  }
  
  .cs_quick_action_title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
  }
  
  .cs_quick_action_description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .cs_quick_action_btn {
    background: linear-gradient(135deg, #31738c, #ff8c42);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
  }
  
  .cs_quick_action_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  }
}

/* ===== MOBILE SECTIONS ===== */
@media (max-width: 768px) {
  .cs_section {
    padding: 60px 20px;
  }
  
  .cs_section_heading {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .cs_section_subtitle {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .cs_section_title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 15px;
  }
  
  .cs_section_description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
  }
  
  /* Mobile cards */
  .cs_card {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  .cs_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  }
  
  .cs_card_thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .cs_card_info {
    padding: 25px;
  }
  
  .cs_card_title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .cs_card_subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
  }
}

/* ===== MOBILE FOOTER ===== */
@media (max-width: 768px) {
  .cs_footer {
    padding: 40px 20px 20px;
  }
  
  .cs_footer_widget {
    margin-bottom: 30px;
    text-align: center;
  }
  
  .cs_footer_widget_title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .cs_footer_widget_list li {
    margin-bottom: 10px;
  }
  
  .cs_footer_widget_list a {
    font-size: 14px;
    color: #ccc;
  }
  
  .cs_footer_bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .cs_footer_copyright {
    font-size: 12px;
    color: #999;
  }
}

/* ===== MOBILE CHATBOT & WHATSAPP ===== */
@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 10px;
    right: 10px;
    left: 10px;
    border-radius: 15px;
  }
  
  .chatbot-toggle {
    bottom: 10px;
    right: 10px;
    padding: 12px 16px;
    border-radius: 25px;
  }
  
  .chatbot-toggle-text {
    display: none;
  }
  
  .whatsapp-button {
    left: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* ===== MOBILE TYPOGRAPHY ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 20px;
    line-height: 1.4;
  }
  
  h4 {
    font-size: 18px;
    line-height: 1.4;
  }
  
  p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .cs_btn {
    font-size: 14px;
    padding: 12px 25px;
  }
}

/* ===== MOBILE ANIMATIONS ===== */
@media (max-width: 768px) {
  .text-reveal,
  .text-fade-in,
  .text-slide-up,
  .text-scale {
    animation-duration: 0.6s;
  }
  
  .section-fade-in,
  .section-slide-in-left,
  .section-slide-in-right,
  .section-scale-in {
    animation-duration: 0.8s;
  }
  
  .cs_card:hover {
    transform: translateY(-3px);
  }
  
  .cs_btn:hover {
    transform: translateY(-2px);
  }
}

/* ===== MOBILE PERFORMANCE ===== */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  .cs_btn,
  .cs_card,
  .cs_quick_action_card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .cs_btn:active,
  .cs_card:active {
    transform: scale(0.98);
  }
}

/* ===== MOBILE ACCESSIBILITY ===== */
@media (max-width: 768px) {
  .cs_btn:focus,
  .cs_nav_toggler:focus {
    outline: 2px solid #31738c;
    outline-offset: 2px;
  }
  
  .cs_nav_list a:focus {
    outline: 2px solid #31738c;
    outline-offset: 2px;
    border-radius: 4px;
  }
  
  /* Enhanced Mobile Hero Features */
  .cs_hero_features {
    margin-top: 30px;
    padding: 0 20px;
  }
  
  .cs_hero_features_list {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .cs_hero_features_list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .cs_hero_features_list li {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  .cs_hero_features_list li:before {
    content: "•";
    color: #31738c;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
  }
  
  .cs_hero_features_list li:last-child {
    margin-bottom: 0;
  }
  
  /* Contact Info Styling */
  .cs_hero_contact {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .cs_hero_contact_icon {
    width: 50px;
    height: 50px;
    background: #31738c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(49, 115, 140, 0.3);
  }
  
  .cs_hero_contact_text {
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
  
  /* Pagination Dots */
  .cs_hero_pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
  }
  
  .cs_hero_dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .cs_hero_dot.active {
    background: #31738c;
    transform: scale(1.2);
  }
}

/* ===== MOBILE LANDSCAPE ===== */
@media (max-width: 768px) and (orientation: landscape) {
  .cs_hero_section {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  
  .cs_hero_title {
    font-size: 24px;
  }
  
  .cs_hero_subtitle {
    font-size: 14px;
  }
  
  .cs_quick_actions {
    padding: 30px 20px;
  }
  
  .cs_section {
    padding: 40px 20px;
  }
}
