/* ==========================================================================
   RESPONSIVE STYLES - MEDIA QUERIES
   ========================================================================== */

/* Modern Slider Styles */
.modern-slider {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    background: #000;
}

.slider-wrapper {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.slide {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.slide.active {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Desktop - fixed height */
@media (min-width: 768px) {
    .slide img {
        height: 528px;
        object-fit: cover;
    }
}

/* Mobile - auto height */
@media (max-width: 767px) {
    .slide img {
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }
}

/* Slider responsive fixes */
.slidesjs-container {
    height: auto !important;
}

#slides {
    width: 100%;
    max-width: 100%;
}

#slides img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Tablet and below (iPad and similar) */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 20px !important;
    }
    
    .head-line {
        font-size: 45px;
        line-height: 50px;
    }
    
    .main-icon {
        font-size: 200px;
    }
    
    h1 {
        font-size: 28px;
        padding-top: 20px;
    }
    
    .main-low-margin {
        margin-top: 30px;
    }
    
    .space-bottom {
        height: 60px;
    }
    
    .circle-body {
        width: 120px;
        height: 120px;
    }
    
    #footer {
        text-align: center;
    }
    
    #footer .col-md-4 {
        margin-bottom: 30px;
    }
}

/* Mobile devices (phones in landscape and portrait) */
@media (max-width: 767px) {
    /* Override body padding from slider.css */
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Remove all spacing around slider on mobile */
    #slides {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .slidesjs-container,
    .slidesjs-control {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .slidesjs-slide {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Make slider images full width on mobile */
    #slides img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Restore padding for content sections only */
    .main-top-margin,
    .main-low-margin,
    section,
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }
    
    .head-line {
        font-size: 35px;
        line-height: 40px;
        padding-bottom: 30px;
    }
    
    .main-icon {
        font-size: 150px;
    }
    
    h1 {
        font-size: 24px;
        line-height: 30px;
    }
    
    h3 {
        font-size: 20px;
        line-height: 28px;
        margin-top: 20px;
    }
    
    p {
        line-height: 24px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .main-top-margin {
        margin-top: 80px;
    }
    
    .main-low-margin {
        margin-top: 20px;
    }
    
    .space-bottom {
        height: 40px;
    }
    
    .space-top {
        height: 40px;
    }
    
    .circle-body {
        width: 100px;
        height: 100px;
    }
    
    .icon-set {
        padding: 20px;
    }
    
    .img-circle {
        max-width: 150px;
        margin: 0 auto;
    }
    
    #footer {
        padding: 20px 15px;
    }
    
    #footer h4 {
        margin-top: 20px;
    }
    
    .navbar-nav {
        margin-top: 10px;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 10px 15px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Center text on mobile for better readability */
    .col-md-3, .col-md-4, .col-md-8 {
        text-align: center;
        margin-bottom: 20px;
    }
}

/* Small mobile devices (iPhone SE, small Android phones) */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 16px !important;
    }
    
    .head-line {
        font-size: 28px;
        line-height: 35px;
    }
    
    h1 {
        font-size: 22px;
        line-height: 28px;
    }
    
    h3 {
        font-size: 18px;
        line-height: 26px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    p {
        font-size: 13px;
        line-height: 22px;
    }
    
    .main-icon {
        font-size: 120px;
    }
    
    .circle-body {
        width: 80px;
        height: 80px;
    }
    
    #pricing-section .plan-main li.plan-price {
        font-size: 36px;
    }
    
    .img-circle {
        max-width: 120px;
    }
    
    .navbar-toggle {
        margin-right: 10px;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 360px) {
    .navbar-brand {
        font-size: 14px !important;
        letter-spacing: 0 !important;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    p {
        font-size: 12px;
        line-height: 20px;
    }
}

/* Landscape orientation adjustments for phones */
@media (max-width: 767px) and (orientation: landscape) {
    .space-bottom {
        height: 30px;
    }
    
    .main-low-margin {
        margin-top: 15px;
    }
}
