/* Sensoreact Apps Page Styles - Enhanced Design & Fully Responsive */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Apps Hero Section */
.apps-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.apps-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.apps-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #cbd5e1;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.8;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    color: #e2e8f0;
}

/* Apps Showcase Section */
.apps-showcase {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 500px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.app-card:nth-child(even) {
    direction: rtl;
}

.app-card:nth-child(even) .app-content,
.app-card:nth-child(even) .app-preview {
    direction: ltr;
}

/* Unique designs for each app */
.app-card:nth-child(1) {
    border-left: 6px solid #2563eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.app-card:nth-child(2) {
    border-left: 6px solid #059669;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.app-card:nth-child(3) {
    border-left: 6px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.app-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.app-header {
    margin-bottom: 1rem;
}

.app-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

.app-category {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: center;
}

/* Unique category colors */
.app-card:nth-child(1) .app-category {
    color: #2563eb;
}

.app-card:nth-child(2) .app-category {
    color: #059669;
}

.app-card:nth-child(3) .app-category {
    color: #dc2626;
}

.app-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    text-align: center;
}

.app-content p {
    color: #475569;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    text-align: center;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.feature-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(29, 78, 216, 0.1);
    white-space: nowrap;
}

/* Unique feature tag colors */
.app-card:nth-child(1) .feature-tag {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.2);
}

.app-card:nth-child(2) .feature-tag {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.2);
}

.app-card:nth-child(3) .feature-tag {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.2);
}

.download-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* Code Buttons Section */
.code-buttons {
    margin-bottom: 1.5rem;
}

.code-buttons h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    text-align: center;
}

.code-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #475569;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.code-btn:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #334155;
}

.code-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Unique code button colors for each app */
.app-card:nth-child(1) .code-btn {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.2);
}

.app-card:nth-child(1) .code-btn:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: rgba(29, 78, 216, 0.3);
    color: #1e40af;
}

.app-card:nth-child(2) .code-btn {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border-color: rgba(4, 120, 87, 0.2);
}

.app-card:nth-child(2) .code-btn:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: rgba(4, 120, 87, 0.3);
    color: #065f46;
}

