/* Comuniq Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .beth-content,
    .demo-content {
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Mobile */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Sections Mobile */
    .features,
    .beth-section,
    .integrations,
    .demo-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    /* Beth Section Mobile */
    .beth-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .beth-avatar img {
        width: 200px;
        height: 200px;
    }
    
    .beth-chat-preview {
        position: static;
        margin-top: 20px;
        max-width: 100%;
    }
    
    /* Integrations Mobile */
    .integrations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .integration-card {
        padding: 25px;
    }
    
    /* Demo Section Mobile */
    .demo-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .demo-info h2 {
        font-size: 2rem;
    }
    
    .demo-form-container {
        padding: 30px 20px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Chat Modal Mobile */
    .beth-chat-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .chat-messages {
        padding: 10px;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .integration-card {
        padding: 20px;
    }
    
    .demo-info h2 {
        font-size: 1.8rem;
    }
    
    .demo-form-container {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .beth-avatar img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .comuniq-header,
    .beth-chat-modal,
    .loading-overlay,
    .hero-buttons,
    .demo-section,
    .comuniq-footer {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: white !important;
    }
    
    .hero-title,
    .section-title {
        color: #333 !important;
    }
    
    .features,
    .beth-section,
    .integrations {
        padding: 30px 0;
        background: white !important;
        color: #333 !important;
    }
    
    .feature-card,
    .integration-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Accessibility */
@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) {
    .comuniq-landing {
        background: #1a1a1a;
        color: #fff;
    }
    
    .comuniq-header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        color: #fff;
    }
    
    .hero {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .features {
        background: #222;
    }
    
    .feature-card,
    .integration-card {
        background: #333;
        border-color: #444;
        color: #fff;
    }
    
    .integrations {
        background: #1a1a1a;
    }
    
    .demo-form-container {
        background: #333;
        color: #fff;
    }
    
    .form-group input,
    .form-group textarea {
        background: #444;
        border-color: #555;
        color: #fff;
    }
    
    .beth-chat-modal {
        background: #333;
        color: #fff;
    }
    
    .chat-messages {
        background: #2a2a2a;
    }
    
    .message-content {
        background: #444;
        color: #fff;
    }
    
    .chat-input-container {
        background: #333;
        border-top-color: #444;
    }
    
    #beth-chat-input {
        background: #444;
        border-color: #555;
        color: #fff;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
textarea:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: #667eea;
    color: white;
}

::-moz-selection {
    background: #667eea;
    color: white;
}

