/* Responsive Design */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-card.featured {
        grid-column: span 2;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Landscape (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        justify-content: flex-start;
        align-items: center;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        padding: 1rem 0;
        min-height: 90vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .floating-card {
        padding: 0.8rem;
        font-size: 0.8rem;
        border-radius: 12px;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .card-1 {
        top: 15%;
        left: 5%;
    }
    
    .card-2 {
        top: 45%;
        right: 10%;
    }
    
    .card-3 {
        bottom: 15%;
        left: 20%;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-text h3 {
        font-size: 1.25rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card.featured {
        grid-column: span 1;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-card.featured .blog-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-content h3 {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Extra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1rem;
    }
    
    .floating-card {
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .floating-card i {
        font-size: 0.9rem;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 200px;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .blog-card {
        page-break-inside: avoid;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-primary: #000000;
        --text-secondary: #333333;
        --background-primary: #ffffff;
        --border-color: #000000;
    }
    
    .btn-primary {
        background: #000080;
        color: white;
        border: 2px solid #000080;
    }
    
    .btn-secondary {
        background: white;
        color: #000080;
        border: 2px solid #000080;
    }
}

/* 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;
    }
    
    .floating-card,
    .scroll-arrow,
    .pulse,
    .floating {
        animation: none;
    }
}

/* Dark Mode Support */
body.dark-mode {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --background-primary: #0f172a;
    --background-secondary: #1e293b;
    --border-color: #334155;
}

body.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: var(--border-color);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .service-card,
body.dark-mode .blog-card,
body.dark-mode .contact-form {
    background: var(--background-secondary);
    border-color: var(--border-color);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: var(--background-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

body.dark-mode .theme-toggle {
    color: var(--text-primary);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

/* Dark Mode - Additional Elements */
body.dark-mode .nav-link {
    color: var(--text-primary);
}

body.dark-mode .nav-link:hover {
    color: var(--primary-light);
}

body.dark-mode .hero-title {
    color: var(--text-primary);
}

body.dark-mode .hero-description {
    color: var(--text-secondary);
}

body.dark-mode .section-title {
    color: var(--text-primary);
}

body.dark-mode .section-subtitle {
    color: var(--text-secondary);
}

body.dark-mode .about-text h3 {
    color: var(--primary-light);
}

body.dark-mode .about-text p {
    color: var(--text-secondary);
}

body.dark-mode .service-card h3 {
    color: var(--text-primary);
}

body.dark-mode .service-card p {
    color: var(--text-secondary);
}

body.dark-mode .blog-content h3 {
    color: var(--text-primary);
}

body.dark-mode .blog-content p {
    color: var(--text-secondary);
}

body.dark-mode .blog-meta {
    color: var(--text-light);
}

body.dark-mode .read-more {
    color: var(--primary-light);
}

body.dark-mode .contact-details h4 {
    color: var(--text-primary);
}

body.dark-mode .contact-details p {
    color: var(--text-secondary);
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4 {
    color: white;
}

body.dark-mode .footer-section p {
    color: #94a3b8;
}

body.dark-mode .footer-section ul li a {
    color: #94a3b8;
}

body.dark-mode .footer-section ul li a:hover {
    color: white;
}

body.dark-mode .footer-bottom p {
    color: #94a3b8;
}

body.dark-mode .signature p {
    color: #94a3b8;
}

body.dark-mode .stat-item p {
    color: var(--text-secondary);
}

body.dark-mode .coverage-stat p {
    color: var(--text-secondary);
}

body.dark-mode .floating-card {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

body.dark-mode .floating-card i {
    color: var(--primary-light);
}

/* Dark Mode - Coverage Section */
body.dark-mode .coverage {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode .world-map {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
}

body.dark-mode .world-map-bg {
    filter: grayscale(100%) brightness(1.3) contrast(0.9);
    opacity: 0.8;
}

body.dark-mode .coverage-stat {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
}

body.dark-mode .coverage-stat h3 {
    color: var(--primary-light);
}

body.dark-mode .coverage-stat p {
    color: var(--text-secondary);
}

/* Dark Mode - Logo */
body.dark-mode .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

/* WhatsApp Button Responsive */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 65px;
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 22px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Global Coverage Responsive */
@media (max-width: 768px) {
    .world-map-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .coverage-stats {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .coverage-stat {
        padding: 1.5rem 1rem;
    }
    
    .coverage-stat h3 {
        font-size: 2rem;
    }
    
    .world-map {
        padding: 1rem;
    }
    
    .world-map-image {
        max-height: 250px;
        padding: 1rem;
    }
    
    .country-glow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .coverage-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .coverage-stat h3 {
        font-size: 1.8rem;
    }
    
    .world-map {
        padding: 0.5rem;
    }
    
    .world-map-image {
        max-height: 200px;
        padding: 0.5rem;
    }
    
    .country-glow {
        width: 35px;
        height: 35px;
    }
}

