/* Tekique Responsive Styles */

/* Logo Responsive Sizing */
.navbar-brand img {
    height: 60px;
    transition: all 0.3s ease;
}

.footer-logo img {
    height: 55px;
    transition: all 0.3s ease;
}

/* Mobile Devices (Portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 45px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    #ht-preloader .loader img {
        height: 55px !important;
    }
    
    /* Hero sections - reduce padding */
    section[style*="padding: 100px"] {
        padding: 60px 0 50px !important;
    }
    
    /* Display headings */
    h1.display-3, h1.display-4 {
        font-size: 2rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    /* Lead text */
    .lead {
        font-size: 1rem !important;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact cards */
    .contact-info-card {
        padding: 30px 20px;
    }
    
    /* Office cards */
    .office-card {
        padding: 20px;
    }
    
    /* Service feature cards */
    .service-feature-card {
        padding: 20px !important;
    }
    
    /* Tech category cards */
    .tech-category-card {
        padding: 30px !important;
        margin-bottom: 20px;
    }
    
    /* Forms */
    .form-control {
        font-size: 14px;
    }
    
    /* Hide "Get Started" button in navbar on mobile */
    .navbar .btn-primary.d-none.d-md-block {
        display: none !important;
    }
    
    /* Spacing adjustments */
    .mb-6 {
        margin-bottom: 2rem !important;
    }
    
    .mb-8 {
        margin-bottom: 3rem !important;
    }
    
    .py-11 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Navbar toggler */
    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.5);
        padding: 0.5rem 0.75rem;
    }
}

/* Tablets (Landscape phones and portrait tablets, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand img {
        height: 50px;
    }
    
    .footer-logo img {
        height: 45px;
    }
    
    #ht-preloader .loader img {
        height: 60px !important;
    }
    
    h1.display-3, h1.display-4 {
        font-size: 2.5rem !important;
    }
    
    section[style*="padding: 100px"] {
        padding: 80px 0 60px !important;
    }
}

/* Small tablets and large phones (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 55px;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    #ht-preloader .loader img {
        height: 65px !important;
    }
}

/* Large tablets and small desktops (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img {
        height: 58px;
    }
}

/* General responsive utilities */
@media (max-width: 991.98px) {
    /* Make images responsive */
    img:not(.navbar-brand img):not(.footer-logo img) {
        max-width: 100%;
        height: auto;
    }
    
    /* Stack service sections */
    .row.align-items-center .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Center text on smaller screens */
    .row.align-items-center {
        text-align: center;
    }
    
    .row.align-items-center .text-start {
        text-align: center !important;
    }
    
    /* Navbar dropdown */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    /* Make dropdown menus full width on mobile */
    .navbar-nav .dropdown-menu {
        width: 100%;
        border: none;
        box-shadow: none;
    }
}

/* Container padding on mobile */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .p-6 {
        padding: 2rem !important;
    }
    
    .p-5 {
        padding: 1.5rem !important;
    }
}

/* Responsive tables */
@media (max-width: 767.98px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for shapes/SVGs on mobile */
@media (max-width: 767.98px) {
    .shape-1 {
        height: 50px !important;
    }
}

/* Carousel/Slider responsive */
@media (max-width: 991.98px) {
    .carousel-item {
        min-height: 400px !important;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        min-height: 300px !important;
    }
}

/* Icon sizes responsive */
@media (max-width: 575.98px) {
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }
    
    .contact-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
    }
}

/* Newsletter form responsive */
@media (max-width: 575.98px) {
    .subscribe-form {
        padding: 2rem !important;
    }
    
    .subscribe-form h5 {
        font-size: 1.25rem;
    }
    
    .subscribe-form h6 {
        font-size: 1rem;
    }
}

/* Grid adjustments for mobile */
@media (max-width: 767.98px) {
    .col-lg-4, .col-lg-3, .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Ensure video/iframe embeds are responsive */
iframe {
    max-width: 100%;
}

/* Responsive font scaling */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.25rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container-fluid {
    overflow-x: hidden;
}

/* Make sure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive utility for hiding/showing elements */
@media (max-width: 767.98px) {
    .mobile-hide {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

