/* Professional Mobile Styling for NN IT Solution */

/* Fix for navigation spacing */
@media (max-width: 992px) {
    /* Fix content overlap with fixed navbar */
    body {
        padding-top: 250px;
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Add space to the top of hero section */
    .hero {
        padding-top: 30px;
    }
    
    /* Professional typography for mobile */
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    p {
        margin-bottom: 15px;
    }
    
    /* Improve spacing between sections */
    section + section {
        margin-top: -20px;
    }
    
    /* Fix for images on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Professional button styling for mobile */
    a, button, .btn, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        border-radius: 6px;
        transition: all 0.3s ease;
        font-weight: 600;
        letter-spacing: 0.5px;
    }
    
    .btn {
        padding: 12px 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        text-transform: uppercase;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        background-color: #ffff; /*var(--primary-color);*/
        /* border: 2px solid var(--primary-color); */
        border: 2px solid #ffff;
    }
    
    .btn-primary:hover {
        background-color: transparent;
        color: #ffff;
    }
    
    .btn-secondary {
        background-color: transparent;
        border: 2px solid var(--primary-color);
        color: var(--primary-color);
    }
    
    .btn-secondary:hover {
        background-color: var(--primary-color);
        color: white;
    }
    
    /* Fix for long text overflow */
    p, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Professional form styling for mobile */
    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    
    input, textarea, select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    input:focus, textarea:focus, select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.1);
        outline: none;
    }
    
    label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #333;
    }
    
    /* Professional card styling */
    .card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        background: white;
        margin-bottom: 20px;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: #222;
    }
    
    /* Improve spacing in contact section */
    .contact-content {
        align-items: flex-start;
    }
    
    /* Fix for dropdown menu positioning */
    .dropdown-content {
        min-width: 200px;
        right: 0;
        left: auto;
    }
}

/* Fixes for smaller devices */
@media (max-width: 576px) {
    /* Improve readability */
    body {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Fix button alignment */
    .btn {
        text-align: center;
    }
    
    /* Fix image display in contact section */
    .equal-height .contact-image {
        min-height: auto;
        height: 220px;
    }
    
    /* Fix spacing in footer */
    .footer-links h4 {
        margin-bottom: 15px;
    }
    
    /* Fix for mobile menu */
    .mobile-menu {
        margin-left: auto;
    }
    
    /* Fix for CAPTCHA display */
    .captcha-image {
        max-width: 100%;
    }
    
    .captcha-image img {
        max-width: calc(100% - 40px);
    }
    
    /* Improve form spacing */
    .contact-form form {
        gap: 8px;
    }
}

/* Fix for landscape orientation */
@media (max-width: 992px) and (orientation: landscape) {
    .nav-links {
        height: 85vh;
        overflow-y: scroll;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
    }
}
