
/* ===================================================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   Professional, industry-standard mobile responsiveness
   Optimized for performance and user experience
   
   IMPORTANT: This file must be loaded AFTER Bootstrap CSS to ensure proper override
=================================================================== */

/* Base mobile styles (mobile-first approach) */
* {
    box-sizing: border-box;
}

/* Ensure smooth scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container improvements */
.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography scaling for mobile */
h1 {
    font-size: 28px;
    line-height: 32px;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 18px;
}

h3 {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 16px;
}

/* Mobile navigation improvements */
.menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1002;
    background: #781d7e;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #5a1460;
    transform: scale(1.05);
}

/* Header improvements for mobile */
.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    min-height: 80px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 0 20px 0px rgba(64,64,64,0.16);
    padding: 0;
    z-index: 1001;
}

.logx {
    max-width: 120px;
    height: auto;
    transition: all 0.3s ease;
}

/* Desktop navigation - visible by default */
.navbar.hidden-sm.hidden-xs {
    display: block !important;
}

.visible-xs.visible-sm {
    display: none !important;
}

/* Mobile navigation toggle - hidden by default */
.menu-toggle {
    display: none !important;
}

/* Mobile styles - show hamburger menu only on small screens */
@media only screen and (max-width: 767px) {
    .menu-toggle {
        display: block !important;
    }
    
    .navbar.hidden-sm.hidden-xs {
        display: none !important;
    }
    
    .visible-xs.visible-sm {
        display: block !important;
    }
    
    .navbar-header.visible-xs.visible-sm {
        display: block !important;
    }
}

/* Bootstrap visibility classes override - ensure proper responsive behavior */
@media only screen and (min-width: 768px) {
    /* Hide mobile elements on tablet and desktop */
    .visible-xs,
    .visible-sm,
    .menu-toggle,
    span.menu-toggle.navbar.visible-xs.visible-sm {
        display: none !important;
    }
    
    /* Show desktop elements on tablet and desktop */
    .hidden-xs,
    .hidden-sm,
    .navbar.hidden-sm.hidden-xs,
    nav.navbar.navbar-inverse.hidden-sm.hidden-xs {
        display: block !important;
    }
    
    /* Ensure desktop navigation is visible */
    .navbar.navbar-inverse.hidden-sm.hidden-xs {
        display: block !important;
    }
    

}

@media only screen and (max-width: 767px) {
    /* Show mobile elements on mobile */
    .visible-xs,
    .visible-sm,
    .menu-toggle,
    span.menu-toggle.navbar.visible-xs.visible-sm {
        display: block !important;
    }
    
    /* Hide desktop elements on mobile */
    .hidden-xs,
    .hidden-sm,
    .navbar.hidden-sm.hidden-xs,
    nav.navbar.navbar-inverse.hidden-sm.hidden-xs {
        display: none !important;
    }
    
    /* Ensure mobile navigation header is visible */
    .navbar-header.visible-xs.visible-sm {
        display: block !important;
    }
    

}

/* Additional specificity for navigation elements */
@media only screen and (min-width: 768px) {
    nav.navbar.hidden-sm.hidden-xs {
        display: block !important;
    }
    
    .navbar-header.visible-xs.visible-sm {
        display: none !important;
    }
}

@media only screen and (max-width: 767px) {
    nav.navbar.hidden-sm.hidden-xs {
        display: none !important;
    }
    
    .navbar-header.visible-xs.visible-sm {
        display: block !important;
    }
}

/* Additional responsive improvements for consistency */
@media only screen and (max-width: 991px) {
    .logx {
        max-width: 150px;
        height: auto;
    }
    
    .tp-banner-container {
        min-height: 350px;
    }
    
    .tp-banner {
        height: 350px;
    }
}

@media only screen and (max-width: 767px) {
    .tp-banner-container {
        min-height: 300px;
    }
    
    .tp-banner {
        height: 300px;
    }
    
    .logx {
        max-width: 120px;
        height: auto;
    }
}

