/* ============================================
   RESPONSIVE STYLES FOR MOBILE & TABLET
   ============================================ */

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

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

    .stat-value {
        font-size: 1.5rem;
    }

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

    .chat-preview {
        height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .steps-container {
        gap: 1rem;
    }

    .step-arrow {
        display: none;
    }
}

/* Mobile Devices (480px - 768px) */
@media (max-width: 768px) {
    :root {
        --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.10);
        --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: white;
        box-shadow: var(--shadow-md);
        padding: 1rem;
        gap: 0.5rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.75rem;
    }

    .nav-link::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 40px 0;
    }

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

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

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chat-preview {
        height: 350px;
    }

    .chat-messages {
        padding: 1rem;
    }

    .user-message p,
    .ai-message p {
        max-width: 85%;
    }

    /* Problem Cards */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-card {
        padding: 1.5rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Steps Container */
    .steps-container {
        flex-direction: column;
        gap: 1rem;
    }

    .step {
        padding: 1.5rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .amount {
        font-size: 2rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom ul {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Section Title */
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Small Mobile Devices (Below 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    section {
        padding: 30px 0;
    }

    /* Navigation */
    .logo-text {
        display: none;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        padding: 30px 0;
    }

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

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    .chat-preview {
        height: 300px;
    }

    .chat-header {
        padding: 0.75rem;
    }

    .chat-messages {
        padding: 0.75rem;
    }

    .message {
        gap: 0.5rem;
    }

    .user-message p,
    .ai-message p {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        max-width: 90%;
    }

    .chat-input {
        padding: 0.75rem;
        gap: 0.25rem;
    }

    .chat-input input {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .chat-input button {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Problem Cards */
    .problem-icon {
        font-size: 2.5rem;
    }

    .problem-card h3 {
        font-size: 1rem;
    }

    /* Feature Cards */
    .feature-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    /* Steps */
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step h3 {
        font-size: 1rem;
    }

    /* Testimonials */
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .author-title {
        font-size: 0.8rem;
    }

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

    .features-list li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* CTA Section */
    .cta-final h2 {
        font-size: 1.5rem;
    }

    .cta-final p {
        font-size: 0.95rem;
    }

    /* Contact */
    .contact-method .icon {
        font-size: 1.25rem;
    }

    .contact-method h4 {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-bottom a {
        font-size: 0.85rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }
}

/* Extra Small Devices (Below 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

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

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

    .chat-preview {
        height: 250px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

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

    .problem-icon {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 1.75rem;
    }

    .amount {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .cta-final,
    .cta-buttons,
    .btn {
        display: none;
    }

    body {
        background-color: white;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f0f0f0;
        --text-light: #b0b0b0;
        --bg-light: #1a1a1a;
        --bg-white: #2a2a2a;
        --border-color: #444444;
    }

    .navbar {
        background-color: var(--bg-white);
    }

    .problem-card,
    .feature-card,
    .step,
    .testimonial-card,
    .pricing-card,
    .contact-form,
    .chat-preview {
        background-color: var(--bg-white);
    }

    .chat-messages {
        background-color: var(--bg-light);
    }

    .ai-message p {
        background-color: var(--bg-light);
    }

    .form-group input,
    .form-group textarea {
        background-color: var(--bg-light);
        color: var(--text-dark);
        border-color: var(--border-color);
    }
}
