/* =====================================================
   MOBILE RESPONSIVE FIXES FOR SPLYRHIRES
   Add these styles to your existing styles-light.css
   ===================================================== */

/* ==================== TABLET BREAKPOINT (768px - 1024px) ==================== */
@media (max-width: 1024px) {
    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Journey Map */
    .journey-map-container {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-2xl);
    }

    .journey-map-step {
        max-width: 400px;
    }

    /* Conversion Section */
    .conversion-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .conversion-left {
        padding-right: 0;
        text-align: center;
    }

    .bullet-points li {
        justify-content: center;
    }

    .conversion-right {
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        margin: 0 auto;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Testimonials */
    .testimonials-masonry {
        column-count: 3;
        column-gap: 1rem;
    }
}

/* ==================== MOBILE BREAKPOINT (max-width: 768px) ==================== */
@media (max-width: 768px) {
    /* Root Variables Adjustments */
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }

    /* Container Padding */
    .container {
        padding: 0 1rem;
    }

    /* Notification Bar */
    .notification-bar {
        padding: 0.75rem 0;
    }

    .notification-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .notification-text {
        font-size: 0.85rem;
    }

    .capacity-meter {
        width: 100%;
        max-width: 200px;
    }

    /* Navigation */
    .navbar {
        height: 60px;
    }

    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-logo .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        display: none; /* Hide desktop nav on mobile */
    }

    /* Hero Section */
    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-container {
        padding: 0 1rem;
        gap: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .kinetic-text {
        display: block;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Dashboard 3D */
    .dashboard-3d {
        max-width: 100%;
    }

    .dashboard-base {
        padding: 0.75rem;
    }

    .dashboard-screen {
        padding: 0.75rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-box {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .notification-bubble {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    #notification-1,
    #notification-2 {
        position: static;
        display: none; /* Hide floating notifications on mobile */
    }

    /* Hiring Partners */
    .hiring-partners {
        padding: var(--spacing-lg) 0;
    }

    .partner-logo img {
        width: 80px;
        max-height: 60px;
        margin: 0 15px;
    }

    /* Journey Map Section */
    .journey-map-section {
        padding: var(--spacing-xl) 0;
    }

    .pipeline-header {
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .pipeline-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .journey-map-container {
        flex-direction: column;
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-xl);
    }

    .journey-map-step {
        max-width: 100%;
        width: 100%;
    }

    .journey-map-node {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .node-content h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .node-content p {
        font-size: 0.85rem;
    }

    /* Conversion Section */
    .conversion-section {
        padding: var(--spacing-xl) 0;
    }

    .conversion-headline {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .conversion-subtext {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }

    .bullet-points {
        margin-bottom: var(--spacing-lg);
    }

    .bullet-points li {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .cta-button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .social-proof {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .avatars {
        justify-content: center;
    }

    .social-proof p {
        font-size: 0.85rem;
    }

    .conversion-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-card h3 {
        font-size: 0.9rem;
    }

    .stat-card p {
        font-size: 1.5rem;
    }

    /* Why Choose Us Section */
    .why-choose-us {
        padding: var(--spacing-xl) 0;
    }

    .why-choose-us .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-md);
    }

    .feature-card h4 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-sm);
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Testimonials Section */
    .testimonials-section {
        padding: var(--spacing-xl) 0;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
        padding: 0 1rem;
    }

    .testimonials-masonry {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1rem 1rem;
        scroll-snap-type: x mandatory;
    }

    .testimonials-masonry::-webkit-scrollbar {
        display: none;
    }

    .screenshot-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
        max-width: 80%;
    }

    

    .screenshot-footer {
        padding: 0.75rem;
    }

    .student-name {
        font-size: 0.85rem;
    }

    .student-role {
        font-size: 0.75rem;
    }

    .success-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
    
}

    /* Pricing Section */
    .pricing-section {
        padding: var(--spacing-xl) 1rem;
    }

    .pricing-toggle {
        margin-bottom: var(--spacing-lg);
    }

    .pricing-grid {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0;
    }

    .pricing-card {
        flex: 1 1 100%;
        max-width: 100%;
        width: 100%;
        padding: 1.5rem 1.25rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card h3 {
        font-size: 1.3rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .feature-list {
        font-size: 0.85rem;
    }

    .feature-item {
        margin-bottom: var(--spacing-sm);
    }

    /* FAQ Section */
    .faq-section {
        padding: var(--spacing-xl) 0;
    }

    .faq-container {
        padding: 0 1rem;
    }

    .faq-item {
        margin-bottom: var(--spacing-sm);
    }

    .faq-question {
        padding: var(--spacing-md);
    }

    .faq-question h3 {
        font-size: 1rem;
        padding-right: 1rem;
    }

    .faq-answer p {
        padding: 0 var(--spacing-md) var(--spacing-md);
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
        padding: 0 1rem;
    }

    .footer-brand .logo-text {
        font-size: 1.25rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .link-group {
        text-align: center;
    }

    .footer-bottom {
        padding: var(--spacing-md) 1rem 0;
        font-size: 0.85rem;
    }

    /* Floating Elements */
    .floating-chat {
        width: 50px;
        height: 50px;
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    .floating-chat i {
        font-size: 1.25rem;
    }

    .floating-chat span {
        display: none; /* Hide tooltip on mobile */
    }

    .toast-notification {
        bottom: var(--spacing-md);
        left: var(--spacing-md);
        right: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.85rem;
    }

    /* Modal */
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-width: 95%;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .modal p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .modal-bullets li {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .modal-cta-primary {
        padding: 12px;
        font-size: 1rem;
    }

    .modal-cta-primary span {
        font-size: 0.75rem;
    }

    /* Calendly Modal */
    .modal-content-calendly {
        flex-direction: column;
        width: 95%;
        max-width: 95%;
        height: 90vh;
        max-height: 90vh;
    }

    .calendly-left-panel {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 15px;
        max-height: 40vh;
        overflow-y: auto;
    }

    .calendly-left-panel h2 {
        font-size: 1.3rem;
    }

    .calendly-left-panel .subtext {
        font-size: 0.8rem;
    }

    .calendly-left-panel p {
        font-size: 0.85rem;
    }

    .calendly-left-panel h3 {
        font-size: 1.1rem;
    }

    .calendly-left-panel li {
        font-size: 0.85rem;
    }

    .stats-row {
        justify-content: space-around;
        gap: 0.5rem;
    }

    .stats-row div {
        min-width: auto;
    }

    .stats-row p {
        font-size: 1.3rem;
    }

    .stats-row span {
        font-size: 0.75rem;
    }

    .calendly-right-panel {
        width: 100%;
        height: 60vh;
        padding: 10px;
    }

    .close-button-calendly {
        top: 5px;
        right: 10px;
        font-size: 28px;
    }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Conversion */
    .conversion-headline {
        font-size: 1.5rem;
    }

    .conversion-right {
        grid-template-columns: 1fr;
        max-width: 250px;
    }

    /* Partner Logos */
    .partner-logo img {
        width: 70px;
        max-height: 50px;
        margin: 0 10px;
    }

    /* Pricing */
    .amount {
        font-size: 2rem;
    }

    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        padding: 0.75rem;
    }
}

/* ==================== LANDSCAPE MOBILE (max-height: 500px) ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: var(--spacing-md);
    }

    .dashboard-3d {
        display: none; /* Hide 3D dashboard in landscape mobile */
    }

    .modal-content,
    .modal-content-calendly {
        height: 95vh;
        margin: 2.5vh auto;
    }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .dashboard-3d {
        animation: none;
    }

    .marquee-content {
        animation: none;
    }

    .capacity-fill {
        animation: none;
    }
}

/* ==================== TOUCH IMPROVEMENTS ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link,
    .cta-primary,
    .cta-secondary,
    .faq-question,
    .feature-card {
        min-height: 44px;
        touch-action: manipulation;
    }

    /* Remove hover effects on touch devices */
    .pricing-card:hover,
    .feature-card:hover,
    .screenshot-card:hover {
        transform: none;
    }

    /* Better tap feedback */
    .cta-primary:active,
    .cta-secondary:active {
        transform: scale(0.98);
    }
}

/* ==================== OVERFLOW FIXES ==================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }

    img {
        height: auto;
    }
}