/* Slider improvements for mobile */
.tp-banner-container {
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.tp-banner {
    height: 300px;
    visibility: hidden;
}

.tp-banner.loaded {
    visibility: visible;
}

/* Slider captions for mobile */
.tp-caption.large_white,
.tp-caption.medium_white,
.tp-caption.small_white {
    font-size: 16px !important;
    line-height: 20px !important;
    white-space: normal !important;
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
}

.tp-caption.large_white {
    font-size: 20px !important;
    line-height: 24px !important;
}

/* Button improvements for mobile */
.btn {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Form improvements for mobile */
.form-control {
    height: 50px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #781d7e;
    box-shadow: 0 0 0 3px rgba(120, 29, 126, 0.1);
}

/* Section spacing for mobile */
.section-padding {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Process section improvements */
.process-section .col-md-6,
.process-section .col-sm-6 {
    margin-bottom: 30px;
}

.process-content {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.process-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Hosting carousel improvements */
.hosting-carousel .carousel-wrapper {
    margin-bottom: 20px;
    padding: 20px;
}

/* FAQ section improvements */
.faq-section {
    padding: 40px 0;
}

.panel-title a {
    font-size: 16px;
    line-height: 22px;
    padding: 15px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.panel-title a:hover {
    color: #781d7e;
    background: #f8f9fa;
}

/* Client section improvements */
.client img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    transition: all 0.3s ease;
}

.client:hover img {
    transform: scale(1.1);
}

/* Pricing section improvements */
.pricing-wrapper .header img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

/* Domain search improvements */
.domain-section .domain-search {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.domain-section .domain-search input[type="text"] {
    width: 100%;
    margin-bottom: 15px;
    height: 50px;
    font-size: 16px;
}

.domain-section .domain-search button {
    width: 100%;
    height: 50px;
    font-size: 16px;
}

/* Joining section improvements */
.joining-section .col-sm-8,
.joining-section .col-sm-4 {
    text-align: center;
    margin-bottom: 20px;
}

.joining-section .btn {
    margin-top: 15px;
}

/* Footer improvements */
.footer-section {
    padding: 40px 0 20px;
}

.footer-section .col-md-3,
.footer-section .col-sm-6 {
    margin-bottom: 30px;
}

/* WhatsApp widget improvements */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-widget:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Tablet styles */
@media only screen and (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    
    h1 {
        font-size: 36px;
        line-height: 40px;
    }
    
    h2 {
        font-size: 30px;
        line-height: 35px;
    }
    
    h3 {
        font-size: 24px;
        line-height: 28px;
    }
    
    .tp-banner-container {
        min-height: 350px;
    }
    
    .tp-banner {
        height: 350px;
    }
    
    .logx {
        max-width: 150px;
    }
    
    /* Ensure desktop navigation is visible on tablet and up */
    .menu-toggle {
        display: none !important;
    }
    
    .navbar.hidden-sm.hidden-xs {
        display: block !important;
    }
    
    .visible-xs.visible-sm {
        display: none !important;
    }
}

/* Small desktop styles */
@media only screen and (min-width: 992px) {
    .container {
        max-width: 970px;
    }
    
    h1 {
        font-size: 40px;
        line-height: 44px;
    }
    
    h2 {
        font-size: 32px;
        line-height: 38px;
    }
    
    h3 {
        font-size: 26px;
        line-height: 30px;
    }
    
    .tp-banner-container {
        min-height: 400px;
    }
    
    .tp-banner {
        height: 400px;
    }
    
    .logx {
        max-width: 180px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

/* Large desktop styles */
@media only screen and (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }
    
    h1 {
        font-size: 48px;
        line-height: 52px;
    }
    
    h2 {
        font-size: 36px;
        line-height: 42px;
    }
    
    h3 {
        font-size: 26px;
        line-height: 30px;
    }
    
    .tp-banner-container {
        min-height: 450px;
    }
    
    .tp-banner {
        height: 450px;
    }
    
    .logx {
        max-width: 225px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logx,
    .client img,
    .pricing-wrapper .header img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .menu-toggle,
    .whatsapp-widget,
    #preloader {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .tp-banner-container {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.menu-toggle:focus {
    outline: 2px solid #781d7e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid currentColor;
    }
}
