/* Responsive CSS for Digiex Portfolio */

/* ==========================================
   Base Responsive Rules
   ========================================== */

/* Large Devices (Desktops & Laptops) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Typography Adjustments */
    h1, .display-1 { font-size: 2.5rem !important; }
    h2, .display-2 { font-size: 2rem !important; }
    h3, .display-3 { font-size: 1.75rem !important; }
    h4, .display-4 { font-size: 1.5rem !important; }
    
    /* General Spacing */
    section {
        padding: 20px 0;
    }
    
    .p-5 {
        padding: 2rem !important;
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    /* Navbar Mobile */
    .navbar-collapse {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Card Adjustments */
    .card {
        margin-bottom: 20px;
    }
    
    /* Text Alignment */
    .text-center-md {
        text-align: center !important;
    }
    
    .text-start-md {
        text-align: left !important;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
        display: block;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 10px !important;
    }
    
    /* Topnav Logo */
    header .container {
        text-align: center !important;
    }

    header img {
        width: auto !important;
        max-width: 120px;
        display: inline-block; /* Changed to inline-block to respect text-center */
        margin-bottom: 15px;
        margin-top: 30px !important;
    }
    
    /* Footer */
    footer .col-md-3, 
    footer .col-md-4,
    footer .col-lg-5,
    footer .col-lg-7 {
        margin-bottom: 15px;
        text-align: center !important;
    }
    
    .footercopyright1 {
        text-align: center !important;
    }
    
    footer .d-flex {
        justify-content: center;
    }

    /* Premium Sections Mobile */
    .intro-section, .commitment-section {
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }

    .intro-title, .commitment-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }

    .intro-subtitle, .commitment-desc {
        font-size: 0.95rem !important;
    }

    .commitment-section {
        margin-top: 1.5rem !important;
        padding: 2rem 1rem !important;
    }

    /* Fix gap between logo and welcome text */
    /* Fix gap between logo and welcome text */
    header section {
        padding-top: 1rem !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    
    .packages-showcase {
        padding-top: 40px !important;
    }

    .intro-section {
        margin-top: 0.75rem !important;
        padding-top: 0 !important;
    }
}