.download-btn {
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.download-btn:hover {
    transform: translateY(-3px);
}

.indus-badge {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.download-btn:hover .indus-badge {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* App Preview Section */
.app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100%;
}

/* Unique preview backgrounds */
.app-card:nth-child(1) .app-preview {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.app-card:nth-child(2) .app-preview {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.app-card:nth-child(3) .app-preview {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 35px;
    padding: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #374151;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* App Interface - Keep for Blogs app only */
.app-interface {
    padding: 1.2rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e5e7eb;
}

.interface-header h3 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.search-icon {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Blogs Interface - Keep this for the third app */
.blog-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nav-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.65rem;
    color: #475569;
    cursor: pointer;
    flex: 1;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-image {
    height: 50px;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.blog-image.arduino {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.blog-image.sensor {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.blog-content {
    padding: 0.6rem;
}

.blog-content h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.blog-excerpt {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 500;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 0;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.nav-item {
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
    font-weight: 500;
}

.nav-item.active {
    color: #2563eb;
    font-weight: 700;
}

/* Apps Features Section */
.apps-features {
    padding: 120px 0;
    background: white;
}

.apps-features h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid rgba(37, 99, 235, 0.1);
    text-align: center;
    line-height: 1;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.feature-item p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid2" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid2)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

.cta-btn {
    padding: 1.2rem 3rem;
    border-radius: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #0f172a;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

/* Responsive Design - Enhanced for All Devices */

/* Extra Large Screens (2560px+) */
@media (min-width: 2560px) {
    .apps-hero h1 {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.4rem;
    }
    
    .phone-mockup {
        width: 320px;
        height: 640px;
    }
    
    .app-content {
        padding: 4rem 3rem;
    }
    
    .app-info h2 {
        font-size: 2.6rem;
        text-align: center;
    }
    
    .app-category {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .app-content h3 {
        font-size: 1.6rem;
        text-align: center;
    }
    
    .app-content p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .download-section {
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .apps-hero h1 {
        font-size: 4.5rem;
    }
    
    .phone-mockup {
        width: 300px;
        height: 600px;
    }
    
    .app-content {
        padding: 3.5rem 3rem;
    }
    
    .app-info h2 {
        font-size: 2.4rem;
        text-align: center;
    }
    
    .app-category {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .app-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .app-content p {
        font-size: 1rem;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .download-section {
        align-items: center;
    }
}

/* Standard Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .apps-hero h1 {
        font-size: 4.2rem;
    }
    
    .phone-mockup {
        width: 290px;
        height: 580px;
    }
    
    .app-content {
        padding: 3rem 2.5rem;
    }
    
    .app-info h2 {
        font-size: 2.3rem;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .download-section {
        align-items: center;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .apps-hero {
        padding: 100px 0;
    }
    
    .apps-hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .apps-showcase {
        padding: 100px 0;
    }
    
    .apps-grid {
        gap: 4rem;
    }
    
    .app-card {
        min-height: 480px;
    }
    
    .phone-mockup {
        width: 270px;
        height: 540px;
    }
    
    .app-content {
        padding: 2.5rem 2rem;
    }
    
    .app-info h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .app-category {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .app-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .app-content p {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .download-section {
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .apps-features h2,
    .cta-content h2 {
        font-size: 2.5rem;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .apps-hero {
        padding: 80px 0;
    }
    
    .apps-hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .apps-showcase {
        padding: 80px 0;
    }
    
    .apps-grid {
        gap: 3rem;
    }
    
    .app-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .app-card:nth-child(even) {
        direction: ltr;
    }
    
    .app-preview {
        order: -1;
        padding: 2rem;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .app-content {
        padding: 2rem 1.5rem;
    }
    
    .app-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .app-category {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .app-content h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .app-content p {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .download-section {
        align-items: center;
    }
    
    .code-btn-group {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .code-btn {
        min-width: 180px;
        font-size: 0.85rem;
        padding: 0.7rem 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .apps-features,
    .cta-section {
        padding: 80px 0;
    }
    
    .apps-features h2,
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .apps-hero {
        padding: 60px 0;
    }
    
    .apps-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .apps-showcase {
        padding: 60px 0;
    }
    
    .apps-grid {
        gap: 2.5rem;
    }
    
    .app-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .app-card:nth-child(even) {
        direction: ltr;
    }
    
    .app-preview {
        order: -1;
        padding: 1.5rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 20px;
    }
    
    .app-content {
        padding: 1.5rem;
    }
    
    .app-info h2 {
        font-size: 1.6rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .app-category {
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .app-content h3 {
        font-size: 1.1rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .app-content p {
        font-size: 0.8rem;
        text-align: center;
        line-height: 1.4;
    }
    
    .app-features {
        justify-content: center;
        gap: 0.4rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .download-section {
        align-items: center;
    }
    
    .code-btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .code-btn {
        min-width: 160px;
        font-size: 0.8rem;
        padding: 0.65rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
    }
    
    .apps-features,
    .cta-section {
        padding: 60px 0;
    }
    
    .apps-features h2,
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .indus-badge {
        height: 55px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .apps-hero {
        padding: 40px 0;
    }
    
    .apps-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .apps-showcase {
        padding: 40px 0;
    }
    
    .apps-grid {
        gap: 2rem;
        padding: 0 15px;
    }
    
    .app-card {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 16px;
    }
    
    .app-card:nth-child(even) {
        direction: ltr;
    }
    
    .app-preview {
        order: -1;
        padding: 1.5rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 18px;
    }
    
    .app-content {
        padding: 1.25rem;
    }
    
    .app-header {
        margin-bottom: 0.75rem;
    }
    
    .app-info h2 {
        font-size: 1.4rem;
        text-align: center;
        line-height: 1.2;
        word-break: break-word;
        margin-bottom: 0.4rem;
    }
    
    .app-category {
        font-size: 0.8rem;
        text-align: center;
        line-height: 1.3;
        word-break: break-word;
        margin-bottom: 0.75rem;
    }
    
    .app-content h3 {
        font-size: 1rem;
        text-align: center;
        line-height: 1.2;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
    
    .app-content p {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.3;
        word-break: break-word;
        margin-bottom: 0.75rem;
    }
    
    .app-features {
        justify-content: center;
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    
    .feature-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .download-section {
        align-items: center;
        gap: 0.25rem;
    }
    
    .code-buttons {
        margin-bottom: 1rem;
    }
    
    .code-buttons h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .code-btn-group {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .code-btn {
        min-width: 140px;
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .apps-features,
    .cta-section {
        padding: 40px 0;
    }
    
    .apps-features h2,
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .cta-content {
        padding: 0 15px;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .indus-badge {
        height: 50px;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 15px;
    }
    
    .apps-hero h1 {
        font-size: 1.8rem;
    }
    
    .horizontal-controls {
        gap: 1rem;
    }
    
    .control-btn {
        min-width: 70px;
        padding: 0.7rem 1.2rem;
    }
    
    .sensor-data {
        grid-template-columns: 1fr;
    }
}