/* Responsive styles for NAV YUG */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .impact-number {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-quote {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .impact-number {
        font-size: 2.8rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .testimonial-quote {
        font-size: 1.2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .service-card {
        padding: 2.2rem;
    }
    
    .impact-number {
        font-size: 2.8rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        margin: 0.2rem 0;
    }
    
    .hero-actions .btn {
        margin: 0.5rem;
    }
    
    .carousel-control-prev {
        left: -40px;
    }
    
    .carousel-control-next {
        right: -40px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .service-card {
        padding: 2.3rem;
    }
    
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .service-card {
        padding: 3rem;
    }
    
    .impact-number {
        font-size: 3.5rem;
    }
}

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-light);
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.2rem 0;
    }
    
    .nav-link:hover {
        background: rgba(0, 122, 255, 0.1);
    }
    
    .nav-link.btn {
        background: var(--primary-color);
        color: white !important;
        text-align: center;
        margin-top: 1rem;
    }
}

/* Hero section responsive */
@media (max-width: 991.98px) {
    .hero-section .row {
        text-align: center;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
    
    .hero-stats {
        margin-top: 3rem;
    }
    
    .stat-item {
        margin-bottom: 2rem;
    }
}

/* Service cards responsive grid */
@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .row > [class*="col-lg-4"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Impact cards responsive */
@media (max-width: 767.98px) {
    .impact-card {
        margin-bottom: 2rem;
    }
    
    .row > [class*="col-lg-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    .contact-form .row > div {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 3rem;
    }
}

/* Footer responsive */
@media (max-width: 991.98px) {
    .footer .row > div {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer .text-end {
        text-align: center !important;
    }
}

/* Modal responsive */
@media (max-width: 767.98px) {
    .modal-dialog {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body .row > div {
        margin-bottom: 2rem;
    }
}

/* Utility responsive classes */
.text-sm-center {
    text-align: center;
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: left !important;
    }
    
    .text-md-end {
        text-align: right !important;
    }
}

/* Spacing adjustments for different screen sizes */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .mb-mobile-4 {
        margin-bottom: 1.5rem;
    }
    
    .mt-mobile-3 {
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Hide/show elements based on screen size */
@media (max-width: 767.98px) {
    .d-none-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Animation adjustments for mobile */
@media (max-width: 767.98px) {
    .floating-card {
        animation: none;
    }
    
    .ios-button:hover {
        transform: none;
    }
    
    .glass-card:hover {
        transform: none;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .ios-button:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .glass-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .service-card::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .hero-actions,
    .contact-form {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        background: white !important;
    }
    
    .text-gradient {
        color: var(--text-primary) !important;
        -webkit-text-fill-color: initial;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ddd;
    }
}