/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-contact {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .activities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding-top: 160px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .services-overview,
    .about-section,
    .main-activities-section {
        padding: 3rem 0;
    }
    
    .services-grid,
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Services Detailed Page Mobile Layout */
    .services-detailed {
        padding: 3rem 0;
    }
    
    .service-section {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
    
    .service-content.reverse > * {
        direction: ltr;
    }
    
    .service-text {
        order: 1;
    }
    
    .service-image {
        order: 2;
    }
    
    .service-icon-large {
        margin: 0 auto 1.5rem;
        width: 80px;
        height: 80px;
    }
    
    .service-icon-large i {
        font-size: 2.5rem;
    }
    
    .service-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .service-features h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-features ul {
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .ports-grid,
    .airports-grid,
    .routes-grid,
    .border-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .port-item,
    .airport-item,
    .route-item,
    .border-post-item {
        padding: 1rem;
    }
    
    .port-item h4,
    .airport-item h4,
    .route-item h4,
    .border-post-item h4 {
        font-size: 1rem;
    }
    
    .port-item p,
    .airport-item p,
    .route-item p,
    .border-post-item p {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-cta {
        padding: 3rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .tracking-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tracking-input-group input[type="text"] {
        width: 100%;
    }
    
    .tracking-input-group button {
        width: 100%;
        justify-content: center;
    }
    
    /* Contact Page Mobile Layout */
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .contact-form-section p {
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        font-weight: 600;
        color: #333;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: #1e3c72;
        box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .contact-info-grid {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #1e3c72;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
        color: white;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: #1e3c72;
        font-weight: 600;
    }
    
    .contact-details p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }
    
    .contact-details a {
        color: #1e3c72;
        text-decoration: none;
        font-weight: 500;
    }
    
    .contact-details a:hover {
        text-decoration: underline;
    }
    
    .european-representative,
    .european-partner {
        margin-top: 2rem;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #2a5298;
    }
    
    .european-representative h3,
    .european-partner h3 {
        font-size: 1.2rem;
        color: #2a5298;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .rep-info p,
    .partner-info p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: #666;
        line-height: 1.4;
    }
    
    .rep-info strong,
    .partner-info strong {
        color: #1e3c72;
        font-weight: 600;
    }
    
    .rep-info a,
    .partner-info a {
        color: #1e3c72;
        text-decoration: none;
        font-weight: 500;
    }
    
    .rep-info a:hover,
    .partner-info a:hover {
        text-decoration: underline;
    }
    
    /* Locations Section Mobile */
    .locations-section {
        padding: 3rem 0;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .location-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .location-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    .location-icon i {
        font-size: 2rem;
    }
    
    .location-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .location-type {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .location-address {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .location-contact p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    /* Map Section Mobile */
    .map-section {
        padding: 3rem 0;
    }
    
    .map-placeholder {
        padding: 2rem 1rem;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
    
    .map-placeholder h3 {
        font-size: 1.3rem;
    }
    
    .map-placeholder p {
        font-size: 0.9rem;
    }
    
    /* FAQ Section Mobile */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    /* Services Detailed Page Mobile Small */
    .service-section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .service-content {
        gap: 1.5rem;
    }
    
    .service-icon-large {
        width: 70px;
        height: 70px;
        margin: 0 auto 1rem;
    }
    
    .service-icon-large i {
        font-size: 2rem;
    }
    
    .service-text h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .service-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .service-features h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .port-item,
    .airport-item,
    .route-item,
    .border-post-item {
        padding: 0.8rem;
    }
    
    .port-item h4,
    .airport-item h4,
    .route-item h4,
    .border-post-item h4 {
        font-size: 0.95rem;
    }
    
    .port-item p,
    .airport-item p,
    .route-item p,
    .border-post-item p {
        font-size: 0.85rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .mission-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info .contact-item {
        font-size: 0.9rem;
    }
    
    /* Contact Page Mobile Small */
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.6rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .contact-info-item {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.3rem;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
    
    .european-representative,
    .european-partner {
        padding: 1.2rem;
    }
    
    .european-representative h3,
    .european-partner h3 {
        font-size: 1.1rem;
    }
    
    .rep-info p,
    .partner-info p {
        font-size: 0.85rem;
    }
    
    .location-card {
        padding: 1.2rem;
    }
    
    .location-icon {
        width: 60px;
        height: 60px;
    }
    
    .location-icon i {
        font-size: 1.8rem;
    }
    
    .location-card h3 {
        font-size: 1.2rem;
    }
    
    .location-address {
        font-size: 0.85rem;
    }
    
    .location-contact p {
        font-size: 0.8rem;
    }
    
    .map-placeholder {
        padding: 1.5rem 1rem;
    }
    
    .map-placeholder i {
        font-size: 2.5rem;
    }
    
    .map-placeholder h3 {
        font-size: 1.2rem;
    }
    
    .map-placeholder p {
        font-size: 0.85rem;
    }
    
    .faq-question {
        padding: 0.8rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 0 0.8rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Services Detailed Page Mobile Extra Small */
    .service-section {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .service-content {
        gap: 1rem;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
        margin: 0 auto 0.8rem;
    }
    
    .service-icon-large i {
        font-size: 1.8rem;
    }
    
    .service-text h2 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .service-features h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .port-item,
    .airport-item,
    .route-item,
    .border-post-item {
        padding: 0.6rem;
    }
    
    .port-item h4,
    .airport-item h4,
    .route-item h4,
    .border-post-item h4 {
        font-size: 0.9rem;
    }
    
    .port-item p,
    .airport-item p,
    .route-item p,
    .border-post-item p {
        font-size: 0.8rem;
    }
    
    .about-text h2 {
        font-size: 1.3rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    /* Contact Page Mobile Extra Small */
    .contact-form-section h2,
    .contact-info-section h2 {
        font-size: 1.4rem;
    }
    
    .contact-form-section p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-details h3 {
        font-size: 0.95rem;
    }
    
    .contact-details p {
        font-size: 0.8rem;
    }
    
    .european-representative,
    .european-partner {
        padding: 1rem;
    }
    
    .european-representative h3,
    .european-partner h3 {
        font-size: 1rem;
    }
    
    .rep-info p,
    .partner-info p {
        font-size: 0.8rem;
    }
    
    .location-card {
        padding: 1rem;
    }
    
    .location-icon {
        width: 50px;
        height: 50px;
    }
    
    .location-icon i {
        font-size: 1.5rem;
    }
    
    .location-card h3 {
        font-size: 1.1rem;
    }
    
    .location-type {
        font-size: 0.8rem;
    }
    
    .location-address {
        font-size: 0.8rem;
    }
    
    .location-contact p {
        font-size: 0.75rem;
    }
    
    .map-placeholder {
        padding: 1rem;
    }
    
    .map-placeholder i {
        font-size: 2rem;
    }
    
    .map-placeholder h3 {
        font-size: 1.1rem;
    }
    
    .map-placeholder p {
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 0.7rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-answer {
        padding: 0 0.7rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-buttons {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
        background: white !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: black !important;
    }
    
    .services-overview,
    .about-section,
    .stats-section,
    .contact-cta {
        background: white !important;
        color: black !important;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .stats-section {
        background: #f8f9fa !important;
        color: black !important;
    }
    
    .stat-number,
    .stat-label {
        color: black !important;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('../images/truck.jpg');
    }
    
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Mobile logo sizing */
    @media (max-width: 767px) {
        .logo-img {
            height: 60px;
        }
        
        .footer-logo-img {
            height: 50px;
        }
    }
    
    @media (max-width: 480px) {
        .logo-img {
            height: 50px;
        }
        
        .footer-logo-img {
            height: 40px;
        }
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .service-card:hover,
    .btn:hover,
    .back-to-top:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be expanded later for dark mode support */
    .header {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .nav-link {
        color: #f0f0f0;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #4a9eff;
    }
}

/* Team Page Responsive Styles */
@media (min-width: 1024px) {
    .team-grid {
        flex-wrap: nowrap;
        justify-content: space-around;
    }
    
    .team-member {
        flex: 0 0 280px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .team-member {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    
    .team-member {
        margin: 0 1rem;
    }
    
    .member-photo {
        height: 200px;
    }
    
    .member-img {
        width: 70%;
        height: 70%;
    }
    
    .member-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .member-placeholder i {
        font-size: 2.5rem;
    }
    
    .member-info {
        padding: 1.5rem;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-position {
        font-size: 1rem;
    }
    
    .member-skills {
        justify-content: center;
    }
    
    /* Partners Static Mobile */
    .partners-static-container {
        margin: 2rem 1rem 0;
    }
    
    .partners-grid {
        gap: 2rem;
    }
    
    .partner-link {
        min-width: 160px;
        height: 150px;
        padding: 1.5rem;
    }
    
    .partner-icon {
        width: 60px;
        height: 60px;
    }
    
    .partner-icon i {
        font-size: 1.5rem;
    }
    
    .partner-info h3 {
        font-size: 1.1rem;
    }
    
    .partner-info p {
        font-size: 0.8rem;
    }
    
    .team-cta {
        padding: 3rem 0;
    }
    
    .team-cta h2 {
        font-size: 1.8rem;
    }
    
    .team-cta p {
        font-size: 1rem;
    }
    
    .team-cta .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 3rem 0;
    }
    
    .partners-section {
        padding: 3rem 0;
    }
    
    .member-photo {
        height: 180px;
    }
    
    .member-img {
        width: 60%;
        height: 60%;
    }
    
    .member-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .member-placeholder i {
        font-size: 2rem;
    }
    
    .member-info {
        padding: 1rem;
    }
    
    .member-info h3 {
        font-size: 1.2rem;
    }
    
    .member-position {
        font-size: 0.9rem;
    }
    
    .member-description {
        font-size: 0.9rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .partner-link {
        min-width: 140px;
        height: 130px;
        padding: 1rem;
    }
    
    .partner-icon {
        width: 50px;
        height: 50px;
    }
    
    .partner-icon i {
        font-size: 1.2rem;
    }
    
    .partner-info h3 {
        font-size: 1rem;
    }
    
    .partner-info p {
        font-size: 0.75rem;
    }
    
    .partners-grid {
        gap: 1.5rem;
    }
    
    .team-cta h2 {
        font-size: 1.5rem;
    }
    
    .team-cta p {
        font-size: 0.9rem;
    }
}