/* Responsive Styles for InfoTrenz Solutions */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) {
    .hero-stats {
        justify-content: flex-start;
    }
    
    .service-card {
        min-height: 420px;
    }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) {
    .navbar-nav {
        margin-left: auto;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) {
    .hero-description {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .about-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .experience-badge {
        position: static;
        margin-top: 2rem;
        display: inline-block;
    }
    
    .service-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tech-category {
        text-align: center;
    }
    
    .tech-items {
        justify-content: center;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .footer-section {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: 25px;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-form .btn {
        border-radius: 25px;
        width: 100%;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border: none;
        box-shadow: var(--shadow);
    }
    
    .hero-image {
        margin-top: 3rem;
        text-align: center;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        padding-left: 0;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        margin-bottom: 1rem;
    }
}

/* Landscape Phone (667px and below) */
@media (max-width: 667px) {
    .hero-section {
        min-height: 80vh;
        padding: 100px 0 50px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
}

/* Very Small Devices (480px and below) */
@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .tech-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .footer-section {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer-section,
    .contact-section,
    .btn {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('../images/hero-bg-2x.jpg');
    }
    
    .navbar-brand .logo {
        content: url('../images/logo-2x.png');
    }
}

/* Dark Mode Support (if needed in future) */
/* @media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e5e7eb;
        --dark-color: #f9fafb;
        --light-color: #374151;
        --border-color: #4b5563;
    }
} */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
