/* Responsive Styles for JVX Solutions Website */

/* Base responsive settings */
html {
    font-size: 16px; /* Base font size for responsive typography */
}

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

/* Responsive typography */
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
}

/* Images and media */
img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-content {
        padding: 60px 0;
    }
    
    .services-grid, .platform-cards, .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 40px;
        padding-right: 0;
    }
    
    .hero-image {
        width: 80%;
        margin: 0 auto;
    }
    
    .services-grid, .platform-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .video-content {
        flex-direction: column;
    }
    
    .video-description {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        padding-right: 0;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    /* Adjust form button layout */
    .contact-form .btn {
        min-width: 150px !important;
    }
    
    .platform-tabs {
        flex-wrap: wrap;
    }
    
    .platform-tab {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }
}

/* Mobile (576px to 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    /* Make header smaller on mobile while keeping logo prominent */
    .logo svg {
        width: 120px !important;
        height: 40px !important;
    }
    
    .logo-text {
        font-size: 22px !important;
    }
    
    .logo-subtext {
        font-size: 10px !important;
    }
    
    /* Reduce header height */
    header {
        min-height: auto !important;
        padding: 5px 0 !important;
    }
    
    /* Adjust nav links to make header more compact */
    .nav-links a {
        padding: 4px 8px !important;
        font-size: 0.85rem !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 10px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .services-grid, .platform-cards, .team-grid, .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card, .platform-card, .team-member, .pricing-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .platform-content-header {
        flex-direction: column;
        text-align: center;
    }
    
    /* Platform icon styles moved to pricing-responsive.css */
    
    .platform-tab {
        flex: 0 0 100%;
    }
    
    .cta-content {
        padding: 30px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    /* Fix for pricing plans */
    .row.d-flex.justify-content-center {
        flex-wrap: wrap !important;
    }
    
    .col-lg-4.col-md-4 {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    /* Make cards more compact on mobile */
    [style*="padding: 25px"] {
        padding: 15px !important;
    }
    
    /* Reduce font sizes in pricing plans */
    [style*="font-size: 2.8rem"] {
        font-size: 2rem !important;
    }
    
    [style*="font-size: 1.8rem"] {
        font-size: 1.5rem !important;
    }
    
    [style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
    
    /* Contact form responsive styles */
    .contact-form {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    .contact-detail {
        padding: 15px;
    }
    
    .contact-detail i {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
    
    /* Form input fields */
    .form-group input, 
    .form-group textarea {
        padding: 12px 15px !important;
    }
    
    /* Form buttons */
    .contact-form .btn {
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    html {
        font-size: 13px;
    }
    
    /* Stack contact form buttons on very small screens */
    .contact-form div[style*="display: flex; flex-wrap: wrap"] {
        flex-direction: column;
    }
    
    .contact-form .btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .video-tagline h2 {
        font-size: 1.4rem;
    }
    
    .video-text h3 {
        font-size: 1.8rem;
    }
    
    .dashboard-graphic {
        display: none;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Fix for grid layouts where not supported */
@supports not (display: grid) {
    .services-grid, .platform-cards, .team-grid, .pricing-cards {
        display: flex;
        flex-wrap: wrap;
    }
    
    .service-card, .platform-card, .team-member, .pricing-card {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    @media (min-width: 768px) {
        .service-card, .platform-card, .team-member, .pricing-card {
            flex: 0 0 calc(50% - 20px);
            margin-right: 20px;
        }
    }
    
    @media (min-width: 992px) {
        .service-card, .platform-card, .team-member, .pricing-card {
            flex: 0 0 calc(33.333% - 20px);
        }
    }
}

/* Mobile navigation menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary-color);
    z-index: 1000;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Fix for flex layouts */
.flex-container {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .flex-container {
        flex-direction: column;
    }
}

/* Fix for fixed positioning on mobile */
@media (max-width: 767px) {
    .sticky-header {
        position: relative !important;
    }
}

/* Utility classes for responsive design */
.hide-on-mobile {
    display: block;
}

.show-on-mobile {
    display: none;
}

@media (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }
    
    .show-on-mobile {
        display: block;
    }
}

/* Responsive table styles */
@media (max-width: 767px) {
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}
