/* ===================================
   PIONEERSX - RESPONSIVE STYLESHEET
   ================================== */

/* ===================================
   DESKTOP FIRST APPROACH
   ================================== */

/* ===================================
   LARGE DESKTOPS (1400px and up)
   ================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero .tagline {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ===================================
   TABLETS & SMALL DESKTOPS (768px - 1024px)
   ================================== */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Medical Grid */
    .medical-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step::after {
        display: none;
    }
    
    /* Contact Container */
    .contact-container {
        gap: 40px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   TABLETS (768px - 991px)
   ================================== */
@media (max-width: 991px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.5rem;
    }
    
    /* Section Padding */
    .section {
        padding: 60px 0;
    }
    
    /* Section Title */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Contact Container */
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   MOBILE DEVICES (576px - 767px)
   ================================== */
@media (max-width: 767px) {
    /* Hero Section */
    .hero {
        padding: 80px 20px 40px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Navigation */
    .logo {
        font-size: 24px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-number {
        font-size: 2rem;
        top: 15px;
        left: 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-top: 20px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    /* Medical Grid */
    .medical-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .medical-card {
        padding: 30px 20px;
    }
    
    .medical-icon {
        font-size: 3rem;
    }
    
    .medical-title {
        font-size: 1.2rem;
    }
    
    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-card {
        padding: 30px 20px;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }
    
    .process-icon {
        font-size: 2.5rem;
    }
    
    .process-title {
        font-size: 1.2rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Clients Grid */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .client-logo {
        height: 100px;
        padding: 20px;
    }
    
    .client-logo i {
        font-size: 2rem;
    }
    
    /* Case Studies */
    .case-study {
        padding: 25px;
    }
    
    .case-study-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .case-study-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .case-study-title {
        font-size: 1.2rem;
    }
    
    .case-study-results {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-number {
        font-size: 1.3rem;
    }
    
    .result-label {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 25px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    /* CTA Section */
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    /* Contact Section */
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 80px;
        right: 20px;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===================================
   SMALL MOBILE DEVICES (up to 575px)
   ================================== */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .tagline {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Service Card */
    .service-title {
        font-size: 1.2rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
    
    /* Medical Card */
    .medical-title {
        font-size: 1.1rem;
    }
    
    .medical-description {
        font-size: 0.9rem;
    }
    
    /* Team Card */
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-role {
        font-size: 0.9rem;
    }
    
    .team-bio {
        font-size: 0.9rem;
    }
    
    /* Process */
    .process-title {
        font-size: 1.1rem;
    }
    
    .process-items li {
        font-size: 0.9rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Clients Grid */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .client-logo {
        height: 80px;
        padding: 15px;
    }
    
    .client-logo i {
        font-size: 1.5rem;
    }
    
    /* Case Studies */
    .case-study {
        padding: 20px;
    }
    
    .case-study-title {
        font-size: 1.1rem;
    }
    
    .case-study-content {
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonial {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* CTA */
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.3rem;
    }
    
    /* Footer */
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* ===================================
   EXTRA SMALL DEVICES (up to 375px)
   ================================== */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero .tagline {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .service-icon,
    .medical-icon {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 70px;
        right: 15px;
    }
    
    .scroll-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}

/* ===================================
   LANDSCAPE MODE (Mobile)
   ================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 20px 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ===================================
   HIDE CUSTOM CURSOR ON TOUCH DEVICES
   ================================== */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    body,
    * {
        cursor: auto !important;
    }
}

/* ===================================
   PRINT STYLES
   ================================== */
@media print {
    /* Hide unnecessary elements */
    nav,
    .whatsapp-float,
    .scroll-top,
    .loader,
    .hero-buttons,
    .btn,
    .mobile-menu-toggle,
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    
    /* Adjust colors for printing */
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    /* Show links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ===================================
   HIGH CONTRAST MODE
   ================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #ff0000;
        --text-gray: #999999;
        --border-color: #555555;
    }
    
    .btn,
    .service-card,
    .medical-card,
    .team-card {
        border-width: 2px;
    }
}

/* ===================================
   DARK MODE SUPPORT
   ================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add adjustments if needed */
    :root {
        --darker-bg: #000000;
        --dark-bg: #0a0a0a;
    }
}
