/* ================================================
   RESPONSIVE STYLES - Mobile First Approach
   ================================================ */

/* Base Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .logo-image {
        height: 32px;
    }

    /* Hero Section */
    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
        margin-right: 0;
    }

    .hero-illustration {
        transform: none;
        max-width: 280px;
        width: 100%;
    }

    /* Stock Ticker */
    .ticker-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .ticker-item::after {
        display: none;
    }

    /* Section headers for mobile */
    .section-header {
        margin-bottom: 40px;
    }

    /* Timeline Section */
    #timeline-control {
        padding: 40px 0;
    }

    #timeline-control .section-header {
        margin-bottom: 40px;
    }

    #timeline-control .timeline {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 20px 0;
    }

    .timeline-curve-conatiner {
        display: none;
    }

    .timeline-info {
        text-align: center;
        padding: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .timeline-info span {
        font-size: 40px;
    }

    .timeline-info h6 {
        font-size: 18px;
        margin: 10px 0 5px;
    }

    .timeline-info p {
        font-size: 14px;
    }

    .hexa-wrapper {
        display: none;
    }

    /* Products Section */
    .products-section {
        padding: 50px 0;
    }

    .product-showcase {
        flex-direction: column;
        gap: 30px;
    }

    .product-main {
        max-width: 100%;
    }

    .ai-headhunter-preview h3 {
        font-size: 28px;
        padding: 30px 20px 15px;
    }

    .product-tabs {
        gap: 8px;
        justify-content: center;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .product-details h3 {
        font-size: 24px;
    }

    .features li {
        font-size: 13px;
    }

    .learn-more-btn {
        max-width: 100%;
    }

    /* Pipeline Section */
    .pipeline-section {
        padding: 50px 0;
    }

    .pipeline-conatiner {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .pipeline-info {
        padding: 20px;
    }

    .pipeline-image {
        order: -1;
        margin-bottom: 20px;
    }

    .pointers,
    .pointer-1,
    .pointer-2,
    .pointer-3,
    .pointer-4,
    .pointer-5 {
        display: none;
    }

    .pipeline-image-txt h6 {
        font-size: 14px;
    }

    .pipeline-image-txt p {
        font-size: 10px;
    }

    /* Investor Section */
    .investor-section {
        padding: 50px 0;
    }

    .investor-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .investor-column {
        height: auto;
        min-height: 400px;
        padding: 24px;
    }

    /* Fix for filing and press items on mobile */
    .filing-item,
    .press-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
    }

    .filing-info,
    .press-info {
        margin-right: 0;
        width: 100%;
    }

    .filing-info h4,
    .press-info h4 {
        font-size: 15px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .view-btn,
    .read-btn {
        width: 100%;
        max-width: 100px;
        align-self: flex-start;
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Newsletter signup responsive */
    .newsletter-signup {
        margin-top: 30px;
        padding-top: 24px;
    }

    .signup-form {
        gap: 10px;
    }

    .signup-form input {
        padding: 12px;
        font-size: 14px;
    }

    .subscribe-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* Download buttons responsive */
    .download-btn {
        padding: 12px 16px;
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Leadership Section */
    .leadership-section {
        padding: 40px 0;
    }

    .leadership-banner {
        padding: 40px 20px;
    }

    .leadership-banner h2 {
        font-size: 32px;
    }

    .updates-text {
        font-size: 16px;
    }

    /* IR Assistant */
    .ir-assistant-section {
        padding: 50px 0;
    }

    .chat-messages {
        height: 300px;
        padding: 20px;
    }

    .message {
        max-width: 85%;
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-right {
        max-width: 100%;
        text-align: left;
    }

    .footer-right p {
        text-align: left;
    }
}

/* Small Mobile to Large Mobile (481px to 575px) */
@media (min-width: 481px) and (max-width: 575px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 160px;
    }

    .timeline-info span {
        font-size: 48px;
    }

    .ai-headhunter-preview h3 {
        font-size: 32px;
    }

    /* Section spacing for small mobile */
    #timeline-control {
        padding: 50px 0;
    }

    .products-section,
    .pipeline-section,
    .investor-section,
    .ir-assistant-section {
        padding: 60px 0;
    }

    .leadership-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    #timeline-control .section-header {
        margin-bottom: 45px;
    }

    /* Investor section improvements for small mobile */
    .investor-content {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }

    .investor-column {
        height: auto;
        min-height: 450px;
        padding: 24px;
    }

    .filing-item,
    .press-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 0;
    }

    .filing-info h4,
    .press-info h4 {
        font-size: 14px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .view-btn,
    .read-btn {
        width: 100%;
        max-width: 90px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 42px;
        line-height: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Section headers for tablet portrait */
    .section-header {
        margin-bottom: 50px;
    }

    /* Timeline adjustments for tablet */
    #timeline-control {
        padding: 50px 0;
    }

    #timeline-control .section-header {
        margin-bottom: 50px;
    }

    #timeline-control .timeline {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }

    .timeline-info-1 {
        grid-column: 1/3;
        grid-row: 1;
    }

    .timeline-info-2 {
        grid-column: 3/5;
        grid-row: 2;
    }

    .timeline-info-3 {
        grid-column: 5/7;
        grid-row: 1;
    }

    .timeline-info-4 {
        grid-column: 7/9;
        grid-row: 2;
    }

    .hexa-wrapper {
        width: 60px;
        height: 60px;
    }

    .hexa-wrapper-1 {
        grid-column: 2;
        grid-row: 3;
    }

    .hexa-wrapper-2 {
        grid-column: 4;
        grid-row: 3;
    }

    .hexa-wrapper-3 {
        grid-column: 6;
        grid-row: 3;
    }

    .hexa-wrapper-4 {
        grid-column: 8;
        grid-row: 3;
    }

    .timeline-curve-conatiner {
        display: none;
    }

    /* Other sections spacing for tablet portrait */
    .products-section,
    .pipeline-section,
    .investor-section,
    .ir-assistant-section {
        padding: 60px 0;
    }

    .leadership-section {
        padding: 50px 0;
    }

    /* Pipeline section for tablet */
    .pipeline-conatiner {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .pipeline-info-box-1 {
        grid-column: 1/4;
        grid-row: 1;
    }

    .pipeline-info-box-2 {
        grid-column: 4/7;
        grid-row: 1;
    }

    .pipeline-info-box-3 {
        grid-column: 2/6;
        grid-row: 2;
    }

    .pipeline-image {
        grid-column: 3/5;
        grid-row: 3;
    }

    .pointer-2,
    .pointer-3 {
        width: 80px;
    }

    /* Investor section for tablet */
    .investor-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 50px;
    }

    .investor-column {
        height: auto;
        min-height: 500px;
        padding: 28px;
    }

    .investor-column:last-child {
        grid-column: 1/3;
        max-width: 600px;
        justify-self: center;
    }

    /* Improved filing and press items for tablet */
    .filing-item,
    .press-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 0;
    }

    .filing-info,
    .press-info {
        margin-right: 16px;
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }

    .filing-info h4,
    .press-info h4 {
        font-size: 15px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .view-btn,
    .read-btn {
        width: auto;
        min-width: 70px;
        max-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* Responsive styles for other product previews */
    .megateam-preview h3,
    .nina-reflex-preview h3,
    .chat-preview h3 {
        font-size: 32px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 40px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero .container {
        gap: 40px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 400px;
    }

    /* Section headers for tablet landscape */
    .section-header {
        margin-bottom: 55px;
    }

    .timeline-section,
    .products-section,
    .pipeline-section,
    .investor-section {
        padding: 60px 0;
    }

    .leadership-section {
        padding: 50px 0;
    }

    .ir-assistant-section {
        padding: 60px 0;
    }

    /* Timeline for tablet landscape */
    #timeline-control .timeline {
        grid-template-columns: repeat(12, 1fr);
    }

    .timeline-info-1 {
        grid-column: 1/4;
        grid-row: 2;
    }

    .timeline-info-2 {
        grid-column: 4/7;
        grid-row: 3;
    }

    .timeline-info-3 {
        grid-column: 7/10;
        grid-row: 2;
    }

    .timeline-info-4 {
        grid-column: 10/13;
        grid-row: 3;
    }

    .hexa-wrapper-1 {
        grid-column: 2;
        grid-row: 4;
    }

    .hexa-wrapper-2 {
        grid-column: 5;
        grid-row: 4;
    }

    .hexa-wrapper-3 {
        grid-column: 8;
        grid-row: 4;
    }

    .hexa-wrapper-4 {
        grid-column: 11;
        grid-row: 4;
    }

    /* Pipeline adjustments */
    .pipeline-conatiner {
        grid-template-columns: repeat(8, 1fr);
    }

    .pipeline-info-box-1 {
        grid-column: 1/4;
        grid-row: 1;
    }

    .pipeline-info-box-2 {
        grid-column: 5/8;
        grid-row: 1;
    }

    .pipeline-info-box-3 {
        grid-column: 2/7;
        grid-row: 2;
    }

    .pipeline-image {
        grid-column: 4/6;
        grid-row: 3;
    }

    /* Investor section */
    .investor-content {
        grid-template-columns: repeat(3, minmax(260px, 300px));
        gap: 24px;
        justify-content: center;
        max-width: 940px;
        margin: 55px auto 0;
    }

    .investor-column {
        height: 550px;
        width: 100%;
        max-width: 300px;
        padding: 20px;
    }

    /* Better text handling for this breakpoint */
    .filing-info h4,
    .press-info h4 {
        font-size: 14px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .filing-info p,
    .press-info p {
        font-size: 13px;
    }

    .view-btn,
    .read-btn {
        min-width: 65px;
        max-width: 75px;
        padding: 7px 10px;
        font-size: 12px;
    }

    /* Footer adjustments */
    .footer {
        padding: 44px 40px;
    }
}

/* Small Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 52px;
        line-height: 60px;
    }

    /* Pipeline adjustments */
    .pointer-2,
    .pointer-3 {
        width: 100px;
    }

    .pipeline-info {
        padding: 20px;
    }

    /* Investor section - Fix for 1190px overflow */
    .investor-content {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        gap: 20px;
        justify-content: center;
        max-width: 920px;
        margin: 0 auto;
        margin-top: 55px;
    }

    .investor-column {
        height: 550px;
        width: 100%;
        max-width: 300px;
        padding: 24px;
    }

    /* Improve text handling */
    .filing-info h4,
    .press-info h4 {
        font-size: 15px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .view-btn,
    .read-btn {
        min-width: 70px;
        max-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer {
        padding: 44px 60px;
    }
}

/* Medium Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    .investor-content {
        grid-template-columns: repeat(3, 350px);
        gap: 30px;
    }

    .investor-column {
        height: 580px;
    }

    .footer {
        padding: 44px 80px;
    }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }

    .investor-content {
        grid-template-columns: repeat(3, 400px);
        gap: 40px;
    }

    .investor-column {
        height: 607px;
    }

    .footer {
        padding: 44px 120px;
    }
}

/* Ultra Wide (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .footer {
        padding: 44px 240px;
        max-width: 1920px;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 36px;
        line-height: 42px;
        margin-bottom: 15px;
    }

    .hero-description {
        margin-bottom: 20px;
    }

    .hero-buttons {
        margin-top: 20px;
    }
}

/* Print styles */
@media print {
    .header,
    .hero-buttons,
    .cta-button,
    .mobile-menu-button,
    .stock-ticker,
    .ir-assistant-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image,
    .hero-illustration {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed in the future */
}

/* Mobile Menu Specific Styles */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #000000;
    cursor: pointer;
    padding: 5px;
    z-index: 1003;
    position: relative;
}

/* Desktop - Hide mobile menu button and ensure nav menu is visible */
@media (min-width: 769px) {
    .mobile-menu-button {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 30px !important;
        border: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-menu.mobile-open {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        gap: 30px !important;
        border: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-menu .nav-link {
        padding: 0 !important;
        border-bottom: none !important;
        text-align: left !important;
        width: auto !important;
        font-size: 16px !important;
        color: #000000 !important;
        background: transparent !important;
        border-radius: 0 !important;
        min-height: auto !important;
        display: inline-block !important;
        position: relative !important;
        padding-bottom: 5px !important;
    }
    
    .nav-menu .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background: #0D9A9A;
        bottom: 0;
        left: 0;
        transition: width 0.3s ease;
    }
    
    .nav-menu .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-menu .nav-link:hover {
        color: #000000 !important;
        opacity: 0.8 !important;
        background: transparent !important;
        border-radius: 0 !important;
    }
    
    .nav-menu .cta-button {
        margin-top: 0 !important;
        width: auto !important;
        padding: 18px 28px !important;
        border-radius: 12px !important;
        background: linear-gradient(180deg, #4DC3D5 0%, #1D838E 100%) !important;
        color: white !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 48px !important;
        white-space: nowrap !important;
    }
    
    .nav-menu .cta-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(77, 195, 213, 0.3) !important;
    }
    
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
    }
    
    .header.menu-open {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    }
    
    /* Hide mobile menu backdrop on desktop */
    .mobile-menu-backdrop {
        display: none !important;
    }
}

/* Mobile and Tablet - Show mobile menu */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }
    
    .header {
        position: sticky;
        top: 0;
        z-index: 1002;
        background: #ffffff;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        padding: 20px;
        z-index: 1004;
        gap: 15px;
        border-top: 1px solid #e9ecef;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        width: 100%;
        font-size: 16px;
        color: #000000;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-menu .nav-link:hover {
        color: #0D9A9A;
        background-color: rgba(13, 154, 154, 0.05);
        border-radius: 8px;
    }
    
    .nav-menu .nav-link:last-of-type {
        border-bottom: none;
    }
    
    .nav-menu .cta-button {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
        padding: 15px 28px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(180deg, #4DC3D5 0%, #1D838E 100%);
        color: white;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu .cta-button:hover {
        background: linear-gradient(180deg, #4DC3D5 0%, #1D838E 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(77, 195, 213, 0.3);
    }
    
    /* Backdrop for mobile menu */
    .mobile-menu-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 1003 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Ensure header stays on top */
    .header.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1005;
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Additional responsive fixes for specific elements */
@media (max-width: 480px) {
    /* Fix for buttons that might overflow */
    .btn-primary,
    .btn-secondary,
    .cta-button,
    .learn-more-btn,
    .download-btn,
    .subscribe-btn {
        font-size: 14px;
        padding: 12px 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Fix for grid layouts that might break */
    .product-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tab-button {
        font-size: 11px;
        padding: 8px 4px;
        text-align: center;
    }
    
    /* Fix for section headers */
    .section-subtitle {
        width: auto;
        min-width: 120px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    /* Fix for stock ticker overflow */
    .stock-ticker {
        overflow-x: auto;
        padding: 8px 0;
    }
    
    .ticker-content {
        min-width: 300px;
        padding: 0 20px;
    }
    
    .ticker-item {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Landscape mobile specific fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 50px 0;
    }
    
    .hero .container {
        flex-direction: row;
        align-items: center;
    }
    
    .hero-content {
        flex: 1;
        text-align: left;
        margin-bottom: 0;
    }
    
    .hero-image {
        flex: 1;
        max-width: 300px;
    }
    
    .timeline-section,
    .products-section,
    .pipeline-section,
    .investor-section {
        padding: 50px 0;
    }
}

/* Fix for touch devices */
@media (pointer: coarse) {
    .nav-link,
    .btn-primary,
    .btn-secondary,
    .cta-button,
    .tab-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link {
        padding: 12px 8px;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 34px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 10px 12px;
        min-width: 120px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .timeline-info h6 {
        font-size: 16px;
    }
    
    .product-details h3 {
        font-size: 20px;
    }
    
    .investor-column {
        padding: 20px;
    }
    
    .leadership-banner h2 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .footer {
        padding: 20px 12px;
    }

    /* Improved text handling for very small screens */
    .filing-info h4,
    .press-info h4 {
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .filing-info p,
    .press-info p {
        font-size: 12px;
        line-height: 1.3;
    }

    .view-btn,
    .read-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 60px;
        max-width: 70px;
    }

    .investor-column h3 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .newsletter-signup h4 {
        font-size: 16px;
    }

    .newsletter-signup > p {
        font-size: 12px;
        line-height: 1.4;
    }

    .download-btn {
        font-size: 12px;
        padding: 10px 12px;
    }
}

/* Responsive styles for other product previews */
.megateam-preview h3,
.nina-reflex-preview h3,
.chat-preview h3 {
    font-size: 28px;
    padding: 30px 20px 15px;
}

/* Additional responsive fixes for investor section overflow prevention */
@media (max-width: 767px) {
    /* Ensure all investor content stays within bounds */
    .investor-column {
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .investor-column * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix long URLs and text in links */
    .view-link,
    .read-link {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    /* Ensure filing and press items don't overflow */
    .filing-item,
    .press-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Better handling of long press release titles */
    .press-info h4 {
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    /* Newsletter form improvements */
    .signup-form input {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }

    .subscribe-btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* Download button text wrapping */
    .download-btn {
        white-space: normal;
        text-align: left;
        line-height: 1.3;
        word-wrap: break-word;
    }
}


@media(max-width:1200px){
    .timeline-info span {
      font-size: clamp(37px, 4vw, 56px);
    }
    .timeline-curve-conatiner {
       top: 5px;
    }
}

@media(max-width:1024px){
    .timeline-curve-conatiner {
       top: 30px;
    }
}

@media(max-width:1024px){
    .timeline-curve-conatiner {
        top: auto;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #timeline-control .timeline {
       padding-bottom: 0px;
       height: 938px;
       grid-template-columns: repeat(2, 1fr);
    }

    .timeline-curve-conatiner img {
    width: auto;
    height: 334px;
    transform: rotate(90deg) translate(0px, 0px);
   }

   .timeline-info {
    padding: 0 16px;
    text-align: left;
    width: 100%;
    height: 100%;
    display: flex
;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}
   .timeline-info-1 {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
.timeline-info-2 {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    align-items: flex-end;
    text-align: right;
}

.timeline-info-3 {
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    justify-content: end;
}
.timeline-info-4 {
    grid-row: 4 / 5;
    grid-column: 1 / 2;
    justify-content: end;
    align-items: flex-end;
    text-align: right;
}

.hexa-wrapper-1 {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        transform: translateY(111%);
        position: absolute;
        right: 21%;
    }

.hexa-wrapper-2 {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    transform: translate(58%, 161%);
}
.hexa-wrapper-3 {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        transform: translateY(178%);
        position: absolute;
        right: 3%;
    }
.hexa-wrapper-4 {
    grid-row: 4 / 5;
    grid-column: 2 / 3;
    transform: translate(152%, 199%);
}
}




@media(max-width: 576px){
    .timeline-curve-conatiner{
        display: none;
    }
    .hexa-inner i {
       color: #AFEFFF;
       font-size: 18px;
    }
    .timeline-info {
        padding: 24px 2px;
    }
    #timeline-control .timeline {
        padding-bottom: 0px;
        height: auto;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .timeline-info-1 {
        grid-row: 1 / 2;
        grid-column: 2 / 5;
    }
    .timeline-info-2 {
        grid-row: 2 / 3;
        grid-column: 1 / 4;
        align-items: flex-end;
        text-align: right;
    }
    .timeline-info-3 {
        grid-row: 3 / 4;
        grid-column: 2 / 5;
        justify-content: end;
    }
    .timeline-info-4 {
        grid-row: 4 / 5;
        grid-column: 1 / 4;
        justify-content: end;
        align-items: flex-end;
        text-align: right;
    }

    .hexa-wrapper {
        width: 57px;
        height: 57px;
    }

    .hexa-wrapper-1 {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        transform: translateY(142%);
        position: absolute;
        right: 19%;
    }
    .hexa-wrapper-2 {
        grid-row: 2 / 3;
        grid-column: 4 / 5;
        transform: translate(54%, 162%);
    }
    .hexa-wrapper-3 {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        transform: translateY(140%);
        right: 22%;
    }
    .hexa-wrapper-4 {
        grid-row: 4 / 5;
        grid-column: 4 / 5;
        transform: translate(54%, 147%);
    }
}