/* ============================================
   GrowthPro Landing Page - Mobile Styles
   Enhanced Mobile Optimization
   ============================================ */

/* Mobile Breakpoints */
@media (max-width: 768px) {
    
    /* ============================================
       Mobile Navigation
       ============================================ */
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left var(--transition-normal);
        gap: 1rem;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 80%;
        text-align: center;
        border-radius: var(--border-radius-lg);
    }
    
    .nav-link.cta-nav {
        margin-top: 1rem;
    }
    
    /* ============================================
       Mobile Hero Section
       ============================================ */
    
    .hero {
        padding-top: 70px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        margin-bottom: 3rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 1.25rem 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    /* ============================================
       Mobile Benefits Section
       ============================================ */
    
    .benefits-section {
        padding: 3rem 1rem;
    }
    
    .benefits-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        grid-template-columns: none;
    }
    
    .benefit-card {
        min-width: 280px;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .benefit-card h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Hide scrollbar but keep functionality */
    .benefits-slider::-webkit-scrollbar {
        display: none;
    }
    
    .benefits-slider {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* ============================================
       Mobile Jobs Section
       ============================================ */
    
    .jobs-section {
        padding: 3rem 1rem;
    }
    
    .job-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-sm);
        flex: 1;
        min-width: auto;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .job-card {
        margin: 0;
    }
    
    .job-header {
        padding: 1.25rem;
    }
    
    .job-title {
        font-size: var(--font-size-lg);
    }
    
    .job-content {
        padding: 1.25rem;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .job-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .skills-list {
        gap: 0.25rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* ============================================
       Mobile Feedback Section
       ============================================ */
    
    .feedback-section {
        padding: 3rem 1rem;
    }
    
    .feedback-feed {
        height: 350px;
        padding: 0.75rem;
    }
    
    .feedback-item {
        margin-bottom: 1.25rem;
    }
    
    .feedback-avatar {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
        font-size: var(--font-size-sm);
    }
    
    .feedback-bubble {
        padding: 0.75rem;
    }
    
    .feedback-message {
        font-size: var(--font-size-sm);
    }
    
    .feedback-meta {
        font-size: 0.75rem;
    }
    
    /* ============================================
       Mobile Application Form
       ============================================ */
    
    .apply-section {
        padding: 3rem 1rem;
    }
    
    .application-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .file-upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-content i {
        font-size: 1.5rem;
    }
    
    .form-actions {
        gap: 1rem;
    }
    
    .submit-btn,
    .whatsapp-btn {
        padding: 1.25rem 2rem;
        font-size: var(--font-size-base);
    }
    
    /* ============================================
       Mobile About Section
       ============================================ */
    
    .about-section {
        padding: 3rem 1rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .company-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .highlight-item {
        padding: 0.75rem;
        min-width: auto;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    /* ============================================
       Mobile Contact Section
       ============================================ */
    
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-card h3 {
        font-size: var(--font-size-lg);
    }
    
    /* ============================================
       Mobile Footer
       ============================================ */
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        font-size: var(--font-size-xl);
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
    
    /* ============================================
       Mobile Modal Adjustments
       ============================================ */
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
    
    .modal-content h3 {
        font-size: var(--font-size-lg);
    }
    
    /* ============================================
       Mobile Typography Adjustments
       ============================================ */
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: 2rem;
    }
    
    /* ============================================
       Mobile Touch Optimizations
       ============================================ */
    
    /* Increase touch target sizes */
    .job-btn,
    .contact-btn,
    .cta-button,
    .filter-btn,
    .nav-link,
    .modal-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve scroll behavior */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Better focus states for mobile */
    input:focus,
    select:focus,
    textarea:focus,
    button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* ============================================
       Mobile Performance Optimizations
       ============================================ */
    
    /* Reduce animations on mobile for better performance */
    .hero-particles {
        animation-duration: 8s;
    }
    
    .loading-spinner {
        animation-duration: 1.5s;
    }
    
    /* Optimize hover states for touch devices */
    .benefit-card:hover,
    .job-card:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    /* Better button press feedback */
    .cta-button:active,
    .job-btn:active,
    .contact-btn:active,
    .submit-btn:active {
        transform: scale(0.98);
    }
}

/* ============================================
   Small Mobile (iPhone SE and similar)
   ============================================ */

@media (max-width: 375px) {
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .benefit-card {
        min-width: 260px;
        padding: 1.25rem;
    }
    
    .job-header {
        padding: 1rem;
    }
    
    .job-content {
        padding: 1rem;
    }
    
    .application-form {
        padding: 1.25rem;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
}

/* ============================================
   Mobile Landscape Optimizations
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        margin-bottom: 1rem;
    }
    
    .benefits-section,
    .jobs-section,
    .feedback-section,
    .apply-section,
    .about-section,
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .feedback-feed {
        height: 300px;
    }
}

/* ============================================
   Tablet Adjustments
   ============================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    
    .hero-title {
        font-size: 3rem;
    }
    
    .benefits-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Dark Mode Support (for mobile browsers that support it)
   ============================================ */

@media (prefers-color-scheme: dark) and (max-width: 768px) {
    
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu {
        background: rgba(31, 41, 55, 0.98);
    }
    
    .benefit-card,
    .job-card,
    .contact-card,
    .application-form,
    .feedback-feed {
        background: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .file-upload-area {
        background: var(--bg-primary);
        border-color: rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
    }
}

/* ============================================
   Accessibility Improvements for Mobile
   ============================================ */

@media (max-width: 768px) {
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .cta-button,
        .job-btn,
        .contact-btn {
            border: 2px solid currentColor;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .hero-particles,
        .loading-spinner,
        .scroll-indicator {
            animation: none;
        }
        
        .benefit-card,
        .job-card,
        .contact-card {
            transition: none;
        }
    }
    
    /* Focus indicators for keyboard navigation */
    .nav-link:focus,
    .cta-button:focus,
    .job-btn:focus,
    .contact-btn:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ============================================
   Mobile-Specific Animations
   ============================================ */

@media (max-width: 768px) {
    
    /* Slide in animation for cards */
    .benefit-card,
    .job-card,
    .contact-card {
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.6s ease-out forwards;
    }
    
    .benefit-card:nth-child(2) { animation-delay: 0.1s; }
    .benefit-card:nth-child(3) { animation-delay: 0.2s; }
    .benefit-card:nth-child(4) { animation-delay: 0.3s; }
    
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Smooth scroll for mobile navigation */
    html {
        scroll-padding-top: 80px;
    }
}