/* Mobile First Responsive Design */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 28px;
    }
    
    .lead {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 10px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .display-4 {
        font-size: 36px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .display-4 {
        font-size: 42px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 48px;
    }
}

/* Navigation responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
}

/* Card responsive */
@media (max-width: 767px) {
    .card {
        margin-bottom: 20px;
    }
    
    .row.g-4 > [class*="col-"] {
        margin-bottom: 20px;
    }
}

/* Table responsive */
@media (max-width: 767px) {
    .table-responsive {
        border: 0;
    }
    
    .table thead {
        display: none;
    }
    
    .table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    
    .table td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
    }
}

/* Form responsive */
@media (max-width: 767px) {
    .form-row .col {
        margin-bottom: 15px;
    }
    
    .form-control-lg {
        font-size: 16px;
    }
}