/* Responsive styles */
@media screen and (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .vision-visual {
        height: 500px;
    }
    
    .solutions-grid,
    .thought-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .manifesto h2, .cta-content h2 {
        font-size: 3rem;
    }
    
    .vision-stat {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .platform-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding-top: 100px; /* Added more top padding for mobile */
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    /* Improve floating cards on mobile */
    .floating-card {
        max-width: 240px; /* Wider cards on mobile */
        min-height: 180px; /* Minimum height to fit content */
        height: auto; /* Adjust height beyond minimum as needed */
        padding: 1.8rem; /* More padding for content */
        overflow: hidden; /* Hide overflow */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        box-sizing: border-box;
    }
    
    .floating-card p {
        font-size: 0.85rem; /* Smaller text for better fit */
        line-height: 1.5;
        margin-bottom: 0; /* Remove bottom margin */
        word-break: break-word; /* Break long words if needed */
    }
    
    /* Ensure card text is visible when focused */
    .floating-card.focused {
        max-width: 300px;
        min-height: 200px;
        padding: 2rem;
        transform: translate(-50%, -50%) scale(1.1) !important;
        z-index: 1000 !important;
    }
    
    /* Adjust position to avoid text flowing outside container */
    .vision-visual {
        position: relative;
        height: 600px; /* Taller container for better spacing */
    }
    
    /* Improve positioning for floating cards */
    .floating-card:nth-child(1) {
        top: 5%;
        left: 5%;
    }
    
    .floating-card:nth-child(2) {
        top: 12%;
        right: 12%;
    }
    
    .floating-card:nth-child(3) {
        top: 35%;
        left: 10%;
    }
    
    .floating-card:nth-child(4) {
        top: 32%;
        right: 5%;
    }
    
    .floating-card:nth-child(5) {
        bottom: 32%;
        left: 20%;
    }
    
    .floating-card:nth-child(6) {
        bottom: 25%;
        right: 15%;
    }
    
    .floating-card:nth-child(7) {
        bottom: 5%;
        left: 50%;
    }
    
    /* Mobile/desktop heading switcher moved outside nested media query */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .thought-grid {
        grid-template-columns: 1fr;
    }
    
    /* Much faster slider animation for mobile screens */
    .platform-slider {
        animation-duration: 8s;
    }
    
    /* Adjust platform logo card size for mobile */
    .platform-logo-card {
        min-width: 220px;
        height: 140px;
        padding: 2rem;
    }
    
    .platform-slider-container {
        padding: 2rem 0;
    }
    
    .platform-logo-card img {
        max-width: 140px;
        max-height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Additional floating card improvements for very small screens */
    .floating-card {
        max-width: 200px;
        padding: 1.3rem;
        min-height: 160px;
    }
    
    .floating-card.focused {
        max-width: 250px;
        padding: 1.5rem;
        min-height: 180px;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }
    
    .floating-card h4 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .floating-card p {
        font-size: 0.8rem; /* Even smaller text for small screens */
        line-height: 1.4;
    }
    
    /* Better positioning for floating cards on small screens */
    .vision-visual {
        height: 650px; /* Even taller container for smallest screens */
    }
    
    .section-header h2,
    .vision-text h2,
    .manifesto h2,
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .platform-cards {
        grid-template-columns: 1fr;
    }
    
    /* Very fast slider animation for very small screens */
    .platform-slider {
        animation-duration: 5s;
        gap: 2rem; /* Further reduce gap between items on very small screens */
    }
    
    /* Even smaller platform logo cards for very small screens */
    .platform-logo-card {
        min-width: 180px;
        height: 120px;
        padding: 1.5rem;
    }
    
    .platform-logo-card img {
        max-width: 120px;
        max-height: 50px;
    }
    
    .platform-logo-text {
        font-size: 0.8rem;
    }
}
